Class: MilkTea::AST::FormatExprPart
- Inherits:
-
Data
- Object
- Data
- MilkTea::AST::FormatExprPart
- Defined in:
- lib/milk_tea/core/ast.rb
Instance Attribute Summary collapse
-
#column ⇒ Object
readonly
Returns the value of attribute column.
-
#expression ⇒ Object
readonly
Returns the value of attribute expression.
-
#format_spec ⇒ Object
readonly
Returns the value of attribute format_spec.
-
#line ⇒ Object
readonly
Returns the value of attribute line.
Instance Method Summary collapse
-
#initialize(expression:, format_spec: nil, line: nil, column: nil) ⇒ FormatExprPart
constructor
A new instance of FormatExprPart.
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
#column ⇒ Object (readonly)
Returns the value of attribute column
300 301 302 |
# File 'lib/milk_tea/core/ast.rb', line 300 def column @column end |
#expression ⇒ Object (readonly)
Returns the value of attribute expression
300 301 302 |
# File 'lib/milk_tea/core/ast.rb', line 300 def expression @expression end |
#format_spec ⇒ Object (readonly)
Returns the value of attribute format_spec
300 301 302 |
# File 'lib/milk_tea/core/ast.rb', line 300 def format_spec @format_spec end |
#line ⇒ Object (readonly)
Returns the value of attribute line
300 301 302 |
# File 'lib/milk_tea/core/ast.rb', line 300 def line @line end |