summaryrefslogtreecommitdiff
path: root/error.c
diff options
context:
space:
mode:
authornobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2004-01-19 08:39:43 +0000
committernobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2004-01-19 08:39:43 +0000
commit8e877fc51727feed6c07292c3845970103ec109f (patch)
tree5d10908c09613d35d823805e6b791fa669fd4a10 /error.c
parent8ccba1d12f55174437f39fb2bae2e0009e2cb11e (diff)
downloadruby-8e877fc51727feed6c07292c3845970103ec109f.tar.gz
* error.c (NameError::message): internal use only.
* eval.c (rb_method_missing): use hidden constant. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@5500 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'error.c')
-rw-r--r--error.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/error.c b/error.c
index 5de902888c..14e622917b 100644
--- a/error.c
+++ b/error.c
@@ -682,7 +682,7 @@ name_err_mesg_mark(ptr)
/* :nodoc: */
static VALUE
-name_err_mesg_init(obj, mesg, recv, method)
+name_err_mesg_new(obj, mesg, recv, method)
VALUE obj, mesg, recv, method;
{
VALUE *ptr = ALLOC_N(VALUE, 3);
@@ -984,8 +984,8 @@ Init_Exception()
rb_define_method(rb_eNameError, "initialize", name_err_initialize, -1);
rb_define_method(rb_eNameError, "name", name_err_name, 0);
rb_define_method(rb_eNameError, "to_s", name_err_to_s, 0);
- rb_define_singleton_method(rb_eNameError, "message", name_err_mesg_init, 3);
- rb_cNameErrorMesg = rb_define_class_under(rb_eNameError, "Message", rb_cData);
+ rb_cNameErrorMesg = rb_define_class_under(rb_eNameError, "message", rb_cData);
+ rb_define_singleton_method(rb_cNameErrorMesg, "!", name_err_mesg_new, 3);
rb_define_method(rb_cNameErrorMesg, "to_str", name_err_mesg_to_str, 0);
rb_define_method(rb_cNameErrorMesg, "_dump", name_err_mesg_to_str, 1);
rb_define_singleton_method(rb_cNameErrorMesg, "_load", name_err_mesg_load, 1);