Class: MilkTea::AST::FormatExprPart

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

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(expression:, format_spec: nil, line: nil, column: nil) ⇒ FormatExprPart

Returns a new instance of FormatExprPart.



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

def initialize(expression:, format_spec: nil, line: nil, column: nil) = super

Instance Attribute Details

#columnObject (readonly)

Returns the value of attribute column

Returns:

  • (Object)

    the current value of column



300
301
302
# File 'lib/milk_tea/core/ast.rb', line 300

def column
  @column
end

#expressionObject (readonly)

Returns the value of attribute expression

Returns:

  • (Object)

    the current value of expression



300
301
302
# File 'lib/milk_tea/core/ast.rb', line 300

def expression
  @expression
end

#format_specObject (readonly)

Returns the value of attribute format_spec

Returns:

  • (Object)

    the current value of format_spec



300
301
302
# File 'lib/milk_tea/core/ast.rb', line 300

def format_spec
  @format_spec
end

#lineObject (readonly)

Returns the value of attribute line

Returns:

  • (Object)

    the current value of line



300
301
302
# File 'lib/milk_tea/core/ast.rb', line 300

def line
  @line
end