instance method
match_attribute_method?
Ruby on Rails 4.0.13
Since v3.0.20 Last seen in v4.2.9 PrivateSignature
match_attribute_method?(method_name)
Returns a struct representing the matching attribute method. The struct’s attributes are prefix, base and suffix.
Parameters
-
method_namereq
Source
# File activemodel/lib/active_model/attribute_methods.rb, line 475
def match_attribute_method?(method_name)
match = self.class.send(:attribute_method_matcher, method_name)
match if match && attribute_method?(match.attr_name)
end
Defined in activemodel/lib/active_model/attribute_methods.rb line 475
· View on GitHub
· Improve this page
· Find usages on GitHub
Defined in ActiveModel::AttributeMethods