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