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