class Nasl::If
Attributes
cond[R]
false[R]
true[R]
Public Class Methods
new(tree, *tokens)
click to toggle source
Calls superclass method
# File lib/nasl/parser/if.rb, line 33 def initialize(tree, *tokens) super @cond = @tokens[2] @true = @tokens[4] @false = if @tokens.length == 7 then @tokens.last else nil end @children << :cond @children << :true @children << :false end