mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
* object.c (rb_obj_inspect): fixed rdoc about the case that to_s
is called. [ruby-core:24425] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@25427 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
parent
d9f27b5609
commit
b20521ddc5
2 changed files with 7 additions and 3 deletions
|
@ -1,3 +1,8 @@
|
|||
Wed Oct 21 19:32:52 2009 Nobuyoshi Nakada <nobu@ruby-lang.org>
|
||||
|
||||
* 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@ruby-lang.org>
|
||||
|
||||
* test/logger/test_logger.rb (TestLogDevice#test_write): check
|
||||
|
|
5
object.c
5
object.c
|
@ -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)
|
||||
{
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue