Sha256: 3379046b8feb4e8df3ae4fe7b575c893c0acd6c137b7a9d511d5c2af0e11162c

Contents?: true

Size: 1.32 KB

Versions: 12

Compression:

Stored size: 1.32 KB

Contents

class Rational < Numeric
  ##% self.new!(Fixnum, Fixnum) -> Rational
  def self.new!(num, den = 1) Rational.new end
  ##% self.reduce(Fixnum, Fixnum) -> Rational
  def self.reduce(num, den = 1) Rational.new end

  ##% %(Float) -> Float
  ##% %(Numeric) -> Rational
  def %(other) 0.0 || Rational.new end
  ##% "*"(Float) -> Float
  ##% "*"(Numeric) -> Rational
  def *(other) 0.0 || Rational.new end
  ##% **(Integer) -> Rational
  ##% **(Numeric) -> Float
  def **(other) 0.0 || Rational.new end
  ##% +(Float) -> Float
  ##% +(Numeric) -> Rational
  def +(other) 0.0 || Rational.new end
  ##% -(Float) -> Float
  ##% -(Numeric) -> Rational
  def -(other) 0.0 || Rational.new end
  ##% /(Float) -> Float
  ##% /(Numeric) -> Rational
  def /(other) 0.0 || Rational.new end
  ##% "<=>"(a) -> Integer
  def <=>(other) 0 end
  ##% abs() -> Rational
  def abs() self end
  ##% denominator() -> Fixnum
  def denominator() 0 end
  ##% divmod(Float) -> (Fixnum, Float)
  ##% divmod(Numeric) -> (Fixnum, Rational)
  def divmod(other) [0, 0.0] || [0, Rational.new] end
  ##% numerator() -> Fixnum
  def numerator() 0 end
  ##% to_f() -> Float
  def to_f() 0.0 end
  ##% to_i() -> Integer
  def to_i() 0 end
  ##% to_s() -> String
  def to_s() '' end
end

module Kernel
  ##% Rational(Fixnum, Fixnum) -> Rational
  def Rational(num, den = 1) Rational.new end
end

Version data entries

12 entries across 12 versions & 1 rubygems

Version Path
rsense-core-0.6.6 stubs/1.8/rational.rb
rsense-core-0.6.5 stubs/1.8/rational.rb
rsense-core-0.6.4 stubs/1.8/rational.rb
rsense-core-0.6.2 stubs/1.8/rational.rb
rsense-core-0.6.1 stubs/1.8/rational.rb
rsense-core-0.6.0 stubs/1.8/rational.rb
rsense-core-0.5.9 stubs/1.8/rational.rb
rsense-core-0.5.8 stubs/1.8/rational.rb
rsense-core-0.5.6 stubs/1.8/rational.rb
rsense-core-0.5.2 stubs/1.8/rational.rb
rsense-core-0.5.1 stubs/1.8/rational.rb
rsense-core-0.5.0 stubs/1.8/rational.rb