lib/gnip-stream/stream_delegate.rb
module GnipStream
module StreamDelegate
#Magic Method that will delegate all
# method calls to underlying stream if possible
def method_missing(m, *args, &block)
if @stream.respond_to?(m)
@stream.send(m, *args, &block)
else
super(m, *args, &block)
end
end
end
end