ruby-changes:15146
From: akr <ko1@a...>
Date: Tue, 23 Mar 2010 23:00:52 +0900 (JST)
Subject: [ruby-changes:15146] Ruby:r27024 (trunk): enable Object#inspect doc.
akr 2010-03-23 23:00:35 +0900 (Tue, 23 Mar 2010) New Revision: 27024 http://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=rev&revision=27024 Log: enable Object#inspect doc. Modified files: trunk/object.c Index: object.c =================================================================== --- object.c (revision 27023) +++ object.c (revision 27024) @@ -409,11 +409,11 @@ * Time.new.inspect #=> "2008-03-08 19:43:39 +0900" */ -extern int rb_obj_basic_to_s_p(VALUE); - static VALUE rb_obj_inspect(VALUE obj) { + extern int rb_obj_basic_to_s_p(VALUE); + if (TYPE(obj) == T_OBJECT && rb_obj_basic_to_s_p(obj)) { int has_ivar = 0; VALUE *ptr = ROBJECT_IVPTR(obj); -- ML: ruby-changes@q... Info: http://www.atdot.net/~ko1/quickml/