Skip to content

Instantly share code, notes, and snippets.

@stubotnik
Created November 26, 2012 09:31
Show Gist options
  • Save stubotnik/4147380 to your computer and use it in GitHub Desktop.
Save stubotnik/4147380 to your computer and use it in GitHub Desktop.
load_paths = [
'../this/**/*.rb',
'../that/**/*.rb',
'../other/**/*.rb'
]
load_paths.each do |path|
path = File.join(File.dirname(__FILE__), path)
Dir[path].each do |file|
require(file)
end
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment