I just have to add one that has another hopefully helpful bit in it.

def printFromMethod(i, s)
  puts "#{i} bottles of beer" + s
end

99.downto(1) do |bottles|
  printFromMethod(bottles, " on the wall.")
  printFromMethod(bottles, ".")
  puts "Take one down and pass it around."
  printFromMethod(bottles - 1, " on the wall.")
  puts ""
end
-- 
Posted via http://www.ruby-forum.com/.