Class: DB::Model::Statement::Predicate::Empty

Inherits:
Object
  • Object
show all
Defined in:
lib/db/model/statement/predicate.rb

Instance Method Summary collapse

Instance Method Details

#+(other) ⇒ Object



17
18
19
# File 'lib/db/model/statement/predicate.rb', line 17

def + other
  other
end

#append_to(statement) ⇒ Object



13
14
15
# File 'lib/db/model/statement/predicate.rb', line 13

def append_to(statement)
  statement.literal(true)
end

#eql?(other) ⇒ Boolean

Returns:

  • (Boolean)


21
22
23
# File 'lib/db/model/statement/predicate.rb', line 21

def eql?(other)
  self.class.eql?(other.class)
end

#hashObject



25
26
27
# File 'lib/db/model/statement/predicate.rb', line 25

def hash
  self.class.hash
end