mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
Rename nucomp_false s nucomp_real_p_m
This commit is contained in:
parent
adcbae8d49
commit
63663bb459
1 changed files with 2 additions and 2 deletions
|
@ -1272,7 +1272,7 @@ rb_complex_conjugate(VALUE self)
|
||||||
* Returns false, even if the complex number has no imaginary part.
|
* Returns false, even if the complex number has no imaginary part.
|
||||||
*/
|
*/
|
||||||
static VALUE
|
static VALUE
|
||||||
nucomp_false(VALUE self)
|
nucomp_real_p_m(VALUE self)
|
||||||
{
|
{
|
||||||
return Qfalse;
|
return Qfalse;
|
||||||
}
|
}
|
||||||
|
@ -2385,7 +2385,7 @@ Init_Complex(void)
|
||||||
rb_define_method(rb_cComplex, "conjugate", rb_complex_conjugate, 0);
|
rb_define_method(rb_cComplex, "conjugate", rb_complex_conjugate, 0);
|
||||||
rb_define_method(rb_cComplex, "conj", rb_complex_conjugate, 0);
|
rb_define_method(rb_cComplex, "conj", rb_complex_conjugate, 0);
|
||||||
|
|
||||||
rb_define_method(rb_cComplex, "real?", nucomp_false, 0);
|
rb_define_method(rb_cComplex, "real?", nucomp_real_p_m, 0);
|
||||||
|
|
||||||
rb_define_method(rb_cComplex, "numerator", nucomp_numerator, 0);
|
rb_define_method(rb_cComplex, "numerator", nucomp_numerator, 0);
|
||||||
rb_define_method(rb_cComplex, "denominator", nucomp_denominator, 0);
|
rb_define_method(rb_cComplex, "denominator", nucomp_denominator, 0);
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue