Class: Redcar::FilterCommand::RerunLastFilter

Inherits:
Command
  • Object
show all
Defined in:
lib/filter_command/commands.rb

Overview

Reruns the last filter command, if available

Instance Method Summary collapse

Instance Method Details

#executeObject



15
16
17
18
19
20
21
# File 'lib/filter_command/commands.rb', line 15

def execute
  if command = FilterCommand.command and
    output = FilterCommand.output_type and
    input = FilterCommand.input_type
    FilterCommand::Evaluator.evaluate(command,input,output)
  end
end