Module: EmmyMachine::Watcher

Defined in:
lib/emmy_machine/watcher.rb

Class Method Summary collapse

Class Method Details

.included(base) ⇒ Object



5
6
7
8
9
10
11
# File 'lib/emmy_machine/watcher.rb', line 5

def self.included(base)
  base.events :read, :write
  base.class_eval do
    alias_method :notify_readable, :read!
    alias_method :notify_writable, :write!
  end
end