Module: Thor::LineEditor

### Home Classes Methods

### In Files

- lib/thor/line_editor.rb
- lib/thor/line_editor/basic.rb
- lib/thor/line_editor/readline.rb

### Namespace

- CLASS Thor::LineEditor::Basic
- CLASS Thor::LineEditor::Readline

### Methods

- ::best_available
- ::readline

### Class/Module Index

Quicksearch

- Thor
- Thor::Actions
- Thor::Actions::ClassMethods
- Thor::AmbiguousCommandError
- Thor::Base
- Thor::Base::ClassMethods
- Thor::Command
- Thor::DynamicCommand
- Thor::Error
- Thor::Group
- Thor::HiddenCommand
- Thor::Invocation
- Thor::Invocation::ClassMethods
- Thor::InvocationError
- Thor::LineEditor
- Thor::LineEditor::Basic
- Thor::LineEditor::Readline
- Thor::LineEditor::Readline::PathCompletion
- Thor::MalformattedArgumentError
- Thor::RakeCompat
- Thor::RequiredArgumentMissingError
- Thor::Shell
- Thor::Shell::Basic
- Thor::Shell::Color
- Thor::Shell::HTML
- Thor::UndefinedCommandError
- Thor::UnknownArgumentError
- Thor::Util
- Object

No matching classes.

# Thor::LineEditor

### Public Class Methods

best_available() click to toggle source

    # File lib/thor/line_editor.rb, line 10
    def self.best_available
      [
        Thor::LineEditor::Readline,
        Thor::LineEditor::Basic
      ].detect(&:available?)
    end

readline(prompt, options = {}) click to toggle source

    # File lib/thor/line_editor.rb, line 6
    def self.readline(prompt, options = {})
      best_available.new(prompt, options).readline
    end

[Validate]

Generated with the Darkfish Rdoc Generator 2.