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

February 2012
M T W T F S S
« Sep    
 12345
6789101112
13141516171819
20212223242526
272829  

Tags