Skip to content

Instantly share code, notes, and snippets.

@dinks
Created December 12, 2013 09:35
Show Gist options
  • Select an option

  • Save dinks/7925415 to your computer and use it in GitHub Desktop.

Select an option

Save dinks/7925415 to your computer and use it in GitHub Desktop.
Get files from inside the gem
spec = Gem::Specification.find_by_name("mygem")
yml_file = spec.gem_dir + "/data/test.yml"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment