lib/yaml_extend.rb in yaml_extend-0.0.7 vs lib/yaml_extend.rb in yaml_extend-0.0.8

- old
+ new

@@ -15,11 +15,13 @@ # Extended variant of the #load_file method by providing the # ability to inherit from other YAML file(s) # # @param yaml_path [String] the path to the yaml file to be loaded # @param inheritance_key [String] the key used in the yaml file to extend from another YAML file - # @param extend_existing_arrays [Boolean] Extend existing arrays instead of replacing them + # @param extend_existing_arrays [Boolean] extend existing arrays instead of replacing them # @param config [Hash] a hash to be merged into the result, usually only recursivly called by the method itself + # + # @return [Hash] the resulting yaml config # def self.ext_load_file(yaml_path, inheritance_key='extends', extend_existing_arrays=true, config = {}) total_config ||= {} yaml_path = YAML.make_absolute_path yaml_path super_config = YAML.load_file(File.open(yaml_path))