Module: Qonfig::Loaders Private
- Defined in:
- lib/qonfig/loaders.rb,
lib/qonfig/plugins/toml/loaders.rb
Overview
This module is part of a private API. You should avoid using this module if possible, as it may be removed or be changed in the future.
Defined Under Namespace
Modules: EndData Classes: Basic, Dynamic, JSON, TOML, Vault, YAML
Class Method Summary collapse
- .resolve(format) ⇒ Module (also: []) private
Class Method Details
.resolve(format) ⇒ Module Also known as: []
This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.
20 21 22 23 24 25 26 27 28 29 30 31 |
# File 'lib/qonfig/loaders.rb', line 20 def resolve(format) case format.to_s when 'yaml', 'yml' Qonfig::Loaders::YAML when 'json' Qonfig::Loaders::JSON when 'dynamic' Qonfig::Loaders::Dynamic else raise(Qonfig::UnsupportedLoaderFormatError, "<#{format}> format is not supported.") end end |