Class: Listen::Adapter::Polling

Inherits:
Base
  • Object
show all
Defined in:
lib/listen/adapter/polling.rb

Overview

Polling Adapter that works cross-platform and has no dependencies. This is the adapter that uses the most CPU processing power and has higher file IO than the other implementations.

Constant Summary collapse

DEFAULT_POLLING_LATENCY =
1.0

Constants inherited from Base

Base::DEFAULT_LATENCY

Instance Attribute Summary

Attributes inherited from Base

#listener

Class Method Summary collapse

Instance Method Summary collapse

Methods inherited from Base

#initialize

Constructor Details

This class inherits a constructor from Listen::Adapter::Base

Class Method Details

.usable?Boolean

Returns:

  • (Boolean)


12
13
14
# File 'lib/listen/adapter/polling.rb', line 12

def self.usable?
  true
end

Instance Method Details

#startObject



16
17
18
# File 'lib/listen/adapter/polling.rb', line 16

def start
  _poll_directories
end