Sha256: 8aaced6ecd221e310c0b2988b2052f368fc0ece978be38e4441fff2231c0821c

Contents?: true

Size: 1.74 KB

Versions: 12

Compression:

Stored size: 1.74 KB

Contents

o:$YARD::CodeObjects::MethodObject:
@name:initialize:@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.
:@objectu:YARD::StubProxyRange#initialize:
@summary0:	@all"�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):@ref_tags[:
@tags[o:YARD::Tags::OverloadTag
;
u;Range#initialize;:new;IC;	"
;
u;Range#initialize;0;
";[;[:@types0:@parameters[[:
start0[:end0:
@text0:@signature"%new(start, end, exclusive=false):@tag_name"
overload:@current_file_has_commentsF:@scope:
instance;[:@docstring_extra0:@files[["range.c0:@namespaceu;
Range:
@path"Range#initialize;[:@visibility:public:@source"�/*
 *  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(argc, argv, range)
    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 (rb_ivar_defined(range, id_beg)) {
    rb_name_error(rb_intern("initialize"), "`initialize' called twice");
    }
    range_init(range, beg, end, RTEST(flags));
    return Qnil;
}:@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/Range/initialize_i.dat
pry-doc-0.4.3 lib/pry-doc/core_docs_18/objects/Range/initialize_i.dat
pry-doc-0.4.2 lib/pry-doc/core_docs_18/objects/Range/initialize_i.dat
pry-doc-0.4.1 lib/pry-doc/core_docs_18/objects/Range/initialize_i.dat
pry-doc-0.4.0 lib/pry-doc/core_docs_18/objects/Range/initialize_i.dat
pry-doc-0.3.0 lib/pry-doc/core_docs_18/objects/Range/initialize_i.dat
pry-doc-0.2.4pre1 lib/pry-doc/core_docs_18/objects/Range/initialize_i.dat
pry-doc-0.2.3pre1 lib/pry-doc/core_docs_18/objects/Range/initialize_i.dat
pry-doc-0.2.1 lib/pry-doc/core_docs_18/objects/Range/initialize_i.dat
pry-doc-0.2.0 lib/pry-doc/core_docs_18/objects/Range/initialize_i.dat
pry-doc-0.1.5pre1 lib/pry-doc/core_docs_18/objects/Range/initialize_i.dat
pry-0.6.9pre1-i386-mingw32 lib/pry/core_docs_18/objects/Range/initialize_i.dat