Sha256: 9f4634bb48747957b1c8b59ac9b9f8a89c52b316701f85e8147dcef8a4566d60

Contents?: true

Size: 1.77 KB

Versions: 12

Compression:

Stored size: 1.77 KB

Contents

o:$YARD::CodeObjects::MethodObject:@scope:
instance:@visibility:public:
@pathI"Kernel#throw:EF:@parameters[:@files[[I"vm_eval.c;T0:@current_file_has_commentsF:
@name:
throw:@source_type:c:
@tags[:@docstringIC:YARD::Docstring",Transfers control to the end of the active +catch+ block
waiting for _tag_. Raises +ArgumentError+ if there
is no +catch+ block for the _tag_. The optional second
parameter supplies a return value for the +catch+ block,
which otherwise defaults to +nil+. For examples, see
<code>Kernel::catch</code>.;F:@objectIu:YARD::StubProxyKernel#throw;F:
@summary0:@ref_tags[;[o:YARD::Tags::OverloadTag
:@tag_nameI"
overload;F:
@text0;;:@types0:@signatureI"throw(tag [, obj]);F;IC;";F;Iu;Kernel#throw;F;0;[;[:	@allI";F;[[:tag[, obj]0;Iu;Kernel#throw;F;I"KTransfers control to the end of the active +catch+ block
waiting for _tag_. Raises +ArgumentError+ if there
is no +catch+ block for the _tag_. The optional second
parameter supplies a return value for the +catch+ block,
which otherwise defaults to +nil+. For examples, see
<code>Kernel::catch</code>.


@overload throw(tag [, obj]);F:@namespaceIu;Kernel;F:@docstring_extra0:@sourceI";/*
 *  call-seq:
 *     throw(tag [, obj])
 *
 *  Transfers control to the end of the active +catch+ block
 *  waiting for _tag_. Raises +ArgumentError+ if there
 *  is no +catch+ block for the _tag_. The optional second
 *  parameter supplies a return value for the +catch+ block,
 *  which otherwise defaults to +nil+. For examples, see
 *  <code>Kernel::catch</code>.
 */

static VALUE
rb_f_throw(int argc, VALUE *argv)
{
    VALUE tag, value;

    rb_scan_args(argc, argv, "11", &tag, &value);
    rb_throw_obj(tag, value);
    return Qnil;        /* not reached */
};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/Kernel/throw_i.dat
pry-doc-0.4.3 lib/pry-doc/core_docs_19/objects/Kernel/throw_i.dat
pry-doc-0.4.2 lib/pry-doc/core_docs_19/objects/Kernel/throw_i.dat
pry-doc-0.4.1 lib/pry-doc/core_docs_19/objects/Kernel/throw_i.dat
pry-doc-0.4.0 lib/pry-doc/core_docs_19/objects/Kernel/throw_i.dat
pry-doc-0.3.0 lib/pry-doc/core_docs_19/objects/Kernel/throw_i.dat
pry-doc-0.2.4pre1 lib/pry-doc/core_docs_19/objects/Kernel/throw_i.dat
pry-doc-0.2.3pre1 lib/pry-doc/core_docs_19/objects/Kernel/throw_i.dat
pry-doc-0.2.1 lib/pry-doc/core_docs_19/objects/Kernel/throw_i.dat
pry-doc-0.2.0 lib/pry-doc/core_docs_19/objects/Kernel/throw_i.dat
pry-doc-0.1.5pre1 lib/pry-doc/core_docs_19/objects/Kernel/throw_i.dat
pry-0.6.9pre1-i386-mingw32 lib/pry/core_docs_19/objects/Kernel/throw_i.dat