Sha256: 524a14bb52449843403d4f73c6ae565956e40650dd6540e9e00d2313b5e92194

Contents?: true

Size: 431 Bytes

Versions: 193

Compression:

Stored size: 431 Bytes

Contents

require "bundler/vendor/thor/lib/thor/line_editor/basic"
require "bundler/vendor/thor/lib/thor/line_editor/readline"

class Bundler::Thor
  module LineEditor
    def self.readline(prompt, options = {})
      best_available.new(prompt, options).readline
    end

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

Version data entries

193 entries across 165 versions & 8 rubygems

Version Path
rubygems-update-3.0.9 bundler/lib/bundler/vendor/thor/lib/thor/line_editor.rb
rubygems-update-2.7.11 bundler/lib/bundler/vendor/thor/lib/thor/line_editor.rb
rubygems-update-3.0.8 bundler/lib/bundler/vendor/thor/lib/thor/line_editor.rb
rubygems-update-3.0.7 bundler/lib/bundler/vendor/thor/lib/thor/line_editor.rb
rubygems-update-3.0.6 bundler/lib/bundler/vendor/thor/lib/thor/line_editor.rb
rubygems-update-3.0.5 bundler/lib/bundler/vendor/thor/lib/thor/line_editor.rb
rubygems-update-3.0.4 bundler/lib/bundler/vendor/thor/lib/thor/line_editor.rb
rubygems-update-2.7.10 bundler/lib/bundler/vendor/thor/lib/thor/line_editor.rb
bundler-2.0.2 lib/bundler/vendor/thor/lib/thor/line_editor.rb
rubygems-update-2.7.9 bundler/lib/bundler/vendor/thor/lib/thor/line_editor.rb
rubygems-update-3.0.3 bundler/lib/bundler/vendor/thor/lib/thor/line_editor.rb
rb2exe-0.3.1 bin/traveling-ruby-2.2.2/l32/lib/ruby/gems/2.2.0/gems/bundler-1.9.9/lib/bundler/vendor/thor/lib/thor/line_editor.rb
rb2exe-0.3.1 bin/traveling-ruby-2.2.2/l64/lib/ruby/gems/2.2.0/gems/bundler-1.9.9/lib/bundler/vendor/thor/lib/thor/line_editor.rb
rb2exe-0.3.1 bin/traveling-ruby-2.2.2/win/lib/ruby/gems/2.2.0/gems/bundler-1.9.9/lib/bundler/vendor/thor/lib/thor/line_editor.rb
rb2exe-0.3.1 bin/traveling-ruby-2.2.2/osx/lib/ruby/gems/2.2.0/gems/bundler-1.9.9/lib/bundler/vendor/thor/lib/thor/line_editor.rb
bundler-2.0.1 lib/bundler/vendor/thor/lib/thor/line_editor.rb
bundler-2.0.0 lib/bundler/vendor/thor/lib/thor/line_editor.rb
rubygems-update-3.0.2 bundler/lib/bundler/vendor/thor/lib/thor/line_editor.rb
bundler-2.0.0.pre.3 lib/bundler/vendor/thor/lib/thor/line_editor.rb
bundler-1.17.3 lib/bundler/vendor/thor/lib/thor/line_editor.rb