/usr/share/doc/ruby-highline/examples/using_readline.rb is in ruby-highline 1.6.20-1.
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 | #!/usr/bin/env ruby
# using_readline.rb
#
# Created by James Edward Gray II on 2005-07-06.
# Copyright 2005 Gray Productions. All rights reserved.
require "rubygems"
require "highline/import"
loop do
cmd = ask("Enter command: ", %w{save sample load reset quit}) do |q|
q.readline = true
end
say("Executing \"#{cmd}\"...")
break if cmd == "quit"
end
|