module DuckPuncher::AncestralHash

@note When updating this file please update comment regarding this module in duck_puncher.rb

Public Instance Methods

ancestral_hash() click to toggle source
# File lib/duck_puncher/ancestral_hash.rb, line 4
def ancestral_hash
  ::Hash.new { |me, klass| me[me.keys.detect { |key| key > klass }] if klass }
end