lib/rev/io_watcher.rb in rev-0.2.0 vs lib/rev/io_watcher.rb in rev-0.2.1
- old
+ new
@@ -3,14 +3,15 @@
# You can redistribute this under the terms of the Ruby license
# See file LICENSE for details
#++
module Rev
- class IOWatcher
+ class IOWatcher
# The actual implementation of this class resides in the C extension
# Here we metaprogram proper event_callbacks for the callback methods
# These can take a block and store it to be called when the event
# is actually fired.
+ extend Meta
event_callback :on_readable, :on_writable
end
end