Sha256: 7fe3c0e7d3d1b1f37cc24af3303620453ba3a73d48a6377399406547db9f0286

Contents?: true

Size: 524 Bytes

Versions: 9

Compression:

Stored size: 524 Bytes

Contents

# Call the MathService using the ASIR::Transport::Subprocess mixin.

$: << File.expand_path("../../../lib", __FILE__)
require 'asir'
require 'asir/transport/subprocess'

require 'math_service'
MathService.send(:include, ASIR::Client)

Process.exit!(0) if RUBY_PLATFORM =~ /java/i

######################################################################
# Driver:

begin
  MathService.asir.transport = ASIR::Transport::Subprocess.new
  MathService.asir.transport._log_enabled = true
  puts MathService.asir.sum([1, 2, 3])
end

Version data entries

9 entries across 9 versions & 1 rubygems

Version Path
asir-1.2.11 hack_night/solution/prob-3.rb
asir-1.2.10 hack_night/solution/prob-3.rb
asir-1.2.9 hack_night/solution/prob-3.rb
asir-1.2.8 hack_night/solution/prob-3.rb
asir-1.2.7 hack_night/solution/prob-3.rb
asir-1.2.6 hack_night/solution/prob-3.rb
asir-1.2.5 hack_night/solution/prob-3.rb
asir-1.2.3 hack_night/solution/prob-3.rb
asir-1.2.2 hack_night/solution/prob-3.rb