Class | Mash |
In: |
lib/chef/mash.rb
|
Parent: | Hash |
This class has dubious semantics and we only have it so that people can write params[:key] instead of params[‘key’].
[]= | -> | regular_writer |
@param constructor<Object>
The default value for the mash. Defaults to an empty hash.
@details [Alternatives]
If constructor is a Hash, a new mash will be created based on the keys of the hash and no default value will be set.
@param key<Object> The key to set. @param value<Object>
The value to set the key to.
@see Mash#convert_key @see Mash#convert_value
@param key<Object> The key to fetch. This will be run through convert_key. @param *extras<Array> Default value.
@param key<Object> The key to check for. This will be run through convert_key.
@return [Boolean] True if the key exists in the mash.
@param other_hash<Hash>
A hash to update values in the mash with. The keys and the values will be converted to Mash format.
@return [Mash] The updated mash.
@param *indices<Array>
The keys to retrieve values for. These will be run through +convert_key+.
@return [Array] The values at each of the provided keys