Class: Fixnum
- Inherits:
-
Object
- Object
- Fixnum
- Defined in:
- lib/rational.rb,
lib/rationalME.rb
Instance Method Summary collapse
-
#quo(other) ⇒ Object
(also: #rdiv)
If Rational is defined, returns a Rational number instead of a Fixnum.
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 |