diff options
| author | Yusuke Endoh <mame@ruby-lang.org> | 2022-12-16 07:31:27 +0900 |
|---|---|---|
| committer | Yusuke Endoh <mame@ruby-lang.org> | 2023-02-20 10:33:06 +0900 |
| commit | e7b8d32e166815f2e7edebf32aa178915d191b8c (patch) | |
| tree | 94f8b15c9d5644886c545404756f68dcf37d4eff /spec/ruby/optional | |
| parent | 5c0298bf181921a8aa63cd250d67b294cfe90322 (diff) | |
Stop using receiver#inspect for "undefined method" errors
```
42.time #=> undefined method `time' for object Integer (NoMethodError)
class Foo
privatee #=> undefined local variable or method 'privatee' for class Foo (NoMethodError)
end
s = ""
def s.foo = nil
s.bar #=> undefined method `bar' for extended object String (NoMethodError)
```
[Feature #18285]
Notes
Notes:
Merged: https://github.com/ruby/ruby/pull/6950
Diffstat (limited to 'spec/ruby/optional')
0 files changed, 0 insertions, 0 deletions
