Class: Bones::RPC::Adapter::Erlang::Unpacker
- Inherits:
-
Object
- Object
- Bones::RPC::Adapter::Erlang::Unpacker
- Defined in:
- lib/bones/rpc/adapter/erlang.rb
Instance Attribute Summary collapse
-
#buffer ⇒ Object
readonly
Returns the value of attribute buffer.
Instance Method Summary collapse
-
#initialize(data) ⇒ Unpacker
constructor
A new instance of Unpacker.
- #read ⇒ Object
Constructor Details
Instance Attribute Details
#buffer ⇒ Object (readonly)
Returns the value of attribute buffer.
53 54 55 |
# File 'lib/bones/rpc/adapter/erlang.rb', line 53 def buffer @buffer end |
Instance Method Details
#read ⇒ Object
59 60 61 62 63 64 |
# File 'lib/bones/rpc/adapter/erlang.rb', line 59 def read ext_data = Adapter.read_ext(buffer) ::Erlang.binary_to_term(ext_data) rescue NotImplementedError nil end |