Skip to content

Instantly share code, notes, and snippets.

@lukelex
Created January 10, 2013 03:49
Show Gist options
  • Select an option

  • Save lukelex/4499269 to your computer and use it in GitHub Desktop.

Select an option

Save lukelex/4499269 to your computer and use it in GitHub Desktop.
Require all ruby files from a directory
Dir["./path/to/directory/*.rb"].each {|file| require file }
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment