Class: Johnson::Nodes::For
Instance Attribute Summary collapse
-
#cond ⇒ Object
Returns the value of attribute cond.
-
#init ⇒ Object
Returns the value of attribute init.
-
#update ⇒ Object
Returns the value of attribute update.
Attributes inherited from Node
Instance Method Summary collapse
-
#initialize(line, column, init, cond, update, body) ⇒ For
constructor
A new instance of For.
Methods inherited from Node
#each, #to_dot, #to_ecma, #to_s, #to_sexp
Methods included from Visitable
Constructor Details
#initialize(line, column, init, cond, update, body) ⇒ For
Returns a new instance of For.
6 7 8 9 10 11 |
# File 'lib/johnson/nodes/for.rb', line 6 def initialize(line, column, init, cond, update, body) super(line, column, body) @init = init @cond = cond @update = update end |
Instance Attribute Details
#cond ⇒ Object
Returns the value of attribute cond.
5 6 7 |
# File 'lib/johnson/nodes/for.rb', line 5 def cond @cond end |
#init ⇒ Object
Returns the value of attribute init.
5 6 7 |
# File 'lib/johnson/nodes/for.rb', line 5 def init @init end |
#update ⇒ Object
Returns the value of attribute update.
5 6 7 |
# File 'lib/johnson/nodes/for.rb', line 5 def update @update end |