Ruby 2.5 adds KeyError#receiver and KeyError#key
Learn about KeyError#receiver which returns receiver associated with the KeyError object & KeyError#key returns the key which caused the exception. https://crypt.codemancers.com/posts/2018-08-06-ruby-2-6-adds-key-error-receiver-key/
Post a comment