Class: Float
- Inherits:
-
Object
- Object
- Float
- Defined in:
- lib/infinity/zero.rb
Instance Method Summary collapse
Instance Method Details
#/(num) ⇒ Object
11 12 13 14 |
# File 'lib/infinity/zero.rb', line 11 def /(num) return Infinity if num == 0 self.__divide(num) end |
#__divide ⇒ Object
10 |
# File 'lib/infinity/zero.rb', line 10 alias_method "__divide", "/" |