Skip to content

Instantly share code, notes, and snippets.

@binford2k
Last active December 22, 2015 12:09
Show Gist options
  • Save binford2k/6470524 to your computer and use it in GitHub Desktop.
Save binford2k/6470524 to your computer and use it in GitHub Desktop.
#! /usr/bin/env ruby
require 'yaml'
data = {
'somekey' => 'a value',
'another key' => [ 'an', 'array', 'of', 'values' ],
'a final key' => 'last value',
}
File.open('output.yaml', 'w') { |f| f.write data.to_yaml }
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment