Last Modified
2011-09-12 22:03:56 -0700
Requires
  • thread

Description

The Singleton module implements the Singleton pattern.

Usage:

class Klass
   include Singleton
   # ...
end

This is achieved by marking

Providing (or modifying) the class methods

The instance method of Singleton are

blog comments powered by Disqus