class Proforma::PrawnRenderer::TextRenderer

This class understands how to ender a Proforma::Modeling::Text component.

Public Instance Methods

render(text) click to toggle source
# File lib/proforma/prawn_renderer/text_renderer.rb, line 16
def render(text)
  pdf.text(
    text.value.to_s,
    size: text_font_size
  )
end