Module: ActiveRecord::Dbt::Configuration::Parser

Included in:
Source
Defined in:
lib/active_record/dbt/configuration/parser.rb

Instance Method Summary collapse

Instance Method Details

#parse_yaml(path) ⇒ Object



7
8
9
10
11
# File 'lib/active_record/dbt/configuration/parser.rb', line 7

def parse_yaml(path)
  return {} if path.nil?

  YAML.load_file(path).with_indifferent_access || {}
end