Class: FrontMatterParser::Loader::Yaml
- Inherits:
-
Object
- Object
- FrontMatterParser::Loader::Yaml
- Defined in:
- lib/front_matter_parser/loader/yaml.rb
Overview
FrontMatterParser::Loader that uses YAML library
Class Method Summary collapse
-
.call(string) ⇒ Hash
Loads a hash front matter from a string.
Class Method Details
.call(string) ⇒ Hash
Loads a hash front matter from a string
13 14 15 |
# File 'lib/front_matter_parser/loader/yaml.rb', line 13 def self.call(string) YAML.safe_load(string) end |