Integer
ruby/spec describes 70 methods in core/integer, and Metorex implements 69 of them. The parameters are what Method#parameters answers under Metorex.
Integer#%: implemented, parameters[[:req]]. Returnsselfmodulootheras a real numeric (Integer, Float, or Rational).Integer#&: implemented, parameters[[:req]]. Bitwise AND; each bit in the result is 1 if both corresponding bits inselfandotherare 1, 0 otherwise:Integer#*: implemented, parameters[[:req]]. Returns the numeric product ofselfandother:Integer#**: implemented, parameters[[:req]]. Returnsselfraised to the powerexponent:Integer#+: implemented, parameters[[:req]]. Returns the sum ofselfandother:Integer#-: implemented, parameters[[:req]]. Returns the difference ofselfandother:Integer#-@: implemented, parameters[]. Returnsself, negated:Integer#/: implemented, parameters[[:req]]. Returns the quotient ofselfandother.Integer#<: implemented, parameters[[:req]]. Returns whether the value ofselfis less than the value ofother;othermust be numeric, but may not be Complex:Integer#<<: implemented, parameters[[:req]]. Returnsselfwith bits shiftedcountpositions to the left, or to the right ifcountis negative:Integer#<=: implemented, parameters[[:req]]. Returns whether the value ofselfis less than or equal to the value ofother;othermust be numeric, but may not be Complex:Integer#<=>: implemented, parameters[[:req]]. Comparesselfandother.Integer#==: implemented, parameters[[:req]]. Returnstrueifselfis numerically equal toother;falseotherwise.Integer#===: implemented, parameters[[:req]]. Returnstrueifselfis numerically equal toother;falseotherwise.Integer#>: implemented, parameters[[:req]]. Returnstrueif the value ofselfis greater than that ofother:Integer#>=: implemented, parameters[[:req]]. Returnstrueif the value ofselfis greater than or equal to that ofother:Integer#>>: implemented, parameters[[:req]]. Returnsselfwith bits shiftedcountpositions to the right, or to the left ifcountis negative:Integer#[]: implemented, parameters[[:rest]]. Returns a slice of bits fromself.Integer#^: implemented, parameters[[:req]]. Bitwise EXCLUSIVE OR; each bit in the result is 1 if the corresponding bits inselfandotherare different, 0 otherwise:Integer#abs: implemented, parameters[]. Returns the absolute value ofself. An example calling it.Integer#allbits?: implemented, parameters[[:req]]. Returnstrueif all bits that are set (=1) inmaskare also set inself; returnsfalseotherwise. An example calling it.Integer#anybits?: implemented, parameters[[:req]]. Returnstrueif any bit that is set (=1) inmaskis also set inself; returnsfalseotherwise. An example calling it.Integer#bit_count: not implemented.Integer#bit_length: implemented, parameters[[:rest, :args]]. Returns the number of bits of the value ofself, which is the bit position of the highest-order bit that is different from the sign bit (where the least significant bit has bit position 1). An example calling it.Integer#ceil: implemented, parameters[[:opt, :digits]]. Returns an integer that is a "ceiling" value forself, as specified by the givenndigits, which must be an integer-convertible object. An example calling it.Integer#ceildiv: implemented, parameters[[:rest, :args]]. Returns the result of divisionselfbynumeric. An example calling it.Integer#chr: implemented, parameters[[:rest]]. Returns a 1-character string containing the character represented by the value ofself, according to the givenencoding. An example calling it.Integer#coerce: implemented, parameters[[:req, :other]]. Returns an array with both anumericand aintrepresented as Integer objects or Float objects. An example calling it.Integer#denominator: implemented, parameters[]. Returns1. An example calling it.Integer#digits: implemented, parameters[[:rest]]. Returns an array of integers representing thebase-radix digits ofself; the first element of the array represents the least significant digit: An example calling it.Integer#div: implemented, parameters[[:req, :other]]. Performs integer division; returns the integer result of dividingselfbynumeric: An example calling it.Integer#divmod: implemented, parameters[[:req]]. Returns a 2-element array[q, r], whereq = (self/other).floor # Quotient. An example calling it.Integer#downto: implemented, parameters[[:req]]. Calls the given block with each integer value fromselfdown tolimit; returnsself: An example calling it.Integer#dup: implemented, parameters[]. Returnsself. An example calling it.Integer#eql?: implemented, parameters[[:req, :other]]. Returnstrueifselfandotherare the same type and have equal values. An example calling it.Integer#even?: implemented, parameters[]. Returnstrueifselfis an even number,falseotherwise. An example calling it.Integer#fdiv: implemented, parameters[[:req, :other]]. Returns the Float result of dividingselfbynumeric: An example calling it.Integer#floor: implemented, parameters[[:opt, :digits]]. Returns an integer that is a "floor" value forself, as specified by the givenndigits, which must be an integer-convertible object. An example calling it.Integer#gcd: implemented, parameters[[:req]]. Returns the greatest common divisor of the two integers. An example calling it.Integer#gcdlcm: implemented, parameters[[:req]]. Returns an array with the greatest common divisor and the least common multiple of the two integers, [gcd, lcm].Integer#inspect: implemented, parameters[[:rest]]. Returns a string containing the place-value representation ofselfin radixbase(in 2..36). An example calling it.Integer#integer?: implemented, parameters[]. Sinceselfis already an Integer, always returnstrue. An example calling it.Integer#lcm: implemented, parameters[[:req]]. Returns the least common multiple of the two integers. An example calling it.Integer#magnitude: implemented, parameters[]. Returns the absolute value ofself. An example calling it.Integer#modulo: implemented, parameters[[:req, :other]]. Returnsselfmodulootheras a real numeric (Integer, Float, or Rational). An example calling it.Integer#next: implemented, parameters[]. Returns the successor integer ofself(equivalent toself + 1): An example calling it.Integer#nobits?: implemented, parameters[[:req]]. Returnstrueif no bit that is set (=1) inmaskis also set inself; returnsfalseotherwise. An example calling it.Integer#numerator: implemented, parameters[]. Returnsself. An example calling it.Integer#odd?: implemented, parameters[]. Returnstrueifselfis an odd number,falseotherwise. An example calling it.Integer#ord: implemented, parameters[[:rest, :args]]. Returnsself; intended for compatibility to character literals in Ruby 1.9. An example calling it.Integer#pow: implemented, parameters[[:req, :exponent], [:rest, :rest]]. Returns (modular) exponentiation as: An example calling it.Integer#pred: implemented, parameters[]. Returns the predecessor ofself(equivalent toself - 1):Integer#rationalize: implemented, parameters[[:rest]]. Returns the value as a rational. An example calling it.Integer#remainder: implemented, parameters[[:req, :other]]. Returns the remainder after dividingselfbyother. An example calling it.Integer#round: implemented, parameters[[:opt, :digits]]. Returnsselfrounded to the nearest value with a precision ofndigitsdecimal digits. An example calling it.Integer#size: implemented, parameters[]. Returns the number of bytes in the machine representation ofself; the value is system-dependent: An example calling it.Integer.sqrt: implemented, parameters[[:req, :args]]. Returns the integer square root of the non-negative integern, which is the largest non-negative integer less than or equal to the square root ofnumeric. An example calling it.Integer#succ: implemented, parameters[]. Returns the successor integer ofself(equivalent toself + 1): An example calling it.Integer#times: implemented, parameters[]. Calls the given blockselftimes with each integer in(0..self-1): An example calling it.Integer#to_f: implemented, parameters[]. Convertsselfto a Float: An example calling it.Integer#to_i: implemented, parameters[]. Returnsself(which is already an Integer). An example calling it.Integer#to_int: implemented, parameters[]. Returnsself(which is already an Integer). An example calling it.Integer#to_r: implemented, parameters[]. Returns the value as a rational. An example calling it.Integer#to_s: implemented, parameters[[:rest]]. Returns a string containing the place-value representation ofselfin radixbase(in 2..36). An example calling it.Integer#truncate: implemented, parameters[[:opt, :digits]]. Returnsselftruncated (toward zero) to a precision ofndigitsdecimal digits. An example calling it.Integer.try_convert: implemented, parameters[[:req, :args]]. Ifobjectis an Integer object, returnsobject.Integer#upto: implemented, parameters[[:req]]. Calls the given block with each integer value fromselfup tolimit; returnsself: An example calling it.Integer#zero?: implemented, parameters[]. Returnstrueifselfhas a zero value,falseotherwise. An example calling it.Integer#|: implemented, parameters[[:req]]. Bitwise OR; each bit in the result is 1 if either corresponding bit inselforotheris 1, 0 otherwise:Integer#~: implemented, parameters[[:rest, :args]]. One's complement: returns the value ofselfwith each bit inverted.
The method summaries are the first sentences of Ruby's own documentation for each method, read from MRI 4.0.6's ri data. Ruby's documentation is distributed under Ruby's license.