Sha256: 6e42ab468ef02fa2f7ad8db72d4774303bbc9d1baa59449e117818ef091d69d7
Contents?: true
Size: 912 Bytes
Versions: 111
Compression:
Stored size: 912 Bytes
Contents
# frozen_string_literal: true module Cryptum # This plugin is used to Exit Cryptum Gracefully When the "x" Key is Pressed module Event module Exit # Supported Method Parameters:: # Cryptum::Event::BotConf.gracefully( # ) 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 # Display Usage for this Module public_class_method def self.help puts "USAGE: #{self}.gracefully() " end end end end
Version data entries
111 entries across 111 versions & 1 rubygems