Created
August 9, 2012 21:07
-
-
Save eriksk/3308086 to your computer and use it in GitHub Desktop.
require all ruby files in a directory
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
rb_files = File.join('my_directory', '*.rb') | |
Dir.glob(rb_files).each do |file| | |
require_relative file | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment