summaryrefslogtreecommitdiff
path: root/lib/nasty/composite_command.rb
blob: a1f5a9092d594c89d96b0d17d3e762d3d627426c (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
module Nasty
  class CompositeCommand
    include Command

    def initialize(first, last)
      @first = first
      @last = last
    end

    def run(*args)
      @first.run(*args)
      @last.run(*args)
    end
  end
end