3 ms·
When I first wrote Ruby and was new to programming, and I got the typical “undefined method X for NilClass”, I did the logical thing: I defined X on NilClass. I
by teeray 3y ago
When I first wrote Ruby and was new to programming, and I got the typical “undefined method X for NilClass”, I did the logical thing: I defined X on NilClass. I still have nightmares from that self-inflicted madness.
- zoky 3y agoYou fool! You should have defined `method_missing’ on NilClass for extra-spicy good times!