Class: MilkTea::IR::ReturnStmt
- Inherits:
-
Data
- Object
- Data
- MilkTea::IR::ReturnStmt
- Defined in:
- lib/milk_tea/core/ir.rb
Instance Attribute Summary collapse
-
#line ⇒ Object
readonly
Returns the value of attribute line.
-
#source_path ⇒ Object
readonly
Returns the value of attribute source_path.
-
#value ⇒ Object
readonly
Returns the value of attribute value.
Instance Method Summary collapse
-
#initialize(value:, line: nil, source_path: nil) ⇒ ReturnStmt
constructor
A new instance of ReturnStmt.
Constructor Details
#initialize(value:, line: nil, source_path: nil) ⇒ ReturnStmt
Returns a new instance of ReturnStmt.
47 |
# File 'lib/milk_tea/core/ir.rb', line 47 def initialize(value:, line: nil, source_path: nil) = super |
Instance Attribute Details
#line ⇒ Object (readonly)
Returns the value of attribute line
46 47 48 |
# File 'lib/milk_tea/core/ir.rb', line 46 def line @line end |
#source_path ⇒ Object (readonly)
Returns the value of attribute source_path
46 47 48 |
# File 'lib/milk_tea/core/ir.rb', line 46 def source_path @source_path end |
#value ⇒ Object (readonly)
Returns the value of attribute value
46 47 48 |
# File 'lib/milk_tea/core/ir.rb', line 46 def value @value end |