diff options
author | nobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2012-12-24 15:58:15 +0000 |
---|---|---|
committer | nobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2012-12-24 15:58:15 +0000 |
commit | d2fa4d7118b4b064cd84a7b1dbf37ae0ff6c1883 (patch) | |
tree | a100c4de85e63f8d0da7e0fd1c39b17b14fa0bdf /error.c | |
parent | 4d33d02778cab46615f799e77db179a12c95613e (diff) |
error.c: NameError::message _dump
* error.c (name_err_mesg_dump): adapt argument number.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@38584 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'error.c')
-rw-r--r-- | error.c | 9 |
1 files changed, 8 insertions, 1 deletions
@@ -1109,6 +1109,13 @@ name_err_mesg_to_str(VALUE obj) /* :nodoc: */ static VALUE +name_err_mesg_dump(VALUE obj, VALUE limit) +{ + return name_err_mesg_to_str(obj); +} + +/* :nodoc: */ +static VALUE name_err_mesg_load(VALUE klass, VALUE str) { return str; @@ -1732,7 +1739,7 @@ Init_Exception(void) rb_define_singleton_method(rb_cNameErrorMesg, "!", rb_name_err_mesg_new, NAME_ERR_MESG_COUNT); rb_define_method(rb_cNameErrorMesg, "==", name_err_mesg_equal, 1); 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_method(rb_cNameErrorMesg, "_dump", name_err_mesg_dump, 1); rb_define_singleton_method(rb_cNameErrorMesg, "_load", name_err_mesg_load, 1); rb_eNoMethodError = rb_define_class("NoMethodError", rb_eNameError); rb_define_method(rb_eNoMethodError, "initialize", nometh_err_initialize, -1); |