Module: Cryptum::Event::Exit
- Defined in:
- lib/cryptum/event/exit.rb
Class Method Summary collapse
-
.gracefully(opts = {}) ⇒ Object
- Supported Method Parameters
-
Cryptum::Event::BotConf.gracefully( ).
-
.help ⇒ Object
Display Usage for this Module.
Class Method Details
.gracefully(opts = {}) ⇒ Object
- Supported Method Parameters
-
Cryptum::Event::BotConf.gracefully( )
10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 |
# File 'lib/cryptum/event/exit.rb', line 10 public_class_method def self.gracefully(opts = {}) terminal_win = opts[:terminal_win] event_history = opts[:event_history] option_choice = opts[:option_choice] env = opts[:env] terminal_win.key_press_event.key_x = false Cryptum.exit_gracefully( which_self: self, event_history: event_history, option_choice: option_choice, env: env ) rescue StandardError => e raise e end |
.help ⇒ Object
Display Usage for this Module
28 29 30 31 32 |
# File 'lib/cryptum/event/exit.rb', line 28 public_class_method def self.help puts "USAGE: #{self}.gracefully() " end |