From 9166dd9ec7189376a9c1cb3dda2e40628096d015 Mon Sep 17 00:00:00 2001 From: matz Date: Sun, 16 Aug 2009 22:28:48 +0000 Subject: * numeric.c (num_imaginary): num#i to return imaginary counterpart of the given numeric. * complex.c (Init_Complex): undef #i for complex numbers. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@24561 b2dd03c8-39d4-4d8f-98ff-823fe69b080e --- complex.c | 1 + 1 file changed, 1 insertion(+) (limited to 'complex.c') diff --git a/complex.c b/complex.c index ee281ba819..d32ecfd3ca 100644 --- a/complex.c +++ b/complex.c @@ -1906,6 +1906,7 @@ Init_Complex(void) rb_undef_method(rb_cComplex, "round"); rb_undef_method(rb_cComplex, "step"); rb_undef_method(rb_cComplex, "truncate"); + rb_undef_method(rb_cComplex, "i"); #if 0 /* NUBY */ rb_undef_method(rb_cComplex, "//"); -- cgit v1.2.3