Module: SkiBinding::ConfigLoader

Extended by:
ConfigLoader
Included in:
Calculator, ConfigLoader
Defined in:
lib/ski_binding_calculator/config_loader.rb

Instance Method Summary collapse

Instance Method Details

#load_binding_codesObject



6
7
8
# File 'lib/ski_binding_calculator/config_loader.rb', line 6

def load_binding_codes
  binding_codes ||= parse_yml("binding_codes.yml")   
end

#load_binding_settings(code) ⇒ Object



10
11
12
13
# File 'lib/ski_binding_calculator/config_loader.rb', line 10

def load_binding_settings(code)
  binding_settings ||= parse_yml("binding_settings.yml")  
  binding_settings[code] 
end