instance method attribute_method_patterns_matching

Ruby on Rails 8.0.4

Since v7.1.6 Private — implementation detail, not part of the public API

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

Signature

attribute_method_patterns_matching(method_name)

No documentation comment.

Parameters

method_name req
Source
# File activemodel/lib/active_model/attribute_methods.rb, line 421
        def attribute_method_patterns_matching(method_name)
          attribute_method_patterns_cache.compute_if_absent(method_name) do
            attribute_method_patterns.filter_map { |pattern| pattern.match(method_name) }
          end
        end

Defined in activemodel/lib/active_model/attribute_methods.rb line 421 · View on GitHub · Improve this page · Find usages on GitHub

Defined in ActiveModel::AttributeMethods::ClassMethods

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