class Farts::LocalVarSyntaxNode

Public Class Methods

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

Public Instance Methods

execute( intp ) click to toggle source
# File lib/farts/farts_parser.rb, line 719
def execute( intp )
  if intp.vars.has_key?(@vname)
    intp.vars[@vname]
  else
    fart_err("unknown local variable '#{@vname}'")
  end
end