lib/maglev/facets/hash.rb
# same as transform_values, except that it mutates the current hash
same as transform_values, except that it mutates the current hash
same as transform_values except that it mutates the current hash
def transform_values!(*keys, &block)
    keys = self.keys if keys.empty?
    keys.each do |key|
      self[key] = block.arity == 2 ? block.call(key, self[key]) : block.call(self[key])
    end
    self
  end
def transform_values! ( * keys , & block ) keys = self . keys if keys . empty? keys . each do | key | self [ key ] = block . arity == 2 ? block . call ( key , self [ key ] ) : block . call ( self [ key ] ) end self end
same as transform_values, except that it mutates the current hash
same as transform_values except that it mutates the current hash
keys
<not_specific>
block
<not_specific>