Class: Cuprum::Collections::Scopes::AllScope
- 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
-
.instance ⇒ Cuprum::Collections::Scopes::AllScope
A cached instance of the all scope.
Methods included from All
#and, #empty?, #invert, #or, #type
Methods inherited from Base
#==, #as_json, #debug, #empty?, #initialize, #invert, #type
Methods included from Composition
Constructor Details
This class inherits a constructor from Cuprum::Collections::Scopes::Base
Class Method Details
.instance ⇒ Cuprum::Collections::Scopes::AllScope
Returns a cached instance of the all scope.
14 15 16 |
# File 'lib/cuprum/collections/scopes/all_scope.rb', line 14 def self.instance @instance ||= new end |