lib/figgy/hash.rb in figgy-1.0.0 vs lib/figgy/hash.rb in figgy-1.1.0
- old
+ new
@@ -34,9 +34,13 @@
self[convert_key(key)] = value
end
self
end
+ def respond_to_missing?(m, *)
+ key?(convert_key(m)) || super
+ end
+
protected
def convert_key(key)
key.is_a?(Symbol) ? key.to_s : key
end