Sha256: c13abd0c0b960b01bffe63c842200fd5b583f66fd54eab26ab7e1ed4dc413ea3
Contents?: true
Size: 395 Bytes
Versions: 1
Compression:
Stored size: 395 Bytes
Contents
module LogCabin ## # Define a collection of modules in separate gems class GemCollection < BaseCollection def initialize(params = {}) @prefix = params[:prefix] || raise('Gem prefix must be provided') super end ## # Method for finding modules to load def find(name) cache(name) { load_class_from_module("#{@prefix}-#{name}", name) } end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
logcabin-0.1.3 | lib/logcabin/gemcollection.rb |