Added by osyo (manga osyo) 5 months ago. Updated 2 months ago.
Proposal enable refinements to #method_missing.
I would like to use Refinements with method_missing.
i always like the fun you can do with method_missing, but for your example, method_missing always use a symbol for the name, so name.to_sym should just return self or did you do that on purpose?
This wouldn't work, e.g. for hash.first, or any existing method of Hash.
Can you show a use case for this feature?
Yes, it will be the specification of Ruby.
method_missing has a large side effect.
So can use using to control by context.
I don't see any real-world usage of allowing #method_missing refinable. Maybe it can be used only for tricks and obfusticated code.