Flowdock
method

new

Importance_0
Ruby on Rails latest stable (v4.2.1) - 0 notes - Class: ActiveModel::AttributeMethods::ClassMethods::AttributeMethodMatcher
new(options = {}) public

No documentation

This method has no description. You can help the Ruby on Rails community by adding new notes.

Hide source
# File activemodel/lib/active_model/attribute_methods.rb, line 395
          def initialize(options = {})
            @prefix, @suffix = options.fetch(:prefix, ''), options.fetch(:suffix, '')
            @regex = /^(?:#{Regexp.escape(@prefix)})(.*)(?:#{Regexp.escape(@suffix)})$/
            @method_missing_target = "#{@prefix}attribute#{@suffix}"
            @method_name = "#{prefix}%s#{suffix}"
          end
Register or log in to add new notes.