Skip to content

Instantly share code, notes, and snippets.

@thumblemonks
Created November 15, 2009 00:58
Show Gist options
  • Save thumblemonks/234893 to your computer and use it in GitHub Desktop.
Save thumblemonks/234893 to your computer and use it in GitHub Desktop.
def classpath(g)
path = g.runtime_dependencies.inject([]) do |acc, dep|
acc + classpath(Gem.source_index.find_name(dep.name, dep).first)
end
path << g.full_gem_path
end
classpath(Gem.source_index.find_name('radiant').first).join(':')
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment