RubyGems Navigation menu

its-it 1.1.1

This gem defines the Kernel method "it" that queue and defer method calls. This extends the Symbol#to_proc idiom to support chaining multiple methods. For example, items.collect(&it.to_s.capitalize). This also allows conditionals in case statements, such as: case ... when it > 3 then [etc.]. The method is also aliased as "its", for methods that describe possessives rather than actions, such as items.collect(&its.name.capitalize) [This gem is an extension of Jay Philips' "methodphitamine" gem, updated for ruby 1.9 and gemspec compatibility and adding the case statement functionality.]

Gemfile:
= Copier Copié!

installation:
=

Versions:

  1. 2.0.0 - June 07, 2020 (10 ko)
  2. 1.3.0 - July 06, 2016 (10,5 ko)
  3. 1.2.1 - February 22, 2016 (10 ko)
  4. 1.2.0 - December 09, 2015 (9,5 ko)
  5. 1.1.1 - April 04, 2012 (8,5 ko)
Voir toutes les versions (8)

Dépendances de Development (6):

bueller >= 0
bundler >= 0
rdoc >= 0
rspec >= 0
simplecov >= 0

Propriétaires:

Auteurs:

  • Ronen Barzel

Total de contrôle SHA 256:

d52fe966bcf47c11051f52409d282f28bae96cb9a7a853a1fec013253c843be3

Total de téléchargements 1 470 451

Pour cette version 119 360

License:

aucune

Version de Ruby requise: None

Required Rubygems Version: >= 1.3.7

Liens: