lib/java_head/class.rb
def compile(*args)
      remove_class if compiled?
      command = 'javac '
      args.each do |arg|
        arg = arg.to_s
        raise CompilerException, "Invalid compiling argument #{arg}" unless arg.match ARGFORMAT
      end
      command << args.join(' ')
      command << ' '
      command << @path.to_s
      output = `#{command}`
      raise CompilerException, "Class #{fullname} could not compile" unless compiled?
      self
    end
# Compile the program
# Raises a CompilerException if there was a problem compiling
# @return [JavaHead::Class] this class object
Compile the program
Raises a CompilerException if there was a problem compiling
Compile the program Raises a CompilerException if there was a problem compiling
def compile(*args)
      remove_class if compiled?
      command = 'javac '
      args.each do |arg|
        arg = arg.to_s
        raise CompilerException, "Invalid compiling argument #{arg}" unless arg.match ARGFORMAT
      end
      command << args.join(' ')
      command << ' '
      command << @path.to_s
      output = `#{command}`
      raise CompilerException, "Class #{fullname} could not compile" unless compiled?
      self
    end
def compile ( * args ) remove_class if compiled? command = 'javac ' args . each do | arg | arg = arg . to_s raise CompilerException , "Invalid compiling argument #{arg}" unless arg . match ARGFORMAT end command << args . join ( ' ' ) command << ' ' command << @path . to_s output = ` #{ command } ` raise CompilerException , "Class #{fullname} could not compile" unless compiled? self end
Compile the program
Raises a CompilerException if there was a problem compiling
Compile the program Raises a CompilerException if there was a problem compiling
this class object
this class object
JavaHead::Class
args