blob: 738b9b1842dfe18f8c5e61d4f297c19c09c7bb02 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
|
class CommandProcessor
def initialize
@commands = []
end
def add(command)
@commands << command
end
def run
while @commands.length > 0 do
@commands.shift.run
end
end
end
|