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

When a module is included between a subclass and its superclass, where is it spliced into the ancestor chain, and what does super inside the module then reach?

class Animal def speak; "animal"; end end module Noisy def speak; "noisy->" + super; end end class Dog < Animal include Noisy end puts Dog.new.speak