Module: Mockolate::Register

Defined in:
lib/mockolate/register.rb

Constant Summary collapse

@@types =
{}

Class Method Summary collapse

Class Method Details

.get(type) ⇒ Object



10
11
12
# File 'lib/mockolate/register.rb', line 10

def self.get(type)
  @@types[type]
end

.set(type, type_module) ⇒ Object



6
7
8
# File 'lib/mockolate/register.rb', line 6

def self.set(type, type_module)
  @@types[type] = type_module
end