# 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::Exit.gracefully( # ) public_class_method def self.gracefully(opts = {}) event_history = opts[:event_history] Cryptum::UI::Exit.gracefully(event_history: event_history) 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