Class: TenantsHelper::ConfigLoader

Inherits:
Object
  • Object
show all
Extended by:
Memoist
Defined in:
lib/tenants_helper/config_loader.rb

Instance Method Summary collapse

Constructor Details

#initialize(config_path:) ⇒ ConfigLoader

Returns a new instance of ConfigLoader.



7
8
9
10
# File 'lib/tenants_helper/config_loader.rb', line 7

def initialize(config_path:)
  @config_path = config_path
  validate_config_path
end

Instance Method Details

#load_contentObject



12
13
14
# File 'lib/tenants_helper/config_loader.rb', line 12

def load_content
  Yamload::Loader.new(filename, dirname).content
end