Class: IO

Inherits:
Object
  • Object
show all
Defined in:
lib/rubee/patches/io_ready.rb

Instance Method Summary collapse

Instance Method Details

#ready?Boolean

Returns:

  • (Boolean)


5
6
7
8
9
# File 'lib/rubee/patches/io_ready.rb', line 5

def ready?
  wait_readable(0)
rescue IOError, Errno::EBADF
  false
end