lib/java_head/class.rb
# Integrated compile, run, remove_class
# This method assumes to some extent that
# compilation will succeed, so although this may fail,
# its arguments are passed to the exec method
#
# @param [Array] args the arguments to be passed to the #exec method
# @return [String] the output created by the Java program
Integrated compile, run, remove_class
This method assumes to some extent that
compilation will succeed, so although this may fail,
its arguments are passed to the exec method
Integrated compile run remove_class This method assumes to some extent that compilation will succeed so although this may fail its arguments are passed to the exec method
def run(*args)
      compile 
      output = exec *args
      remove_class
      output 
    end
def run ( * args ) compile output = exec * args remove_class output end
Integrated compile, run, remove_class
This method assumes to some extent that
compilation will succeed, so although this may fail,
its arguments are passed to the exec method
Integrated compile run remove_class This method assumes to some extent that compilation will succeed so although this may fail its arguments are passed to the exec method
# this is a simple list of things for the interpreter to do # return output
the output created by the Java program
the output created by the Java program
String
args
args the arguments to be passed to the #exec method
args the arguments to be passed to the #exec method