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