summaryrefslogtreecommitdiff
path: root/lib/command_processor.rb
blob: 7e9de08d5bcf9f24c27658112a2f65f4aa50d39e (plain)
1
2
3
4
5
6
7
8
9
10
11
class CommandProcessor
  def initialize
    @commands = []
  end
  def add(command)
    @commands << command
  end
  def run
    @commands.each { |e| e.run  }
  end
end