Class: ActionPubsub::Registry
- Inherits:
-
Concurrent::LazyRegister
- Object
- Concurrent::LazyRegister
- ActionPubsub::Registry
show all
- Defined in:
- lib/action_pubsub/registry.rb
Instance Method Summary
collapse
Instance Method Details
#[]=(key, val) ⇒ Object
9
10
11
|
# File 'lib/action_pubsub/registry.rb', line 9
def []=(key, val)
register(key) { val }
end
|
#all ⇒ Object
3
4
5
6
7
|
# File 'lib/action_pubsub/registry.rb', line 3
def all
keys.map do |k|
self[k]
end
end
|
#keys ⇒ Object
13
14
15
|
# File 'lib/action_pubsub/registry.rb', line 13
def keys
@data.value.keys
end
|