Methods
Public Class methods
[ show source ]
# File lib/facets/core/gem/self/active.rb, line 4 def self.active?(gemname) @loaded_specs ||= Hash.new @loaded_specs.key? gemname end
[ show source ]
# File lib/facets/core/gem/self/gempath.rb, line 6 def self.gempath(gemname, subdir=nil) if active?(gemname) if subdir File.join( @loaded_specs[gemname].full_gem_path, subdir ) else @loaded_specs[gemname].full_gem_path end end end
[ show source ]
# File lib/facets/core/gem/self/gemspec.rb, line 6 def self.gemspec(gemname) @loaded_specs[gemname] if active?(gemname) end