Sha256: 7a8a36e2f7f993f57322b6d8fe355a9a64320cb299b625e7608fe0f5f694e37f

Contents?: true

Size: 1.98 KB

Versions: 12

Compression:

Stored size: 1.98 KB

Contents

o:$YARD::CodeObjects::MethodObject:
@name:==:@docstringIC:YARD::Docstring"NEquality---Two arrays are equal if they contain the same number
of elements and if each element is equal to (according to
Object.==) the corresponding element in the other array.

   [ "a", "c" ]    == [ "a", "c", 7 ]     #=> false
   [ "a", "c", 7 ] == [ "a", "c", 7 ]     #=> true
   [ "a", "c", 7 ] == [ "a", "d", "f" ]   #=> false
:@objectu:YARD::StubProxy
Array#==:
@summary0:	@all"kEquality---Two arrays are equal if they contain the same number
of elements and if each element is equal to (according to
Object.==) the corresponding element in the other array.

   [ "a", "c" ]    == [ "a", "c", 7 ]     #=> false
   [ "a", "c", 7 ] == [ "a", "c", 7 ]     #=> true
   [ "a", "c", 7 ] == [ "a", "d", "f" ]   #=> false



@overload ==(other_array):@ref_tags[:
@tags[o:YARD::Tags::OverloadTag
;
u;
Array#==;;;IC;	"
;
u;
Array#==;0;
";[;[:@types0:@parameters[[:other_array0:
@text0:@signature"==(other_array):@tag_name"
overload:@current_file_has_commentsF:@scope:
instance;[:@docstring_extra0:@files[["array.c0:@namespaceu;
Array:
@path"
Array#==;[:@visibility:public:@source"%/* 
 *  call-seq:
 *     array == other_array   ->   bool
 *
 *  Equality---Two arrays are equal if they contain the same number
 *  of elements and if each element is equal to (according to
 *  Object.==) the corresponding element in the other array.
 *
 *     [ "a", "c" ]    == [ "a", "c", 7 ]     #=> false
 *     [ "a", "c", 7 ] == [ "a", "c", 7 ]     #=> true
 *     [ "a", "c", 7 ] == [ "a", "d", "f" ]   #=> false
 *
 */

static VALUE
rb_ary_equal(ary1, ary2)
    VALUE ary1, ary2;
{
    if (ary1 == ary2) return Qtrue;
    if (TYPE(ary2) != T_ARRAY) {
    if (!rb_respond_to(ary2, rb_intern("to_ary"))) {
        return Qfalse;
    }
    return rb_equal(ary2, ary1);
    }
    if (RARRAY(ary1)->len != RARRAY(ary2)->len) return Qfalse;
    return rb_exec_recursive(recursive_equal, ary1, ary2);
}:@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/Array/_3D_3D_i.dat
pry-doc-0.4.3 lib/pry-doc/core_docs_18/objects/Array/_3D_3D_i.dat
pry-doc-0.4.2 lib/pry-doc/core_docs_18/objects/Array/_3D_3D_i.dat
pry-doc-0.4.1 lib/pry-doc/core_docs_18/objects/Array/_3D_3D_i.dat
pry-doc-0.4.0 lib/pry-doc/core_docs_18/objects/Array/_3D_3D_i.dat
pry-doc-0.3.0 lib/pry-doc/core_docs_18/objects/Array/_3D_3D_i.dat
pry-doc-0.2.4pre1 lib/pry-doc/core_docs_18/objects/Array/_3D_3D_i.dat
pry-doc-0.2.3pre1 lib/pry-doc/core_docs_18/objects/Array/_3D_3D_i.dat
pry-doc-0.2.1 lib/pry-doc/core_docs_18/objects/Array/_3D_3D_i.dat
pry-doc-0.2.0 lib/pry-doc/core_docs_18/objects/Array/_3D_3D_i.dat
pry-doc-0.1.5pre1 lib/pry-doc/core_docs_18/objects/Array/_3D_3D_i.dat
pry-0.6.9pre1-i386-mingw32 lib/pry/core_docs_18/objects/Array/_3D_3D_i.dat