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