def factorial( n )
if !(n.is_a? Integer)
raise ArgumentError, "argument must be a positive integer"
...
Ruby A simple factorial program.
by lordzoner.myopenid.com,
November 12, 2008 02:16,
9 refactorings, tagged with short, ruby, factorial
I'm quite new to Ruby, and ...