Class: Uniword::Batch::Operation::Task
- Inherits:
-
Object
- Object
- Uniword::Batch::Operation::Task
- Defined in:
- lib/uniword/batch/operation/task.rb
Overview
Abstract base class for one batchable operation on one file.
Subclasses implement run(path) -> FileResult.
Direct Known Subclasses
Instance Method Summary collapse
-
#name ⇒ Symbol
Task name shown in reports.
-
#run(path) ⇒ FileResult
Run the operation on one file.
Instance Method Details
#name ⇒ Symbol
Returns task name shown in reports.
10 11 12 |
# File 'lib/uniword/batch/operation/task.rb', line 10 def name raise NotImplementedError end |
#run(path) ⇒ FileResult
Run the operation on one file. Returns a FileResult.
18 19 20 |
# File 'lib/uniword/batch/operation/task.rb', line 18 def run(path) raise NotImplementedError end |