Sha256: 85df75b2bb6241b272f720e2f215201e801f7e686908bcba4cbbd8fd8a464de2

Contents?: true

Size: 1.59 KB

Versions: 12

Compression:

Stored size: 1.59 KB

Contents

o:$YARD::CodeObjects::MethodObject:
@name:===:@docstringIC:YARD::Docstring"{Return +true+ if the receiver is a generic +SystemCallError+, or
if the error numbers _self_ and _other_ are the same.
:@objectu:YARD::StubProxySystemCallError.===:
@summary0:	@all"¡Return +true+ if the receiver is a generic +SystemCallError+, or
if the error numbers _self_ and _other_ are the same.


@overload ===(other)
  @return [Boolean]:@ref_tags[:
@tags[o:YARD::Tags::OverloadTag
;
u;SystemCallError.===;;;IC;	"
;
u;SystemCallError.===;0;
"@return [Boolean];[;[o:YARD::Tags::Tag
;
0;0:@types["Boolean:
@text":@tag_name"return;0:@parameters[[:
other0;0:@signature"===(other);"
overload:@current_file_has_commentsF:@scope:
class;[:@docstring_extra0:@files[["error.c0:@namespaceu;SystemCallError:
@path"SystemCallError.===;[:@visibility:public:@source"É/*
 * call-seq:
 *   system_call_error === other  => true or false
 *
 * Return +true+ if the receiver is a generic +SystemCallError+, or
 * if the error numbers _self_ and _other_ are the same.
 */


static VALUE
syserr_eqq(self, exc)
    VALUE self, exc;
{
    VALUE num, e;
    ID en = rb_intern("errno");

    if (!rb_obj_is_kind_of(exc, rb_eSystemCallError)) {
    if (!rb_respond_to(exc, en)) return Qfalse;
    }
    else if (self == rb_eSystemCallError) return Qtrue;

    num = rb_attr_get(exc, en);
    if (NIL_P(num)) {
    num = rb_funcall(exc, en, 0, 0);
    }
    e = rb_const_get(self, rb_intern("Errno"));
    if (FIXNUM_P(num) ? num == e : rb_equal(num, e))
    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/SystemCallError/_3D_3D_3D_c.dat
pry-doc-0.4.3 lib/pry-doc/core_docs_18/objects/SystemCallError/_3D_3D_3D_c.dat
pry-doc-0.4.2 lib/pry-doc/core_docs_18/objects/SystemCallError/_3D_3D_3D_c.dat
pry-doc-0.4.1 lib/pry-doc/core_docs_18/objects/SystemCallError/_3D_3D_3D_c.dat
pry-doc-0.4.0 lib/pry-doc/core_docs_18/objects/SystemCallError/_3D_3D_3D_c.dat
pry-doc-0.3.0 lib/pry-doc/core_docs_18/objects/SystemCallError/_3D_3D_3D_c.dat
pry-doc-0.2.4pre1 lib/pry-doc/core_docs_18/objects/SystemCallError/_3D_3D_3D_c.dat
pry-doc-0.2.3pre1 lib/pry-doc/core_docs_18/objects/SystemCallError/_3D_3D_3D_c.dat
pry-doc-0.2.1 lib/pry-doc/core_docs_18/objects/SystemCallError/_3D_3D_3D_c.dat
pry-doc-0.2.0 lib/pry-doc/core_docs_18/objects/SystemCallError/_3D_3D_3D_c.dat
pry-doc-0.1.5pre1 lib/pry-doc/core_docs_18/objects/SystemCallError/_3D_3D_3D_c.dat
pry-0.6.9pre1-i386-mingw32 lib/pry/core_docs_18/objects/SystemCallError/_3D_3D_3D_c.dat