summaryrefslogtreecommitdiff
path: root/internal/encoding.h
diff options
context:
space:
mode:
authorJeremy Evans <code@jeremyevans.net>2021-12-27 09:39:15 -0800
committerBenoit Daloze <eregontp@gmail.com>2022-08-20 13:44:00 +0200
commit8212aab81a77a2a91fb7c1681b4968171193b48f (patch)
tree05894efbb106ad56f06a25b9bbfd9432440c7ad9 /internal/encoding.h
parentb32a3f1275a8c7748f2134492ce3c532f277d261 (diff)
downloadruby-8212aab81a77a2a91fb7c1681b4968171193b48f.tar.gz
Make Object#method and Module#instance_method not skip ZSUPER methods
Based on https://github.com/jeremyevans/ruby/commit/c95e7e5329140f640b6497905485761f3336d967 Among other things, this fixes calling visibility methods (public?, protected?, and private?) on them. It also fixes #owner to show the class the zsuper method entry is defined in, instead of the original class it references. For some backwards compatibility, adjust #parameters and #source_location, to show the parameters and source location of the method originally defined. Also have the parameters and source location still be shown by #inspect. Clarify documentation of {Method,UnboundMethod}#owner. Add tests based on the description of https://bugs.ruby-lang.org/issues/18435 and based on https://github.com/ruby/ruby/pull/5356#issuecomment-1005298809 Fixes [Bug #18435] [Bug #18729] Co-authored-by: Benoit Daloze <eregontp@gmail.com>
Diffstat (limited to 'internal/encoding.h')
0 files changed, 0 insertions, 0 deletions