Class: Replay::Backends
- Inherits:
-
Object
- Object
- Replay::Backends
- Defined in:
- lib/replay/backends.rb
Defined Under Namespace
Classes: MemoryStore
Class Method Summary collapse
Class Method Details
.register(shorthand, klass) ⇒ Object
4 5 6 7 8 |
# File 'lib/replay/backends.rb', line 4 def self.register(shorthand, klass) @backends ||= {} @backends[shorthand] = klass return klass end |
.resolve(shorthand) ⇒ Object
9 10 11 |
# File 'lib/replay/backends.rb', line 9 def self.resolve(shorthand) @backends[shorthand] || shorthand end |