Class: Nasty::CompositeCommand

Inherits:
Object
  • Object
show all
Defined in:
lib/nasty/composite_command.rb

Instance Method Summary collapse

Constructor Details

#initialize(first, last) ⇒ CompositeCommand



3
4
5
6
# File 'lib/nasty/composite_command.rb', line 3

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

Instance Method Details

#run(*args) ⇒ Object



8
9
10
11
# File 'lib/nasty/composite_command.rb', line 8

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