Class: Shoulda::Matchers::Integrations::Registry
- Inherits:
-
Object
- Object
- Shoulda::Matchers::Integrations::Registry
- Defined in:
- lib/shoulda/matchers/integrations/registry.rb
Instance Method Summary collapse
Instance Method Details
#find!(name) ⇒ Object
10 11 12 |
# File 'lib/shoulda/matchers/integrations/registry.rb', line 10 def find!(name) find_class!(name).new end |
#register(klass, name) ⇒ Object
6 7 8 |
# File 'lib/shoulda/matchers/integrations/registry.rb', line 6 def register(klass, name) registry[name] = klass end |