RubyGems Navigation menu

its-it 2.0.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.]

Gemfile:
= クリップボードにコピー コピー完了!

インストール:
=

バージョン履歴:

  1. 2.0.0 - June 07, 2020 (10KB)
  2. 1.3.0 - July 06, 2016 (10.5KB)
  3. 1.2.1 - February 22, 2016 (10KB)
  4. 1.2.0 - December 09, 2015 (9.5KB)
  5. 1.1.1 - April 04, 2012 (8.5KB)
全てのバージョンを表示(全8件)

Development依存関係 (6):

bundler >= 0
rake >= 0
rdoc >= 0
rspec ~> 3.0
simplecov >= 0

所有者:

プッシュ者:

作者:

  • Ronen Barzel

SHA 256チェックサム:

a75c2a66eb61efa8a3a961cc2c1bb177b5f745deae05a3b6eac52608ff4c39d7

累計ダウンロード数 1,468,235

このバージョンのみ 2,639

ライセンス:

N/A

必要なRubyのバージョン: ~> 2.7

必要なRubyGemsのバージョン: >= 1.3.7

リンク: