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: 65,678 of 190,529
Downloads: 15,695

Daily

Ranking: 110,136 of 190,497
Downloads: 1

Depended by

RankDownloadsName

Depends on

RankDownloadsName
13,254,889,834bundler
71,298,846,382activesupport
29959,406,060rspec
171283,187,808rdoc
4,2922,149,910jeweler

Owners

#GravatarHandle
1iconcaleon