diff options
| author | Mike Dalessio <mike@37signals.com> | 2026-02-09 13:45:34 -0500 |
|---|---|---|
| committer | Nobuyoshi Nakada <nobu.nakada@gmail.com> | 2026-02-10 08:26:48 +0900 |
| commit | 836c1700104c305fa13cbc7b17d114705dd807b2 (patch) | |
| tree | b53b9c439f9c17a0d97c59d5cde131c4a8f8b67b /test/ruby/test_rubyoptions.rb | |
| parent | e0b757f63aa6e720af6200171b2f0841d4efe7ed (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
