Module: MongoODM::Document::Inspect::InstanceMethods
- Defined in:
- lib/mongo_odm/document/inspect.rb
Instance Method Summary collapse
Instance Method Details
#inspect ⇒ Object
21 22 23 |
# File 'lib/mongo_odm/document/inspect.rb', line 21 def inspect "#<#{self.class.name} #{attributes.except(*private_attribute_names).keys.sort.map{|k| inspect_attribute(k)}.join(", ")}>" end |
#private_attribute_names ⇒ Object
17 18 19 |
# File 'lib/mongo_odm/document/inspect.rb', line 17 def private_attribute_names %w(_class) end |