Skip to content

Instantly share code, notes, and snippets.

@makefunstuff
Created October 29, 2013 07:49
Show Gist options
  • Save makefunstuff/7210549 to your computer and use it in GitHub Desktop.
Save makefunstuff/7210549 to your computer and use it in GitHub Desktop.
# rqal
def require_all(path)
glob = File.join(File.dirname(__FILE__), path, '*.rb')
Dir[glob].each do |f|
require f
end
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment