lib/loquor/object_hash.rb in loquor-1.0.0 vs lib/loquor/object_hash.rb in loquor-1.1.0
- old
+ new
@@ -34,9 +34,14 @@
else
self[name]
end
end
+ def respond_to?(key)
+ return true if super
+ @hash.has_key?(key)
+ end
+
private
def fetch_indescriminately(name, *args)
if @hash.has_key?(name)
@hash[name]