Method: Glyph::Utils#yaml_load

Defined in:
lib/glyph/utils.rb

#yaml_load(file) ⇒ Object

Loads and deserialiaze the contents of a YAML file

Parameters:

  • file (#to_s)

    the YAML file to load

Returns:

  • (Object)

    the contents of the YAML file, deserialized

Since:

  • 0.4.0



47
48
49
# File 'lib/glyph/utils.rb', line 47

def yaml_load(file)
  YAML.load_file(file.to_s)
end