Class: MilkTea::AST::ValueTypeParam

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

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(name:, type:, line: nil, column: nil, length: nil) ⇒ ValueTypeParam

Returns a new instance of ValueTypeParam.



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

def initialize(name:, type:, line: nil, column: nil, length: nil) = super

Instance Attribute Details

#columnObject (readonly)

Returns the value of attribute column

Returns:

  • (Object)

    the current value of column



19
20
21
# File 'lib/milk_tea/core/ast.rb', line 19

def column
  @column
end

#lengthObject (readonly)

Returns the value of attribute length

Returns:

  • (Object)

    the current value of length



19
20
21
# File 'lib/milk_tea/core/ast.rb', line 19

def length
  @length
end

#lineObject (readonly)

Returns the value of attribute line

Returns:

  • (Object)

    the current value of line



19
20
21
# File 'lib/milk_tea/core/ast.rb', line 19

def line
  @line
end

#nameObject (readonly)

Returns the value of attribute name

Returns:

  • (Object)

    the current value of name



19
20
21
# File 'lib/milk_tea/core/ast.rb', line 19

def name
  @name
end

#typeObject (readonly)

Returns the value of attribute type

Returns:

  • (Object)

    the current value of type



19
20
21
# File 'lib/milk_tea/core/ast.rb', line 19

def type
  @type
end