instance method
to_proc
Ruby on Rails 8.0.4
Since v7.2.3Signature
to_proc()
No documentation comment.
Source
# File activesupport/lib/active_support/hash_with_indifferent_access.rb, line 385
def to_proc
proc { |key| self[key] }
end
Defined in activesupport/lib/active_support/hash_with_indifferent_access.rb line 385
· View on GitHub
· Improve this page
· Find usages on GitHub
Defined in ActiveSupport::HashWithIndifferentAccess