Method: Immutable::Hash#reverse_each
- Defined in:
- lib/immutable/hash.rb
#reverse_each {|key, value| ... } ⇒ self
Call the block once for each key/value pair in this Hash, passing the key/value pair as parameters. Iteration order will be the opposite of #each.
366 367 368 369 370 |
# File 'lib/immutable/hash.rb', line 366 def reverse_each(&block) return enum_for(:reverse_each) if not block_given? @trie.reverse_each(&block) self end |