Skip to content

Instantly share code, notes, and snippets.

@brianjriddle
Created November 20, 2013 08:28
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save brianjriddle/7559701 to your computer and use it in GitHub Desktop.
Save brianjriddle/7559701 to your computer and use it in GitHub Desktop.
YAML formatter in ruby
#!/usr/bin/env ruby
require 'yaml'
yaml_file = YAML::load(File.open(ARGV[0]))
puts YAML::dump(yaml_file)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment