123456789_123456789_123456789_123456789_123456789_

Module: Bundler::Thor::LineEditor

Class Method Summary

Class Method Details

.best_available

[ GitHub ]

  
# File 'lib/bundler/vendor/thor/lib/thor/line_editor.rb', line 10

def self.best_available
  [
    Bundler::Thor::LineEditor::Readline,
    Bundler::Thor::LineEditor::Basic
  ].detect(&:available?)
end

.readline(prompt, options = {})

[ GitHub ]

  
# File 'lib/bundler/vendor/thor/lib/thor/line_editor.rb', line 6

def self.readline(prompt, options = {})
  best_available.new(prompt, options).readline
end