Skip to content

Instantly share code, notes, and snippets.

@matspitz1
Created September 4, 2019 23:09
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save matspitz1/54b42f5ad8714607345d57ba7f56acb2 to your computer and use it in GitHub Desktop.
Save matspitz1/54b42f5ad8714607345d57ba7f56acb2 to your computer and use it in GitHub Desktop.
def get_configuration
config_file = YAML.load_file(CONFIG) if File.exists? CONFIG
Hash.new.tap { |c|
c = (!config_file.nil? && config_file['lamda'] ? config_file['lamda'] : LAMDA)
}
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment