Sha256: 4c4a4a0dd37330d5c4f41bb263a03c0e09fbfdbdbbb717479dd852b06cd9f16d

Contents?: true

Size: 826 Bytes

Versions: 42

Compression:

Stored size: 826 Bytes

Contents

# frozen_string_literal: true

module Cryptum
  # This plugin is used to Reload the Bot Conf When the "r" Key is Pressed
  module Event
    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.read_bot_conf(option_choice: option_choice)
      rescue StandardError => e
        raise e
      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

42 entries across 42 versions & 1 rubygems

Version Path
cryptum-0.0.315 lib/cryptum/event/bot_conf.rb
cryptum-0.0.314 lib/cryptum/event/bot_conf.rb
cryptum-0.0.313 lib/cryptum/event/bot_conf.rb
cryptum-0.0.312 lib/cryptum/event/bot_conf.rb
cryptum-0.0.311 lib/cryptum/event/bot_conf.rb
cryptum-0.0.310 lib/cryptum/event/bot_conf.rb
cryptum-0.0.309 lib/cryptum/event/bot_conf.rb
cryptum-0.0.308 lib/cryptum/event/bot_conf.rb
cryptum-0.0.307 lib/cryptum/event/bot_conf.rb
cryptum-0.0.306 lib/cryptum/event/bot_conf.rb
cryptum-0.0.305 lib/cryptum/event/bot_conf.rb
cryptum-0.0.304 lib/cryptum/event/bot_conf.rb
cryptum-0.0.303 lib/cryptum/event/bot_conf.rb
cryptum-0.0.302 lib/cryptum/event/bot_conf.rb
cryptum-0.0.301 lib/cryptum/event/bot_conf.rb
cryptum-0.0.300 lib/cryptum/event/bot_conf.rb
cryptum-0.0.299 lib/cryptum/event/bot_conf.rb
cryptum-0.0.298 lib/cryptum/event/bot_conf.rb
cryptum-0.0.297 lib/cryptum/event/bot_conf.rb
cryptum-0.0.296 lib/cryptum/event/bot_conf.rb