instance method to_proc

Ruby on Rails 7.2.3

Since v7.2.3

Available in: v7.2.3 v8.0.4 v8.1.2

Signature

to_proc()

No documentation comment.

Source
# File activesupport/lib/active_support/hash_with_indifferent_access.rb, line 393
    def to_proc
      proc { |key| self[key] }
    end

Defined in activesupport/lib/active_support/hash_with_indifferent_access.rb line 393 · View on GitHub · Improve this page · Find usages on GitHub

Defined in ActiveSupport::HashWithIndifferentAccess

Type at least 2 characters to search.

Use the arrow keys to navigate results, Enter to open one, Escape to close.

Keyboard shortcuts

/
Focus search
⌘K / Ctrl-K
Command palette
?
This help
Esc
Close