Class: Nasl::Repeat
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) ⇒ Repeat
constructor
A new instance of Repeat.
Methods inherited from Node
Constructor Details
#initialize(tree, *tokens) ⇒ Repeat
Returns a new instance of Repeat.
33 34 35 36 37 38 39 40 41 |
# File 'lib/nasl/parser/repeat.rb', line 33 def initialize(tree, *tokens) super @body = @tokens[1] @cond = @tokens[3] @children << :body @children << :cond end |
Instance Attribute Details
#body ⇒ Object (readonly)
Returns the value of attribute body.
31 32 33 |
# File 'lib/nasl/parser/repeat.rb', line 31 def body @body end |
#cond ⇒ Object (readonly)
Returns the value of attribute cond.
31 32 33 |
# File 'lib/nasl/parser/repeat.rb', line 31 def cond @cond end |