Sha256: f9b0ee3c2489355c76921f8f1d3bb4152a0a2a49ea54efe880b9545eed6e3a18
Contents?: true
Size: 202 Bytes
Versions: 3
Compression:
Stored size: 202 Bytes
Contents
require 'yaml' module YAML # Loads a YAML file, cleans it using Hash#clean, and returns the result def self.load_file_and_clean(a_filename) (YAML.load_file(a_filename) || {}).clean end end
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
nanoc-1.6 | lib/nanoc/core_ext/yaml.rb |
nanoc-1.6.1 | lib/nanoc/core_ext/yaml.rb |
nanoc-1.6.2 | lib/nanoc/core_ext/yaml.rb |