module CommandHandler::Utils

Public Class Methods

get_command(command_name) click to toggle source
# File lib/advanced_ruby_command_handler/app/utils.rb, line 5
def self.get_command(command_name)
  return Commands.method(command_name).call if defined?(Commands) && Commands.respond_to?(command_name)

  false
end

Public Instance Methods

reload_files(dirs) click to toggle source

Do NOT use that FIXME

# File lib/advanced_ruby_command_handler/app/utils.rb, line 13
def reload_files(dirs)
  dirs.each do |dir|
    Dir.glob("#{dir}/**/*.rb").each { |file| load file }
  end
end