Method: Mugatu::Attribute#initialize
- Defined in:
- lib/mugatu/attribute.rb
#initialize(key, type, options = {}) ⇒ Attribute
Returns a new instance of Attribute.
5 6 7 8 9 |
# File 'lib/mugatu/attribute.rb', line 5 def initialize(key, type, = {}) @key = key @type = type self.value = [:default_value] # nil when none is set. end |