Sha256: 74cb573ede5d87a57705660803b12001a3244ef7fe0a1d103995f1bd4e291263
Contents?: true
Size: 556 Bytes
Versions: 3
Compression:
Stored size: 556 Bytes
Contents
# frozen_string_literal: true require 'yaml' module OptParseValidator class ConfigFilesLoaderMerger < Array module ConfigFile # Yaml Implementation class YML < Base # @params [ Hash ] opts # @option opts [ Array ] :yaml_arguments See https://ruby-doc.org/stdlib-2.3.1/libdoc/psych/rdoc/Psych.html#method-c-safe_load # # @return [ Hash ] a { 'key' => value } hash def parse(opts = {}) YAML.safe_load(File.read(path), *opts[:yaml_arguments]) || {} end end end end end
Version data entries
3 entries across 3 versions & 1 rubygems