instance method
match
Ruby on Rails 3.2.22.5
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 373
def match(method_name)
if @regex =~ method_name
AttributeMethodMatch.new(method_missing_target, $2, method_name)
else
nil
end
end
Defined in activemodel/lib/active_model/attribute_methods.rb line 373
· View on GitHub
· Improve this page
· Find usages on GitHub
Defined in ActiveModel::AttributeMethods::ClassMethods::AttributeMethodMatcher