Class: IO
Relationships & Source Files | |
Inherits: | Object |
Defined in: | ext/io/nonblock/nonblock.c |
Instance Attribute Summary
-
#nonblock {|io| ... } ⇒ IO
rw
Yields
self
in non-blocking mode. -
#nonblock=(boolean) ⇒ Boolean
rw
Enables non-blocking mode on a stream when set to
true
, and blocking mode when set tofalse
. -
#nonblock? ⇒ Boolean
rw
Returns
true
if anIO
object is in non-blocking mode.
Instance Attribute Details
#nonblock {|io| ... } ⇒ IO
(rw)
#nonblock(boolean) {|io| ... } ⇒ IO
IO
(rw)
#nonblock(boolean) {|io| ... } ⇒ IO
Yields self
in non-blocking mode.
When false
is given as an argument, self
is yielded in blocking mode. The original mode is restored after the block is executed.
#nonblock=(boolean) ⇒ Boolean
(rw)
Enables non-blocking mode on a stream when set to true
, and blocking mode when set to false
.
#nonblock? ⇒ Boolean
(rw)
Returns true
if an IO
object is in non-blocking mode.