Class: FSEvent::DebugDumper

Inherits:
AbstractDevice show all
Defined in:
lib/fsevent/debugdumper.rb

Overview

Abstract class for devices

Instance Attribute Summary

Attributes inherited from AbstractDevice

#framework, #name, #schedule

Instance Method Summary collapse

Methods inherited from AbstractDevice

#add_watch, #define_status, #del_watch, #inspect, #modify_status, #register_device, #set_elapsed_time, #undefine_status, #unregister_device, #unregistered

Constructor Details

#initialize(device_name = "debugdumper") ⇒ DebugDumper

Returns a new instance of DebugDumper.



21
22
23
# File 'lib/fsevent/debugdumper.rb', line 21

def initialize(device_name="debugdumper")
  super
end

Instance Method Details

#registeredObject



25
26
27
# File 'lib/fsevent/debugdumper.rb', line 25

def registered
  add_watch("*", "*")
end

#run(watched_status, changed_status) ⇒ Object



29
30
31
32
# File 'lib/fsevent/debugdumper.rb', line 29

def run(watched_status, changed_status)
  #pp watched_status
  pp changed_status
end