class Farts::CommandSyntaxNode

Public Class Methods

new( lineno, cmd, args ) click to toggle source
# File lib/farts/farts_parser.rb, line 674
def initialize( lineno, cmd, args )
  super lineno
  @cmd = cmd
  @args = args
end

Public Instance Methods

execute(intp) click to toggle source
# File lib/farts/farts_parser.rb, line 680
def execute(intp)
  begin
    if @args
      intp.vars["this"].parse(@cmd + " " + @args)
    else
      intp.vars["this"].parse(@cmd)
    end
  rescue Exception
    pp self
    fart_err($!.message)
  end
end