Project

General

Profile

Feature #10376 » from_complex.c.patch

gogotanaka (Kazuki Tanaka), 10/13/2014 04:45 AM

View differences:

complex.c
rb_undef_method(rb_cComplex, "truncate");
rb_undef_method(rb_cComplex, "i");
#if 0 /* NUBY */
rb_undef_method(rb_cComplex, "//");
#endif
rb_define_method(rb_cComplex, "real", nucomp_real, 0);
rb_define_method(rb_cComplex, "imaginary", nucomp_imag, 0);
rb_define_method(rb_cComplex, "imag", nucomp_imag, 0);
(1-1/2)