Complex
ruby/spec describes 46 methods in core/complex, and Metorex implements 44 of them. The parameters are what Method#parameters answers under Metorex.
Complex#*: implemented, parameters[[:req]]. Returns the numeric product ofselfandother:Complex#**: implemented, parameters[[:req]]. Returnsselfraised to the powerexponent:Complex#+: implemented, parameters[[:req]]. Returns the sum ofselfandother:Complex#-: implemented, parameters[[:req]]. Returns the difference ofselfandother:Complex#-@: implemented, parameters[]. Returnsself, negated, which is the negation of each of its parts:Complex#/: implemented, parameters[[:req]]. Returns the quotient ofselfandother:Complex#<=>: implemented, parameters[[:req]]. Comparesselfandother.Complex#==: implemented, parameters[[:req]]. Returnstrueifself.real == object.realandself.imag == object.imag:Complex#abs: implemented, parameters[]. Returns the absolute value (magnitude) forself; see polar coordinates: An example calling it.Complex#abs2: implemented, parameters[]. Returns square of the absolute value (magnitude) forself; see polar coordinates: An example calling it.Complex#angle: implemented, parameters[]. Returns the argument (angle) forselfin radians; see polar coordinates: An example calling it.Complex#arg: implemented, parameters[]. Returns the argument (angle) forselfin radians; see polar coordinates: An example calling it.Complex#coerce: implemented, parameters[[:req, :other]]. Returns a 2-element array containing two numeric elements, formed from the two operandsselfandother, of a common compatible type. An example calling it.Complex#conj: implemented, parameters[]. Returns the conjugate ofself,Complex.rect(self.imag, self.real):Complex#conjugate: implemented, parameters[]. Returns the conjugate ofself,Complex.rect(self.imag, self.real): An example calling it.Complex#denominator: implemented, parameters[]. Returns the denominator ofself, which is the least common multiple ofself.real.denominatorandself.imag.denominator: An example calling it.Complex#eql?: implemented, parameters[[:req, :other]]. Returnstrueifselfandotherare the same type and have equal values. An example calling it.Complex#fdiv: implemented, parameters[[:req, :other]]. ReturnsComplex.rect(self.real/numeric, self.imag/numeric): An example calling it.Complex#finite?: implemented, parameters[]. Returnstrueif bothself.real.finite?andself.imag.finite?are true,falseotherwise: An example calling it.Complex#hash: implemented, parameters[]. Returns the integer hash value forself. An example calling it.Complex#imag: implemented, parameters[]. Returns the imaginary value forself:Complex#imaginary: implemented, parameters[]. Returns the imaginary value forself: An example calling it.Complex#infinite?: implemented, parameters[]. Returns1if eitherself.real.infinite?orself.imag.infinite?is true,nilotherwise: An example calling it.Complex#inspect: implemented, parameters[]. Returns a string representation ofself: An example calling it.Complex#integer?: implemented, parameters[]. Returnstrueifselfis an Integer. An example calling it.Complex#magnitude: implemented, parameters[]. Returns the absolute value (magnitude) forself; see polar coordinates: An example calling it.Complex#marshal_dump: implemented, parameters[].Complex#negative?: not implemented. Returnstrueifselfis less than 0,falseotherwise. An example calling it.Complex#numerator: implemented, parameters[]. Returns the Complex object created from the numerators of the real and imaginary parts ofself, after converting each part to the lowest common denominator of the two: An example calling it.Complex#phase: implemented, parameters[]. Returns the argument (angle) forselfin radians; see polar coordinates: An example calling it.Complex#polar: implemented, parameters[]. Returns the array[self.abs, self.arg]: An example calling it.Complex.polar: implemented, parameters[[:req, :args]]. Returns a new Complex object formed from the arguments, each of which must be an instance of Numeric, or an instance of one of its subclasses: Complex, Float, Integer, Rational. An example calling it.Complex#positive?: not implemented. Returnstrueifselfis greater than 0,falseotherwise. An example calling it.Complex#quo: implemented, parameters[[:req, :other]]. Returns the quotient ofselfandother: An example calling it.Complex#rationalize: implemented, parameters[[:rest]]. Returns a Rational object whose value is exactly or approximately equivalent to that ofself.real. An example calling it.Complex#real: implemented, parameters[]. Returns the real value forself: An example calling it.Complex#real?: implemented, parameters[]. Returnsfalse; for compatibility with Numeric#real?. An example calling it.Complex#rect: implemented, parameters[]. Returns a new Complex object formed from the arguments, each of which must be an instance of Numeric, or an instance of one of its subclasses: Complex, Float, Integer, Rational; see Rectangular Coordinates: An example calling it.Complex.rect: implemented, parameters[[:req, :args]]. Returns a new Complex object formed from the arguments, each of which must be an instance of Numeric, or an instance of one of its subclasses: Complex, Float, Integer, Rational; see Rectangular Coordinates: An example calling it.Complex#rectangular: implemented, parameters[]. Returns the array[self.real, self.imag]: An example calling it.Complex.rectangular: implemented, parameters[[:req, :args]]. Returns a new Complex object formed from the arguments, each of which must be an instance of Numeric, or an instance of one of its subclasses: Complex, Float, Integer, Rational; see Rectangular Coordinates:Complex#to_c: implemented, parameters[]. Returnsself. An example calling it.Complex#to_f: implemented, parameters[]. Returns the value ofself.realas a Float, if possible: An example calling it.Complex#to_i: implemented, parameters[]. Returns the value ofself.realas an Integer, if possible: An example calling it.Complex#to_r: implemented, parameters[]. Returns the value ofself.realas a Rational, if possible: An example calling it.Complex#to_s: implemented, parameters[]. Returns a string representation ofself: An example calling it.
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.