three ways to print the alphabet

Jul 27
2008

String methods:

"a".upto("z"){ |i| puts i }
a = String.new "a"
0.upto(0){ p a }
1.upto(25){ p a.next! }

Range method:

("a".."z").each{ |e| puts e }

Calendar

July 2010
M T W T F S S
« Apr    
 1234
567891011
12131415161718
19202122232425
262728293031  

Tags