Sha256: f8c7426cd906f25a688f532ab5460df878962ec5894a99cbb1e7210297c29491

Contents?: true

Size: 1.75 KB

Versions: 12

Compression:

Stored size: 1.75 KB

Contents

o:$YARD::CodeObjects::MethodObject:@scope:
instance:@visibility:public:
@pathI"Bignum#eql?:EF:@parameters[:@files[[I"
bignum.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
<code>Bignum</code> with the same value as <i>big</i>. Contrast this
with <code>Bignum#==</code>, which performs type conversions.

   68719476736.eql?(68719476736.0)   #=> false;F:@objectIu:YARD::StubProxyBignum#eql?;F:
@summary0:@ref_tags[;[o:YARD::Tags::OverloadTag
:@tag_nameI"
overload;F:
@text0;;:@types0:@signatureI"eql?(obj);F;IC;";F;Iu;Bignum#eql?;F;0;[;[o:YARD::Tags::Tag
;I"return;F;I";F;0;[I"Boolean;F;0:	@allI"@return [Boolean];F;[[:obj0;Iu;Bignum#eql?;F; I"Returns <code>true</code> only if <i>obj</i> is a
<code>Bignum</code> with the same value as <i>big</i>. Contrast this
with <code>Bignum#==</code>, which performs type conversions.

   68719476736.eql?(68719476736.0)   #=> false


@overload eql?(obj)
  @return [Boolean];F:@namespaceIu;Bignum;F:@docstring_extra0:@sourceI"h/*
 *  call-seq:
 *     big.eql?(obj)   -> true or false
 *
 *  Returns <code>true</code> only if <i>obj</i> is a
 *  <code>Bignum</code> with the same value as <i>big</i>. Contrast this
 *  with <code>Bignum#==</code>, which performs type conversions.
 *
 *     68719476736.eql?(68719476736.0)   #=> false
 */

static VALUE
rb_big_eql(VALUE x, VALUE y)
{
    if (TYPE(y) != T_BIGNUM) return Qfalse;
    if (RBIGNUM_SIGN(x) != RBIGNUM_SIGN(y)) return Qfalse;
    if (RBIGNUM_LEN(x) != RBIGNUM_LEN(y)) return Qfalse;
    if (MEMCMP(BDIGITS(x),BDIGITS(y),BDIGIT,RBIGNUM_LEN(y)) != 0) return Qfalse;
    return Qtrue;
};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/Bignum/eql_3F_i.dat
pry-doc-0.4.3 lib/pry-doc/core_docs_19/objects/Bignum/eql_3F_i.dat
pry-doc-0.4.2 lib/pry-doc/core_docs_19/objects/Bignum/eql_3F_i.dat
pry-doc-0.4.1 lib/pry-doc/core_docs_19/objects/Bignum/eql_3F_i.dat
pry-doc-0.4.0 lib/pry-doc/core_docs_19/objects/Bignum/eql_3F_i.dat
pry-doc-0.3.0 lib/pry-doc/core_docs_19/objects/Bignum/eql_3F_i.dat
pry-doc-0.2.4pre1 lib/pry-doc/core_docs_19/objects/Bignum/eql_3F_i.dat
pry-doc-0.2.3pre1 lib/pry-doc/core_docs_19/objects/Bignum/eql_3F_i.dat
pry-doc-0.2.1 lib/pry-doc/core_docs_19/objects/Bignum/eql_3F_i.dat
pry-doc-0.2.0 lib/pry-doc/core_docs_19/objects/Bignum/eql_3F_i.dat
pry-doc-0.1.5pre1 lib/pry-doc/core_docs_19/objects/Bignum/eql_3F_i.dat
pry-0.6.9pre1-i386-mingw32 lib/pry/core_docs_19/objects/Bignum/eql_3F_i.dat