From: Peter Zotov Date: 2012-08-17T04:20:25+09:00 Subject: Re: A Ruby class is never closed Jan E. писал 16.08.2012 21:59: > > For the singleton pattern, there's the singleton module in the > standard > library. For the singleton pattern, there are singleton methods in standard Ruby. Singleton = Object.new class << Singleton def get_var 42 end end Singleton.get_var # => 42 -- WBR, Peter Zotov.