Module: CouchRest::Mixins::Properties::ClassMethods
- Defined in:
- lib/couchrest/mixins/properties.rb
Instance Method Summary collapse
Instance Method Details
#property(name, options = {}) ⇒ Object
105 106 107 108 109 110 |
# File 'lib/couchrest/mixins/properties.rb', line 105 def property(name, ={}) existing_property = self.properties.find{|p| p.name == name.to_s} if existing_property.nil? || (existing_property.default != [:default]) define_property(name, ) end end |