In Files

  • bundler/vendor/thor/lib/thor/line_editor/basic.rb

Class/Module Index [+]

Quicksearch

Bundler::Thor::LineEditor::Basic

Attributes

options[R]
prompt[R]

Public Class Methods

available?() click to toggle source
 
               # File bundler/vendor/thor/lib/thor/line_editor/basic.rb, line 6
def self.available?
  true
end
            
new(prompt, options) click to toggle source
 
               # File bundler/vendor/thor/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 bundler/vendor/thor/lib/thor/line_editor/basic.rb, line 15
def readline
  $stdout.print(prompt)
  get_input
end