instance method
Module#<
(::Module other) -> bool?
self < other → true, false, or nil
object.c
View on GitHub ↗
static VALUE
rb_mod_lt(VALUE mod, VALUE arg)
{
if (mod == arg) return Qfalse;
return rb_class_inherited_p(mod, arg);
}
Returns whether self is a subclass of other, or nil if there is no relationship between the two:
Example
Float < Numeric # => true Numeric < Float # => false Float < Float # => false Float < Hash # => nil