Class: Crabfarm::Live::NavigatorRunner::InterceptContextDecorator

Inherits:
Object
  • Object
show all
Defined in:
lib/crabfarm/live/navigator_runner.rb

Instance Method Summary collapse

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_contextObject



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