Sha256: 70d820d1532b0b027359210d53492ff08c3d6910491cd16e711e14154a492bc8
Contents?: true
Size: 653 Bytes
Versions: 27
Compression:
Stored size: 653 Bytes
Contents
# frozen_string_literal: true # encoding: utf-8 module Mongoid module Contextual module Queryable # @attribute [r] collection The collection to query against. # @attribute [r] criteria The criteria for the context. # @attribute [r] klass The klass for the criteria. attr_reader :collection, :criteria, :klass # 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 def blank? !exists? end alias :empty? :blank? end end end
Version data entries
27 entries across 27 versions & 2 rubygems