Categories: None [Edit]

significance

https://rubygems.org/gems/significance
https://github.com/caleon/significance
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.

Total

Ranking: 67,888 of 197,085
Downloads: 15,973

Daily

Ranking: 55,182 of 197,066
Downloads: 1

Depended by

RankDownloadsName

Depends on

RankDownloadsName
13,796,160,121bundler
71,443,326,435activesupport
291,025,379,194rspec
150353,290,307rdoc
4,3882,322,951jeweler

Owners

#GravatarHandle
1iconcaleon