instance method
match
Ruby on Rails 3.0.20
Since v3.0.20 Last seen in v3.2.22.5Signature
match(method_name)
No documentation comment.
Parameters
-
method_namereq
Source
# File activemodel/lib/active_model/attribute_methods.rb, line 353
def match(method_name)
if matchdata = @regex.match(method_name)
AttributeMethodMatch.new(method_missing_target, matchdata[2])
else
nil
end
end
Defined in activemodel/lib/active_model/attribute_methods.rb line 353
· View on GitHub
· Improve this page
· Find usages on GitHub
Defined in ActiveModel::AttributeMethods::ClassMethods::AttributeMethodMatcher