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