# The Dispatcher class handles decoding a series of RPC calls
# from the request, dispatching them, and encoding the response
class Dispatcher
- def initialize(request, &_block)
+ def initialize(request, &block)
# Get stream for request data
@request = StringIO.new(request + 0.chr)
end
# Capture the dispatch routine
- @dispatch = Proc.new
+ @dispatch = block
end
def each(&_block)