class Integer

Public Instance Methods

factoral() click to toggle source
# File lib/math_probability.rb, line 51
def factoral
  self.downto(1).inject(:*)
end