instance method
transform_keys
Ruby on Rails 6.1.7.10
Since v5.2.8.1Signature
transform_keys(*args, &block)
No documentation comment.
Parameters
-
argsrest -
blockblock
Source
# File activesupport/lib/active_support/hash_with_indifferent_access.rb, line 332
def transform_keys(*args, &block)
return to_enum(:transform_keys) unless block_given?
dup.tap { |hash| hash.transform_keys!(*args, &block) }
end
Defined in activesupport/lib/active_support/hash_with_indifferent_access.rb line 332
· View on GitHub
· Improve this page
· Find usages on GitHub
Defined in ActiveSupport::HashWithIndifferentAccess