class Bones::RPC::Adapter::Parser
Attributes
adaper[R]
data[R]
Public Class Methods
new(adapter, data)
click to toggle source
# File lib/bones/rpc/adapter/parser.rb, line 9 def initialize(adapter, data) @adapter = Adapter.get(adapter) @data = data end
Public Instance Methods
packer()
click to toggle source
# File lib/bones/rpc/adapter/parser.rb, line 14 def packer @packer ||= @adapter.packer(data) end
read()
click to toggle source
# File lib/bones/rpc/adapter/parser.rb, line 18 def read unpacker.read end
unpacker()
click to toggle source
# File lib/bones/rpc/adapter/parser.rb, line 26 def unpacker @unpacker ||= @adapter.unpacker(data) end
unpacker_pos()
click to toggle source
# File lib/bones/rpc/adapter/parser.rb, line 30 def unpacker_pos @adapter.unpacker_pos(self) end
unpacker_seek(n)
click to toggle source
# File lib/bones/rpc/adapter/parser.rb, line 22 def unpacker_seek(n) @adapter.unpacker_seek(self, n) end