Method: Immutable::Hash#each_value
- Defined in:
- lib/immutable/hash.rb
#each_value {|value| ... } ⇒ self
Call the block once for each key/value pair in this Hash, passing the value as a parameter. Ordering guarantees are the same as #each.
404 405 406 407 408 |
# File 'lib/immutable/hash.rb', line 404 def each_value return enum_for(:each_value) if not block_given? @trie.each { |k,v| yield v } self end |