| Path: | src/org/puremvc/ruby/patterns/command/macro_command.rb |
| Last Update: | Mon Dec 29 19:22:55 -0600 2008 |
A MacroCommand maintains an list of Command Class references called SubCommands
When execute is called, the MacroCommand instantiates and calls execute on each of its SubCommands.Each SubCommand will be passed a reference to the original Notification that was passed to the MacroCommand‘s execute method.
Unlike SimpleCommand, your subclass should not override execute, but instead, should override the initialize_macro_command method, calling add_sub_command once for each SubCommand to be executed.