Method: ASIR::Client::Proxy#send

Defined in:
lib/asir/client.rb

#send(selector, *arguments, &block) ⇒ Object Also known as: method_missing

Accept messages as a proxy for the receiver. Blocks are used represent a “continuation” for the Result.



53
54
55
56
57
58
59
# File 'lib/asir/client.rb', line 53

def send selector, *arguments, &block
  message = Message.new(@receiver, selector, arguments, block, self)
  message = @before_send_message.call(message) if @before_send_message
  @__configure.call(message, self) if @__configure
  result = transport.send_message(message)
  result
end