class Estreet::BinaryExpression

Public Class Methods

new(operator, left, right) click to toggle source
# File lib/estreet/binary_expression.rb, line 3
def initialize(operator, left, right)
  Estreet.assert_valid_operator(BINARY_OPERATORS, operator)

  @operator = operator
  @left     = left.to_expression
  @right    = right.to_expression
end

Public Instance Methods

attributes() click to toggle source
Calls superclass method
# File lib/estreet/binary_expression.rb, line 11
def attributes
  super.merge(
    operator: @operator,
    left: @left,
    right: @right
  )
end