Envyable::Loader
Inherits Reference / Object
Internal: Loads yaml files into ENV (or a supplied hash).
Constructors
new(path : String, loadable : Hash(String, String) | ENV.class = ENV)
Internal: initalize a Loader
path - a Pathname or String that describes where the yaml file resides. loadable - a Hash(String, String) or hashlike structure that the yaml file variables should be loaded into (default: ENV).
Instance methods
load(environment = "development")
Internal: perform the loading from the given environment
environment - a String describing the environment from which to load the variables (default: development).
Examples
load("production")
Returns nothing.