Is it necessary to close StringIO in ruby?

后端 未结 5 719
眼角桃花
眼角桃花 2021-01-01 20:00

Do we need to close StringIO objects after usage in Ruby in order to free resources, like we do with the real IO objects?

obj = StringIO.new \"some string\"
         


        
5条回答
提交回复
热议问题