@@ -186,12 +186,6 @@ class Rational < Numeric
186186 #
187187 def abs : () -> Rational
188188
189- def abs2 : () -> Rational
190-
191- def angle : () -> (Integer | Float)
192-
193- alias arg angle
194-
195189 # <!--
196190 # rdoc-file=rational.c
197191 # - rat.ceil([ndigits]) -> integer or rational
@@ -220,10 +214,6 @@ class Rational < Numeric
220214
221215 def coerce : (Numeric) -> [ Numeric, Numeric ]
222216
223- def conj : () -> Rational
224-
225- def conjugate : () -> Rational
226-
227217 # <!--
228218 # rdoc-file=rational.c
229219 # - rat.denominator -> integer
@@ -237,8 +227,6 @@ class Rational < Numeric
237227 #
238228 def denominator : () -> Integer
239229
240- def div : (Numeric) -> Integer
241-
242230 def divmod : (Integer | Float | Rational) -> [ Integer, Rational ]
243231 | (Numeric) -> [ Numeric, Numeric ]
244232
@@ -254,8 +242,6 @@ class Rational < Numeric
254242 #
255243 def fdiv : (Numeric) -> Float
256244
257- def finite? : () -> bool
258-
259245 # <!--
260246 # rdoc-file=rational.c
261247 # - rat.floor([ndigits]) -> integer or rational
@@ -289,8 +275,6 @@ class Rational < Numeric
289275 #
290276 def hash : () -> Integer
291277
292- def infinite? : () -> Integer?
293-
294278 # <!--
295279 # rdoc-file=rational.c
296280 # - rat.inspect -> string
@@ -303,8 +287,6 @@ class Rational < Numeric
303287 #
304288 def inspect : () -> String
305289
306- def integer? : () -> bool
307-
308290 # <!-- rdoc-file=rational.c -->
309291 # Returns the absolute value of `rat`.
310292 #
@@ -337,8 +319,6 @@ class Rational < Numeric
337319 #
338320 def numerator : () -> Integer
339321
340- alias phase angle
341-
342322 def polar : () -> [ Rational, Integer | Float ]
343323
344324 # <!--
@@ -377,14 +357,8 @@ class Rational < Numeric
377357 #
378358 def rationalize : (?Numeric eps) -> Rational
379359
380- def real : () -> Rational
381-
382- def real? : () -> true
383-
384360 def rect : () -> [ Rational, Numeric ]
385361
386- alias rectangular rect
387-
388362 def remainder : (Float) -> Float
389363 | (Numeric) -> Rational
390364
@@ -431,8 +405,6 @@ class Rational < Numeric
431405 | (?by: Numeric, ?to: Numeric) { (Rational) -> void } -> self
432406 | (?by: Numeric, ?to: Numeric) -> Enumerator[Rational, self ]
433407
434- def to_c : () -> Complex
435-
436408 # <!--
437409 # rdoc-file=rational.c
438410 # - rat.to_f -> float
@@ -462,8 +434,6 @@ class Rational < Numeric
462434 #
463435 def to_i : () -> Integer
464436
465- alias to_int to_i
466-
467437 # <!--
468438 # rdoc-file=rational.c
469439 # - rat.to_r -> self
@@ -512,6 +482,4 @@ class Rational < Numeric
512482 #
513483 def truncate : () -> Integer
514484 | (Integer ndigits) -> (Integer | Rational)
515-
516- def zero? : () -> bool
517485end
0 commit comments