Transforms an Array of key/value pairs into a {Mash}.
This is a better idiom than using Mash in Ruby 1.8.6 because it is not possible to limit the flattening to a single level.
@param [Array] array
The array of key/value pairs to transform.
@return [Mash]
A {Mash} where each entry in the Array is turned into a key/value.
@api semipublic
# File lib/dm-core/support/ext/array.rb, line 16 16: def self.to_mash(array) 17: m = Mash.new 18: array.each { |k,v| m[k] = v } 19: m 20: end
Disabled; run with --debug to generate this.
Generated with the Darkfish Rdoc Generator 1.1.6.