Module: CouchPotato::Persistence::Properties

Defined in:
lib/couch_potato/persistence/properties.rb

Defined Under Namespace

Modules: ClassMethods Classes: PropertyList

Class Method Summary collapse

Instance Method Summary collapse

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_casterObject

:nodoc:



45
46
47
# File 'lib/couch_potato/persistence/properties.rb', line 45

def type_caster #:nodoc:
  @type_caster ||= TypeCaster.new
end