-
-
Notifications
You must be signed in to change notification settings - Fork 1.2k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
endpoint method_missing vs override inspect #2398
Comments
This is some advanced ruby-fu, so ... I don't know? :) |
IMO, I would just override the |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
#2236 has added a
method_missing
to override the NoMethodError message since it was huge inside any endpoints. I found that it's been fixed in ruby 3.3 and the solution was to not useinspect
onundefined method
. I think that instead of using amethod_missing
strategy we could simply override endpoint'sinspect
method like this:and we would achieve the same thing.
Any thoughts ?
Happy New Year :)
The text was updated successfully, but these errors were encountered: