Class: Arel::Predicates::LessThanOrEqualTo

Inherits:
Binary show all
Defined in:
lib/arel/algebra/predicates.rb

Instance Attribute Summary

Attributes inherited from Binary

#operand2

Attributes inherited from Unary

#operand

Instance Method Summary collapse

Methods inherited from Binary

#==, #bind, #eval, #initialize, #to_sql

Methods inherited from Unary

#==, #bind, #eval, #initialize, #to_sql

Methods inherited from Predicate

#and, #not, #or

Constructor Details

This class inherits a constructor from Arel::Predicates::Binary

Instance Method Details

#complementObject



231
232
233
# File 'lib/arel/algebra/predicates.rb', line 231

def complement
  GreaterThan.new(operand1, operand2)
end

#operatorObject



235
# File 'lib/arel/algebra/predicates.rb', line 235

def operator; :<= end

#predicate_sqlObject



237
# File 'lib/arel/algebra/predicates.rb', line 237

def predicate_sql; '<=' end