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

Using the `included` hook pattern below, what do the two final lines print?

module Trackable def self.included(base) base.extend(ClassMethods) end module ClassMethods def track; "tracking"; end end end class Doc; include Trackable; end p Doc.track p Doc.new.respond_to?(:track)