Skip to content

Instantly share code, notes, and snippets.

@joemsak
Created January 24, 2012 13:27
Show Gist options
  • 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