/usr/lib/ruby/vendor_ruby/sequel/extensions/pretty_table.rb is in ruby-sequel 3.36.1-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 | # The pretty_table extension adds Sequel::Dataset#print and the
# Sequel::PrettyTable class for creating nice-looking plain-text
# tables.
module Sequel
extension :_pretty_table
class Dataset
# Pretty prints the records in the dataset as plain-text table.
def print(*cols)
ds = naked
rows = ds.all
Sequel::PrettyTable.print(rows, cols.empty? ? ds.columns : cols)
end
end
end
|