Module: NIO

Defined in:
lib/nio.rb,
lib/nio/monitor.rb,
lib/nio/version.rb,
lib/nio/selector.rb,
lib/nio/bytebuffer.rb,
ext/nio4r/monitor.c,
ext/nio4r/selector.c,
ext/nio4r/bytebuffer.c

Overview

New I/O for Ruby

Defined Under Namespace

Classes: ByteBuffer, Monitor, Selector

Constant Summary collapse

ENGINE =
"libev"
VERSION =
"2.5.1"

Class Method Summary collapse

Class Method Details

.engineObject

NIO implementation, one of the following (as a string):

  • select: in pure Ruby using Kernel.select

  • libev: as a C extension using libev

  • java: using Java NIO


12
13
14
# File 'lib/nio.rb', line 12

def self.engine
  ENGINE
end