Class: PureMVC::SimpleCommand
- Defined in:
- src/patterns/command/simple_command.rb
Overview
A base ICommand
implementation.
Subclasses should override the execute
method, where business logic will handle the INotification
.
Constant Summary
Constants inherited from Notifier
Instance Attribute Summary
Attributes inherited from Notifier
Instance Method Summary collapse
-
#execute(notification) ⇒ Object
Fulfill the use-case initiated by the given
INotification
.
Methods inherited from Notifier
#facade, #initialize_notifier, #send_notification
Instance Method Details
#execute(notification) ⇒ Object
Fulfill the use-case initiated by the given INotification
.
In the Command Pattern, an application use-case typically begins with some user action, which results in an INotification
being broadcast, handled by business logic in the execute
method of an ICommand
.
26 |
# File 'src/patterns/command/simple_command.rb', line 26 def execute(notification); end |