Methods

Listen::Adapter::Windows

Adapter implementation for Windows `wdm`.

Constants

BUNDLER_DECLARE_GEM

The message to show when wdm gem isn’t available

Public Class Methods

usable?() click to toggle source
# File lib/listen/adapter/windows.rb, line 16
def self.usable?
  if RbConfig::CONFIG['target_os'] =~ /mswin|mingw|cygwin/
    require 'wdm'
    true
  end
rescue LoadError
  Kernel.warn BUNDLER_DECLARE_GEM
  false
end

Public Instance Methods

start() click to toggle source
# File lib/listen/adapter/windows.rb, line 26
def start
  worker = _init_worker
  Thread.new { worker.run! }
end

[Validate]

Generated with the Darkfish Rdoc Generator 2.