Method: Morpheus::Mixins::Attributes::ClassMethods#property
- Defined in:
- lib/morpheus/mixins/attributes.rb
#property(name, typecast_class = nil) ⇒ Object
11 12 13 14 15 16 |
# File 'lib/morpheus/mixins/attributes.rb', line 11 def property(name, typecast_class = nil) typecast_attributes.store(name.to_sym, typecast_class) default_attributes.store(name.to_sym, nil) define_attribute_accessor(name) end |