[前][次][番号順一覧][スレッド一覧]

ruby-changes:26533

From: nobu <ko1@a...>
Date: Tue, 25 Dec 2012 00:58:24 +0900 (JST)
Subject: [ruby-changes:26533] nobu:r38584 (trunk): error.c: NameError::message _dump

nobu	2012-12-25 00:58:15 +0900 (Tue, 25 Dec 2012)

  New Revision: 38584

  http://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=rev&revision=38584

  Log:
    error.c: NameError::message _dump
    
    * error.c (name_err_mesg_dump): adapt argument number.

  Modified files:
    trunk/error.c

Index: error.c
===================================================================
--- error.c	(revision 38583)
+++ error.c	(revision 38584)
@@ -1109,6 +1109,13 @@ name_err_mesg_to_str(VALUE obj) https://github.com/ruby/ruby/blob/trunk/error.c#L1109
 
 /* :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) https://github.com/ruby/ruby/blob/trunk/error.c#L1739
     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);

--
ML: ruby-changes@q...
Info: http://www.atdot.net/~ko1/quickml/

[前][次][番号順一覧][スレッド一覧]