diff options
| author | Jeremy Evans <code@jeremyevans.net> | 2024-09-11 21:29:41 -0700 |
|---|---|---|
| committer | Jeremy Evans <code@jeremyevans.net> | 2024-10-03 07:27:01 -0700 |
| commit | 9986a7c3930437bc9d9b88736c22695585aa6c48 (patch) | |
| tree | 1e62c79a403d7c6af31d5b17071d6f5995dccc5a /array.c | |
| parent | dc83de49288d6da59fd8b13f701ac437e09f2d23 (diff) | |
Make Object#singleton_method return methods in modules included in or prepended to singleton class
To simplify the implementation, this makes Object#singleton_method
call the same method called by Object#method (rb_obj_method), then
check that the returned Method is defined before the superclass of the
object's singleton class. To keep the same error messages, it rescues
exceptions raised by rb_obj_method, and then raises its own exception.
Fixes [Bug #20620]
Notes
Notes:
Merged: https://github.com/ruby/ruby/pull/11605
Diffstat (limited to 'array.c')
0 files changed, 0 insertions, 0 deletions
