Class: Arel::Nodes::InfixOperation

Inherits:
Binary
  • Object
show all
Includes:
Expressions, Predications
Defined in:
lib/ransack/adapters/active_record/3.0/compat.rb

Direct Known Subclasses

Addition, Division, Multiplication, Subtraction

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods included from Predications

#as

Constructor Details

#initialize(operator, left, right) ⇒ InfixOperation

Returns a new instance of InfixOperation.



77
78
79
80
# File 'lib/ransack/adapters/active_record/3.0/compat.rb', line 77

def initialize operator, left, right
  super(left, right)
  @operator = operator
end

Instance Attribute Details

#operatorObject (readonly)

Returns the value of attribute operator.



75
76
77
# File 'lib/ransack/adapters/active_record/3.0/compat.rb', line 75

def operator
  @operator
end