diff options
author | nobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2009-10-21 10:32:53 +0000 |
---|---|---|
committer | nobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2009-10-21 10:32:53 +0000 |
commit | dccfafbb3f47bb9e2f578409fc3d1585c25387ee (patch) | |
tree | 80dab0355205bf84b746b980552a60d166b4bdec /object.c | |
parent | 8ccd21914f6cccc7f0e4ee5f09f1340764041171 (diff) | |
download | ruby-dccfafbb3f47bb9e2f578409fc3d1585c25387ee.tar.gz ruby-dccfafbb3f47bb9e2f578409fc3d1585c25387ee.tar.xz ruby-dccfafbb3f47bb9e2f578409fc3d1585c25387ee.zip |
* object.c (rb_obj_inspect): fixed rdoc about the case that to_s
is called. [ruby-core:24425]
git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@25427 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'object.c')
-rw-r--r-- | object.c | 5 |
1 files changed, 2 insertions, 3 deletions
@@ -367,14 +367,13 @@ inspect_obj(VALUE obj, VALUE str, int recur) * 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) { |