Module: Mongoid::Criteria::Inspectable
- Included in:
- Mongoid::Criteria
- Defined in:
- build/mongoid-7.3/lib/mongoid/criteria/inspectable.rb
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.
17 18 19 20 21 22 23 24 |
# File 'build/mongoid-7.3/lib/mongoid/criteria/inspectable.rb', line 17 def inspect %Q{#<Mongoid::Criteria selector: #{selector.inspect} options: #{.inspect} class: #{klass} embedded: #{}> } end |