Skip to content

Instantly share code, notes, and snippets.

@cupakromer
Created February 6, 2013 02:47
Show Gist options
  • Save cupakromer/4719800 to your computer and use it in GitHub Desktop.
Save cupakromer/4719800 to your computer and use it in GitHub Desktop.
How to require all .rb in sub-dirs
Dir[File.expand_path('../formulas/**/*.rb', __FILE__)].each{|f| require f}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment