From: Suraj Kurapati Date: 2009-06-03T08:18:13+09:00 Subject: Re: nfc 1.0.0 Released Aaron Patterson wrote: > On Wed, Jun 03, 2009 at 02:01:45AM +0900, Suraj Kurapati wrote: >> include Singleton >> end.instance > > That would create a new instance of the object as soon as the gem is > required, and that might not be desired. Especially when dealing with a > piece of hardware. In that case, use Kernel#autoload to load your library only when the NFC constant is actually used: autoload :NFC, 'nfc' Then your users can simply write: NFC.find -- Posted via http://www.ruby-forum.com/.