Module: MongoModel::PrettyInspect
- Extended by:
- ActiveSupport::Concern
- Included in:
- EmbeddedDocument
- Defined in:
- lib/mongomodel/concerns/pretty_inspect.rb
Defined Under Namespace
Modules: ClassMethods
Instance Method Summary collapse
-
#inspect ⇒ Object
Returns the contents of the document as a nicely formatted string.
Instance Method Details
#inspect ⇒ Object
Returns the contents of the document as a nicely formatted string.
18 19 20 |
# File 'lib/mongomodel/concerns/pretty_inspect.rb', line 18 def inspect "#<#{self.class.name} #{attributes_for_inspect}>" end |