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.

Methods

Included Modules

Singleton

Attributes

proxy_map  [RW] 

Public Class methods

This Model implementation is a Singleton, so you can not call the constructor directly, but instead call the static Singleton Factory method Model.instance

Public Instance methods

Check if a Proxy is registered.

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.

Register a Proxy with the Model.

[Validate]