4 ms·
I often do the %w{rubygems sinatra etc}.each{|lib| require lib} trick. If I were more motivated, I would submit a patch that would allow require to take an arra
by chasingsparks 17y ago
I often do the %w{rubygems sinatra etc}.each{|lib| require lib} trick. If I were more motivated, I would submit a patch that would allow require to take an array.
- jamesbritt 17y agoI'd bet there's something like that in the Facets lib already.
- chasingsparks 17y agoA cursory look for in Facets turned up http://facets.rubyforge.org/apidoc/api/core/classes/Kernel.html#M000467 http://facets.rubyforge.org/apidoc/api/core/classes/Kernel.h... It is certainly useful, albeit not exactly what I want. Then again, I said cursory.