Methods

Class/Module Index [+]

Quicksearch

Mongoid::Criterion::Inspection

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/criterion/inspection.rb, line 14
      def inspect
%{#<Mongoid::Criteria
  selector: #{selector.inspect}
  options:  #{options.inspect}
  class:    #{klass}
  embedded: #{embedded?}>
}
      end

[Validate]

Generated with the Darkfish Rdoc Generator 2.