From: Hugh Sasse Date: 2005-11-02T02:53:48+09:00 Subject: Re: Best way to free a device On Wed, 2 Nov 2005, Detlef Reichl wrote: > Hi, > > what is the best way to release an unix device that can't handle > multiple opens? [...] > http://www.rubygarden.org/ruby?ResourceAcquisitionIsInitialization > > i've seen, that i cant aspect a direct destruction of the object if it's > not more in use. Make it a Singleton? http://www.ruby-doc.org/stdlib/libdoc/singleton/rdoc/ > > Is there a more elegant way to free the resources automatically, as to > create a special free or close method for my object? > > Cheers > detlef > Hugh