Skip to main content
Journey Uncommon Logo
JourneyUncommon
hardRubysingleton eigenclassSingle-choice MCQ

After giving a single string object a singleton method, what does calling .class versus .singleton_class.superclass reveal about where the singleton class sits?

o = "str" def o.shout; upcase; end puts o.class puts o.singleton_class.superclass