Module: Prawn::Text::Formatted
- Included in:
- Prawn::Text
- Defined in:
- lib/prawn/text/formatted.rb,
lib/prawn/text/formatted/box.rb,
lib/prawn/text/formatted/wrap.rb,
lib/prawn/text/formatted/parser.rb,
lib/prawn/text/formatted/arranger.rb,
lib/prawn/text/formatted/fragment.rb,
lib/prawn/text/formatted/line_wrap.rb
Overview
Fancy pretty text.
Defined Under Namespace
Modules: Wrap Classes: Arranger, Box, Fragment, LineWrap, Parser
Stable API collapse
-
#formatted_text_box(array, options = {}) ⇒ Array<Hash>
Draws the requested formatted text into a box.
Instance Method Details
#formatted_text_box(array, options = {}) ⇒ Array<Hash>
Draws the requested formatted text into a box.
When the text overflows the rectangle shrink to fit or truncate the text. Text boxes are independent of the document y position.
73 74 75 |
# File 'lib/prawn/text/formatted.rb', line 73 def formatted_text_box(array, = {}) Text::Formatted::Box.new(array, .merge(document: self)).render end |