Skip to content

Instantly share code, notes, and snippets.

@cowboy-cod3r
Created December 2, 2013 21:10
Show Gist options
  • Save cowboy-cod3r/7759052 to your computer and use it in GitHub Desktop.
Save cowboy-cod3r/7759052 to your computer and use it in GitHub Desktop.
Ruby: Gem Utilities
# Determine the location of a gem that has been installed
spec = Gem::Specification.find_by_name("cucumber")
gem_root = spec.gem_dir
gem_lib = File.join(gem_root, "lib")
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment