/usr/lib/ruby/vendor_ruby/pry/commands/show_input.rb is in pry 0.10.3-2.
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 | class Pry
class Command::ShowInput < Pry::ClassCommand
match 'show-input'
group 'Editing'
description 'Show the contents of the input buffer for the current multi-line expression.'
banner <<-'BANNER'
Show the contents of the input buffer for the current multi-line expression.
BANNER
def process
output.puts Code.new(eval_string).with_line_numbers
end
end
Pry::Commands.add_command(Pry::Command::ShowInput)
end
|