Skip to main content
Journey Uncommon Logo
JourneyUncommon
hardRubyobject memory RVALUE embedded stringsSingle-choice MCQ

A string starts embedded (short). You append enough bytes that it no longer fits inline. What happens to the object's identity and layout?

s = "short" id1 = s.object_id s << ("x" * 100) id2 = s.object_id p id1 == id2