class ActiveModel::AttributeMethods::ClassMethods::AttributeMethodMatcher

def match(method_name)

def match(method_name)
  if @regex =~ method_name
    AttributeMethodMatch.new(target, $1)
  end
end