Class: Cuprum::Collections::Scopes::NoneScope
- Includes:
- None
- Defined in:
- lib/cuprum/collections/scopes/none_scope.rb
Overview
Generic scope class for defining collection-independent none scopes.
Class Method Summary collapse
-
.instance ⇒ Cuprum::Collections::Scopes::NoneScope
A cached instance of the none scope.
Methods included from None
#and, #empty?, #invert, #not, #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::NoneScope
Returns a cached instance of the none scope.
14 15 16 |
# File 'lib/cuprum/collections/scopes/none_scope.rb', line 14 def self.instance @instance ||= new end |