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