Class: Fixnum

Inherits:
Object
  • Object
show all
Defined in:
lib/rational.rb,
lib/rationalME.rb

Instance Method Summary collapse

Instance Method Details

#quo(other) ⇒ Object Also known as: rdiv

If Rational is defined, returns a Rational number instead of a Fixnum.



486
487
488
# File 'lib/rationalME.rb', line 486

def quo(other)
  Rational.new!(self,1) / other
end