Method: Envyable::Loader#initialize
- Defined in:
- lib/envyable/loader.rb
#initialize(path, loadable = ENV) ⇒ Loader
Internal: initalize a Loader
path - a Pathname or String that describes where the yaml file
resides.
loadable - a Hash or hashlike structure that the yaml file variables
should be loaded into (default: ENV).
16 17 18 19 |
# File 'lib/envyable/loader.rb', line 16 def initialize(path, loadable = ENV) @path = path @loadable = loadable end |