fix IO#eof? method (consider the read buffer)

This commit is contained in:
Akira Yumiyama
2013-06-02 12:03:45 +09:00
parent 0a21d9ec92
commit 1272df7cb6
+2 -1
View File
@@ -55,7 +55,8 @@ class IO
end
def eof?
# XXX: @buf のことを考えなくてよい??
return true if @buf && @buf.size > 0
ret = false
char = ''