Method: Vedeu::Runtime::MainLoop.mode_switch!

Defined in:
lib/vedeu/runtime/main_loop.rb

.mode_switch!(mode = nil) ⇒ Object

This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.

Parameters:

  • mode (Symbol) (defaults to: nil)

Raises:



22
23
24
25
26
27
28
29
30
31
# File 'lib/vedeu/runtime/main_loop.rb', line 22

def mode_switch!(mode = nil)
  @loop        = false
  @mode_switch = true

  Vedeu::Terminal::Mode.switch_mode!(mode)

  Vedeu.trigger(:_drb_restart_)

  raise Vedeu::Error::ModeSwitch
end