ruby-changes:13643
From: nobu <ko1@a...>
Date: Wed, 21 Oct 2009 19:33:14 +0900 (JST)
Subject: [ruby-changes:13643] Ruby:r25427 (trunk): * object.c (rb_obj_inspect): fixed rdoc about the case that to_s
nobu 2009-10-21 19:32:53 +0900 (Wed, 21 Oct 2009) New Revision: 25427 http://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=rev&revision=25427 Log: * object.c (rb_obj_inspect): fixed rdoc about the case that to_s is called. [ruby-core:24425] Modified files: trunk/ChangeLog trunk/object.c Index: ChangeLog =================================================================== --- ChangeLog (revision 25426) +++ ChangeLog (revision 25427) @@ -1,3 +1,8 @@ +Wed Oct 21 19:32:52 2009 Nobuyoshi Nakada <nobu@r...> + + * object.c (rb_obj_inspect): fixed rdoc about the case that to_s + is called. [ruby-core:24425] + Wed Oct 21 08:17:17 2009 Nobuyoshi Nakada <nobu@r...> * test/logger/test_logger.rb (TestLogDevice#test_write): check Index: object.c =================================================================== --- object.c (revision 25426) +++ object.c (revision 25427) @@ -367,14 +367,13 @@ * obj.inspect => string * * Returns a string containing a human-readable representation of - * <i>obj</i>. If not overridden, uses the <code>to_s</code> method to - * generate the string. + * <i>obj</i>. If not overridden and no instance variables, uses the + * <code>to_s</code> method to generate the string. * * [ 1, 2, 3..4, 'five' ].inspect #=> "[1, 2, 3..4, \"five\"]" * Time.new.inspect #=> "2008-03-08 19:43:39 +0900" */ - static VALUE rb_obj_inspect(VALUE obj) { -- ML: ruby-changes@q... Info: http://www.atdot.net/~ko1/quickml/