3 ms·
Having . in the load path led to some weird outcomes, especially to beginners. One example is if you write a script called twitter.rb that relies on a library a
by petercooper 16y ago
Having . in the load path led to some weird outcomes, especially to beginners. One example is if you write a script called twitter.rb that relies on a library also called 'twitter'. The require would attempt to pull in the current file rather than the library. I got stuck for a good 15 minutes with this one myself a few years ago ;-)