When you refactor you code from:
{ key: { subkey: 'value' } }.dig(:key, :subkey)
to:
{ key: 'value' }.dig(:key)
You can forget to use just [] to access the value.
Replace single dig methods to [] access.
From:
{ key: 'value' }.dig(:key)
to:
{ key: 'value' }[:key]
I'd like to try to implement this feature.
@volfgox I have seen you did some work on this. Mind opening a PR?
@fatkodima I finalized the development and sent a PR and waited long long time to merge. But, It's never been merged. You can review the PR here.
P.S. @bbatsov Would you please consider the PR?
Thank you, @volfgox !
@wbotelhos Thank you too. I hope I can contribute more.
Most helpful comment
Thank you, @volfgox !