Sha256: 9962c244b60ad39cc62eb0e7186983435440b00abe45b50704171a693503db97
Contents?: true
Size: 396 Bytes
Versions: 6
Compression:
Stored size: 396 Bytes
Contents
module UV class FSEvent include Handle EVENTS = {1 => :rename, 2 => :change}.freeze def initialize(loop, fs_event_ptr, &block) @fs_event_block = block super(loop, fs_event_ptr) end private def on_fs_event(handle, filename, events, status) @fs_event_block.call(check_result(status), filename, EVENTS[events]) end public :callback end end
Version data entries
6 entries across 6 versions & 1 rubygems
Version | Path |
---|---|
uvrb-0.2.0 | lib/uv/fs_event.rb |
uvrb-0.1.4 | lib/uv/fs_event.rb |
uvrb-0.1.3 | lib/uv/fs_event.rb |
uvrb-0.1.2 | lib/uv/fs_event.rb |
uvrb-0.1.1 | lib/uv/fs_event.rb |
uvrb-0.1.0 | lib/uv/fs_event.rb |