Last active
December 22, 2015 12:09
-
-
Save binford2k/6470524 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#! /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