Method: McCracken::Attribute#initialize
- Defined in:
- lib/mccracken/attribute.rb
#initialize(name, cast_type, options = {}) ⇒ Attribute
Returns a new instance of Attribute.
7 8 9 10 11 12 13 |
# File 'lib/mccracken/attribute.rb', line 7 def initialize(name, cast_type, ={}) [:default] ||= nil [:array] ||= false @name = name @cast_type = cast_type = end |