Skip to content

Instantly share code, notes, and snippets.

@bodepd
Created May 1, 2012 06:45
Show Gist options
  • Save bodepd/2565684 to your computer and use it in GitHub Desktop.
Save bodepd/2565684 to your computer and use it in GitHub Desktop.
version = RUBY_VERSION.to_s.sub(/\.\d+$/, '')
$:.find do |dir|
dir =~ /#{File.join("site_ruby", version)}$/
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment