Module: Nanoc::Core::YamlLoader Private

Defined in:
lib/nanoc/core/yaml_loader.rb

This module is part of a private API. You should avoid using this module if possible, as it may be removed or be changed in the future.

Class Method Summary collapse

Class Method Details

.load(yaml_string) ⇒ Object

This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.



14
15
16
# File 'lib/nanoc/core/yaml_loader.rb', line 14

def self.load(yaml_string)
  YAML.safe_load(yaml_string, **OPTIONS)
end

.load_file(filename) ⇒ Object

This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.



18
19
20
# File 'lib/nanoc/core/yaml_loader.rb', line 18

def self.load_file(filename)
  YAML.safe_load_file(filename, **OPTIONS)
end