Skip to content

Instantly share code, notes, and snippets.

@joemsak
Created January 24, 2012 13:27
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save joemsak/1670173 to your computer and use it in GitHub Desktop.
Save joemsak/1670173 to your computer and use it in GitHub Desktop.
Require files in a Dir
Dir.glob("lib/**/*.rb").each { |file| require "./#{file}" }
@arches
Copy link

arches commented Sep 27, 2012

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment