Class: Integer
- Inherits:
-
Object
- Object
- Integer
- Defined in:
- lib/math_probability.rb
Instance Method Summary collapse
Instance Method Details
#factoral ⇒ Object
51 52 53 |
# File 'lib/math_probability.rb', line 51 def factoral self.downto(1).inject(:*) end |