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