From: Ryan Davis Date: 2010-12-08T05:15:44+09:00 Subject: Re: Vortex Level0 with Ruby On Dec 7, 2010, at 00:29 , Eugeni Akmuradov wrote: > thanx, but i also dont't get this part > >> class Socket >> def self.open(*args) # 'cuz I don't like ugly >> f = self.class.new(*args) >> yield f >> f.close >> end >> end > is it absolutely necessary ? it is code. on a puzzle. of course it isn't absolutely necessary. The important part is that 1) it works and 2) it is a lot cleaner and more maintainable. I suggest focusing on 1 and applying it to your code. 2 will resolve itself with time.