RubyGems Navigation menu

its-it 1.1.0

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

Versions:

  1. 1.3.0 - April 26, 2011 (10.5 KB)
  2. 1.2.1 - April 26, 2011 (10 KB)
  3. 1.2.0 - April 26, 2011 (9.5 KB)
  4. 1.1.1 - April 26, 2011 (8.5 KB)
  5. 1.1.0 - April 26, 2011 (8.5 KB)
Show all versions (7 total)

Runtime Dependencies:

Authors:

  • Ronen Barzel

Owners:

D969a347edb3054c711946c0ed07ce2f

SHA 256 checksum:

4d8f6eb8a24c621090093d3bbeba83c9e8e78873415293013b8396b9ad45b8d8

Total downloads 167,916

For this version 2,003

Gemfile:
= Copy to clipboard Copied!

install:
=

Licenses:

N/A

Required Ruby Version: None

Required Rubygems Version: >= 1.3.7

Links: