Sha256: fcda2b93c4bae13c68d2a6cd0f603e91a949787c649e524d76314a947b889877

Contents?: true

Size: 1.94 KB

Versions: 12

Compression:

Stored size: 1.94 KB

Contents

o:$YARD::CodeObjects::MethodObject:@scope:
instance:@visibility:public:
@pathI"Range#min:EF:@parameters[:@files[[I"range.c;T0:@current_file_has_commentsF:
@name:min:@source_type:c:
@tags[:@docstringIC:YARD::Docstring"Returns the minimum value in <i>rng</i>. The second uses
the block to compare values.  Returns nil if the first
value in range is larger than the last value.;F:@objectIu:YARD::StubProxyRange#min;F:
@summary0:@ref_tags[;[o:YARD::Tags::OverloadTag
:@tag_nameI"
overload;F:
@text0;;:@types0:@signatureI"min;F;IC;";F;Iu;Range#min;F;0;[;[o:YARD::Tags::Tag
;I"return;F;I";F;0;[I"Object;F;0:	@allI"@return [Object];F;[;Iu;Range#min;Fo;
;I"
overload;F;0;;;0;I"min;F;IC;";F;Iu;Range#min;F;0;[;[o;
;I"
yield;F;I";F;0;[I"a;FI"b;F;0o;
;I"return;F;I";F;0;[I"Object;F;0; I"$@yield [ a,b ]
@return [Object];F;[;Iu;Range#min;F; I"Returns the minimum value in <i>rng</i>. The second uses
the block to compare values.  Returns nil if the first
value in range is larger than the last value.



@overload min
  @return [Object]
@overload min
  @yield [ a,b ]
  @return [Object];F:@namespaceo:YARD::CodeObjects::Proxy:
@imethod0:@origname0:@orignamespace0;:
Range;!Iu;;F:	@obj0:@docstring_extra0:@sourceI"]/*
 *  call-seq:
 *     rng.min                    -> obj
 *     rng.min {| a,b | block }   -> obj
 *
 *  Returns the minimum value in <i>rng</i>. The second uses
 *  the block to compare values.  Returns nil if the first
 *  value in range is larger than the last value.
 *
 */


static VALUE
range_min(VALUE range)
{
    if (rb_block_given_p()) {
    return rb_call_super(0, 0);
    }
    else {
    VALUE b = RANGE_BEG(range);
    VALUE e = RANGE_END(range);
    int c = rb_cmpint(rb_funcall(b, id_cmp, 1, e), b, e);

    if (c > 0 || (c == 0 && EXCL(range)))
        return Qnil;
    return b;
    }
};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/min_i.dat
pry-doc-0.4.3 lib/pry-doc/core_docs_19/objects/Range/min_i.dat
pry-doc-0.4.2 lib/pry-doc/core_docs_19/objects/Range/min_i.dat
pry-doc-0.4.1 lib/pry-doc/core_docs_19/objects/Range/min_i.dat
pry-doc-0.4.0 lib/pry-doc/core_docs_19/objects/Range/min_i.dat
pry-doc-0.3.0 lib/pry-doc/core_docs_19/objects/Range/min_i.dat
pry-doc-0.2.4pre1 lib/pry-doc/core_docs_19/objects/Range/min_i.dat
pry-doc-0.2.3pre1 lib/pry-doc/core_docs_19/objects/Range/min_i.dat
pry-doc-0.2.1 lib/pry-doc/core_docs_19/objects/Range/min_i.dat
pry-doc-0.2.0 lib/pry-doc/core_docs_19/objects/Range/min_i.dat
pry-doc-0.1.5pre1 lib/pry-doc/core_docs_19/objects/Range/min_i.dat
pry-0.6.9pre1-i386-mingw32 lib/pry/core_docs_19/objects/Range/min_i.dat