lib/hash.rb in hash_dot-2.0.2 vs lib/hash.rb in hash_dot-2.0.3

- old
+ new

@@ -23,9 +23,16 @@ else self[prop] end end + def respond_to?(method, include_all=false) + return super(method, include_all) unless to_dot? + prop = create_prop(method) + return true if key?(prop) + super(method, include_all) + end + private def dotify_hash(hash) hash.use_dot_syntax = true