Module: Ripple::Document::InstanceMethods
- Defined in:
- ripple/lib/ripple/document.rb
Instance Method Summary (collapse)
-
- (Object) ==(comparison_object)
Returns true if the comparison_object is the same object, or is of the same type and has the same key.
- - (Object) _root_document
Instance Method Details
- (Object) ==(comparison_object)
Returns true if the comparison_object is the same object, or is of the same type and has the same key.
92 93 94 95 96 |
# File 'ripple/lib/ripple/document.rb', line 92 def ==(comparison_object) comparison_object.equal?(self) || (comparison_object.class < Document && (comparison_object.instance_of?(self.class) || comparison_object.class.bucket.name == self.class.bucket.name) && comparison_object.key == key && !comparison_object.new?) end |
- (Object) _root_document
87 88 89 |
# File 'ripple/lib/ripple/document.rb', line 87 def _root_document self end |