Class: Pry::Shell::UI
- Inherits:
-
Object
show all
- Defined in:
- lib/pry/shell/ui.rb,
lib/pry/shell/ui/base.rb,
lib/pry/shell/ui/list.rb,
lib/pry/shell/ui/menu.rb,
lib/pry/shell/ui/about.rb,
lib/pry/shell/ui/session.rb,
lib/pry/shell/ui/configuration.rb,
lib/pry/shell/ui/configuration/auto_connect.rb
Defined Under Namespace
Classes: About, Base, Configuration, List, Menu, Session
Constant Summary
collapse
- StopMainUI =
Class.new(StandardError)
Class Method Summary
collapse
Class Method Details
.draw! ⇒ Object
9
10
11
12
13
14
15
|
# File 'lib/pry/shell/ui.rb', line 9
def draw!
UI::Menu.draw!
draw!
rescue StopMainUI
sleep
draw!
end
|
.restart! ⇒ Object
21
22
23
|
# File 'lib/pry/shell/ui.rb', line 21
def restart!
Thread.main.wakeup
end
|
.stop! ⇒ Object
17
18
19
|
# File 'lib/pry/shell/ui.rb', line 17
def stop!
Thread.main.raise StopMainUI.new
end
|