[Rubygems-developers] Gem methods?
drbrain at segment7.net
Thu Oct 9 19:18:50 EDT 2008
On Oct 9, 2008, at 08:29 AM, Trans wrote:
> Is there a way to see if a gem is active (without activating it of
Gem.loaded_specs is a Hash mapping gem names to gemspecs
> In addition is there a way to access a gemspec from code?
Gem.source_index has all available gems if you don't want active gems.
> Lastly, is there a way to get the path to where a gem is installed?
The gemspec has it, check ri.
More information about the Rubygems-developers