class Guard::Interactor

def self.auto_detect

Returns:
  • (Interactor) - an interactor implementation
def self.auto_detect
  require 'readline'
  if defined?(RbReadline) || defined?(JRUBY_VERSION) || RbConfig::CONFIG['target_os'] =~ /linux/i
    ReadlineInteractor.new
  else
    SimpleInteractor.new
  end
end