Class: Thor::LineEditor::Readline

### Home Classes Methods

### In Files

- lib/thor/line_editor/readline.rb

### Parent

Thor::LineEditor::Basic

### Namespace

- CLASS Thor::LineEditor::Readline::PathCompletion

### Methods

- ::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::Readline

### Public Class Methods

available?() click to toggle source

    # File lib/thor/line_editor/readline.rb, line 9
    def self.available?
      Object.const_defined?(:Readline)
    end

### Public Instance Methods

readline() click to toggle source

    # File lib/thor/line_editor/readline.rb, line 13
    def readline
      if echo?
        ::Readline.completion_append_character = nil
        # Ruby 1.8.7 does not allow Readline.completion_proc= to receive nil.
        if complete = completion_proc
          ::Readline.completion_proc = complete
        end
        ::Readline.readline(prompt, add_to_history?)
      else
        super
      end
    end

[Validate]

Generated with the Darkfish Rdoc Generator 2.