Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
revert my previous commit (d5d1e6f). because IO#read is broken after …
…calling IO#ungetc. Test Script: {{{ require 'test/unit/assertions.rb' include Test::Unit::Assertions r, w = IO.pipe w.write "foobar" w.close c = r.read(1) r.ungetc(c) assert_equal("foo", r.read(3)) assert_equal("bar", r.read(3)) r.close puts :ok }}}
- Loading branch information