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