Class Guard::ReadlineInteractor
In: lib/guard/interactors/readline.rb
Parent: 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

Constants

COMPLETION_ACTIONS = %w[help reload exit pause notification]

Public Class methods

Initialize the interactor.

Public Instance methods

Auto complete the given word.

@param [String] word the partial word @return [Array<String>] the matching words

Get the auto completion list.

@return [Array<String>] the list of words

The current interactor prompt

@return [String] the prompt to show

Read a line from stdin with Readline.

Start the interactor.

Stop the interactor.

[Validate]