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

+ (Object) included(base)

:nodoc:



41
42
43
44
45
46
47
48
49
50
# File 'lib/couch_potato/persistence/properties.rb', line 41

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

- (Object) type_caster

:nodoc:



52
53
54
# File 'lib/couch_potato/persistence/properties.rb', line 52

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