Class: MilkTea::AST::TupleType

Inherits:
Data
  • Object
show all
Defined in:
lib/milk_tea/core/ast.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

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_typesObject (readonly)

Returns the value of attribute element_types

Returns:

  • (Object)

    the current value of element_types



45
46
47
# File 'lib/milk_tea/core/ast.rb', line 45

def element_types
  @element_types
end

#nullableObject (readonly)

Returns the value of attribute nullable

Returns:

  • (Object)

    the current value of nullable



45
46
47
# File 'lib/milk_tea/core/ast.rb', line 45

def nullable
  @nullable
end