[DOC] Split old and new backtrace displays

This commit is contained in:
Nobuyoshi Nakada 2024-10-09 01:01:04 +09:00
parent eddcff26a3
commit a081fe11f9
No known key found for this signature in database
GPG Key ID: 3582D74E1FEE4465
Notes: git 2024-10-08 16:34:02 +00:00

View File

@ -138,12 +138,14 @@ See GitHub releases like [GitHub Releases of Logger](https://github.com/ruby/log
* Display a class name before a method name (only when the class has a permanent name). [[Feature #19117]]
* `Kernel#caller`, `Thread::Backtrace::Location`'s methods, etc. are also changed accordingly.
```
Old:
```
test.rb:1:in `foo': undefined method `time' for an instance of Integer
from test.rb:2:in `<main>'
```
New:
```
test.rb:1:in 'Object#foo': undefined method 'time' for an instance of Integer
from test.rb:2:in '<main>'
```