Sha256: 2238c1aa54c5d3ad45eec4946bd8bb0c00322b2f874de3ba0b006ba5905ad52f
Contents?: true
Size: 607 Bytes
Versions: 20
Compression:
Stored size: 607 Bytes
Contents
# frozen_string_literal: true 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. def blank? !exists? end alias :empty? :blank? end end end
Version data entries
20 entries across 20 versions & 1 rubygems