class Nasl::Decrement
Attributes
ident[R]
type[R]
Public Class Methods
new(tree, *tokens)
click to toggle source
Calls superclass method
# File lib/nasl/parser/decrement.rb, line 33 def initialize(tree, *tokens) super if @tokens.first.is_a? Lvalue @type = :post @ident = @tokens[0] else @type = :pre @ident = @tokens[1] end @children << :ident @children << :type end