Sha256: 45573a23af75ee1a09734d4f9dada5a918de2f4584f05286d3373573e54a3d81

Contents?: true

Size: 693 Bytes

Versions: 1

Compression:

Stored size: 693 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

1 entries across 1 versions & 1 rubygems

Version Path
significance-0.2.0 lib/significance/core_ext/object.rb