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