Skip to content

Instantly share code, notes, and snippets.

@samstokes
Created September 22, 2010 14:06
Show Gist options
  • Save samstokes/591731 to your computer and use it in GitHub Desktop.
Save samstokes/591731 to your computer and use it in GitHub Desktop.
Returns the currently activated version of the named gem.
def gemver(gem); Gem.loaded_specs[gem.to_s].version; end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment