Method: Immutable::Hash#each
- Defined in:
- lib/immutable/hash.rb
#each {|key, value| ... } ⇒ self Also known as: each_pair
Call the block once for each key/value pair in this Hash, passing the key/value pair as parameters. No specific iteration order is guaranteed, though the order will be stable for any particular Hash.
346 347 348 349 350 |
# File 'lib/immutable/hash.rb', line 346 def each(&block) return to_enum if not block_given? @trie.each(&block) self end |