Monday, February 25, 2008

So I was messing around with Ruby...

As I try to learn a bit more about Ruby I was playing with the number objects. For some reason I wrote this....

98.downto(1) { | i | print "#{i.succ} bottles of beer on the wall, take one down pass it around #{i} bottles of beer on the wall\r\n"}

Maybe I had a flash back to my childhood or maybe I was just bored and had to write something semi-funny. Anyways it sure makes the song go by quickly.

Labels: ,

0 Comments:

Post a Comment

<< Home