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