Class: Crokus::While
Instance Attribute Summary collapse
-
#body ⇒ Object
Returns the value of attribute body.
-
#cond ⇒ Object
Returns the value of attribute cond.
Instance Method Summary collapse
-
#initialize(cond, body) ⇒ While
constructor
A new instance of While.
Methods inherited from Ast
Constructor Details
#initialize(cond, body) ⇒ While
Returns a new instance of While.
272 273 274 |
# File 'lib/crokus/ast.rb', line 272 def initialize cond,body @cond,@body=cond,body end |
Instance Attribute Details
#body ⇒ Object
Returns the value of attribute body.
271 272 273 |
# File 'lib/crokus/ast.rb', line 271 def body @body end |
#cond ⇒ Object
Returns the value of attribute cond.
271 272 273 |
# File 'lib/crokus/ast.rb', line 271 def cond @cond end |