class ActiveModel::AttributeMethods::ClassMethods::AttributeMethodMatcher

def match(method_name)

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