class Nasl::Return

Attributes

expr[R]

Public Class Methods

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

  @expr = if @tokens.length == 3 then @tokens[1] else nil end

  @children << :expr
end