summaryrefslogtreecommitdiff
path: root/test/ruby/test_rubyoptions.rb
diff options
context:
space:
mode:
authorMike Dalessio <mike@37signals.com>2026-02-09 13:45:34 -0500
committerNobuyoshi Nakada <nobu.nakada@gmail.com>2026-02-10 08:26:48 +0900
commit836c1700104c305fa13cbc7b17d114705dd807b2 (patch)
treeb53b9c439f9c17a0d97c59d5cde131c4a8f8b67b /test/ruby/test_rubyoptions.rb
parente0b757f63aa6e720af6200171b2f0841d4efe7ed (diff)
Fix UnboundMethod#== for methods from included/extended modules
Method#unbind clones the method entry, preserving its defined_class. For methods mixed in via include/extend, defined_class is an ICLASS, causing UnboundMethod#== to return false when comparing against the same method obtained via Module#instance_method. Resolve ICLASS defined_class in method_eq. Fixes [Bug #21873]
Diffstat (limited to 'test/ruby/test_rubyoptions.rb')
0 files changed, 0 insertions, 0 deletions