Class: TestProf::Autopilot::Registry

Inherits:
Object
  • Object
show all
Defined in:
lib/test_prof/autopilot/registry.rb

Overview

Global registry

Class Method Summary collapse

Class Method Details

.fetch(key) ⇒ Object



14
15
16
# File 'lib/test_prof/autopilot/registry.rb', line 14

def fetch(key)
  @items.fetch(key)
end

.register(key, klass) ⇒ Object



10
11
12
# File 'lib/test_prof/autopilot/registry.rb', line 10

def register(key, klass)
  @items[key] = klass
end