Sha256: cb8db9834f35740e55f8eaab93c3b2fc4a85b7f96a51cc55c4ddf9350aa8df15

Contents?: true

Size: 237 Bytes

Versions: 7

Compression:

Stored size: 237 Bytes

Contents

require 'yaml'
require 'front_matter_parser'


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

Version data entries

7 entries across 7 versions & 1 rubygems

Version Path
eip_validator-0.4.0 lib/eip_validator/loader.rb
eip_validator-0.3.4 lib/eip_validator/loader.rb
eip_validator-0.3.3 lib/eip_validator/loader.rb
eip_validator-0.3.1 lib/eip_validator/loader.rb
eip_validator-0.3.0 lib/eip_validator/loader.rb
eip_validator-0.2.0 lib/eip_validator/loader.rb
eip_validator-0.1.0 lib/eip_validator/loader.rb