Class: DCell::RPBC
- Inherits:
-
Celluloid::BlockCall
- Object
- Celluloid::BlockCall
- DCell::RPBC
- Defined in:
- lib/dcell/rpc.rb
Instance Method Summary collapse
-
#_dump(level) ⇒ Object
Custom marshaller for compatibility with Celluloid::Mailbox marshalling.
-
#initialize(id, block_proxy, sender, arguments) ⇒ RPBC
constructor
A new instance of RPBC.
Methods inherited from Celluloid::BlockCall
Constructor Details
#initialize(id, block_proxy, sender, arguments) ⇒ RPBC
Returns a new instance of RPBC.
17 18 19 |
# File 'lib/dcell/rpc.rb', line 17 def initialize(id, block_proxy, sender, arguments) @id, @block_proxy, @sender, @arguments = id, block_proxy, sender, arguments end |
Instance Method Details
#_dump(level) ⇒ Object
Custom marshaller for compatibility with Celluloid::Mailbox marshalling
22 23 24 25 |
# File 'lib/dcell/rpc.rb', line 22 def _dump(level) payload = Marshal.dump [@block_proxy, @sender, @arguments] "#{@id}:rpbc:#{payload}" end |