Listen::Adapter::Darwin

Adapter implementation for Mac OS X `FSEvents`.

Public Class Methods

new(listener) click to toggle source
# File lib/listen/adapter/darwin.rb, line 12
def initialize(listener)
  require 'rb-fsevent'
  super
end
usable?() click to toggle source
# File lib/listen/adapter/darwin.rb, line 8
def self.usable?
  RbConfig::CONFIG['target_os'] =~ /darwin(1.+)?$/
end

Public Instance Methods

start() click to toggle source
# File lib/listen/adapter/darwin.rb, line 17
def start
  worker = _init_worker
  worker.run
end

[Validate]

Generated with the Darkfish Rdoc Generator 2.