hashlib 0.0.11 → 0.0.12
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- data/lib/hashlib.rb +4 -1
- metadata +1 -1
data/lib/hashlib.rb
CHANGED
@@ -105,7 +105,8 @@ class Hash
|
|
105
105
|
if v.is_a?(Hash)
|
106
106
|
each_recurse(v, path, &block)
|
107
107
|
else
|
108
|
-
yield(k, v, path)
|
108
|
+
rv = yield(k, v, path)
|
109
|
+
root[k] = rv unless rv.nil?
|
109
110
|
end
|
110
111
|
|
111
112
|
path.pop
|
@@ -127,6 +128,8 @@ class Hash
|
|
127
128
|
else
|
128
129
|
unset(path) if _is_empty?(v)
|
129
130
|
end
|
131
|
+
|
132
|
+
nil
|
130
133
|
end
|
131
134
|
|
132
135
|
self
|