From: Brian Candler Date: 2007-05-11T00:35:36+09:00 Subject: Re: loop questions On Thu, May 10, 2007 at 10:31:36PM +0900, Lloyd Linklater wrote: > Excellent! I tried this right away and was able to make this mission > critical app: > > b = " bottles of beer" > w = " on the wall. " > t = " Take one down and pass it around. " > > 99.downto(1) do |i| > puts i.to_s + b + w + i.to_s + b + "." + t + (i - 1).to_s + b + w > end Whilst the following violates the Don't Repeat Yourself mantra, I think it's even clearer like this: 99.downto(1) do |i| puts <