class EventMachine::FileGlobWatch::FileWatcher
Public Class Methods
new(globwatch, &block)
click to toggle source
# File lib/event_machine/tail/globwatcher.rb, line 149 def initialize(globwatch, &block) @globwatch = globwatch @block = block end
Public Instance Methods
file_deleted()
click to toggle source
# File lib/event_machine/tail/globwatcher.rb, line 159 def file_deleted block.call path end
file_moved()
click to toggle source
# File lib/event_machine/tail/globwatcher.rb, line 154 def file_moved stop_watching block.call path end