Skip to content

Instantly share code, notes, and snippets.

@richievos
Created September 16, 2009 13:58
Show Gist options
  • Save richievos/188054 to your computer and use it in GitHub Desktop.
Save richievos/188054 to your computer and use it in GitHub Desktop.
local_libraries = %w(restfulx random_project_one)
local_libraries_path = '~/workspace'
# this assumes you are dealing with something with the common gem format
# my_library/
# my_library/lib
# my_library/lib/my_library.rb
local_libraries.each do |library|
$: << "#{local_libraries_path}/#{library}/lib"
require library
end
# Now you'd have access to everything in there
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment