Class: RLSL::Prism::IR::WhileLoop
- Defined in:
- lib/rlsl/prism/ir/control_flow.rb
Instance Attribute Summary collapse
-
#body ⇒ Object
readonly
Returns the value of attribute body.
-
#condition ⇒ Object
readonly
Returns the value of attribute condition.
Attributes inherited from Node
Instance Method Summary collapse
-
#initialize(condition, body) ⇒ WhileLoop
constructor
A new instance of WhileLoop.
Methods inherited from Node
Constructor Details
#initialize(condition, body) ⇒ WhileLoop
Returns a new instance of WhileLoop.
65 66 67 68 69 70 |
# File 'lib/rlsl/prism/ir/control_flow.rb', line 65 def initialize(condition, body) super() @condition = condition @body = body @type = nil end |
Instance Attribute Details
#body ⇒ Object (readonly)
Returns the value of attribute body.
61 62 63 |
# File 'lib/rlsl/prism/ir/control_flow.rb', line 61 def body @body end |
#condition ⇒ Object (readonly)
Returns the value of attribute condition.
61 62 63 |
# File 'lib/rlsl/prism/ir/control_flow.rb', line 61 def condition @condition end |