hashlib 0.0.14 → 0.0.15
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
@@ -17,9 +17,12 @@ class Hash
|
|
17
17
|
|
18
18
|
# make path an array if not already
|
19
19
|
if not path.is_a?(Array)
|
20
|
-
path = path.split('.')
|
20
|
+
path = path.to_s.split('.')
|
21
21
|
end
|
22
22
|
|
23
|
+
# stringify path components
|
24
|
+
path.collect!{|i| i.to_s }
|
25
|
+
|
23
26
|
# step through path components...
|
24
27
|
path.each_index do |i|
|
25
28
|
# hashes: if the current path component is in the hash, set the pointer
|