Sha256: 3b2a5020a8b661fcec41d18450bd73f217191345e13a9b6b28fd963024ee6607

Contents?: true

Size: 316 Bytes

Versions: 27

Compression:

Stored size: 316 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|
            safe_load f, filename: filename, **kwargs
          end
        end
      end
    end
  end
end

Version data entries

27 entries across 27 versions & 1 rubygems

Version Path
bridgetown-core-1.0.0.beta2 lib/bridgetown-core/core_ext/psych.rb
bridgetown-core-1.0.0.beta1 lib/bridgetown-core/core_ext/psych.rb
bridgetown-core-1.0.0.alpha11 lib/bridgetown-core/core_ext/psych.rb
bridgetown-core-1.0.0.alpha10 lib/bridgetown-core/core_ext/psych.rb
bridgetown-core-1.0.0.alpha9 lib/bridgetown-core/core_ext/psych.rb
bridgetown-core-1.0.0.alpha8 lib/bridgetown-core/core_ext/psych.rb
bridgetown-core-1.0.0.alpha7 lib/bridgetown-core/core_ext/psych.rb