123456789_123456789_123456789_123456789_123456789_

Class: IO

Relationships & Source Files
Inherits: Object
Defined in: ext/io/nonblock/nonblock.c

Instance Attribute Summary

Instance Attribute Details

#nonblock {|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.