Class: Hyperloop::Operation
- Inherits:
-
Object
- Object
- Hyperloop::Operation
- Defined in:
- lib/hyperloop/application/boot.rb
Overview
insure at least a stub of operation is defined. If Hyperloop::Operation is already loaded it will have defined these.
Direct Known Subclasses
Instance Method Summary collapse
Instance Method Details
#on_dispatch(&block) ⇒ Object
7 8 9 |
# File 'lib/hyperloop/application/boot.rb', line 7 def on_dispatch(&block) receivers << block end |
#receivers ⇒ Object
11 12 13 14 15 |
# File 'lib/hyperloop/application/boot.rb', line 11 def receivers # use the force: true option so that system code needing to receive # boot will NOT be erased on the next Hyperloop::Context.reset! Hyperloop::Context.set_var(self, :@receivers, force: true) { [] } end |