Skip to content

Conversation

@nobu
Copy link
Member

@nobu nobu commented Dec 1, 2022

Reverts #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

@nobu nobu merged commit 2e1272c into master Dec 1, 2022
@nobu nobu deleted the revert-13-delegate_class-block-method-redefined-warning branch December 1, 2022 08:07
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants