Moment of Ruby: An Argument for Nothing
27 points - last Monday at 8:32 PM
Sourcematharmin
today at 11:43 AM
It's an interesting trick, but for a setter method you really need to use `def cloaking=(value)` instead of overloading the same method. It would help to give a more realistic example for where this technique can be useful.
semiquaver
today at 11:52 AM
Wow, I wrote Ruby for 15+ years and never saw this trick!