зеркало из https://github.com/github/ruby.git
enable Object#inspect doc.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@27024 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
Родитель
ab284526a4
Коммит
0471422beb
4
object.c
4
object.c
|
@ -409,11 +409,11 @@ inspect_obj(VALUE obj, VALUE str, int recur)
|
|||
* 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);
|
||||
|
|
Загрузка…
Ссылка в новой задаче