Module: Envoy::Protocol

Includes:
EM::P::ObjectProtocol
Included in:
Client::Trunk, Server::Trunk
Defined in:
lib/envoy/protocol.rb

Defined Under Namespace

Modules: Serializer

Instance Method Summary collapse

Instance Method Details

#receive_object(command, *args) ⇒ Object



26
27
28
# File 'lib/envoy/protocol.rb', line 26

def receive_object ((command, *args))
  __send__("receive_#{command}", *args)
end

#send_object(*args) ⇒ Object



22
23
24
# File 'lib/envoy/protocol.rb', line 22

def send_object *args
  super(args.size > 1 ? BERT::Tuple[*args] : args[0])
end

#serializerObject



18
19
20
# File 'lib/envoy/protocol.rb', line 18

def serializer
  Serializer
end