/usr/lib/ruby/vendor_ruby/active_support/core_ext/struct.rb is in ruby-activesupport 2:4.2.10-0ubuntu4.
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 | # Backport of Struct#to_h from Ruby 2.0
class Struct # :nodoc:
def to_h
Hash[members.zip(values)]
end
end unless Struct.instance_methods.include?(:to_h)
|