class Hashie::Mash
def self.load(path, options = {})
def self.load(path, options = {}) @_mashes ||= new do |h, file_path| fail ArgumentError, "The following file doesn't exist: #{file_path}" unless File.file?(file_path) parser = options.fetch(:parser) { Hashie::Extensions::Parsers::YamlErbParser } h[file_path] = new(parser.perform(file_path)).freeze end @_mashes[path] end