Class: Squeel::Nodes::Operation
- Defined in:
- lib/squeel/nodes/operation.rb
Instance Attribute Summary
Attributes inherited from Function
Instance Method Summary collapse
-
#initialize(left, operator, right) ⇒ Operation
constructor
A new instance of Operation.
- #left ⇒ Object
- #right ⇒ Object
Methods inherited from Function
#<, #<<, #<=, #==, #=~, #>, #>=, #>>, #^, #as, #asc, #desc, #to_sym
Methods included from Operators
Methods included from PredicateMethods
Constructor Details
#initialize(left, operator, right) ⇒ Operation
Returns a new instance of Operation.
7 8 9 |
# File 'lib/squeel/nodes/operation.rb', line 7 def initialize(left, operator, right) super(operator, [left, right]) end |
Instance Method Details
#left ⇒ Object
13 14 15 |
# File 'lib/squeel/nodes/operation.rb', line 13 def left args[0] end |
#right ⇒ Object
17 18 19 |
# File 'lib/squeel/nodes/operation.rb', line 17 def right args[1] end |