Class: MilkTea::AST::CharLiteral
- Inherits:
-
Data
- Object
- Data
- MilkTea::AST::CharLiteral
- 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) ⇒ CharLiteral
constructor
A new instance of CharLiteral.
Constructor Details
#initialize(lexeme:, value:, line: nil, column: nil) ⇒ CharLiteral
Returns a new instance of CharLiteral.
248 |
# File 'lib/milk_tea/core/ast.rb', line 248 def initialize(lexeme:, value:, line: nil, column: nil) = super |
Instance Attribute Details
#column ⇒ Object (readonly)
Returns the value of attribute column
247 248 249 |
# File 'lib/milk_tea/core/ast.rb', line 247 def column @column end |
#lexeme ⇒ Object (readonly)
Returns the value of attribute lexeme
247 248 249 |
# File 'lib/milk_tea/core/ast.rb', line 247 def lexeme @lexeme end |
#line ⇒ Object (readonly)
Returns the value of attribute line
247 248 249 |
# File 'lib/milk_tea/core/ast.rb', line 247 def line @line end |
#value ⇒ Object (readonly)
Returns the value of attribute value
247 248 249 |
# File 'lib/milk_tea/core/ast.rb', line 247 def value @value end |