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


118
119
120
121
122
123
124
125
126
127
128
# File 'lib/yard/config.rb', line 118

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