Module: CouchRest::Mixins::Properties::ClassMethods

Defined in:
lib/couchrest/mixins/properties.rb

Instance Method Summary collapse

Instance Method Details

#property(name, options = {}) ⇒ Object



72
73
74
# File 'lib/couchrest/mixins/properties.rb', line 72

def property(name, options={})
  define_property(name, options) unless self.properties.map{|p| p.name}.include?(name.to_s)
end