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