module Mongoid::Criteria::Inspectable

Public Instance Methods

inspect() click to toggle source

Get a pretty string representation of the criteria, including the selector, options, matching count and documents for inspection.

@example Inspect the criteria.

criteria.inspect

@return [ String ] The inspection string.

@since 1.0.0

# File lib/mongoid/criteria/inspectable.rb, line 17
      def inspect
%Q{#<Mongoid::Criteria
  selector: #{selector.inspect}
  options:  #{options.inspect}
  class:    #{klass}
  embedded: #{embedded?}>
}
      end