Methods

Class/Module Index [+]

Quicksearch

Mongoid::Contextual::Queryable

Attributes

collection[R]

@attribute [r] collection The collection to query against. @attribute [r] criteria The criteria for the context. @attribute [r] klass The klass for the criteria.

criteria[R]

@attribute [r] collection The collection to query against. @attribute [r] criteria The criteria for the context. @attribute [r] klass The klass for the criteria.

klass[R]

@attribute [r] collection The collection to query against. @attribute [r] criteria The criteria for the context. @attribute [r] klass The klass for the criteria.

Public Instance Methods

blank?() click to toggle source

Is the enumerable of matching documents empty?

@example Is the context empty?

context.blank?

@return [ true, false ] If the context is empty.

@since 3.0.0

# File lib/mongoid/contextual/queryable.rb, line 18
def blank?
  !exists?
end
Also aliased as: empty?
empty?() click to toggle source
Alias for: blank?

[Validate]

Generated with the Darkfish Rdoc Generator 2.