class Nasl::Namespace

Attributes

body[R]
name[R]

Public Class Methods

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

  @body = if @tokens.length == 5 then @tokens[3] else [] end
  @name = @tokens[1]

  @children << :name
  @children << :body
end

Public Instance Methods

each() { |stmt| ... } click to toggle source
# File lib/nasl/parser/namespace.rb, line 45
def each
  @body.each{ |stmt| yield stmt }
end