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

After defining a singleton method on a plain object, what does the method's owner report?

o = Object.new def o.s; end owner = o.method(:s).owner p owner.class p owner.singleton_class? p(owner == o.singleton_class)