Class: Fixnum

Inherits:
Object
  • Object
show all
Defined in:
lib/infinity/zero.rb

Instance Method Summary collapse

Instance Method Details

#/(num) ⇒ Object



4
5
6
7
# File 'lib/infinity/zero.rb', line 4

def /(num)
  return Infinity if num == 0
  self.__divide(num)
end

#__divideObject



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

alias_method "__divide", "/"