Class: Nasl::List
Instance Attribute Summary collapse
-
#elems ⇒ Object
readonly
Returns the value of attribute elems.
Attributes inherited from Node
Instance Method Summary collapse
-
#initialize(tree, *tokens) ⇒ List
constructor
A new instance of List.
Methods inherited from Node
Constructor Details
#initialize(tree, *tokens) ⇒ List
Returns a new instance of List.
33 34 35 36 37 38 39 |
# File 'lib/nasl/parser/list.rb', line 33 def initialize(tree, *tokens) super @elems = if @tokens[1].is_a? ::Array then @tokens[1] else [] end @children << :elems end |
Instance Attribute Details
#elems ⇒ Object (readonly)
Returns the value of attribute elems.
31 32 33 |
# File 'lib/nasl/parser/list.rb', line 31 def elems @elems end |