Sha256: 7ef5d81e7a94d049f0cc4747da54ba2aaa84138fc668c06eba7fc9c2a4ea5db9

Contents?: true

Size: 1.77 KB

Versions: 12

Compression:

Stored size: 1.77 KB

Contents

o:$YARD::CodeObjects::MethodObject:
@name:exception:@docstringIC:YARD::Docstring"�With no argument, or if the argument is the same as the receiver,
return the receiver. Otherwise, create a new
exception object of the same class as the receiver, but with a
message equal to <code>string.to_str</code>.
:@objectu:YARD::StubProxyException#exception:
@summary0:	@all"With no argument, or if the argument is the same as the receiver,
return the receiver. Otherwise, create a new
exception object of the same class as the receiver, but with a
message equal to <code>string.to_str</code>.



@overload exception(string)
  @return [Exception, Exception]:@ref_tags[:
@tags[o:YARD::Tags::OverloadTag
;
u;Exception#exception;;;IC;	"
;
u;Exception#exception;0;
"#@return [Exception, Exception];[;[o:YARD::Tags::Tag
;
0;0:@types["Exception"Exception:
@text":@tag_name"return;0:@parameters[[:string0;0:@signature"exception(string);"
overload:@current_file_has_commentsF:@scope:
instance;[:@docstring_extra0:@files[["error.c0:@namespaceu;Exception:
@path"Exception#exception;[:@visibility:public:@source"z/*
 *  Document-method: exception
 *
 *  call-seq:
 *     exc.exception(string) -> an_exception or exc
 *  
 *  With no argument, or if the argument is the same as the receiver,
 *  return the receiver. Otherwise, create a new
 *  exception object of the same class as the receiver, but with a
 *  message equal to <code>string.to_str</code>.
 *     
 */

static VALUE
exc_exception(argc, argv, self)
    int argc;
    VALUE *argv;
    VALUE self;
{
    VALUE exc;

    if (argc == 0) return self;
    if (argc == 1 && self == argv[0]) return self;
    exc = rb_obj_clone(self);
    exc_initialize(argc, argv, exc);

    return exc;
}:@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/Exception/exception_i.dat
pry-doc-0.4.3 lib/pry-doc/core_docs_18/objects/Exception/exception_i.dat
pry-doc-0.4.2 lib/pry-doc/core_docs_18/objects/Exception/exception_i.dat
pry-doc-0.4.1 lib/pry-doc/core_docs_18/objects/Exception/exception_i.dat
pry-doc-0.4.0 lib/pry-doc/core_docs_18/objects/Exception/exception_i.dat
pry-doc-0.3.0 lib/pry-doc/core_docs_18/objects/Exception/exception_i.dat
pry-doc-0.2.4pre1 lib/pry-doc/core_docs_18/objects/Exception/exception_i.dat
pry-doc-0.2.3pre1 lib/pry-doc/core_docs_18/objects/Exception/exception_i.dat
pry-doc-0.2.1 lib/pry-doc/core_docs_18/objects/Exception/exception_i.dat
pry-doc-0.2.0 lib/pry-doc/core_docs_18/objects/Exception/exception_i.dat
pry-doc-0.1.5pre1 lib/pry-doc/core_docs_18/objects/Exception/exception_i.dat
pry-0.6.9pre1-i386-mingw32 lib/pry/core_docs_18/objects/Exception/exception_i.dat