Sha256: 08d5b37b9489045f1802a809529a3aa3930ca6140ca89b7848deaa346fbf982f

Contents?: true

Size: 1.97 KB

Versions: 12

Compression:

Stored size: 1.97 KB

Contents

o:$YARD::CodeObjects::MethodObject:@scope:
instance:@visibility:public:
@pathI"Range#eql?:EF:@parameters[:@files[[I"range.c;T0:@current_file_has_commentsF:
@name:	eql?:@source_type:c:
@tags[:@docstringIC:YARD::Docstring"/Returns <code>true</code> only if <i>obj</i> is a Range, has equivalent
beginning and end items (by comparing them with #eql?), and has the same
#exclude_end? setting as <i>rng</i>.

  (0..2).eql?(0..2)            #=> true
  (0..2).eql?(Range.new(0,2))  #=> true
  (0..2).eql?(0...2)           #=> false;F:@objectIu:YARD::StubProxyRange#eql?;F:
@summary0:@ref_tags[;[o:YARD::Tags::OverloadTag
:@tag_nameI"
overload;F:
@text0;;:@types0:@signatureI"eql?(obj);F;IC;";F;Iu;Range#eql?;F;0;[;[o:YARD::Tags::Tag
;I"return;F;I";F;0;[I"Boolean;F;0:	@allI"@return [Boolean];F;[[:obj0;Iu;Range#eql?;F; I"ZReturns <code>true</code> only if <i>obj</i> is a Range, has equivalent
beginning and end items (by comparing them with #eql?), and has the same
#exclude_end? setting as <i>rng</i>.

  (0..2).eql?(0..2)            #=> true
  (0..2).eql?(Range.new(0,2))  #=> true
  (0..2).eql?(0...2)           #=> false



@overload eql?(obj)
  @return [Boolean];F:@namespaceo:YARD::CodeObjects::Proxy:
@imethod0:@origname0:@orignamespace0;:
Range;"Iu;;F:	@obj0:@docstring_extra0:@sourceI"m/*
 *  call-seq:
 *     rng.eql?(obj)    -> true or false
 *
 *  Returns <code>true</code> only if <i>obj</i> is a Range, has equivalent
 *  beginning and end items (by comparing them with #eql?), and has the same
 *  #exclude_end? setting as <i>rng</i>.
 *
 *    (0..2).eql?(0..2)            #=> true
 *    (0..2).eql?(Range.new(0,2))  #=> true
 *    (0..2).eql?(0...2)           #=> false
 *
 */

static VALUE
range_eql(VALUE range, VALUE obj)
{
    if (range == obj)
    return Qtrue;
    if (!rb_obj_is_kind_of(obj, rb_cRange))
    return Qfalse;
    return rb_exec_recursive_paired(recursive_eql, range, obj, obj);
};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/eql_3F_i.dat
pry-doc-0.4.3 lib/pry-doc/core_docs_19/objects/Range/eql_3F_i.dat
pry-doc-0.4.2 lib/pry-doc/core_docs_19/objects/Range/eql_3F_i.dat
pry-doc-0.4.1 lib/pry-doc/core_docs_19/objects/Range/eql_3F_i.dat
pry-doc-0.4.0 lib/pry-doc/core_docs_19/objects/Range/eql_3F_i.dat
pry-doc-0.3.0 lib/pry-doc/core_docs_19/objects/Range/eql_3F_i.dat
pry-doc-0.2.4pre1 lib/pry-doc/core_docs_19/objects/Range/eql_3F_i.dat
pry-doc-0.2.3pre1 lib/pry-doc/core_docs_19/objects/Range/eql_3F_i.dat
pry-doc-0.2.1 lib/pry-doc/core_docs_19/objects/Range/eql_3F_i.dat
pry-doc-0.2.0 lib/pry-doc/core_docs_19/objects/Range/eql_3F_i.dat
pry-doc-0.1.5pre1 lib/pry-doc/core_docs_19/objects/Range/eql_3F_i.dat
pry-0.6.9pre1-i386-mingw32 lib/pry/core_docs_19/objects/Range/eql_3F_i.dat