Class: Fixnum
- Defined in:
- lib/framework/rational.rb,
lib/framework/rational18.rb,
lib/framework/rationalME.rb,
lib/extensions/rexml/rexml/xpath_parser.rb,
lib/extensions/rhoxml/rexml/xpath_parser.rb
Instance Method Summary collapse
- #dclone ⇒ Object
-
#quo(other) ⇒ Object
(also: #rdiv)
If Rational is defined, returns a Rational number instead of a Fixnum.
Instance Method Details
#dclone ⇒ Object
16 |
# File 'lib/extensions/rexml/rexml/xpath_parser.rb', line 16 def dclone ; self ; end |
#quo(other) ⇒ Object Also known as: rdiv
If Rational is defined, returns a Rational number instead of a Fixnum.
488 489 490 |
# File 'lib/framework/rational18.rb', line 488 def quo(other) Rational.new!(self,1) / other end |