class EacRubyUtils::GemsRegistry

be collected.
* If a require for “my/lib/the_class” is succesful the class/module ‘My::Lib::TheClass` will
* A gem with name “my-lib” is being analyzed
* The module suffix is `TheClass`;
Example:
found.
Search in each gem for a class determined by registry and run the method “register” on each

def all_gems

Returns:
  • (Array) -
def all_gems
  ::Gem::Specification.map { |gemspec| ::EacRubyUtils::GemsRegistry::Gem.new(self, gemspec) }
end

def initialize(module_suffix)

def initialize(module_suffix)
  @module_suffix = module_suffix
end

def registered

Returns:
  • (Array) -
def registered
  @registered ||= all_gems.select(&:found?).sort
end