Class: MilkTea::AST::FormatString

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

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(parts:, line: nil, column: nil) ⇒ FormatString

Returns a new instance of FormatString.



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

def initialize(parts:, line: nil, column: nil) = super

Instance Attribute Details

#columnObject (readonly)

Returns the value of attribute column

Returns:

  • (Object)

    the current value of column



294
295
296
# File 'lib/milk_tea/core/ast.rb', line 294

def column
  @column
end

#lineObject (readonly)

Returns the value of attribute line

Returns:

  • (Object)

    the current value of line



294
295
296
# File 'lib/milk_tea/core/ast.rb', line 294

def line
  @line
end

#partsObject (readonly)

Returns the value of attribute parts

Returns:

  • (Object)

    the current value of parts



294
295
296
# File 'lib/milk_tea/core/ast.rb', line 294

def parts
  @parts
end