Class: Crabfarm::Live::NavigatorRunner::InterceptContextDecorator
- Inherits:
-
Object
- Object
- Crabfarm::Live::NavigatorRunner::InterceptContextDecorator
- Defined in:
- lib/crabfarm/live/navigator_runner.rb
Instance Method Summary collapse
-
#initialize(_manager) ⇒ InterceptContextDecorator
constructor
A new instance of InterceptContextDecorator.
- #inject_managed_context ⇒ Object
- #prepare(_memento) ⇒ Object
Constructor Details
#initialize(_manager) ⇒ InterceptContextDecorator
Returns a new instance of InterceptContextDecorator.
74 75 76 |
# File 'lib/crabfarm/live/navigator_runner.rb', line 74 def initialize(_manager) @manager = _manager end |
Instance Method Details
#inject_managed_context ⇒ Object
83 84 85 |
# File 'lib/crabfarm/live/navigator_runner.rb', line 83 def inject_managed_context Context.new @manager end |
#prepare(_memento) ⇒ Object
78 79 80 81 |
# File 'lib/crabfarm/live/navigator_runner.rb', line 78 def prepare(_memento) @manager.restart_crabtrap _memento inject_managed_context end |