Sha256: 1d454bbdb7fe26d390d96afcd46b6d7569421659f5ded06993b835872c48f476

Contents?: true

Size: 1.25 KB

Versions: 12

Compression:

Stored size: 1.25 KB

Contents

o:$YARD::CodeObjects::MethodObject:@scope:
instance:@visibility:public:
@pathI"Struct#eql?:EF:@parameters[:@files[[I"
struct.c;T0:@current_file_has_commentsF:
@name:	eql?:@source_type:c:
@tags[:@docstringIC:YARD::Docstring"¤code-seq:
  struct.eql?(other)   -> true or false

Two structures are equal if they are the same object, or if all their
fields are equal (using <code>eql?</code>).;F:@objectIu:YARD::StubProxyStruct#eql?;F:
@summary0:@ref_tags[;[:	@allI"¥code-seq:
  struct.eql?(other)   -> true or false

Two structures are equal if they are the same object, or if all their
fields are equal (using <code>eql?</code>).
;F:@namespaceIu;Struct;F:@docstring_extra0:@sourceI"$/*
 * code-seq:
 *   struct.eql?(other)   -> true or false
 *
 * Two structures are equal if they are the same object, or if all their
 * fields are equal (using <code>eql?</code>).
 */

static VALUE
rb_struct_eql(VALUE s, VALUE s2)
{
    if (s == s2) return Qtrue;
    if (TYPE(s2) != T_STRUCT) return Qfalse;
    if (rb_obj_class(s) != rb_obj_class(s2)) return Qfalse;
    if (RSTRUCT_LEN(s) != RSTRUCT_LEN(s2)) {
    rb_bug("inconsistent struct"); /* should never happen */
    }

    return rb_exec_recursive_paired(recursive_eql, s, s2, s2);
};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/Struct/eql_3F_i.dat
pry-doc-0.4.3 lib/pry-doc/core_docs_19/objects/Struct/eql_3F_i.dat
pry-doc-0.4.2 lib/pry-doc/core_docs_19/objects/Struct/eql_3F_i.dat
pry-doc-0.4.1 lib/pry-doc/core_docs_19/objects/Struct/eql_3F_i.dat
pry-doc-0.4.0 lib/pry-doc/core_docs_19/objects/Struct/eql_3F_i.dat
pry-doc-0.3.0 lib/pry-doc/core_docs_19/objects/Struct/eql_3F_i.dat
pry-doc-0.2.4pre1 lib/pry-doc/core_docs_19/objects/Struct/eql_3F_i.dat
pry-doc-0.2.3pre1 lib/pry-doc/core_docs_19/objects/Struct/eql_3F_i.dat
pry-doc-0.2.1 lib/pry-doc/core_docs_19/objects/Struct/eql_3F_i.dat
pry-doc-0.2.0 lib/pry-doc/core_docs_19/objects/Struct/eql_3F_i.dat
pry-doc-0.1.5pre1 lib/pry-doc/core_docs_19/objects/Struct/eql_3F_i.dat
pry-0.6.9pre1-i386-mingw32 lib/pry/core_docs_19/objects/Struct/eql_3F_i.dat