Class: RBelly::Nodes::ForNode
Instance Attribute Summary collapse
-
#counter ⇒ Object
readonly
Returns the value of attribute counter.
-
#init ⇒ Object
readonly
Returns the value of attribute init.
-
#test ⇒ Object
readonly
Returns the value of attribute test.
Attributes inherited from Node
#comments, #filename, #line, #value
Instance Method Summary collapse
-
#initialize(init, test, counter, body) ⇒ ForNode
constructor
A new instance of ForNode.
Methods inherited from Node
#==, #===, #each, #pointcut, #to_dots, #to_ecma, #to_real_sexp, #to_sexp
Methods included from Visitable
Constructor Details
#initialize(init, test, counter, body) ⇒ ForNode
Returns a new instance of ForNode.
5 6 7 8 9 10 |
# File 'lib/rbelly/nodes/for_node.rb', line 5 def initialize(init, test, counter, body) super(body) @init = init @test = test @counter = counter end |
Instance Attribute Details
#counter ⇒ Object (readonly)
Returns the value of attribute counter.
4 5 6 |
# File 'lib/rbelly/nodes/for_node.rb', line 4 def counter @counter end |
#init ⇒ Object (readonly)
Returns the value of attribute init.
4 5 6 |
# File 'lib/rbelly/nodes/for_node.rb', line 4 def init @init end |
#test ⇒ Object (readonly)
Returns the value of attribute test.
4 5 6 |
# File 'lib/rbelly/nodes/for_node.rb', line 4 def test @test end |