--- !ruby/object:RI::MethodDescription 
aliases: []

block_params: 
comment: 
- !ruby/struct:SM::Flow::P 
  body: This will add a string of <tt>text</tt> to the document, starting at the current drawing position. It will wrap to keep within the margins, including optional offsets from the left and the right. The text will go to the start of the next line when a return code &quot;\n&quot; is found.
- !ruby/struct:SM::Flow::P 
  body: "Possible <tt>options</tt> are:"
- !ruby/object:SM::Flow::LIST 
  contents: 
  - !ruby/struct:SM::Flow::LI 
    label: "<tt>:font_size</tt>:"
    body: "The font size to be used. If not specified, is either the last font size or the default font size of 12 points. Setting this value <b>changes</b> the current #font_size."
  - !ruby/struct:SM::Flow::LI 
    label: "<tt>:left</tt>:"
    body: number, gap to leave from the left margin
  - !ruby/struct:SM::Flow::LI 
    label: "<tt>:right</tt>:"
    body: number, gap to leave from the right margin
  - !ruby/struct:SM::Flow::LI 
    label: "<tt>:absolute_left</tt>:"
    body: number, absolute left position (overrides <tt>:left</tt>)
  - !ruby/struct:SM::Flow::LI 
    label: "<tt>:absolute_right</tt>:"
    body: number, absolute right position (overrides <tt>:right</tt>)
  - !ruby/struct:SM::Flow::LI 
    label: "<tt>:justification</tt>:"
    body: <tt>:left</tt>, <tt>:right</tt>, <tt>:center</tt>, <tt>:full</tt>
  - !ruby/struct:SM::Flow::LI 
    label: "<tt>:leading</tt>:"
    body: number, defines the total height taken by the line, independent of the font height.
  - !ruby/struct:SM::Flow::LI 
    label: "<tt>:spacing</tt>:"
    body: a Floating point number, though usually set to one of 1, 1.5, 2 (line spacing as used in word processing)
  type: :NOTE
- !ruby/struct:SM::Flow::P 
  body: Only one of <tt>:leading</tt> or <tt>:spacing</tt> should be specified (leading overrides spacing).
- !ruby/struct:SM::Flow::P 
  body: If the <tt>:test</tt> option is <tt>true</tt>, then this should just check to see if the text is flowing onto a new page or not; returns <tt>true</tt> or <tt>false</tt>. Note that the new page test is only sensitive to exceeding the bottom margin of the page. It is not known whether the writing of the text will require a new physical page or whether it will require a new column.
full_name: PDF::Writer#text
is_singleton: false
name: text
params: (text, options = {})
visibility: public
