Sha256: abad6df4de02780f81d094ef993357cbd2c333f90314d197d605839846d7b5cb

Contents?: true

Size: 1.25 KB

Versions: 12

Compression:

Stored size: 1.25 KB

Contents

o:$YARD::CodeObjects::MethodObject:@scope:
instance:@visibility:public:
@pathI"NameError#to_s:EF:@parameters[:@files[[I"error.c;T0:@current_file_has_commentsF:
@name:	to_s:@source_type:c:
@tags[:@docstringIC:YARD::Docstring"DProduce a nicely-formatted string representing the +NameError+.;F:@objectIu:YARD::StubProxyNameError#to_s;F:
@summary0:@ref_tags[;[o:YARD::Tags::OverloadTag
:@tag_nameI"
overload;F:
@text0;;:@types0:@signatureI"	to_s;F;IC;";F;Iu;NameError#to_s;F;0;[;[o:YARD::Tags::Tag
;I"return;F;I";F;0;[I"String;F;0:	@allI"@return [String];F;[;Iu;NameError#to_s;F; I"hProduce a nicely-formatted string representing the +NameError+.


@overload to_s
  @return [String];F:@namespaceIu;NameError;F:@docstring_extra0:@sourceI"Â/*
 * call-seq:
 *  name_error.to_s   -> string
 *
 * Produce a nicely-formatted string representing the +NameError+.
 */

static VALUE
name_err_to_s(VALUE exc)
{
    VALUE mesg = rb_attr_get(exc, rb_intern("mesg"));
    VALUE str = mesg;

    if (NIL_P(mesg)) return rb_class_name(CLASS_OF(exc));
    StringValue(str);
    if (str != mesg) {
    rb_iv_set(exc, "mesg", mesg = str);
    }
    if (OBJ_TAINTED(exc)) OBJ_TAINT(mesg);
    return mesg;
};F

Version data entries

12 entries across 12 versions & 2 rubygems

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