Class: Nasty::CompositeCommand
- Inherits:
-
Object
- Object
- Nasty::CompositeCommand
- Defined in:
- lib/nasty/composite_command.rb
Instance Method Summary collapse
-
#initialize(first, last) ⇒ CompositeCommand
constructor
A new instance of CompositeCommand.
- #run(*args) ⇒ Object
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 |