Sha256: 646ea5731a8b1e43dc138c2c03a59d25607f63053299f25c2ecb8304ff6b9fbe
Contents?: true
Size: 445 Bytes
Versions: 4
Compression:
Stored size: 445 Bytes
Contents
class Woodhouse::MixinRegistry < Woodhouse::Registry class << self def classes @classes ||= {} end def register(klass) register_worker klass.name, klass end def register_worker(class_name, klass) classes[class_name.to_s] = klass end end def [](worker) Woodhouse::MixinRegistry.classes[worker.to_s] end def each(&blk) Woodhouse::MixinRegistry.classes.each &blk end end
Version data entries
4 entries across 4 versions & 1 rubygems