summaryrefslogtreecommitdiffstats
path: root/rational.c
diff options
context:
space:
mode:
authornobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2008-09-24 08:44:47 +0000
committernobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2008-09-24 08:44:47 +0000
commitb0b01d8b05c90e58e418237d7d503cfd9d2e8508 (patch)
treee20390d40ba5629dbde0c32831d34af0048564be /rational.c
parent41e7bec9c6d5df2c9729c58bae5a64c0f2ec6ee2 (diff)
downloadruby-b0b01d8b05c90e58e418237d7d503cfd9d2e8508.tar.gz
ruby-b0b01d8b05c90e58e418237d7d503cfd9d2e8508.tar.xz
ruby-b0b01d8b05c90e58e418237d7d503cfd9d2e8508.zip
* 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
Diffstat (limited to 'rational.c')
-rw-r--r--rational.c1
1 files changed, 1 insertions, 0 deletions
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);