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
Defined Under Namespace
Classes: DownloadStrategyChooser
Instance Attribute Summary collapse
-
#config ⇒ Object
readonly
Returns the value of attribute config.
-
#highline ⇒ Object
readonly
Returns the value of attribute highline.
Instance Method Summary collapse
-
#initialize(config:, highline:) ⇒ GlobalOptions
constructor
A new instance of GlobalOptions.
- #run ⇒ Object
Constructor Details
#initialize(config:, highline:) ⇒ GlobalOptions
Returns a new instance of GlobalOptions.
13 14 15 16 |
# File 'lib/imap/backup/setup/global_options.rb', line 13 def initialize(config:, highline:) @config = config @highline = highline end |
Instance Attribute Details
#config ⇒ Object (readonly)
Returns the value of attribute config.
10 11 12 |
# File 'lib/imap/backup/setup/global_options.rb', line 10 def config @config end |
#highline ⇒ Object (readonly)
Returns the value of attribute highline.
11 12 13 |
# File 'lib/imap/backup/setup/global_options.rb', line 11 def highline @highline end |
Instance Method Details
#run ⇒ Object
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 |