Skip to content

Instantly share code, notes, and snippets.

@eriksk
Created August 9, 2012 21:07
Show Gist options
  • Save eriksk/3308086 to your computer and use it in GitHub Desktop.
Save eriksk/3308086 to your computer and use it in GitHub Desktop.
require all ruby files in a directory
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