Class: EmlToPdf::ExtractionStepList
- Inherits:
-
Object
- Object
- EmlToPdf::ExtractionStepList
- Defined in:
- lib/eml_to_pdf/extraction_step_list.rb
Instance Method Summary collapse
- #finished? ⇒ Boolean
-
#initialize(steps) ⇒ ExtractionStepList
constructor
A new instance of ExtractionStepList.
- #next ⇒ Object
- #to_html ⇒ Object
Constructor Details
#initialize(steps) ⇒ ExtractionStepList
Returns a new instance of ExtractionStepList.
3 4 5 |
# File 'lib/eml_to_pdf/extraction_step_list.rb', line 3 def initialize(steps) @steps = steps end |
Instance Method Details
#finished? ⇒ Boolean
11 12 13 |
# File 'lib/eml_to_pdf/extraction_step_list.rb', line 11 def finished? @steps.all?(&:finished?) end |
#next ⇒ Object
7 8 9 |
# File 'lib/eml_to_pdf/extraction_step_list.rb', line 7 def next self.class.new(@steps.map(&:next)) end |
#to_html ⇒ Object
15 16 17 |
# File 'lib/eml_to_pdf/extraction_step_list.rb', line 15 def to_html @steps.flatten.map(&:to_html).join end |