Sha256: 5e50bb4bd2c29f3b8f8fdb71d7957e4436ffb7b49dea69af24186e6ed3beee64

Contents?: true

Size: 263 Bytes

Versions: 4

Compression:

Stored size: 263 Bytes

Contents

module Kernel

  # Hierarchically apply a block, passing each ancestor to the block
  # starting at the root ancestor and working toward the current object.
  #
  def hierarchically(&block)
    ancestors.reverse_each do |m|
      block.call(m)
    end
  end

end

Version data entries

4 entries across 4 versions & 2 rubygems

Version Path
facets-glimmer-3.2.0 lib/core/facets/class/hierarchically.rb
facets-3.1.0 lib/core/facets/class/hierarchically.rb
facets-3.0.0 lib/core/facets/class/hierarchically.rb
facets-2.9.3 lib/core/facets/class/hierarchically.rb