Class: Fixnum

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

Instance Method Details

#dcloneObject



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