Skip to main content
Journey Uncommon Logo
JourneyUncommon
hardRubymethod lookup and ancestorsSingle-choice MCQ

Why does `Z.new.hello` work even though `hello` is added to `Late` AFTER `Late` was already included in `Z`?

module Late; end class Z; include Late; end module Late def hello; "hello from late"; end end puts Z.new.hello # => "hello from late"