Sha256: dcaaf59959c1c7c244c0e687b9216f83c8abe5f6b8981969469dd54e8389cef8

Contents?: true

Size: 1.5 KB

Versions: 12

Compression:

Stored size: 1.5 KB

Contents

o:$YARD::CodeObjects::MethodObject:
@name:==:@docstringIC:YARD::Docstring"aTwo method objects are equal if that are bound to the same
object and contain the same body.
:@objectu:YARD::StubProxyUnboundMethod#==:
@summary0:	@all"‹Two method objects are equal if that are bound to the same
object and contain the same body.


@overload ==(other_meth)
  @return [Boolean]:@ref_tags[:
@tags[o:YARD::Tags::OverloadTag
;
u;UnboundMethod#==;;;IC;	"
;
u;UnboundMethod#==;0;
"@return [Boolean];[;[o:YARD::Tags::Tag
;
0;0:@types["Boolean:
@text":@tag_name"return;0:@parameters[[:other_meth0;0:@signature"==(other_meth);"
overload:@current_file_has_commentsF:@scope:
instance;[:@docstring_extra0:@files[["eval.c0:@namespaceu;UnboundMethod:
@path"UnboundMethod#==;[:@visibility:public:@source" /*
 * call-seq:
 *   meth == other_meth  => true or false
 *
 * Two method objects are equal if that are bound to the same
 * object and contain the same body.
 */


static VALUE
method_eq(method, other)
    VALUE method, other;
{
    struct METHOD *m1, *m2;

    if (TYPE(other) != T_DATA || RDATA(other)->dmark != (RUBY_DATA_FUNC)bm_mark)
    return Qfalse;
    if (CLASS_OF(method) != CLASS_OF(other))
    return Qfalse;

    Data_Get_Struct(method, struct METHOD, m1);
    Data_Get_Struct(other, struct METHOD, m2);

    if (m1->klass != m2->klass || m1->rklass != m2->rklass ||
    m1->recv != m2->recv || m1->body != m2->body)
    return Qfalse;

    return Qtrue;
}:@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/UnboundMethod/_3D_3D_i.dat
pry-doc-0.4.3 lib/pry-doc/core_docs_18/objects/UnboundMethod/_3D_3D_i.dat
pry-doc-0.4.2 lib/pry-doc/core_docs_18/objects/UnboundMethod/_3D_3D_i.dat
pry-doc-0.4.1 lib/pry-doc/core_docs_18/objects/UnboundMethod/_3D_3D_i.dat
pry-doc-0.4.0 lib/pry-doc/core_docs_18/objects/UnboundMethod/_3D_3D_i.dat
pry-doc-0.3.0 lib/pry-doc/core_docs_18/objects/UnboundMethod/_3D_3D_i.dat
pry-doc-0.2.4pre1 lib/pry-doc/core_docs_18/objects/UnboundMethod/_3D_3D_i.dat
pry-doc-0.2.3pre1 lib/pry-doc/core_docs_18/objects/UnboundMethod/_3D_3D_i.dat
pry-doc-0.2.1 lib/pry-doc/core_docs_18/objects/UnboundMethod/_3D_3D_i.dat
pry-doc-0.2.0 lib/pry-doc/core_docs_18/objects/UnboundMethod/_3D_3D_i.dat
pry-doc-0.1.5pre1 lib/pry-doc/core_docs_18/objects/UnboundMethod/_3D_3D_i.dat
pry-0.6.9pre1-i386-mingw32 lib/pry/core_docs_18/objects/UnboundMethod/_3D_3D_i.dat