Class: Crokus::For
Instance Attribute Summary collapse
-
#body ⇒ Object
Returns the value of attribute body.
-
#cond ⇒ Object
Returns the value of attribute cond.
-
#increment ⇒ Object
Returns the value of attribute increment.
-
#init ⇒ Object
Returns the value of attribute init.
Instance Method Summary collapse
-
#initialize(init = [], cond = nil, increment = nil, body = nil) ⇒ For
constructor
A new instance of For.
Methods inherited from Ast
Constructor Details
#initialize(init = [], cond = nil, increment = nil, body = nil) ⇒ For
Returns a new instance of For.
269 270 271 |
# File 'lib/crokus/ast.rb', line 269 def initialize init=[],cond=nil,increment=nil,body=nil @init,@cond,@increment,@body=init,cond,increment,body end |
Instance Attribute Details
#body ⇒ Object
Returns the value of attribute body.
268 269 270 |
# File 'lib/crokus/ast.rb', line 268 def body @body end |
#cond ⇒ Object
Returns the value of attribute cond.
268 269 270 |
# File 'lib/crokus/ast.rb', line 268 def cond @cond end |
#increment ⇒ Object
Returns the value of attribute increment.
268 269 270 |
# File 'lib/crokus/ast.rb', line 268 def increment @increment end |
#init ⇒ Object
Returns the value of attribute init.
268 269 270 |
# File 'lib/crokus/ast.rb', line 268 def init @init end |