Sign in Sign up
rubygems

its-it

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.]

Activity

Latest release
15y ago
Total releases
8
Cadence
~daily
Last 12 months
0

Details

First release
Apr 23, 2011
Releases
Version Released
1.1.0 minor
1.3.0 minor
2.0.0 major
1.1.1 patch
1.2.0 minor
1.2.1 patch
1.0.1 patch
1.0.0 initial