Class: TenantsHelper::ConfigLoader
- Inherits:
-
Object
- Object
- TenantsHelper::ConfigLoader
- Extended by:
- Memoist
- Defined in:
- lib/tenants_helper/config_loader.rb
Instance Method Summary collapse
-
#initialize(config_path:) ⇒ ConfigLoader
constructor
A new instance of ConfigLoader.
- #load_content ⇒ Object
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_content ⇒ Object
12 13 14 |
# File 'lib/tenants_helper/config_loader.rb', line 12 def load_content Yamload::Loader.new(filename, dirname).content end |