Sha256: 11783fa7b051381f19c09e396f8fdca88f62bf459c0582b14e6f9b83384b2879
Contents?: true
Size: 691 Bytes
Versions: 2
Compression:
Stored size: 691 Bytes
Contents
class Object # `significant == self` is the way to end the recursion. def blank? respond_to?(:empty?) ? empty? : !self end def significant? !blank? and significant == self end def significant self end def keep_significant respond_to?(:replace) ? replace(significant) : significant end def significant! keep_significant end def significance significant? ? significant : nil end def significant_significance significant.significance end def significant_significance? significant_significance.significant? end alias_method :sigsig, :significant_significance alias_method :sigsig?, :significant_significance? end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
significance-0.1.1 | lib/significance/core_ext/object.rb |
significance-0.1.0 | lib/significance/core_ext/object.rb |