Class Guard::ReadlineInteractor
In: lib/guard/interactors/readline.rb
Parent: ::Guard::Interactor

Interactor that used readline for getting the user input. This enables history support and auto-completion, but is broken on OS X without installing `rb-readline` or using JRuby.

@see bugs.ruby-lang.org/issues/5539

Methods

available?   new   prompt   read_line   stop  

Included Modules

::Guard::CompletionHelper ::Guard::TerminalHelper

Public Class methods

Test if the Interactor is available in the current environment?

@param [Boolean] silent true if no error messages should be shown @return [Boolean] the availability status

Initialize the interactor.

Public Instance methods

The current interactor prompt

@return [String] the prompt to show

Read a line from stdin with Readline.

Stop the interactor.

[Validate]