Class: MilkTea::AST::FloatLiteral
- Inherits:
-
Data
- Object
- Data
- MilkTea::AST::FloatLiteral
- Defined in:
- lib/milk_tea/core/ast.rb
Instance Attribute Summary collapse
-
#column ⇒ Object
readonly
Returns the value of attribute column.
-
#lexeme ⇒ Object
readonly
Returns the value of attribute lexeme.
-
#line ⇒ Object
readonly
Returns the value of attribute line.
-
#value ⇒ Object
readonly
Returns the value of attribute value.
Instance Method Summary collapse
-
#initialize(lexeme:, value:, line: nil, column: nil) ⇒ FloatLiteral
constructor
A new instance of FloatLiteral.
Constructor Details
#initialize(lexeme:, value:, line: nil, column: nil) ⇒ FloatLiteral
Returns a new instance of FloatLiteral.
289 |
# File 'lib/milk_tea/core/ast.rb', line 289 def initialize(lexeme:, value:, line: nil, column: nil) = super |
Instance Attribute Details
#column ⇒ Object (readonly)
Returns the value of attribute column
288 289 290 |
# File 'lib/milk_tea/core/ast.rb', line 288 def column @column end |
#lexeme ⇒ Object (readonly)
Returns the value of attribute lexeme
288 289 290 |
# File 'lib/milk_tea/core/ast.rb', line 288 def lexeme @lexeme end |
#line ⇒ Object (readonly)
Returns the value of attribute line
288 289 290 |
# File 'lib/milk_tea/core/ast.rb', line 288 def line @line end |
#value ⇒ Object (readonly)
Returns the value of attribute value
288 289 290 |
# File 'lib/milk_tea/core/ast.rb', line 288 def value @value end |