method
match
v3.0.0 -
Show latest stable
- Class:
ActiveModel::AttributeMethods::ClassMethods::AttributeMethodMatcher
match(method_name)public
No documentation available.
# File activemodel/lib/active_model/attribute_methods.rb, line 329
def match(method_name)
if matchdata = @regex.match(method_name)
AttributeMethodMatch.new(method_missing_target, matchdata[2])
else
nil
end
end