Class: Perpetuity::NilQuery

Inherits:
Object
  • Object
show all
Defined in:
lib/perpetuity/mongodb/nil_query.rb

Class Method Summary collapse

Instance Method Summary collapse

Class Method Details

.newObject



3
4
5
# File 'lib/perpetuity/mongodb/nil_query.rb', line 3

def self.new
  @instance ||= allocate
end

Instance Method Details

#to_dbObject



7
8
9
# File 'lib/perpetuity/mongodb/nil_query.rb', line 7

def to_db
  {}
end