Class: Hash

Inherits:
Object
  • Object
show all
Defined in:
lib/solargraph/compat.rb

Instance Method Summary collapse

Instance Method Details

#transform_values(&block) ⇒ Object



3
4
5
6
7
# File 'lib/solargraph/compat.rb', line 3

def transform_values &block
  each_pair do |k, v|
    self[k] = block.call(v)
  end
end