Sha256: 1220df1b507142340cb074271fd500fed67c1938b72cd058fb3db4d4e231fd63

Contents?: true

Size: 1.76 KB

Versions: 12

Compression:

Stored size: 1.76 KB

Contents

o:$YARD::CodeObjects::MethodObject:
@name:	to_s:@docstringIC:YARD::Docstring"ôReturns a string representing <i>obj</i>. The default
<code>to_s</code> prints the object's class and an encoding of the
object id. As a special case, the top-level object that is the
initial execution context of Ruby programs returns ``main.''
:@objectu:YARD::StubProxyObject#to_s:
@summary0:	@all"Returns a string representing <i>obj</i>. The default
<code>to_s</code> prints the object's class and an encoding of the
object id. As a special case, the top-level object that is the
initial execution context of Ruby programs returns ``main.''


@overload to_s
  @return [String]:@ref_tags[:
@tags[o:YARD::Tags::OverloadTag
;
u;Object#to_s;;;IC;	"
;
u;Object#to_s;0;
"@return [String];[;[o:YARD::Tags::Tag
;
0;0:@types["String:
@text":@tag_name"return;0:@parameters[;0:@signature"	to_s;"
overload:@current_file_has_commentsF:@scope:
instance;[:@docstring_extra0:@files[["
object.c0:@namespaceu;Object:
@path"Object#to_s;[:@visibility:public:@source"·/*
 *  call-seq:
 *     obj.to_s    => string
 *  
 *  Returns a string representing <i>obj</i>. The default
 *  <code>to_s</code> prints the object's class and an encoding of the
 *  object id. As a special case, the top-level object that is the
 *  initial execution context of Ruby programs returns ``main.''
 */

VALUE
rb_any_to_s(obj)
    VALUE obj;
{
    const char *cname = rb_obj_classname(obj);
    size_t len;
    VALUE str;

    len = strlen(cname)+6+16;
    str = rb_str_new(0, len); /* 6:tags 16:addr */
    snprintf(RSTRING(str)->ptr, len+1, "#<%s:0x%lx>", cname, obj);
    RSTRING(str)->len = strlen(RSTRING(str)->ptr);
    if (OBJ_TAINTED(obj)) OBJ_TAINT(str);

    return str;
}:@source_type:c

Version data entries

12 entries across 12 versions & 2 rubygems

Version Path
pry-doc-0.4.4 lib/pry-doc/core_docs_18/objects/Object/to_s_i.dat
pry-doc-0.4.3 lib/pry-doc/core_docs_18/objects/Object/to_s_i.dat
pry-doc-0.4.2 lib/pry-doc/core_docs_18/objects/Object/to_s_i.dat
pry-doc-0.4.1 lib/pry-doc/core_docs_18/objects/Object/to_s_i.dat
pry-doc-0.4.0 lib/pry-doc/core_docs_18/objects/Object/to_s_i.dat
pry-doc-0.3.0 lib/pry-doc/core_docs_18/objects/Object/to_s_i.dat
pry-doc-0.2.4pre1 lib/pry-doc/core_docs_18/objects/Object/to_s_i.dat
pry-doc-0.2.3pre1 lib/pry-doc/core_docs_18/objects/Object/to_s_i.dat
pry-doc-0.2.1 lib/pry-doc/core_docs_18/objects/Object/to_s_i.dat
pry-doc-0.2.0 lib/pry-doc/core_docs_18/objects/Object/to_s_i.dat
pry-doc-0.1.5pre1 lib/pry-doc/core_docs_18/objects/Object/to_s_i.dat
pry-0.6.9pre1-i386-mingw32 lib/pry/core_docs_18/objects/Object/to_s_i.dat