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

Required Ruby Version

~> 2.7

Required Rubygems Version

>= 1.3.7

Authors

Ronen Barzel

Versions

  1. 2.0.0
    1. source

      1. 2.0.0 source June 07, 2020 (10 KB)
  2. 1.3.0
    1. source

      1. 1.3.0 source July 06, 2016 (10.5 KB)
  3. 1.2.1
    1. source

      1. 1.2.1 source February 22, 2016 (10 KB)
  4. 1.2.0
    1. source

      1. 1.2.0 source December 09, 2015 (9.5 KB)
  5. 1.1.1
    1. source

      1. 1.1.1 source April 04, 2012 (8.5 KB)
Show all versions (8 total)

Pushed by

SHA 256 checksum