Sha256: cc168db9cee14a71a30439846d088575cf2e92c8ac9bcf2228cd910a33ac5a2f

Contents?: true

Size: 478 Bytes

Versions: 21

Compression:

Stored size: 478 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)

######################################################################
# 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

21 entries across 21 versions & 1 rubygems

Version Path
asir-1.0.1 hack_night/solution/prob-3.rb