Skip to content

Instantly share code, notes, and snippets.

@dannysmith
Created May 13, 2010 15:39
Show Gist options
  • Save dannysmith/399966 to your computer and use it in GitHub Desktop.
Save dannysmith/399966 to your computer and use it in GitHub Desktop.
#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