Module: Bridgetown::CoreExt::Psych::SafeLoadFile
- Defined in:
- lib/bridgetown-core/core_ext/psych.rb
Instance Method Summary collapse
Instance Method Details
#safe_load_file(filename, **kwargs) ⇒ Object
7 8 9 10 11 |
# File 'lib/bridgetown-core/core_ext/psych.rb', line 7 def safe_load_file(filename, **kwargs) File.open(filename, "r:bom|utf-8") do |f| safe_load f, filename: filename, **kwargs end end |