class Nasl::Object
Attributes
body[R]
name[R]
Public Class Methods
new(tree, *tokens)
click to toggle source
Calls superclass method
Nasl::Node::new
# File lib/nasl/parser/object.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/object.rb, line 45 def each @body.each{ |stmt| yield stmt } end