/usr/lib/ruby/vendor_ruby/pg/result.rb is in ruby-pg 0.17.1-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 | #!/usr/bin/env ruby
require 'pg' unless defined?( PG )
class PG::Result
### Returns all tuples as an array of arrays
def values
return enum_for(:each_row).to_a
end
end # class PG::Result
# Backward-compatible alias
PGresult = PG::Result
|