Sha256: ac67c862f5fd3e3516f7f1bc449ca6e35b82423032eb775934176ced86eb753e
Contents?: true
Size: 1.78 KB
Versions: 12
Compression:
Stored size: 1.78 KB
Contents
o:$YARD::CodeObjects::MethodObject: @name: to_s:@docstringIC:YARD::Docstring"gShows the unique identifier for this proc, along with an indication of where the proc was defined. :@objectu:YARD::StubProxyProc#to_s: @summary0: @all"�Shows the unique identifier for this proc, along with an indication of where the proc was defined. @overload to_s @return [String]:@ref_tags[: @tags[o:YARD::Tags::OverloadTag ; u;Proc#to_s;;;IC; " ; u;Proc#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[["eval.c0:@namespaceu; Proc: @path"Proc#to_s;[:@visibility:public:@source"/* * call-seq: * prc.to_s => string * * Shows the unique identifier for this proc, along with * an indication of where the proc was defined. */ static VALUE proc_to_s(self) VALUE self; { struct BLOCK *data; NODE *node; const char *cname = rb_obj_classname(self); const int w = (sizeof(VALUE) * CHAR_BIT) / 4; long len = strlen(cname)+6+w; /* 6:tags 16:addr */ VALUE str; Data_Get_Struct(self, struct BLOCK, data); if ((node = data->frame.node) || (node = data->body)) { len += strlen(node->nd_file) + 2 + (SIZEOF_LONG*CHAR_BIT-NODE_LSHIFT)/3; str = rb_str_new(0, len); snprintf(RSTRING(str)->ptr, len+1, "#<%s:0x%.*lx@%s:%d>", cname, w, (VALUE)data->body, node->nd_file, nd_line(node)); } else { str = rb_str_new(0, len); snprintf(RSTRING(str)->ptr, len+1, "#<%s:0x%.*lx>", cname, w, (VALUE)data->body); } RSTRING(str)->len = strlen(RSTRING(str)->ptr); if (OBJ_TAINTED(self)) OBJ_TAINT(str); return str; }:@source_type:c
Version data entries
12 entries across 12 versions & 2 rubygems