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.3.4 lib/bridgetown-core/core_ext/psych.rb
bridgetown-core-1.3.3 lib/bridgetown-core/core_ext/psych.rb
bridgetown-core-1.3.2 lib/bridgetown-core/core_ext/psych.rb
bridgetown-core-1.3.1 lib/bridgetown-core/core_ext/psych.rb
bridgetown-core-1.3.0 lib/bridgetown-core/core_ext/psych.rb
bridgetown-core-1.3.0.beta3 lib/bridgetown-core/core_ext/psych.rb
bridgetown-core-1.3.0.beta2 lib/bridgetown-core/core_ext/psych.rb
bridgetown-core-1.3.0.beta1 lib/bridgetown-core/core_ext/psych.rb
bridgetown-core-1.2.0 lib/bridgetown-core/core_ext/psych.rb
bridgetown-core-1.2.0.beta5 lib/bridgetown-core/core_ext/psych.rb
bridgetown-core-1.2.0.beta4 lib/bridgetown-core/core_ext/psych.rb
bridgetown-core-1.2.0.beta3 lib/bridgetown-core/core_ext/psych.rb
bridgetown-core-1.2.0.beta2 lib/bridgetown-core/core_ext/psych.rb
bridgetown-core-1.2.0.beta1 lib/bridgetown-core/core_ext/psych.rb
bridgetown-core-1.1.0 lib/bridgetown-core/core_ext/psych.rb
bridgetown-core-1.1.0.beta3 lib/bridgetown-core/core_ext/psych.rb
bridgetown-core-1.1.0.beta2 lib/bridgetown-core/core_ext/psych.rb
bridgetown-core-1.1.0.beta1 lib/bridgetown-core/core_ext/psych.rb
bridgetown-core-1.0.0 lib/bridgetown-core/core_ext/psych.rb
bridgetown-core-1.0.0.beta3 lib/bridgetown-core/core_ext/psych.rb