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: 64,710 of 187,839
Downloads: 15,547

Daily

Ranking: 108,686 of 187,816
Downloads: 0

Depended by

RankDownloadsName

Depends on

RankDownloadsName
13,034,043,602bundler
71,221,336,645activesupport
28928,448,331rspec
180251,557,992rdoc
4,2962,016,289jeweler

Owners

#GravatarHandle
1iconcaleon