lib/qonfig/commands/load_from_yaml.rb in qonfig-0.13.0 vs lib/qonfig/commands/load_from_yaml.rb in qonfig-0.14.0
- old
+ new
@@ -39,11 +39,11 @@
raise(
Qonfig::IncompatibleYAMLStructureError,
'YAML content should have a hash-like structure'
) unless yaml_data.is_a?(Hash)
- yaml_based_settings = build_data_set_class(yaml_data).new.settings
+ yaml_based_settings = build_data_set_klass(yaml_data).new.settings
settings.__append_settings__(yaml_based_settings)
end
private
@@ -51,9 +51,9 @@
# @param yaml_data [Hash]
# @return [Class<Qonfig::DataSet>]
#
# @api private
# @since 0.2.0
- def build_data_set_class(yaml_data)
+ def build_data_set_klass(yaml_data)
Qonfig::DataSet::ClassBuilder.build_from_hash(yaml_data)
end
end