Class: Thor::LineEditor::Basic

### Home Classes Methods

### In Files

- lib/thor/line_editor/basic.rb

### Parent

Object

### Methods

- ::available?
- ::new
- #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::Basic

### Attributes

options[R]
prompt[R]

### Public Class Methods

available?() click to toggle source

    # File lib/thor/line_editor/basic.rb, line 6
    def self.available?
      true
    end

new(prompt, options) click to toggle source

    # File lib/thor/line_editor/basic.rb, line 10
    def initialize(prompt, options)
      @prompt = prompt
      @options = options
    end

### Public Instance Methods

readline() click to toggle source

    # File lib/thor/line_editor/basic.rb, line 15
    def readline
      $stdout.print(prompt)
      get_input
    end

[Validate]

Generated with the Darkfish Rdoc Generator 2.