Module: Croesus::AnonoMod

Defined in:
lib/croesus/dsl/mod_factory.rb

Overview

Registry for anonymous methods, not so anonymous now are you!

Class Method Summary collapse

Class Method Details

.register(resource_name, mod) ⇒ Object



30
31
32
# File 'lib/croesus/dsl/mod_factory.rb', line 30

def self.register(resource_name, mod)
  registry[resource_name] = mod
end

.registryObject



26
27
28
# File 'lib/croesus/dsl/mod_factory.rb', line 26

def self.registry
  @registry
end