You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
We're currently using @method_missing to represent method being delegated to another class:
classMyClass# This method is actually delegated# @method_missing: delegated to MyOtherClassdefmy_method;endend
The goal of this annotation is making it easier for the maintainer to find where the implementation of the method is and to define the right signature.
I wonder if we could be smarter and also validate that the target class does indeed provide the said method?
error: Couldn't find delegated `my_method` in `MyOtherClass`
The text was updated successfully, but these errors were encountered:
Problem
We're currently using
@method_missing
to represent method being delegated to another class:The goal of this annotation is making it easier for the maintainer to find where the implementation of the method is and to define the right signature.
I wonder if we could be smarter and also validate that the target class does indeed provide the said method?
The text was updated successfully, but these errors were encountered: