Module: Yao::Plugins

Defined in:
lib/yao/plugins/registry.rb,
lib/yao/plugins.rb,
lib/yao/plugins/default_client_generator.rb

Overview

Regstiry Pattern - www.martinfowler.com/eaaCatalog/registry.html A well-known object that other objects can use to find common objects and services.

Defined Under Namespace

Classes: DefaultClientGenerator, Registry

Class Method Summary collapse

Class Method Details

.register(klass, **kw) ⇒ Object

Parameters:

  • (*)
  • (Symbol)
  • (Symbol)


32
33
34
# File 'lib/yao/plugins/registry.rb', line 32

def self.register(klass, **kw)
  Registry.instance.register(klass, **kw)
end