summaryrefslogtreecommitdiffhomepage
path: root/src/numeric.c
diff options
context:
space:
mode:
authorYukihiro "Matz" Matsumoto <[email protected]>2013-03-30 23:02:15 +0900
committerYukihiro "Matz" Matsumoto <[email protected]>2013-03-30 23:02:15 +0900
commit5cc6832626d184afb1f223c29171c89b7409d967 (patch)
tree210ea3616ca63b726181b958442d451bbbcbb078 /src/numeric.c
parentcb5d690ece13577163580599b5ad9b3d59e83962 (diff)
downloadmruby-5cc6832626d184afb1f223c29171c89b7409d967.tar.gz
mruby-5cc6832626d184afb1f223c29171c89b7409d967.zip
undef Integer#new; ref #1111
Diffstat (limited to 'src/numeric.c')
-rw-r--r--src/numeric.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/numeric.c b/src/numeric.c
index e026cc359..8a0ba2ee8 100644
--- a/src/numeric.c
+++ b/src/numeric.c
@@ -1412,6 +1412,7 @@ mrb_init_numeric(mrb_state *mrb)
/* Integer Class */
integer = mrb_define_class(mrb, "Integer", numeric);
+ mrb_undef_class_method(mrb, integer, "new");
fixnum = mrb->fixnum_class = mrb_define_class(mrb, "Fixnum", integer);
mrb_undef_class_method(mrb, fixnum, "new");