add missing options to call-seq of IO#read_nonblock
* prelude.rb (IO#read_nonblock): [DOC] add missing options to call-seq. [ruby-core:71627] [Bug #11730] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@52914 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
parent
e924e657b6
commit
f373be86e3
@ -1,3 +1,8 @@
|
|||||||
|
Mon Dec 7 23:06:16 2015 Kazuhiro NISHIYAMA <zn@mbf.nifty.com>
|
||||||
|
|
||||||
|
* prelude.rb (IO#read_nonblock): [DOC] add missing options to
|
||||||
|
call-seq. [ruby-core:71627] [Bug #11730]
|
||||||
|
|
||||||
Mon Dec 7 15:50:50 2015 Martin Duerst <duerst@it.aoyama.ac.jp>
|
Mon Dec 7 15:50:50 2015 Martin Duerst <duerst@it.aoyama.ac.jp>
|
||||||
|
|
||||||
* .gitignore: added cygwin*.def for Cygwin
|
* .gitignore: added cygwin*.def for Cygwin
|
||||||
|
@ -18,8 +18,8 @@ end
|
|||||||
class IO
|
class IO
|
||||||
|
|
||||||
# call-seq:
|
# call-seq:
|
||||||
# ios.read_nonblock(maxlen) -> string
|
# ios.read_nonblock(maxlen [, options]) -> string
|
||||||
# ios.read_nonblock(maxlen, outbuf) -> outbuf
|
# ios.read_nonblock(maxlen, outbuf [, options]) -> outbuf
|
||||||
#
|
#
|
||||||
# Reads at most <i>maxlen</i> bytes from <em>ios</em> using
|
# Reads at most <i>maxlen</i> bytes from <em>ios</em> using
|
||||||
# the read(2) system call after O_NONBLOCK is set for
|
# 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
|
# Note that this method is identical to readpartial
|
||||||
# except the non-blocking flag is set.
|
# except the non-blocking flag is set.
|
||||||
|
#
|
||||||
|
# By specifying `exception: false`, the options hash allows you to indicate
|
||||||
|
# that read_nonblock should not raise an IO::WaitReadable exception, but
|
||||||
|
# return the symbol :wait_readable instead.
|
||||||
def read_nonblock(len, buf = nil, exception: true)
|
def read_nonblock(len, buf = nil, exception: true)
|
||||||
__read_nonblock(len, buf, exception)
|
__read_nonblock(len, buf, exception)
|
||||||
end
|
end
|
||||||
|
Loading…
x
Reference in New Issue
Block a user