Class | Model |
In: |
src/org/puremvc/ruby/core/model.rb
|
Parent: | Object |
In PureMVC, the Model class provides access to model objects (Proxies) by named lookup.
The Model assumes these responsibilities:
* Maintain a cache of Proxy instances. * Provide methods for registering, retrieving, and removing Proxy instances.
Your application must register Proxy instances with the Model. Typically, you use an Command to create and register Proxy instances once the Facade has initialized the Core actors.
proxy_map | [RW] |
This Model implementation is a Singleton, so you can not call the constructor directly, but instead call the static Singleton Factory method Model.instance
Initialize the Singleton Model instance.
Called automatically by the constructor, this is your opportunity to initialize the Singleton instance in your subclass without overriding the constructor.