diff options
| author | Jean Boussier <jean.boussier@gmail.com> | 2025-11-28 16:17:06 +0100 |
|---|---|---|
| committer | Jean Boussier <jean.boussier@gmail.com> | 2025-11-28 18:34:59 +0100 |
| commit | 191bfcb9c505ba3f5771f7ac67d6131aeb6b6837 (patch) | |
| tree | 908014971b70e6994d367f9966bdda363347081c /include/ruby/internal/encoding/transcode.h | |
| parent | 8eaefd93951143661b1f515a8c9cda12263d2b56 (diff) | |
Define Kernel#instance_variables_to_inspect
[Bug #21718]
Otherwise objects that don't define it, but define a fairly liberal
`method_missing` method will run into errors that are hard to understand:
```ruby
class Foo
def method_missing(name, ...)
name
end
end
p Foo.new.inspect
```
```
'Kernel#inspect': wrong argument type Symbol (expected Array) (TypeError)
from ../test.rb:7:in '<main>'
```
Diffstat (limited to 'include/ruby/internal/encoding/transcode.h')
0 files changed, 0 insertions, 0 deletions
