Class: Faust2Ruby::AST::BinaryOp

Inherits:
Node
  • Object
show all
Defined in:
lib/faust2ruby/ast.rb

Overview

Binary operation: left OP right

Instance Attribute Summary collapse

Attributes inherited from Node

#column, #line

Instance Method Summary collapse

Constructor Details

#initialize(op, left, right, **opts) ⇒ BinaryOp

Returns a new instance of BinaryOp.



64
65
66
67
68
69
# File 'lib/faust2ruby/ast.rb', line 64

def initialize(op, left, right, **opts)
  super(**opts)
  @op = op
  @left = left
  @right = right
end

Instance Attribute Details

#leftObject (readonly)

Returns the value of attribute left.



62
63
64
# File 'lib/faust2ruby/ast.rb', line 62

def left
  @left
end

#opObject (readonly)

Returns the value of attribute op.



62
63
64
# File 'lib/faust2ruby/ast.rb', line 62

def op
  @op
end

#rightObject (readonly)

Returns the value of attribute right.



62
63
64
# File 'lib/faust2ruby/ast.rb', line 62

def right
  @right
end