20 21 22 23 24
# File 'lib/extract.rb', line 20 def fact return 1 if self == 0 return self if self <= 2 self.to_i * (self.to_i-1).fact end