Skip to content

Instantly share code, notes, and snippets.

@agate
Created October 13, 2011 03:04
Show Gist options
  • Save agate/1283240 to your computer and use it in GitHub Desktop.
Save agate/1283240 to your computer and use it in GitHub Desktop.
Ruby Script For Testing to_yaml method
require 'yaml'
data = []
File.read("text.txt").lines.each do |line|
data << line
end
puts data.to_yaml
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment