Method: YARD::Config.load

Defined in:
lib/yard/config.rb

.loadvoid

This method returns an undefined value.

Loads settings from CONFIG_FILE. This method is called by YARD at load time and should not be called by the user.

Since:

  • 0.6.2



84
85
86
87
88
89
90
91
92
93
94
# File 'lib/yard/config.rb', line 84

def self.load
  self.options = SymbolHash.new(false)
  options.update(DEFAULT_CONFIG_OPTIONS)
  options.update(read_config_file)
  add_ignored_plugins_file
  translate_plugin_names
  load_plugins
rescue
  log.error "Invalid configuration file, using default options."
  options.update(DEFAULT_CONFIG_OPTIONS)
end