Class: Wires::EventRegistry
- Inherits:
-
Object
- Object
- Wires::EventRegistry
- Defined in:
- lib/wires/event.rb
Overview
Store a list of all Event classes that get loaded.
Constant Summary collapse
- @@registry =
[]
Class Method Summary collapse
Class Method Details
.<<(cls) ⇒ Object
7 8 9 10 |
# File 'lib/wires/event.rb', line 7 def self.<<(cls) @@registry << cls @@registry.uniq! end |
.list ⇒ Object
12 13 14 |
# File 'lib/wires/event.rb', line 12 def self.list @@registry end |