Sha256: 0a7e18f996c3360edae213818436fb01d83eec7bb37b1afd7c13339cc8f900eb
Contents?: true
Size: 284 Bytes
Versions: 2
Compression:
Stored size: 284 Bytes
Contents
require 'yaml' require 'front_matter_parser' module IpsValidator class Loader UNSAFE_LOADER = ->(string) { YAML.load(string) } def self.load(file_name) FrontMatterParser::Parser.parse_file(file_name, loader: UNSAFE_LOADER).front_matter end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
ips_validator-0.1.2 | lib/ips_validator/loader.rb |
ips_validator-0.1.1 | lib/ips_validator/loader.rb |