Module: PrawnComponents::Components::Paragraph

Defined in:
lib/prawn_components/components/paragraph.rb

Instance Method Summary collapse

Instance Method Details

#paragraph(value, options = {}) ⇒ Object



4
5
6
7
8
9
# File 'lib/prawn_components/components/paragraph.rb', line 4

def paragraph(value, options = {})
  font_size = options.fetch(:font_size, 13)

  text(value, size: font_size, inline_format: true, align: :justify)
  move_down(10)
end