hashlib 0.0.34 → 0.0.35
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 +1 -1
- metadata +1 -1
data/lib/hashlib.rb
CHANGED
@@ -67,7 +67,7 @@ class Hash
|
|
67
67
|
|
68
68
|
def rget(path, default=nil)
|
69
69
|
path = path.split('.') if path.is_a?(String)
|
70
|
-
return default if path.nil? or path.empty?
|
70
|
+
return default if path.nil? or (path.respond_to?(:empty?) and path.empty?)
|
71
71
|
|
72
72
|
# arrayify all paths
|
73
73
|
path = [*path]
|