class AgileSolo::CompositeCommand

Public Class Methods

new() click to toggle source
# File lib/agile_solo/composite_command.rb, line 5
def initialize
  @commands = []
end

Public Instance Methods

add_commands(cmd) click to toggle source
# File lib/agile_solo/composite_command.rb, line 17
def add_commands(cmd)
  @commands << cmd
end
description() click to toggle source
# File lib/agile_solo/composite_command.rb, line 29
def description
  description = ''
  @commands.each { |cmd| description += cmd.description + "\n" }
  description
end
empty?() click to toggle source
# File lib/agile_solo/composite_command.rb, line 13
def empty?
  @commands.empty?
end
execute() click to toggle source
# File lib/agile_solo/composite_command.rb, line 21
def execute
  @commands.each { |cmd| cmd.execute }
end
size() click to toggle source
# File lib/agile_solo/composite_command.rb, line 9
def size
  @commands.size
end
unexecute() click to toggle source
# File lib/agile_solo/composite_command.rb, line 25
def unexecute
  @commands.each { |cmd| cmd.execute }
end