class Nasl::Comment

Attributes

next[R]
text[R]

Public Class Methods

new(tree, *tokens) click to toggle source
Calls superclass method
# File lib/nasl/parser/comment.rb, line 33
def initialize(tree, *tokens)
  super

  @text = @tokens.first
  @next = @tokens.last

  @next = nil if @tokens.length == 1
end

Public Instance Methods

to_xml(xml) click to toggle source
# File lib/nasl/parser/comment.rb, line 42
def to_xml(xml)
  xml.comment(@text)
end