Class: MilkTea::AST::BinaryOp
- Inherits:
-
Data
- Object
- Data
- MilkTea::AST::BinaryOp
- Defined in:
- lib/milk_tea/core/ast.rb
Instance Attribute Summary collapse
-
#column ⇒ Object
readonly
Returns the value of attribute column.
-
#left ⇒ Object
readonly
Returns the value of attribute left.
-
#line ⇒ Object
readonly
Returns the value of attribute line.
-
#operator ⇒ Object
readonly
Returns the value of attribute operator.
-
#right ⇒ Object
readonly
Returns the value of attribute right.
Instance Method Summary collapse
-
#initialize(operator:, left:, right:, line: nil, column: nil) ⇒ BinaryOp
constructor
A new instance of BinaryOp.
Constructor Details
#initialize(operator:, left:, right:, line: nil, column: nil) ⇒ BinaryOp
Returns a new instance of BinaryOp.
253 |
# File 'lib/milk_tea/core/ast.rb', line 253 def initialize(operator:, left:, right:, line: nil, column: nil) = super |
Instance Attribute Details
#column ⇒ Object (readonly)
Returns the value of attribute column
252 253 254 |
# File 'lib/milk_tea/core/ast.rb', line 252 def column @column end |
#left ⇒ Object (readonly)
Returns the value of attribute left
252 253 254 |
# File 'lib/milk_tea/core/ast.rb', line 252 def left @left end |
#line ⇒ Object (readonly)
Returns the value of attribute line
252 253 254 |
# File 'lib/milk_tea/core/ast.rb', line 252 def line @line end |
#operator ⇒ Object (readonly)
Returns the value of attribute operator
252 253 254 |
# File 'lib/milk_tea/core/ast.rb', line 252 def operator @operator end |
#right ⇒ Object (readonly)
Returns the value of attribute right
252 253 254 |
# File 'lib/milk_tea/core/ast.rb', line 252 def right @right end |