Class: Nasl::Local

Inherits:
Node
  • Object
show all
Defined in:
lib/nasl/parser/local.rb

Instance Attribute Summary collapse

Attributes inherited from Node

#ctx, #tokens

Instance Method Summary collapse

Methods inherited from Node

#context, #region, #to_xml

Constructor Details

#initialize(tree, *tokens) ⇒ Local

Returns a new instance of Local.



33
34
35
36
37
38
39
# File 'lib/nasl/parser/local.rb', line 33

def initialize(tree, *tokens)
  super

  @idents = @tokens[1]

  @children << :idents
end

Instance Attribute Details

#identsObject (readonly)

Returns the value of attribute idents.



31
32
33
# File 'lib/nasl/parser/local.rb', line 31

def idents
  @idents
end