hashlib 0.0.14 → 0.0.15
Sign up to get free protection for your applications and to get access to all the features.
- 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
|