diff options
Diffstat (limited to 'lib/command_processor.rb')
| -rw-r--r-- | lib/command_processor.rb | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/lib/command_processor.rb b/lib/command_processor.rb new file mode 100644 index 0000000..7e9de08 --- /dev/null +++ b/lib/command_processor.rb @@ -0,0 +1,11 @@ +class CommandProcessor + def initialize + @commands = [] + end + def add(command) + @commands << command + end + def run + @commands.each { |e| e.run } + end +end |
