Methods

Listen::Adapter::BSD

Constants

BSD_EXPERIMENTAL
BSD_OS_REGEXP
BUNDLER_DECLARE_GEM

The message to show when wdm gem isn’t available

EVENTS

Watched kqueue events

Public Class Methods

usable?() click to toggle source
# File lib/listen/adapter/bsd.rb, line 41
def self.usable?
  if RbConfig::CONFIG['target_os'] =~ BSD_OS_REGEXP
    Kernel.warn BSD_EXPERIMENTAL
    require 'rb-kqueue'
    require 'find'
    true
  end
rescue LoadError
  Kernel.warn BUNDLER_DECLARE_GEM
  false
end

Public Instance Methods

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

[Validate]

Generated with the Darkfish Rdoc Generator 2.