Sha256: b356d6d71f57df82adfafe490d9d91a6ca0e6405c0a0cc82b0e3aba5d0fbbab4
Contents?: true
Size: 385 Bytes
Versions: 25
Compression:
Stored size: 385 Bytes
Contents
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
Version data entries
25 entries across 25 versions & 1 rubygems