/usr/lib/ruby/vendor_ruby/thor/line_editor.rb is in ruby-thor 0.19.1-3.
This file is owned by root:root, with mode 0o644.
The actual contents of the file can be viewed below.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 | require "thor/line_editor/basic"
require "thor/line_editor/readline"
class Thor
module LineEditor
def self.readline(prompt, options = {})
best_available.new(prompt, options).readline
end
def self.best_available
[
Thor::LineEditor::Readline,
Thor::LineEditor::Basic
].detect(&:available?)
end
end
end
|