Created
May 13, 2010 15:39
-
-
Save dannysmith/399966 to your computer and use it in GitHub Desktop.
This file contains 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
#Includes circle.rb in this file. | |
#require File.join(File.dirname(__FILE__), 'circle.rb') | |
require 'yaml' | |
#Prints the contents of the data part of the file. | |
a = DATA.readlines | |
b = YAML::load(DATA) | |
puts "-----" | |
#puts a.inspect | |
puts b.inspect | |
__END__ | |
page: | |
id: 1 | |
title: hello | |
main: head | |
content: Lorem ipsum dolor sit amet, consectetur adipisicing elit, |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment