Sha256: 0ba4f89ec7aae806e95c3aa338da3add4da262a057e2d46e7cffd3c960cde7e1

Contents?: true

Size: 1.84 KB

Versions: 12

Compression:

Stored size: 1.84 KB

Contents

o:$YARD::CodeObjects::MethodObject:@scope:
instance:@visibility:public:
@pathI"Range#initialize:EF:@parameters[:@files[[I"range.c;T0:@current_file_has_commentsF:
@name:initialize:@source_type:c:
@tags[:@docstringIC:YARD::Docstring"ÉConstructs a range using the given <i>start</i> and <i>end</i>. If the third
parameter is omitted or is <code>false</code>, the <i>range</i> will include
the end object; otherwise, it will be excluded.;F:@objectIu:YARD::StubProxyRange#initialize;F:
@summary0:@ref_tags[;[o:YARD::Tags::OverloadTag
:@tag_nameI"
overload;F:
@text0;:new:@types0:@signatureI"%new(start, end, exclusive=false);F;IC;";F;Iu;Range#initialize;F;0;[;[:	@allI";F;[[:
start0[:end0;Iu;Range#initialize;F; I"öConstructs a range using the given <i>start</i> and <i>end</i>. If the third
parameter is omitted or is <code>false</code>, the <i>range</i> will include
the end object; otherwise, it will be excluded.


@overload new(start, end, exclusive=false);F:@namespaceo:YARD::CodeObjects::Proxy:
@imethod0:@origname0:@orignamespace0;:
Range;#Iu;;F:	@obj0:@docstring_extra0:@sourceI"Ä/*
 *  call-seq:
 *     Range.new(start, end, exclusive=false)    -> range
 *
 *  Constructs a range using the given <i>start</i> and <i>end</i>. If the third
 *  parameter is omitted or is <code>false</code>, the <i>range</i> will include
 *  the end object; otherwise, it will be excluded.
 */

static VALUE
range_initialize(int argc, VALUE *argv, VALUE range)
{
    VALUE beg, end, flags;

    rb_scan_args(argc, argv, "21", &beg, &end, &flags);
    /* Ranges are immutable, so that they should be initialized only once. */
    if (RANGE_EXCL(range) != Qnil) {
    rb_name_error(rb_intern("initialize"), "`initialize' called twice");
    }
    range_init(range, beg, end, RTEST(flags));
    return Qnil;
};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/Range/initialize_i.dat
pry-doc-0.4.3 lib/pry-doc/core_docs_19/objects/Range/initialize_i.dat
pry-doc-0.4.2 lib/pry-doc/core_docs_19/objects/Range/initialize_i.dat
pry-doc-0.4.1 lib/pry-doc/core_docs_19/objects/Range/initialize_i.dat
pry-doc-0.4.0 lib/pry-doc/core_docs_19/objects/Range/initialize_i.dat
pry-doc-0.3.0 lib/pry-doc/core_docs_19/objects/Range/initialize_i.dat
pry-doc-0.2.4pre1 lib/pry-doc/core_docs_19/objects/Range/initialize_i.dat
pry-doc-0.2.3pre1 lib/pry-doc/core_docs_19/objects/Range/initialize_i.dat
pry-doc-0.2.1 lib/pry-doc/core_docs_19/objects/Range/initialize_i.dat
pry-doc-0.2.0 lib/pry-doc/core_docs_19/objects/Range/initialize_i.dat
pry-doc-0.1.5pre1 lib/pry-doc/core_docs_19/objects/Range/initialize_i.dat
pry-0.6.9pre1-i386-mingw32 lib/pry/core_docs_19/objects/Range/initialize_i.dat