Class: Cuprum::Collections::Scopes::AllScope

Inherits:
Base
  • Object
show all
Includes:
All
Defined in:
lib/cuprum/collections/scopes/all_scope.rb

Overview

Generic scope class for defining collection-independent all scopes.

Class Method Summary collapse

Methods included from All

#and, #empty?, #invert, #or, #type

Methods inherited from Base

#==, #as_json, #debug, #empty?, #initialize, #invert, #type

Methods included from Composition

#and, #not, #or

Constructor Details

This class inherits a constructor from Cuprum::Collections::Scopes::Base

Class Method Details

.instanceCuprum::Collections::Scopes::AllScope

Returns a cached instance of the all scope.

Returns:



14
15
16
# File 'lib/cuprum/collections/scopes/all_scope.rb', line 14

def self.instance
  @instance ||= new
end