Listener implementation for Mac OS X `FSEvents`.
Initialize the Listener.
# File lib/guard/listeners/darwin.rb, line 9 def initialize(*) super @fsevent = FSEvent.new end
Check if the listener is usable on the current OS.
@return [Boolean] whether usable or not
# File lib/guard/listeners/darwin.rb, line 32 def self.usable?(no_vendor = false) return false unless RbConfig::CONFIG['target_os'] =~ /darwin/ $LOAD_PATH << File.expand_path('../../../vendor/darwin/lib', __FILE__) unless no_vendor require 'rb-fsevent' true rescue LoadError false end
Generated with the Darkfish Rdoc Generator 2.