Module: Mongoid::Criteria::Inspectable
| Relationships & Source Files | |
| Extension / Inclusion / Inheritance Descendants | |
|
Included In:
| |
| Defined in: | lib/mongoid/criteria/inspectable.rb |
Overview
Mixin module included in ::Mongoid::Criteria which adds custom #inspect method functionality.
Instance Method Summary
-
#inspect ⇒ String
Get a pretty string representation of the criteria, including the selector, options, matching count and documents for inspection.
Instance Method Details
#inspect ⇒ String
Get a pretty string representation of the criteria, including the selector, options, matching count and documents for inspection.
# File 'lib/mongoid/criteria/inspectable.rb', line 18
def inspect %Q{#<Mongoid::Criteria selector: #{selector.inspect} options: #{.inspect} class: #{klass} embedded: #{}> } end