class EmlToPdfExt::ExtractionStepList
Public Class Methods
new(steps)
click to toggle source
# File lib/eml_to_pdf_ext/extraction_step_list.rb, line 3 def initialize(steps) @steps = steps end
Public Instance Methods
finished?()
click to toggle source
# File lib/eml_to_pdf_ext/extraction_step_list.rb, line 11 def finished? @steps.all?(&:finished?) end
next()
click to toggle source
# File lib/eml_to_pdf_ext/extraction_step_list.rb, line 7 def next self.class.new(@steps.map(&:next)) end
to_html()
click to toggle source
# File lib/eml_to_pdf_ext/extraction_step_list.rb, line 15 def to_html @steps.flatten.map(&:to_html).join end
Private Instance Methods
multipart_alternative?(part)
click to toggle source
# File lib/eml_to_pdf_ext/extraction_step_list.rb, line 20 def multipart_alternative?(part) part.mime_type == MIME_TYPES[:multipart_alternative] end