class YARD::Config

def self.read_config_file

Other tags:
    See: CONFIG_FILE -

Returns:
  • (Hash) - the contents of the YAML file from disk
def self.read_config_file
  if File.file?(CONFIG_FILE)
    require 'yaml'
    if YAML.respond_to?(:safe_load_file)
      YAML.safe_load_file(CONFIG_FILE, permitted_classes: [SymbolHash, Symbol])
    else
      YAML.load_file(CONFIG_FILE)
    end
  else
    {}
  end
end