21 Ruby Tricks You Should Be Using In Your Own Code

screenshot

I get to see a lot of Ruby code while writing for Ruby Inside. Most is very good, but sometimes we forget some of Ruby's shortcuts and tricks and instead reinvent the wheel. In this post I present 21 different Ruby tricks, from those that most experienced developers already use every day to those that are more obscure. Before writing this piece, for example, I had no idea about trick number 2! Whatever your level, a refresh may help you the next time you encounter similar scenarios. 1 - Extract regular ...

http://www.rubyinside.com/21-ruby-tricks-902.html

ruby,tips,programming,develop

http://b.hatena.ne.jp/entry/http://www.rubyinside.com/21-ruby-tricks-902.html