ruby / delegate

This library provides three different ways to delegate method calls to an object.
BSD 2-Clause "Simplified" License
18 stars 13 forks source link

Revert "Fix `DelegateClass` block "method redefined" warning" #15

Closed nobu closed 1 year ago

nobu commented 1 year ago

Reverts ruby/delegate#13

We consider it is not worth to create intermediate modules always since the case overriding a method using super would be relatively rare.

The case can be achieved as the following by inheriting explicitly:

Overridden = Class.new(DelegateClass(Base)) do
  def foo
    super + "!"
  end
end