Parent

Methods

Class Index [+]

Quicksearch

Hash

Public Instance Methods

extract!(*args) click to toggle source

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

    # File lib/merb-core/core_ext/hash.rb, line 11
11:   def extract!(*args)
12:     args.map do |arg|
13:       self.delete(arg)
14:     end
15:   end

Disabled; run with --debug to generate this.

[Validate]

Generated with the Darkfish Rdoc Generator 1.1.6.