Module: Grande::WithConfigLoader

Defined in:
lib/grande/with_config_loader.rb

Instance Method Summary collapse

Instance Method Details

#with_config_loaderObject



3
4
5
6
7
8
9
# File 'lib/grande/with_config_loader.rb', line 3

def with_config_loader
  @config_loader = Grande::ConfigLoader.new

  yield

  @config_loader = nil # Config doesn't need to be kept in memory after it's loaded. Free up some memory here
end