Class: Contender::DirectExecutor

Inherits:
Executor
  • Object
show all
Defined in:
lib/contender/direct_executor.rb

Overview

Simple implementation of an executor that executes blocks in the calling thread

Instance Method Summary collapse

Instance Method Details

#execute(*arguments, &block) ⇒ Object



4
5
6
# File 'lib/contender/direct_executor.rb', line 4

def execute(*arguments, &block)
  block.call *arguments
end