Module: Ripple::Inspection
- Defined in:
- lib/ripple/inspection.rb
Overview
Makes IRB and other inspect output a bit friendlier
Instance Method Summary collapse
-
#inspect ⇒ Object
A human-readable version of the Document or EmbeddedDocument plus attributes.
-
#to_s ⇒ Object
A string representation of the Document or EmbeddedDocument.
Instance Method Details
#inspect ⇒ Object
A human-readable version of the Document or EmbeddedDocument plus attributes
9 10 11 12 |
# File 'lib/ripple/inspection.rb', line 9 def inspect attribute_list = attributes_for_persistence.except("_type").map {|k,v| "#{k}=#{v.inspect}" }.join(' ') inspection_string(attribute_list) end |
#to_s ⇒ Object
A string representation of the Document or EmbeddedDocument
15 16 17 |
# File 'lib/ripple/inspection.rb', line 15 def to_s inspection_string end |