Class: Slidr::Commands::VoidExecutor

Inherits:
BaseExecutor show all
Defined in:
lib/slidr/commands/void_executor.rb

Instance Method Summary collapse

Constructor Details

#initializeVoidExecutor

Returns a new instance of VoidExecutor.



5
6
7
# File 'lib/slidr/commands/void_executor.rb', line 5

def initialize
  @commands = []
end

Instance Method Details

#add(command) ⇒ Object



9
10
11
12
# File 'lib/slidr/commands/void_executor.rb', line 9

def add(command)
  @commands << command
  self
end

#goObject



14
15
16
17
18
# File 'lib/slidr/commands/void_executor.rb', line 14

def go
  @commands.each do |command|
    command.go
  end
end