[ruby-core:125938] [Ruby Feature#22182] Optimize method chains by destructively updating intermediate objects