diff options
author | Jeremy Evans <code@jeremyevans.net> | 2025-09-05 22:29:43 -0700 |
---|---|---|
committer | Jeremy Evans <code@jeremyevans.net> | 2025-09-07 00:52:45 +0900 |
commit | 953e1ef99283d8563ff655ee6b8fcd681af79c1c (patch) | |
tree | 6b658f6c6afde956e24352e23ca46ac433eb2596 /marshal.rb | |
parent | 5c875519f3c78f9d3ea470f1c8593a6026af93eb (diff) |
If #to_proc is defined, this uses the following error message format,
matching the error message format used for * when to_a returns non-Array
and for ** when to_hash returns non-Hash:
```
can't convert ClassName to Proc (ClassName#to_proc gives OtherClassName)
```
If #to_proc is not defined, this uses the following error message format,
matching the error message format used when ** is called on a non-Hash
not implementing to_hash.
```
no implicit conversion of ClassName into Proc
```
There isn't a similar error for * when called on a non-Array not
implementing to_a, as Ruby does not raise for that case.
Fixes [Bug #21563]
Diffstat (limited to 'marshal.rb')
0 files changed, 0 insertions, 0 deletions