Module: Shoulda::Matchers::Doublespeak::DoubleImplementationRegistry
- Defined in:
- lib/shoulda/matchers/doublespeak/double_implementation_registry.rb
Class Method Summary collapse
Class Method Details
.find(type) ⇒ Object
7 8 9 |
# File 'lib/shoulda/matchers/doublespeak/double_implementation_registry.rb', line 7 def find(type) find_class!(type).create end |
.register(klass, type) ⇒ Object
11 12 13 |
# File 'lib/shoulda/matchers/doublespeak/double_implementation_registry.rb', line 11 def register(klass, type) registry[type] = klass end |