Class: Nasl::Identifier
- Includes:
- Comparable
- Defined in:
- lib/nasl/parser/identifier.rb
Instance Attribute Summary collapse
-
#name ⇒ Object
readonly
Returns the value of attribute name.
Attributes inherited from Node
Instance Method Summary collapse
- #<=>(other) ⇒ Object
-
#initialize(tree, *tokens) ⇒ Identifier
constructor
A new instance of Identifier.
- #to_xml(xml) ⇒ Object
Methods inherited from Node
Constructor Details
#initialize(tree, *tokens) ⇒ Identifier
Returns a new instance of Identifier.
34 35 36 37 38 |
# File 'lib/nasl/parser/identifier.rb', line 34 def initialize(tree, *tokens) super @name = @tokens.first.body end |
Instance Attribute Details
#name ⇒ Object (readonly)
Returns the value of attribute name.
32 33 34 |
# File 'lib/nasl/parser/identifier.rb', line 32 def name @name end |