Class: Cuprum::Collections::Scopes::NoneScope

Inherits:
Base
  • Object
show all
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

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

#and, #not, #or

Constructor Details

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

Class Method Details

.instanceCuprum::Collections::Scopes::NoneScope

Returns a cached instance of the none scope.

Returns:



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

def self.instance
  @instance ||= new
end