app/server/vendor/hamster/lib/hamster/trie.rb
# Calls <tt>block</tt> once for each entry in the trie, passing the key-value pair as parameters.
Calls block once for each entry in the trie, passing the key-value pair as parameters.
Calls block once for each entry in the trie passing the key - value pair as parameters .
def each
      @entries.each { |entry| yield(entry) if entry }
      @children.each do |child|
        child.each { |entry| yield(entry) } if child
      end
      nil
    end
def each @entries . each { | entry | yield ( entry ) if entry } @children . each do | child | child . each { | entry | yield ( entry ) } if child end nil end
Calls <tt>block</tt> once for each entry in the trie, passing the key-value pair as parameters.
Calls <tt > block< / tt > once for each entry in the trie passing the key - value pair as parameters .