Class: Float

Inherits:
Object
  • Object
show all
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

#__divideObject



10
# File 'lib/infinity/zero.rb', line 10

alias_method "__divide", "/"