class Nasl::FunctionReference

Attributes

body[R]
params[R]

Public Class Methods

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

  @body = @tokens.last

  if @tokens.length == 5 
    @params = @tokens[0]
  else
    @params = []
  end

  @children << :params
  @children << :body
end

Public Instance Methods

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