Sha256: 1f4fdcac02931a1e5f8550a7ea58043a03c4800f1600eb7f3431d3270e8f6fdb

Contents?: true

Size: 887 Bytes

Versions: 65

Compression:

Stored size: 887 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::BotConf.read(
          option_choice: option_choice,
          event_history: event_history
        )
      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

65 entries across 65 versions & 1 rubygems

Version Path
cryptum-0.0.341 lib/cryptum/event/bot_conf.rb
cryptum-0.0.339 lib/cryptum/event/bot_conf.rb
cryptum-0.0.338 lib/cryptum/event/bot_conf.rb
cryptum-0.0.337 lib/cryptum/event/bot_conf.rb
cryptum-0.0.336 lib/cryptum/event/bot_conf.rb
cryptum-0.0.335 lib/cryptum/event/bot_conf.rb
cryptum-0.0.334 lib/cryptum/event/bot_conf.rb
cryptum-0.0.333 lib/cryptum/event/bot_conf.rb
cryptum-0.0.332 lib/cryptum/event/bot_conf.rb
cryptum-0.0.331 lib/cryptum/event/bot_conf.rb
cryptum-0.0.330 lib/cryptum/event/bot_conf.rb
cryptum-0.0.329 lib/cryptum/event/bot_conf.rb
cryptum-0.0.328 lib/cryptum/event/bot_conf.rb
cryptum-0.0.327 lib/cryptum/event/bot_conf.rb
cryptum-0.0.326 lib/cryptum/event/bot_conf.rb
cryptum-0.0.325 lib/cryptum/event/bot_conf.rb
cryptum-0.0.324 lib/cryptum/event/bot_conf.rb
cryptum-0.0.323 lib/cryptum/event/bot_conf.rb
cryptum-0.0.322 lib/cryptum/event/bot_conf.rb
cryptum-0.0.321 lib/cryptum/event/bot_conf.rb