Module: EMDirWatcher::Platform::Windows::TcpHandler
- Defined in:
- lib/em-dir-watcher/platform/windows.rb
Instance Attribute Summary collapse
-
#watcher ⇒ Object
Returns the value of attribute watcher.
Instance Method Summary collapse
Instance Attribute Details
#watcher ⇒ Object
Returns the value of attribute watcher.
10 11 12 |
# File 'lib/em-dir-watcher/platform/windows.rb', line 10 def watcher @watcher end |
Instance Method Details
#post_init ⇒ Object
12 13 14 |
# File 'lib/em-dir-watcher/platform/windows.rb', line 12 def post_init @data_received = "" end |
#receive_data(data) ⇒ Object
16 17 18 19 20 21 |
# File 'lib/em-dir-watcher/platform/windows.rb', line 16 def receive_data data @data_received << data while line = @data_received.slice!(/^[^\n]*[\n]/m) @watcher.path_changed line.strip end end |