class Nasl::Identifier
Attributes
name[R]
Public Class Methods
new(tree, *tokens)
click to toggle source
Calls superclass method
# File lib/nasl/parser/identifier.rb, line 34 def initialize(tree, *tokens) super @name = @tokens.first.body end
Public Instance Methods
<=>(other)
click to toggle source
# File lib/nasl/parser/identifier.rb, line 40 def <=>(other) self.name <=> other.name end
to_xml(xml)
click to toggle source
# File lib/nasl/parser/identifier.rb, line 44 def to_xml(xml) xml.identifier(:name=>@name) end