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:
35 36 37 38 39 40 41 42 43 |
# File 'lib/couch_potato/persistence/properties.rb', line 35 def self.included(base) #:nodoc: base.extend ClassMethods base.class_eval do def self.properties @properties ||= {} @properties[name] ||= PropertyList.new(self) end end end |
Instance Method Details
#type_caster ⇒ Object
:nodoc:
45 46 47 |
# File 'lib/couch_potato/persistence/properties.rb', line 45 def type_caster #:nodoc: @type_caster ||= TypeCaster.new end |