Class Array
In: lib/extlib/array.rb
Parent: Object

Methods

to_hash   to_mash  

Public Instance methods

Transforms an Array of key/value pairs into a Hash

This is a better idiom than using Hash in Ruby 1.8.6 because it is not possible to limit the flattening to a single level.

@return [Hash]

  A Hash where each entry in the Array is turned into a key/value

@api public

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.

@return [Mash]

  A Hash where each entry in the Array is turned into a key/value

@api public

[Validate]