PATH:
opt
/
alt
/
ruby18
/
share
/
ri
/
1.8
/
system
/
IO
--- !ruby/object:RI::MethodDescription aliases: [] block_params: comment: - !ruby/struct:SM::Flow::P body: Returns true if <em>ios</em> is at end of file that means there are no more data to read. The stream must be opened for reading or an <tt>IOError</tt> will be raised. - !ruby/struct:SM::Flow::VERB body: " f = File.new("testfile")\n dummy = f.readlines\n f.eof #=> true\n" - !ruby/struct:SM::Flow::P body: If <em>ios</em> is a stream such as pipe or socket, <tt>IO#eof?</tt> blocks until the other end sends some data or closes it. - !ruby/struct:SM::Flow::VERB body: " r, w = IO.pipe\n Thread.new { sleep 1; w.close }\n r.eof? #=> true after 1 second blocking\n\n r, w = IO.pipe\n Thread.new { sleep 1; w.puts "a" }\n r.eof? #=> false after 1 second blocking\n\n r, w = IO.pipe\n r.eof? # blocks forever\n" - !ruby/struct:SM::Flow::P body: Note that <tt>IO#eof?</tt> reads data to a input buffer. So <tt>IO#sysread</tt> doesn't work with <tt>IO#eof?</tt>. full_name: IO#eof? is_singleton: false name: eof? params: | ios.eof => true or false ios.eof? => true or false visibility: public
[-] tell-i.yaml
[edit]
[-] sysopen-c.yaml
[edit]
[-] close-i.yaml
[edit]
[-] fileno-i.yaml
[edit]
[-] ungetc-i.yaml
[edit]
[-] readlines-i.yaml
[edit]
[-] pid-i.yaml
[edit]
[-] lines-i.yaml
[edit]
[-] readline-i.yaml
[edit]
[-] stat-i.yaml
[edit]
[-] reopen-i.yaml
[edit]
[-] closed%3f-i.yaml
[edit]
[-] close_read-i.yaml
[edit]
[-] fsync-i.yaml
[edit]
[-] select-c.yaml
[edit]
[-] lineno%3d-i.yaml
[edit]
[-] write_nonblock-i.yaml
[edit]
[-] pos-i.yaml
[edit]
[-] print-i.yaml
[edit]
[-] read-i.yaml
[edit]
[-] isatty-i.yaml
[edit]
[-] readbytes-i.yaml
[edit]
[-] scanf-i.yaml
[edit]
[-] block_scanf-i.yaml
[edit]
[-] chars-i.yaml
[edit]
[-] %3c%3c-i.yaml
[edit]
[-] each_byte-i.yaml
[edit]
[-] read_nonblock-i.yaml
[edit]
[-] putc-i.yaml
[edit]
[-] fcntl-i.yaml
[edit]
[-] getc-i.yaml
[edit]
[-] ioctl-i.yaml
[edit]
[-] sync%3d-i.yaml
[edit]
[-] write-i.yaml
[edit]
[-] inspect-i.yaml
[edit]
[-] eof-i.yaml
[edit]
[-] readchar-i.yaml
[edit]
[-] sysseek-i.yaml
[edit]
[-] bytes-i.yaml
[edit]
[-] read-c.yaml
[edit]
[-] open-c.yaml
[edit]
[-] readpartial-i.yaml
[edit]
[-] cdesc-IO.yaml
[edit]
[-] each_line-i.yaml
[edit]
[-] soak_up_spaces-i.yaml
[edit]
[-] gets-i.yaml
[edit]
[-] tty%3f-i.yaml
[edit]
[-] getbyte-i.yaml
[edit]
[-] pos%3d-i.yaml
[edit]
[-] printf-i.yaml
[edit]
[-] foreach-c.yaml
[edit]
[-] close_write-i.yaml
[edit]
[+]
..
[-] flush-i.yaml
[edit]
[-] to_i-i.yaml
[edit]
[-] to_io-i.yaml
[edit]
[-] sync-i.yaml
[edit]
[-] each_char-i.yaml
[edit]
[-] each-i.yaml
[edit]
[-] binmode-i.yaml
[edit]
[-] readbyte-i.yaml
[edit]
[-] new-c.yaml
[edit]
[-] readlines-c.yaml
[edit]
[-] seek-i.yaml
[edit]
[-] eof%3f-i.yaml
[edit]
[-] rewind-i.yaml
[edit]
[-] for_fd-c.yaml
[edit]
[-] lineno-i.yaml
[edit]
[-] syswrite-i.yaml
[edit]
[-] sysread-i.yaml
[edit]
[-] pipe-c.yaml
[edit]
[-] puts-i.yaml
[edit]
[-] popen-c.yaml
[edit]