Module: Gem

Defined in:
lib/library/rubygems.rb

Class Method Summary collapse

Class Method Details

.find_files(path) ⇒ Object

Some libraries, such as RDoc search through all libraries for plugins using this method. If RubyGems is not being used, then Rolls emulates it.

Gem.find_files('rdoc/discover')

TODO: Perhaps it should override if it exists and call back to it on failuer?



13
14
15
# File 'lib/library/rubygems.rb', line 13

def self.find_files(path)
  ::Library.search(path).map{ |f| f.to_s }
end