Class: Integer

Inherits:
Object show all
Defined in:
lib/shorthand.rb

Instance Method Summary collapse

Instance Method Details

#factObject



241
# File 'lib/shorthand.rb', line 241

def fact() f=1; (1..self).each{|i| f *= i}; f end