Class Notifier
In: src/org/puremvc/ruby/patterns/observer/notifier.rb
Parent: Object

MacroCommand, Command, Mediator and Proxy all have a need to send Notifications.

The Notifier provides a common method called send_notification that relieves implementation code of the necessity to actually construct Notifications.

The Notifier class, which all of the above mentioned classes extend, provides an initialized reference to the Facade Singleton, which is required for the convienience method for sending Notifications, but also eases implementation as these classes have frequent Facade interactions and usually require access to the facade anyway.

Methods

Public Instance methods

Local reference to the Facade Singleton

Create and send an Notification.

Keeps us from having to construct new Notification instances in our implementation code.

[Validate]