RubyGems Navigation menu

significance 0.2.1

Similar in behavior to Object#presence defined in ActiveSupport, Significance is a state which determines not just the blank-ness of an object but whether or not the non-blank object has any real-world value. The utility of this gem can best be demonstrated when considering the merging of two hashes. Under normal circumstances the mere existence of an equivalent key in the second hash results in its overriding the corresponding value in the original hash. Using Hash#significant_merge, however, the second hash will retain only key-value pairs whose values are "significant," even applying the significance filter recursively into child hashes or arrays.

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

インストール:
=

バージョン履歴:

  1. 0.2.1 - October 25, 2012 (10KB)
  2. 0.2.0 - October 22, 2012 (9.5KB)
  3. 0.1.1 - November 16, 2011 (14.5KB)
  4. 0.1.0 - November 16, 2011 (13.5KB)

Runtime依存関係 (1):

activesupport >= 2.3.5

Development依存関係 (4):

bundler >= 0
jeweler >= 0
rdoc >= 0
rspec >= 0

所有者:

作者:

  • caleon

SHA 256チェックサム:

a965c825be2bcc363f04bde439f9d6896305113d6b9cda446ac3dce10021d4e1

累計ダウンロード数 14,572

このバージョンのみ 5,789

ライセンス:

N/A

必要なRubyのバージョン: なし

リンク: