public Method

Module.>(p1)

mod > other     true, false, or nil

Returns true if mod is an ancestor of other. Returns nil if there’s no relationship between the two. (Think of the relationship in terms of the class definition: "class A<B" implies "B>A").

Source Code

/*
* call-seq:
*   mod > other   =>  true, false, or nil
*
* Returns true if <i>mod</i> is an ancestor of <i>other</i>. Returns 
* <code>nil</code> if there's no relationship between the two. 
* (Think of the relationship in terms of the class definition: 
* "class A<B" implies "B>A").
*
*/

static VALUE
rb_mod_gt(mod, arg)
   VALUE mod, arg;
{
   if (mod == arg) return Qfalse;
   return rb_mod_ge(mod, arg);
}
Comments

Have your say
Please use Textile formatting (click here for a cheat sheet). Use <code/> and <pre/> for code samples.
Click here to login with OpenID to to post comments.