Class: MilkTea::AST::TupleType
- Inherits:
-
Data
- Object
- Data
- MilkTea::AST::TupleType
- Defined in:
- lib/milk_tea/core/ast.rb
Instance Attribute Summary collapse
-
#element_types ⇒ Object
readonly
Returns the value of attribute element_types.
-
#nullable ⇒ Object
readonly
Returns the value of attribute nullable.
Instance Method Summary collapse
-
#initialize(element_types:, nullable: false) ⇒ TupleType
constructor
A new instance of TupleType.
Constructor Details
#initialize(element_types:, nullable: false) ⇒ TupleType
Returns a new instance of TupleType.
46 |
# File 'lib/milk_tea/core/ast.rb', line 46 def initialize(element_types:, nullable: false) = super |
Instance Attribute Details
#element_types ⇒ Object (readonly)
Returns the value of attribute element_types
45 46 47 |
# File 'lib/milk_tea/core/ast.rb', line 45 def element_types @element_types end |
#nullable ⇒ Object (readonly)
Returns the value of attribute nullable
45 46 47 |
# File 'lib/milk_tea/core/ast.rb', line 45 def nullable @nullable end |