Question about usage of send(__method__)
#570
-
Had a maybe basic Ruby question on the usage of I was wondering why the code uses |
Beta Was this translation helpful? Give feedback.
Answered by
AaronLasseigne
Feb 24, 2024
Replies: 1 comment 1 reply
-
It's the same thing. The only real difference is that if I rename the |
Beta Was this translation helpful? Give feedback.
1 reply
Answer selected by
omkarmoghe
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
It's the same thing. The only real difference is that if I rename the
cast
method I don't have to worry about fixing the name inside of the method.