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, line: nil, column: nil) ⇒ TupleType

Returns a new instance of TupleType.



52
# File 'lib/milk_tea/core/ast.rb', line 52

def initialize(element_types:, nullable: false, line: nil, column: nil) = super

Instance Attribute Details

#columnObject (readonly)

Returns the value of attribute column

Returns:

  • (Object)

    the current value of column



51
52
53
# File 'lib/milk_tea/core/ast.rb', line 51

def column
  @column
end

#element_typesObject (readonly)

Returns the value of attribute element_types

Returns:

  • (Object)

    the current value of element_types



51
52
53
# File 'lib/milk_tea/core/ast.rb', line 51

def element_types
  @element_types
end

#lineObject (readonly)

Returns the value of attribute line

Returns:

  • (Object)

    the current value of line



51
52
53
# File 'lib/milk_tea/core/ast.rb', line 51

def line
  @line
end

#nullableObject (readonly)

Returns the value of attribute nullable

Returns:

  • (Object)

    the current value of nullable



51
52
53
# File 'lib/milk_tea/core/ast.rb', line 51

def nullable
  @nullable
end