Class: EnvManager::Loader
- Inherits:
-
Object
- Object
- EnvManager::Loader
- Defined in:
- lib/env_manager/loader.rb
Instance Method Summary collapse
-
#initialize(basepath) ⇒ Loader
constructor
Arguments.
-
#read ⇒ Object
Returns.
Constructor Details
#initialize(basepath) ⇒ Loader
Arguments
* Basepath - Pathname Object
9 10 11 |
# File 'lib/env_manager/loader.rb', line 9 def initialize(basepath) @basepath = basepath end |
Instance Method Details
#read ⇒ Object
Returns
Returns the content of the env file read
18 19 20 |
# File 'lib/env_manager/loader.rb', line 18 def read @basepath.join(".env").read end |