Class: Imap::Backup::Setup::GlobalOptions
- Inherits:
-
Object
- Object
- Imap::Backup::Setup::GlobalOptions
- Defined in:
- lib/imap/backup/setup/global_options.rb,
lib/imap/backup/setup/global_options/download_strategy_chooser.rb
Overview
Shows the menu of global options
Defined Under Namespace
Classes: DownloadStrategyChooser
Instance Method Summary collapse
-
#initialize(config:) ⇒ GlobalOptions
constructor
A new instance of GlobalOptions.
-
#run ⇒ void
Shows the menu.
Constructor Details
#initialize(config:) ⇒ GlobalOptions
Returns a new instance of GlobalOptions.
12 13 14 |
# File 'lib/imap/backup/setup/global_options.rb', line 12 def initialize(config:) @config = config end |
Instance Method Details
#run ⇒ void
This method returns an undefined value.
Shows the menu
18 19 20 21 22 23 24 25 |
# File 'lib/imap/backup/setup/global_options.rb', line 18 def run catch :done do loop do Kernel.system("clear") end end end |