Module: TestProf::FactoryDefault
- Defined in:
- lib/test_prof/factory_default.rb,
lib/test_prof/factory_default/factory_bot_patch.rb
Overview
Defined Under Namespace
Modules: DefaultSyntax, RunnerExt, StrategyExt
Class Method Summary
collapse
Class Method Details
.exists?(name) ⇒ Boolean
41
42
43
|
# File 'lib/test_prof/factory_default.rb', line 41
def exists?(name)
store.key?(name)
end
|
.get(name) ⇒ Object
37
38
39
|
# File 'lib/test_prof/factory_default.rb', line 37
def get(name)
store[name]
end
|
.register(name, obj) ⇒ Object
33
34
35
|
# File 'lib/test_prof/factory_default.rb', line 33
def register(name, obj)
store[name] = obj
end
|
.remove(name) ⇒ Object
45
46
47
|
# File 'lib/test_prof/factory_default.rb', line 45
def remove(name)
store.delete(name)
end
|
.reset ⇒ Object
49
50
51
|
# File 'lib/test_prof/factory_default.rb', line 49
def reset
@store.clear
end
|