instance method
transform_values!
Ruby on Rails 4.2.11.3
Since v4.2.11.3 Last seen in v5.2.8.1Signature
transform_values!()
Destructive transform_values
Source
# File activesupport/lib/active_support/core_ext/hash/transform_values.rb, line 17
def transform_values!
return enum_for(:transform_values!) unless block_given?
each do |key, value|
self[key] = yield(value)
end
end
Defined in activesupport/lib/active_support/core_ext/hash/transform_values.rb line 17
· View on GitHub
· Improve this page
· Find usages on GitHub
Defined in Hash