Class: Driskell::Listen::Adapter::Windows
- Defined in:
- lib/driskell-listen/adapter/windows.rb
Overview
Adapter implementation for Windows ‘wdm`.
Constant Summary collapse
- OS_REGEXP =
/mswin|mingw|cygwin/i
- BUNDLER_DECLARE_GEM =
<<-EOS.gsub(/^ {6}/, '') Please add the following to your Gemfile to avoid polling for changes: gem 'wdm', '>= 0.1.0' if Gem.win_platform? EOS
Constants inherited from Base
Instance Attribute Summary
Attributes inherited from Base
Class Method Summary collapse
Methods inherited from Base
#configure, #initialize, #preempt_change, #start, #started?, #stop
Constructor Details
This class inherits a constructor from Driskell::Listen::Adapter::Base
Class Method Details
.usable? ⇒ Boolean
13 14 15 16 17 18 19 20 21 22 23 |
# File 'lib/driskell-listen/adapter/windows.rb', line 13 def self.usable? return false unless super require 'wdm' true rescue LoadError _log :debug, format('wdm - load failed: %s:%s', $ERROR_INFO, $ERROR_POSITION * "\n") Kernel.warn BUNDLER_DECLARE_GEM false end |