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