summaryrefslogtreecommitdiff
path: root/prelude.rb
diff options
context:
space:
mode:
-rw-r--r--prelude.rb8
1 files changed, 6 insertions, 2 deletions
@@ -18,8 +18,8 @@ end
class IO
# call-seq:
- # ios.read_nonblock(maxlen) -> string
- # ios.read_nonblock(maxlen, outbuf) -> outbuf
#
# Reads at most <i>maxlen</i> bytes from <em>ios</em> using
# the read(2) system call after O_NONBLOCK is set for
@@ -66,6 +66,10 @@ class IO
#
# Note that this method is identical to readpartial
# except the non-blocking flag is set.
def read_nonblock(len, buf = nil, exception: true)
__read_nonblock(len, buf, exception)
end