lib/maniaplanet_rpc/maniaplanet_client.rb
##
# Calls an RPC method with the given name and arguments, optionally handling the result within the passed block.
# Note: The response is asynchronous.
Calls an RPC method with the given name and arguments, optionally handling the result within the passed block.
Note: The response is asynchronous.
Calls an RPC method with the given name and arguments optionally handling the result within the passed block . Note : The response is asynchronous .
def call(method, *args, &block)
      if block_given?
        @response_map[@connection.call(method, *args)] = block
      else
        @response_map[@connection.call(method, *args)] = proc {}
      end
    end
def call ( method , * args , & block ) if block_given? @response_map [ @connection . call ( method , * args ) ] = block else @response_map [ @connection . call ( method , * args ) ] = proc { } end end
Calls an RPC method with the given name and arguments, optionally handling the result within the passed block.
Calls an RPC method with the given name and arguments optionally handling the result within the passed block .
method
args
block