Class: FSEvent::DebugDumper
- Inherits:
-
AbstractDevice
- Object
- AbstractDevice
- FSEvent::DebugDumper
- Defined in:
- lib/fsevent/debugdumper.rb
Overview
Abstract class for devices
Instance Attribute Summary
Attributes inherited from AbstractDevice
Instance Method Summary collapse
-
#initialize(device_name = "debugdumper") ⇒ DebugDumper
constructor
A new instance of DebugDumper.
- #registered ⇒ Object
- #run(watched_status, changed_status) ⇒ Object
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
#registered ⇒ Object
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 |