#99 Bottles of beer, in Ruby #by Nathan Ricci, May 1, 2002 (adapted for MyAlbum) #See www.rubycentral.com for info on the language. 99.downto(1){ |i| App.Trace i >1 ? "#{i} bottles of beer on the wall," : "#{i} bottle of beer on the wall," App.Trace i >1 ? "#{i} bottles of beer on the wall," : "#{i} bottle of beer on the wall,"if i < 99 App.Trace i > 1 ? "#{i} bottles of beer." : "#{i} bottle of beer." App.Trace "Take one down, pass it around," App.Trace "No more bottles of beer on the wall!" if i <= 1 }