From b0b01d8b05c90e58e418237d7d503cfd9d2e8508 Mon Sep 17 00:00:00 2001 From: nobu Date: Wed, 24 Sep 2008 08:44:47 +0000 Subject: * complex.c (Init_Complex), rational.c (Init_Rational): undefines default #allocate methods which call the allocater. git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@19523 b2dd03c8-39d4-4d8f-98ff-823fe69b080e --- rational.c | 1 + 1 file changed, 1 insertion(+) (limited to 'rational.c') diff --git a/rational.c b/rational.c index ad235498b..f5eb2c3ae 100644 --- a/rational.c +++ b/rational.c @@ -1488,6 +1488,7 @@ Init_Rational(void) rb_cRational = rb_define_class(RATIONAL_NAME, rb_cNumeric); rb_define_alloc_func(rb_cRational, nurat_s_alloc); + rb_undef_method(CLASS_OF(rb_cRational), "allocate"); #if 0 rb_define_private_method(CLASS_OF(rb_cRational), "new!", nurat_s_new_bang, -1); -- cgit