Module: CoffeeMachine

Extended by:
CoffeeMachine
Included in:
CoffeeMachine
Defined in:
lib/coffee_machine.rb

Defined Under Namespace

Classes: JavaRunner

Instance Method Summary collapse

Instance Method Details

#run_class(java_class, *args, &block) ⇒ Object



4
5
6
7
# File 'lib/coffee_machine.rb', line 4

def run_class(java_class, *args, &block)
  java_class = java_class.inspect if java_class =~ /\.class$/
  JavaRunner.run(java_class, *args, &block)
end

#run_jar(path_to_jar, *args, &block) ⇒ Object



9
10
11
# File 'lib/coffee_machine.rb', line 9

def run_jar(path_to_jar, *args, &block)
  JavaRunner.run("-jar #{path_to_jar.inspect}", *args, &block)
end