There's a few useful shorthand ways to create certain objects in Ruby, a couple of obvious ones are [] to create an Array and {} to create a Hash (Or block/Proc). There's some not so obvious ones too, for creating strings, regexes and executing shell commands.
Tagged with geek
Ruby Shortcuts
- 2010-03-18 22:32:45
iPad? iPerfect (…for me)
- 2010-01-27 20:56:50
at(1) on OS X
- 2009-12-28 09:30:30
Read Later in a keystroke
- 2009-12-06 22:15:37
I use a wonderful service for saving text to be read later, instapaper.com. It's gotten more wonderful as time has gone on and other applications/service's have gained the ability to save links/articles/webpages there for me to pick up later.
--More--