summaryrefslogtreecommitdiff
path: root/lib/chef/mash.rb
diff options
context:
space:
mode:
Diffstat (limited to 'lib/chef/mash.rb')
-rw-r--r--lib/chef/mash.rb7
1 files changed, 4 insertions, 3 deletions
diff --git a/lib/chef/mash.rb b/lib/chef/mash.rb
index e43ba6a0ae..3858ff09dd 100644
--- a/lib/chef/mash.rb
+++ b/lib/chef/mash.rb
@@ -71,7 +71,7 @@ class Mash < Hash
def initialize_copy(orig)
super
# Handle nested values
- each do |k,v|
+ each do |k, v|
if v.kind_of?(Mash) || v.is_a?(Array)
self[k] = v.dup
end
@@ -142,7 +142,7 @@ class Mash < Hash
#
# @return [Array] The values at each of the provided keys
def values_at(*indices)
- indices.collect {|key| self[convert_key(key)]}
+ indices.collect { |key| self[convert_key(key)] }
end
# @param hash<Hash> The hash to merge with the mash.
@@ -166,7 +166,7 @@ class Mash < Hash
# { :one => 1, :two => 2, :three => 3 }.except(:one)
# #=> { "two" => 2, "three" => 3 }
def except(*keys)
- super(*keys.map {|k| convert_key(k)})
+ super(*keys.map { |k| convert_key(k) })
end
# Used to provide the same interface as Hash.
@@ -195,6 +195,7 @@ class Mash < Hash
end
protected
+
# @param key<Object> The key to convert.
#
# @param [Object]