Update stream.rb

Fix passing in IOs