Commit Graph

4 Commits

Author SHA1 Message Date
Xavier Noria e5ef3abdd2 hides the per thread registry instance, and caches singleton methods
Existing code was delegating to the instance with delegate
macro calls, or invoking the instance method to reach
the object and call its instance methods.

But the point is to have a clean class-level interface where
the thread local instance is hidden in the implementation.

References #11c6973.
References #10198.
2013-04-13 17:09:13 +02:00
Xavier Noria 2d42fe7fb5 complete rewrite of the documentation of AS::PerThreadRegistry
* It focuses on how to use it.

* Removes some ambigueties in the original docs about whether the state is stored in the class.

* Documents it provides class-level accessors via method_missing.

* Documents that if the extended class has an initializer, it must accept no arguments.
2013-04-13 08:21:38 +02:00
wangjohn 60a5ac78b0 Using public send instead of send for the PerThreadRegistry module.
Prevents you from accidentally calling a protected method.
2013-04-10 09:56:40 -04:00
wangjohn e94f024e14 Creating a module so that per thread registries can be easily created as
thread local variables.
2013-04-09 22:27:21 -04:00