diff options
| author | Tomoyuki Sahara <[email protected]> | 2016-09-30 17:10:55 +0900 |
|---|---|---|
| committer | Tomoyuki Sahara <[email protected]> | 2016-09-30 17:10:55 +0900 |
| commit | f6a82772e6f857856edb37fcb43a892b6022780f (patch) | |
| tree | 9f23096da2f02c8b3c0538a35ca4951da2de7412 /mrblib | |
| parent | 2229a2aa0fcd76bd5498417aca934d6ec7a211ef (diff) | |
| download | mruby-f6a82772e6f857856edb37fcb43a892b6022780f.tar.gz mruby-f6a82772e6f857856edb37fcb43a892b6022780f.zip | |
eof? should raise an IOError if it is not opened for reading.
Diffstat (limited to 'mrblib')
| -rw-r--r-- | mrblib/io.rb | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/mrblib/io.rb b/mrblib/io.rb index 8408aea87..0b10c82aa 100644 --- a/mrblib/io.rb +++ b/mrblib/io.rb @@ -133,6 +133,7 @@ class IO end def eof? + _check_readable begin buf = _read_buf return buf.size == 0 |
