Class: RLSL::Prism::IR::Return
- Defined in:
- lib/rlsl/prism/ir/control_flow.rb
Instance Attribute Summary collapse
-
#expression ⇒ Object
readonly
Returns the value of attribute expression.
Attributes inherited from Node
Instance Method Summary collapse
-
#initialize(expression) ⇒ Return
constructor
A new instance of Return.
Methods inherited from Node
Constructor Details
#initialize(expression) ⇒ Return
Returns a new instance of Return.
25 26 27 28 29 |
# File 'lib/rlsl/prism/ir/control_flow.rb', line 25 def initialize(expression) super() @expression = expression @type = expression&.type end |
Instance Attribute Details
#expression ⇒ Object (readonly)
Returns the value of attribute expression.
21 22 23 |
# File 'lib/rlsl/prism/ir/control_flow.rb', line 21 def expression @expression end |