class EventMachine::FileTail::FileWatcher
Internal usage only. This class is used by EventMachine::FileTail
to watch files you are tailing.
See also: EventMachine::FileTail#watch
Public Class Methods
new(block)
click to toggle source
# File lib/event_machine/tail/filetail.rb, line 421 def initialize(block) @logger = Logger.new(STDERR) @logger.level = ($DEBUG and Logger::DEBUG or Logger::WARN) @callback = block end
Public Instance Methods
file_deleted()
click to toggle source
# File lib/event_machine/tail/filetail.rb, line 435 def file_deleted @callback.call(:deleted) end
file_modified()
click to toggle source
# File lib/event_machine/tail/filetail.rb, line 427 def file_modified @callback.call(:modified) end
file_moved()
click to toggle source
# File lib/event_machine/tail/filetail.rb, line 431 def file_moved @callback.call(:moved) end
unbind()
click to toggle source
# File lib/event_machine/tail/filetail.rb, line 439 def unbind @callback.call(:unbind) end