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.
265 266 267 |
# File 'lib/crokus/ast.rb', line 265 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.
264 265 266 |
# File 'lib/crokus/ast.rb', line 264 def body @body end |
#cond ⇒ Object
Returns the value of attribute cond.
264 265 266 |
# File 'lib/crokus/ast.rb', line 264 def cond @cond end |
#increment ⇒ Object
Returns the value of attribute increment.
264 265 266 |
# File 'lib/crokus/ast.rb', line 264 def increment @increment end |
#init ⇒ Object
Returns the value of attribute init.
264 265 266 |
# File 'lib/crokus/ast.rb', line 264 def init @init end |