Method: SimpleFormObject::Attribute#initialize

Defined in:
lib/simple_form_object.rb

#initialize(name, options, type = nil) ⇒ Attribute

Returns a new instance of Attribute.



106
107
108
109
110
111
112
# File 'lib/simple_form_object.rb', line 106

def initialize(name, options, type = nil)
  @name = name
  @type = type || :string
  @options = options

  extract_options
end