Better HN
topnewbestaskshowjobs
Log inSign up

ark

2 karma · joined Jan 6, 2011 (15y ago) · 2 submissions

Submissions

comment 15y ago · link · parent

Great article. However, you should be using YARD. Along with: https://github.com/lsegal/yard-spec-plugin

comment 15y ago · link · parent

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