lib/sweetie_bot.rb
# Loads a configuration from a YAML file.
# @param config_file [String] path to the YAML file on the filesystem.
Loads a configuration from a YAML file.
Loads a configuration from a YAML file .
def load_config(config_file)
    @config = YAML.load_file config_file
    @config = Hashie::Mash.new(@config) if @config
    Booru.import_config @config.booru
  end
def load_config ( config_file ) @config = YAML . load_file config_file @config = Hashie :: Mash . new ( @config ) if @config Booru . import_config @config . booru end
Loads a configuration from a YAML file.
Loads a configuration from a YAML file .
config_file
path to the YAML file on the filesystem.
path to the YAML file on the filesystem .