Method: CouchObject::Document#method_missing
- Defined in:
- lib/couch_object/document.rb
#method_missing(method_symbol, *arguments) ⇒ Object (private)
93 94 95 96 97 98 99 100 101 102 103 104 |
# File 'lib/couch_object/document.rb', line 93 def method_missing(method_symbol, *arguments) method_name = method_symbol.to_s case method_name[-1..-1] when "=" self[method_name[0..-2]] = arguments.first when "?" self[method_name[0..-2]] == true else has_key?(method_name) ? self[method_name] : super end end |