4 ms·
At least with an explicit import you have something to search for. I have often spent several minutes trying to find a definition for a ruby method/modules/cla
by horsawlarway 5y ago
At least with an explicit import you have something to search for.
I have often spent several minutes trying to find a definition for a ruby method/modules/class only to finally have to run it and dump the file location manually with `source_location` to find out it's really a 3rd party gem added to the project.
Admittedly, Rails makes this much worse.
- rgoulter 5y agoLet alone other 'magical' techniques Ruby affords, e.g. you can re-open a class to monkey-patch more methods in; or even define method_missing so that the methods an object has are dynamic. Some very neat stuff.