News for hackers. Stuff that matters.

ark

Re:The Most Important Code Isn't Code on Wednesday June 08, 2011 @12:07AM (#2631984)
Great article. However, you should be using YARD. Along with: https://github.com/lsegal/yard-spec-plugin
Re:R.I.P. Ruby Hash Rocket Syntax 1993-2010 on Thursday January 06, 2011 @12:26AM (#2074154)
It's really common, actually. A symbol can actually have spaces in it:

:"Some Text" is a perfectly valid symbol.

ruby-1.9.2-p136 :001 > h = {:"Some Text" => 123} => {:"Some Text"=>123} ruby-1.9.2-p136 :002 > h[ "Some Text".to_sym ] => 123