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:



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_casterObject

:nodoc:



58
59
60
# File 'lib/couch_potato/persistence/properties.rb', line 58

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