Sha256: 87c2c15171eee878f1054bca4cc786cab41125ab0fe77f58e1b267aab39a0e33
Contents?: true
Size: 431 Bytes
Versions: 4
Compression:
Stored size: 431 Bytes
Contents
module PipeRpc class Client < BasicObject def initialize(server = :default, hub) @server = server.to_sym @hub = hub end def method_missing(method, *args) request = Client::Request.new(server: @server, method: method, arguments: args) @hub.requests.evaluate(request) end def to_s "<Client:#{@server.to_s}>" end def is_a?(object) object == Client end end end
Version data entries
4 entries across 4 versions & 1 rubygems
Version | Path |
---|---|
pipe_rpc-1.1.2 | lib/pipe_rpc/client.rb |
pipe_rpc-1.1.1 | lib/pipe_rpc/client.rb |
pipe_rpc-1.1.0 | lib/pipe_rpc/client.rb |
pipe_rpc-1.0.0 | lib/pipe_rpc/client.rb |