Sha256: 8e911871dd99a4718f15f9a20ec1d3bb901f9b3615462cf06a0d6947bc5a27e2

Contents?: true

Size: 563 Bytes

Versions: 19

Compression:

Stored size: 563 Bytes

Contents

# encoding: utf-8
module Mongoid
  module Criterion
    module Inspection

      # 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
      def inspect
%Q{#<Mongoid::Criteria
  selector: #{selector.inspect}
  options:  #{options.inspect}
  class:    #{klass}
  embedded: #{embedded?}>
}
      end
    end
  end
end

Version data entries

19 entries across 19 versions & 2 rubygems

Version Path
mongoid-3.1.7 lib/mongoid/criterion/inspection.rb
mongoid-3.1.6 lib/mongoid/criterion/inspection.rb
mongoid-3.1.5 lib/mongoid/criterion/inspection.rb
mongoid-3.1.4 lib/mongoid/criterion/inspection.rb
mongoid-3.1.3 lib/mongoid/criterion/inspection.rb
mongoid-3.1.2 lib/mongoid/criterion/inspection.rb
mongoid-3.0.23 lib/mongoid/criterion/inspection.rb
mongoid-3.1.1 lib/mongoid/criterion/inspection.rb
mongoid-3.1.0 lib/mongoid/criterion/inspection.rb
mongoid-3.0.22 lib/mongoid/criterion/inspection.rb
mongoid-3.0.21 lib/mongoid/criterion/inspection.rb
mongoid-3.0.20 lib/mongoid/criterion/inspection.rb
mongoid-3.0.19 lib/mongoid/criterion/inspection.rb
mongoid-3.0.18 lib/mongoid/criterion/inspection.rb
mongoid-3.0.17 lib/mongoid/criterion/inspection.rb
sunrise-cms-0.5.0.rc1 vendor/bundle/ruby/1.9.1/gems/mongoid-3.0.16/lib/mongoid/criterion/inspection.rb
mongoid-3.0.16 lib/mongoid/criterion/inspection.rb
mongoid-3.0.15 lib/mongoid/criterion/inspection.rb
mongoid-3.0.14 lib/mongoid/criterion/inspection.rb