Method: Bundler::Thor::LineEditor::Readline.available?

Defined in:
lib/bundler/vendor/thor/lib/thor/line_editor/readline.rb

.available?Boolean

Returns:

  • (Boolean)


4
5
6
7
8
9
10
11
# File 'lib/bundler/vendor/thor/lib/thor/line_editor/readline.rb', line 4

def self.available?
  begin
    require "readline"
  rescue LoadError
  end

  Object.const_defined?(:Readline)
end