Skip to content
instance method

Module#<

(::Module other) -> bool?
self < other → true, false, or nil

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
See also #<= .used_refinements .used_modules #<=> also in 4.1 · 3.4 · 3.3 · 3.2 · 3.1 · 3.0