From: John Joyce Date: 2007-05-10T22:53:27+09:00 Subject: Re: loop questions On May 10, 2007, at 10:31 PM, 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 > > Thanks again! > > -- > Posted via http://www.ruby-forum.com/. > the | | is like a |shoot| or |dumb-waiter| every time through the iteration or loop it recieves something sometimes you can pass it more than one thing. At first it's a little weird but it really is one of the most beautiful parts of ruby.