Class: Proxy::Dynflow::TaskLauncherRegistry
- Inherits:
-
Object
- Object
- Proxy::Dynflow::TaskLauncherRegistry
- Defined in:
- lib/smart_proxy_dynflow/task_launcher_registry.rb
Class Method Summary collapse
- .fetch(name, default = nil) ⇒ Object
- .key?(name) ⇒ Boolean
- .operations ⇒ Object
- .register(name, launcher) ⇒ Object
Class Method Details
.fetch(name, default = nil) ⇒ Object
10 11 12 13 14 15 16 |
# File 'lib/smart_proxy_dynflow/task_launcher_registry.rb', line 10 def fetch(name, default = nil) if default.nil? registry.fetch(name) else registry.fetch(name, default) end end |
.key?(name) ⇒ Boolean
18 19 20 |
# File 'lib/smart_proxy_dynflow/task_launcher_registry.rb', line 18 def key?(name) registry.key?(name) end |
.operations ⇒ Object
22 23 24 |
# File 'lib/smart_proxy_dynflow/task_launcher_registry.rb', line 22 def operations registry.keys end |
.register(name, launcher) ⇒ Object
6 7 8 |
# File 'lib/smart_proxy_dynflow/task_launcher_registry.rb', line 6 def register(name, launcher) registry[name] = launcher end |