Module: InciScore::Catalog

Extended by:
Catalog
Included in:
Catalog
Defined in:
lib/inci_score/catalog.rb

Constant Summary collapse

YAML_PATH =
File::expand_path("../../../config/catalog.yml", __FILE__)

Instance Method Summary collapse

Instance Method Details

#fetch(src = File.read(YAML_PATH)) ⇒ Object



9
10
11
# File 'lib/inci_score/catalog.rb', line 9

def fetch(src = File.read(YAML_PATH))
  YAML::load(src)
end