summaryrefslogtreecommitdiff
path: root/error.c
diff options
context:
space:
mode:
Diffstat (limited to 'error.c')
-rw-r--r--error.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/error.c b/error.c
index 5291d9e..3427310 100644
--- a/error.c
+++ b/error.c
@@ -313,7 +313,7 @@ void
Init_Exception()
{
eGlobalExit = rb_define_class("GlobalExit", cString);
- rb_define_method(eGlobalExit, "new", exc_s_new, -1);
+ rb_define_singleton_method(eGlobalExit, "new", exc_s_new, -1);
rb_define_method(eGlobalExit, "inspect", exc_inspect, 0);
eSystemExit = rb_define_class("SystemExit", eGlobalExit);