Module: Harnex::Polling

Defined in:
lib/harnex/watcher/polling.rb

Defined Under Namespace

Classes: PollingIO

Constant Summary collapse

POLL_INTERVAL =
0.5

Class Method Summary collapse

Class Method Details

.available?Boolean

Returns:

  • (Boolean)


6
7
8
# File 'lib/harnex/watcher/polling.rb', line 6

def available?
  true
end

.directory_io(path, _events) ⇒ Object



10
11
12
# File 'lib/harnex/watcher/polling.rb', line 10

def directory_io(path, _events)
  PollingIO.new(path)
end