summaryrefslogtreecommitdiff
path: root/lib/command_processor.rb
diff options
context:
space:
mode:
Diffstat (limited to 'lib/command_processor.rb')
-rw-r--r--lib/command_processor.rb4
1 files changed, 3 insertions, 1 deletions
diff --git a/lib/command_processor.rb b/lib/command_processor.rb
index 7e9de08..738b9b1 100644
--- a/lib/command_processor.rb
+++ b/lib/command_processor.rb
@@ -6,6 +6,8 @@ class CommandProcessor
@commands << command
end
def run
- @commands.each { |e| e.run }
+ while @commands.length > 0 do
+ @commands.shift.run
+ end
end
end