Never been to DZone Snippets before?

Snippets is a public source code repository. Easily build up your personal collection of code snippets, categorize them with tags / keywords, and share them with the world

About this user

Rick Olson http://techno-weenie.net

« Newer Snippets
Older Snippets »
Showing 1-1 of 1 total  RSS 

quickly testing yaml syntax

   1  
   2  irb --simple-prompt -r yaml
   3  >> d = YAML.load <<-TEXT
   4  line_with_breaks: >
   5    My name is Simon 
   6    Things I like:
   7      * drawings
   8  TEXT
   9  => {"line_with_breaks"=>"My name is Simon Things I like:\n  * drawings\n"}


ripped from noradio
« Newer Snippets
Older Snippets »
Showing 1-1 of 1 total  RSS