method

match

Method deprecated or moved

This method is deprecated or moved on the latest stable version. The last existing version (v7.0.0) is shown here.

match(method_name)
public

No documentation available.

# File activemodel/lib/active_model/attribute_methods.rb, line 431
          def match(method_name)
            if @regex =~ method_name
              AttributeMethodMatch.new(target, $1)
            end
          end