Class: Pry::Shell::UI::Configuration
- Inherits:
-
Base
- Object
- Base
- Pry::Shell::UI::Configuration
show all
- Defined in:
- lib/pry/shell/ui/configuration.rb,
lib/pry/shell/ui/configuration/auto_connect.rb
Defined Under Namespace
Classes: AutoConnect
Constant Summary
collapse
"PRY-SHELL Configuration"
- ITEMS =
[
{ name: "Auto-connect", value: "auto_connect" },
{ name: "Go back to menu", value: "menu" }
].freeze
- ACTIONS =
{
"auto_connect" => -> { AutoConnect.draw! & draw! },
"menu" => -> {}
}.freeze
Constants inherited
from Base
Base::SEPERATOR
Class Method Summary
collapse
Methods inherited from Base
clear!, draw!, stop_main_ui!
Class Method Details
.draw_content ⇒ Object
18
19
20
21
22
|
# File 'lib/pry/shell/ui/configuration.rb', line 18
def draw_content
selection = prompt.select("Select a configuration item to change it's value", ITEMS)
ACTIONS[selection].call
end
|
24
|
# File 'lib/pry/shell/ui/configuration.rb', line 24
def ; end
|