Class: EnvManager::Loader

Inherits:
Object
  • Object
show all
Defined in:
lib/env_manager/loader.rb

Instance Method Summary collapse

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

#readObject

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