Skip to main content
Journey Uncommon Logo
JourneyUncommon
hardRubyconst_missing included inherited hooksSingle-choice MCQ

Does `defined?(Foo::BAR)` trigger `Foo.const_missing` when `BAR` is not defined?

class Foo def self.const_missing(name); raise "fired"; end end p defined?(Foo::BAR)