Sha256: c207eca928f5e46f1ba207bdabcc783ae478cc32571909b379dedbd368b51463
Contents?: true
Size: 473 Bytes
Versions: 14
Compression:
Stored size: 473 Bytes
Contents
# frozen_string_literal: true module Bridgetown module CoreExt module Psych module SafeLoadFile def safe_load_file(filename, **kwargs) File.open(filename, "r:bom|utf-8") do |f| if RUBY_VERSION.start_with?("2.5") safe_load f, kwargs[:permitted_classes], [], false, filename else safe_load f, filename: filename, **kwargs end end end end end end end
Version data entries
14 entries across 14 versions & 1 rubygems