From: mail@... Date: 2015-06-17T23:41:35+00:00 Subject: [ruby-core:69641] [Ruby trunk - Feature #10881] NoMethodError#receiever Issue #10881 has been updated by Yuki Nishijima. Thanks Matsumoto-san. I realized that the last line in the example above is wrong, it has to use `#equal?` instead of `#==`: ``` exception.receiver.equal?(receiver) # => true ``` ---------------------------------------- Feature #10881: NoMethodError#receiever https://bugs.ruby-lang.org/issues/10881#change-52994 * Author: Yuki Nishijima * Status: Open * Priority: Normal * Assignee: ---------------------------------------- I would like `NoMethodError` to have `receiver` method: ``` receiver = "receiver" exception = receiver.doesnt_exist rescue $! exception.receiver == receiver # => true ``` This helps did_you_mean gem implement its features without having native C exceptions, and also makes it easier to add "did you mean?" feature to irb. Let mw know what you think. Thanks! -- https://bugs.ruby-lang.org/