class RubyIndexer::Configuration
def load_config
def load_config return unless File.exist?(".index.yml") config = YAML.parse_file(".index.yml") return unless config config_hash = config.to_ruby validate_config!(config_hash) apply_config(config_hash) rescue Psych::SyntaxError => e raise e, "Syntax error while loading .index.yml configuration: #{e.message}" end