class Protest::Reports::Stories::PDF

Public Class Methods

new(stream=STDOUT) click to toggle source

Set the stream where the report will be written to. STDOUT by default.

# File lib/protest/reports/stories/pdf.rb, line 17
def initialize(stream=STDOUT)
  @stream = stream
end

Public Instance Methods

render_header(pdf) click to toggle source
# File lib/protest/reports/stories/pdf.rb, line 21
def render_header(pdf)
end
render_many(pdf, elements) click to toggle source
# File lib/protest/reports/stories/pdf.rb, line 24
def render_many(pdf, elements)
  elements.each do |el|
    pdf.text el.to_s
  end
end