/usr/lib/ruby/vendor_ruby/merb-core/core_ext/hash.rb is in ruby-merb-core 1.1.3+dfsg-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 | class Hash
# Returns the value of self for each argument and deletes those entries.
#
# ==== Parameters
# *args:: the keys whose values should be extracted and deleted.
#
# ==== Returns
# Array[Object]:: The values of the provided arguments in corresponding order.
#
# :api: public
def extract!(*args)
args.map do |arg|
self.delete(arg)
end
end
end
|