From: Ryan Davis Date: 2009-01-28T06:12:29+09:00 Subject: Re: Conventions in ruby and the principle of least surprise On Jan 27, 2009, at 02:08 , Damjan Rems wrote: > My convention is use {} in oneliners. In all other examples I use > do..end. I follow (and teach) the weirich method: http://onestepback.org/index.cgi/Tech/Ruby/BraceVsDoEnd.rdoc {} for block values I care about (think map), do/end for regular block sends (think each). I use {} for blocks that return values (think #map) and do/end for all other blocks (think #each).