Class: Loupe::Executor
- Inherits:
-
Object
- Object
- Loupe::Executor
- Defined in:
- lib/loupe/executor.rb
Overview
Executor
This abstract parent class is responsible for providing the basics for executors. Concrete classes are the process and ractor executors.
Direct Known Subclasses
Instance Method Summary collapse
- #initialize(options) ⇒ Loupe::Executor constructor
- #run ⇒ Integer
Constructor Details
#initialize(options) ⇒ Loupe::Executor
13 14 15 16 17 |
# File 'lib/loupe/executor.rb', line 13 def initialize() @options = @queue = populate_queue @reporter = [:interactive] ? PagedReporter.new() : PlainReporter.new() end |
Instance Method Details
#run ⇒ Integer
20 21 22 |
# File 'lib/loupe/executor.rb', line 20 def run raise NotImplementedError, "Concrete implementations of executors should implement the run method" end |