Module: IO::generic_readable
Relationships & Source Files | |
Extension / Inclusion / Inheritance Descendants | |
Included In:
| |
Defined in: | ext/stringio/stringio.c |
Instance Method Summary
-
#read_nonblock(integer[, outbuf [, opts]]) ⇒ String
Similar to
#read
, but raisesEOFError
at end of string unless the exception: false option is passed in. -
#readbyte ⇒ Fixnum
See
IO#readbyte
. -
#readchar ⇒ String
See
IO#readchar
. -
#readline(sep = $/) ⇒ String
See
IO#readline
. -
#readpartial(integer[, outbuf]) ⇒ String
Alias for #sysread.
-
#sysread(integer[, outbuf]) ⇒ String
(also: #readpartial)
Similar to
#read
, but raisesEOFError
at end of string instead of returningnil
, as well asIO#sysread
does.
Instance Method Details
#read_nonblock(integer[, outbuf [, opts]]) ⇒ String
Similar to #read
, but raises EOFError
at end of string unless the exception: false option is passed in.
#readbyte ⇒ Fixnum
See IO#readbyte
.
#readchar ⇒ String
See IO#readchar
.
#readline(sep = $/) ⇒ String
#readline(limit) ⇒ String
?
#readline(sep, limit) ⇒ String
?
String
#readline(limit) ⇒ String
?
#readline(sep, limit) ⇒ String
?
See IO#readline
.
#sysread(integer[, outbuf]) ⇒ String
#readpartial(integer[, outbuf]) ⇒ String
String
#readpartial(integer[, outbuf]) ⇒ String
Alias for #sysread.
#sysread(integer[, outbuf]) ⇒ String
#readpartial(integer[, outbuf]) ⇒ String
Also known as: #readpartial
String
#readpartial(integer[, outbuf]) ⇒ String
Similar to #read
, but raises EOFError
at end of string instead of returning nil
, as well as IO#sysread
does.