Sha256: d01e927f4f08b981220932eedc97b5c2658a559b46206173849dc86242e8d916
Contents?: true
Size: 1012 Bytes
Versions: 69
Compression:
Stored size: 1012 Bytes
Contents
# frozen_string_literal: true module Cryptum # Cryptum::Event Namespace module Event # This Module is used to Reload the Bot Conf When the "r" Key is Pressed module BotConf # Supported Method Parameters:: # Cryptum::Event::BotConf.reload( # ) public_class_method def self.reload(opts = {}) terminal_win = opts[:terminal_win] event_history = opts[:event_history] option_choice = opts[:option_choice] event_history.recalculate_order_plan = true terminal_win.key_press_event.key_r = false Cryptum::BotConf.read( option_choice: option_choice, event_history: event_history ) rescue Interrupt, StandardError => e Cryptum::Log.append(level: :error, msg: e, which_self: self, event_history: event_history) end # Display Usage for this Module public_class_method def self.help puts "USAGE: bot_conf = #{self}.reload() " end end end end
Version data entries
69 entries across 69 versions & 1 rubygems