Method: ComposedCommands::ComposedCommand#commands

Defined in:
lib/composed_commands/composed_command.rb

#commandsObject



19
20
21
22
23
24
25
# File 'lib/composed_commands/composed_command.rb', line 19

def commands
  self.class.commands.map do |command_factory|
    command = command_factory.create
    before_execute(command) if respond_to? :before_execute
    command
  end
end