Add HashWithStructAccess#has? and HashWithStructAccess#lookup
mbklein opened this issue · comments
Michael B. Klein commented
h.has?('foo.bar.baz') # true if the full path to the key exists, false if it doesn't
h.lookup('foo.bar.baz') # returns the result if it exists, nil if it doesn't
Michael B. Klein commented
Implementing #lookup
as #lookup!
to avoid polluting the namespace
Michael B. Klein commented
Fixed in commit 4020c35