Class: Qonfig::Loaders::Dynamic Private
- Defined in:
- lib/qonfig/loaders/dynamic.rb,
lib/qonfig/plugins/toml/loaders/dynamic.rb
Overview
This class is part of a private API. You should avoid using this class if possible, as it may be removed or be changed in the future.
Class Method Summary collapse
- .load(data) ⇒ Object private
- .load_empty_data ⇒ Hash private
Methods inherited from Basic
Class Method Details
.load(data) ⇒ Object
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.
14 15 16 17 18 19 20 21 22 |
# File 'lib/qonfig/loaders/dynamic.rb', line 14 def load(data) try_to_load_json_data(data) rescue Qonfig::JSONLoaderParseError begin try_to_load_yaml_data(data) rescue Qonfig::YAMLLoaderParseError raise Qonfig::DynamicLoaderParseError, 'File data has unknown format' end end |
.load_empty_data ⇒ Hash
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.
28 29 30 |
# File 'lib/qonfig/loaders/dynamic.rb', line 28 def load_empty_data {} end |