class

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).

Source

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.

Source
loadable

Internal: Returns the Hash loadable of the loader

Source
path

Internal: Returns the String or Pathname path of the loader

Source