Class: Nasl::Foreach
Instance Attribute Summary collapse
-
#body ⇒ Object
readonly
Returns the value of attribute body.
-
#expr ⇒ Object
readonly
Returns the value of attribute expr.
-
#iter ⇒ Object
readonly
Returns the value of attribute iter.
Attributes inherited from Node
Instance Method Summary collapse
-
#initialize(tree, *tokens) ⇒ Foreach
constructor
A new instance of Foreach.
Methods inherited from Node
Constructor Details
#initialize(tree, *tokens) ⇒ Foreach
Returns a new instance of Foreach.
33 34 35 36 37 38 39 40 41 42 43 |
# File 'lib/nasl/parser/foreach.rb', line 33 def initialize(tree, *tokens) super @iter = @tokens[0] @expr = @tokens[1] @body = @tokens[2] @children << :iter @children << :expr @children << :body end |
Instance Attribute Details
#body ⇒ Object (readonly)
Returns the value of attribute body.
31 32 33 |
# File 'lib/nasl/parser/foreach.rb', line 31 def body @body end |
#expr ⇒ Object (readonly)
Returns the value of attribute expr.
31 32 33 |
# File 'lib/nasl/parser/foreach.rb', line 31 def expr @expr end |
#iter ⇒ Object (readonly)
Returns the value of attribute iter.
31 32 33 |
# File 'lib/nasl/parser/foreach.rb', line 31 def iter @iter end |