Module: CouchPotato::Persistence::Properties
- Defined in:
- lib/couch_potato/persistence/properties.rb
Defined Under Namespace
Modules: ClassMethods Classes: PropertyList
Class Method Summary collapse
-
.included(base) ⇒ Object
:nodoc:.
Instance Method Summary collapse
-
#type_caster ⇒ Object
:nodoc:.
Class Method Details
.included(base) ⇒ Object
:nodoc:
47 48 49 50 51 52 53 54 55 56 |
# File 'lib/couch_potato/persistence/properties.rb', line 47 def self.included(base) #:nodoc: base.extend ClassMethods base.class_eval do def self.properties @properties ||= {} @properties[name] ||= PropertyList.new(self) @properties[name] end end end |
Instance Method Details
#type_caster ⇒ Object
:nodoc:
58 59 60 |
# File 'lib/couch_potato/persistence/properties.rb', line 58 def type_caster #:nodoc: @type_caster ||= TypeCaster.new end |