Skip to content

Instantly share code, notes, and snippets.

@jdmorlan
Created February 1, 2015 22:28
Show Gist options
  • Save jdmorlan/5d47c281e54d09e2cbd9 to your computer and use it in GitHub Desktop.
Save jdmorlan/5d47c281e54d09e2cbd9 to your computer and use it in GitHub Desktop.
How to read YAML Front Matter.
require 'yaml'
thing = YAML.load_file('some.yml')
puts thing.inspect
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment