Method: Dictionary#reverse_each

Defined in:
lib/ruber/utils.rb

#reverse_each { ... } ⇒ Dictionary

Calls the block passing it each key and the corresponding value starting from the last

Yields:

  • key, value

Returns:

[View source]

293
294
295
296
# File 'lib/ruber/utils.rb', line 293

def reverse_each
  order.reverse_each{|k| yield k, @hash[k] }
  self
end