Module: Mongoid::Criterion::Inspection
- Included in:
- Mongoid::Criteria
- Defined in:
- lib/mongoid/criterion/inspection.rb
Overview
:nodoc:
Instance Method Summary collapse
-
#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.
13 14 15 16 17 18 19 |
# File 'lib/mongoid/criterion/inspection.rb', line 13 def inspect "#<Mongoid::Criteria\n" << " selector: #{selector.inspect},\n" << " options: #{.inspect},\n" << " class: #{klass},\n" << " embedded: #{}>\n" end |