Class | Hash |
In: |
merb-core/lib/merb-core/core_ext/hash.rb
merb-haml/lib/merb-haml.rb |
Parent: | Object |
Hack because Haml uses symbolize_keys
Returns the value of self for each argument and deletes those entries.
*args: | the keys whose values should be extracted and deleted. |
Array[Object]: | The values of the provided arguments in corresponding order. |
:api: public
# File merb-core/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