Sha256: 897fff92eb0c2efcd5d1c9508dd539267e9df995def5fce4818e373d50191863

Contents?: true

Size: 334 Bytes

Versions: 1

Compression:

Stored size: 334 Bytes

Contents

require 'io/epoll/epoll'

class IO
  class Epoll
    include Epoll::Constants

    class << self
      alias create new
    end

    alias length size

    def add(io, events)
      ctl CTL_ADD, io, events
    end

    def mod(io, events)
      ctl CTL_MOD, io, events
    end

    def del(io)
      ctl CTL_DEL, io
    end
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
io-epoll-0.2.0 lib/io/epoll.rb