Sha256: 9cae6ea5cf8d900e700bd59b0379b1fd526a92fa45e56294a8814f75666c77c5

Contents?: true

Size: 1.39 KB

Versions: 12

Compression:

Stored size: 1.39 KB

Contents

o:$YARD::CodeObjects::MethodObject:
@name:	eql?:@docstringIC:YARD::Docstring"ˇReturn <code>true</code> if <i>time</i> and <i>other_time</i> are
both <code>Time</code> objects with the same seconds and fractional
seconds.
:@objectu:YARD::StubProxyTime#eql?:
@summary0:	@all"«Return <code>true</code> if <i>time</i> and <i>other_time</i> are
both <code>Time</code> objects with the same seconds and fractional
seconds.


@overload eql?(other_time):@ref_tags[:
@tags[o:YARD::Tags::OverloadTag
;
u;Time#eql?;;;IC;	"
;
u;Time#eql?;0;
";[;[:@types0:@parameters[[:other_time0:
@text0:@signature"eql?(other_time):@tag_name"
overload:@current_file_has_commentsF:@scope:
instance;[:@docstring_extra0:@files[["time.c0:@namespaceu;	Time:
@path"Time#eql?;[:@visibility:public:@source"C/*
 * call-seq:
 *  time.eql?(other_time)
 *
 * Return <code>true</code> if <i>time</i> and <i>other_time</i> are
 * both <code>Time</code> objects with the same seconds and fractional
 * seconds.
 */

static VALUE
time_eql(time1, time2)
    VALUE time1, time2;
{
    struct time_object *tobj1, *tobj2;

    GetTimeval(time1, tobj1);
    if (TYPE(time2) == T_DATA && RDATA(time2)->dfree == time_free) {
    GetTimeval(time2, tobj2);
    if (tobj1->tv.tv_sec == tobj2->tv.tv_sec) {
        if (tobj1->tv.tv_usec == tobj2->tv.tv_usec) return Qtrue;
    }
    }
    return Qfalse;
}:@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/Time/eql_3F_i.dat
pry-doc-0.4.3 lib/pry-doc/core_docs_18/objects/Time/eql_3F_i.dat
pry-doc-0.4.2 lib/pry-doc/core_docs_18/objects/Time/eql_3F_i.dat
pry-doc-0.4.1 lib/pry-doc/core_docs_18/objects/Time/eql_3F_i.dat
pry-doc-0.4.0 lib/pry-doc/core_docs_18/objects/Time/eql_3F_i.dat
pry-doc-0.3.0 lib/pry-doc/core_docs_18/objects/Time/eql_3F_i.dat
pry-doc-0.2.4pre1 lib/pry-doc/core_docs_18/objects/Time/eql_3F_i.dat
pry-doc-0.2.3pre1 lib/pry-doc/core_docs_18/objects/Time/eql_3F_i.dat
pry-doc-0.2.1 lib/pry-doc/core_docs_18/objects/Time/eql_3F_i.dat
pry-doc-0.2.0 lib/pry-doc/core_docs_18/objects/Time/eql_3F_i.dat
pry-doc-0.1.5pre1 lib/pry-doc/core_docs_18/objects/Time/eql_3F_i.dat
pry-0.6.9pre1-i386-mingw32 lib/pry/core_docs_18/objects/Time/eql_3F_i.dat