Closed jonathanhefner closed 2 years ago
This commit prevents "method redefined" warnings when overriding methods within a DelegateClass block, such as in the following example:
DelegateClass
Base = Class.new do def foo "foo" end end Overridden = DelegateClass(Base) do def foo super + "!" end end
Fixes https://bugs.ruby-lang.org/issues/19047.
This commit prevents "method redefined" warnings when overriding methods within a
DelegateClass
block, such as in the following example:Fixes https://bugs.ruby-lang.org/issues/19047.