rrtf 1.0.0 → 1.3.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (87) hide show
  1. checksums.yaml +5 -5
  2. data/CHANGELOG.md +17 -0
  3. data/README.md +29 -0
  4. data/documentation/RRTF.html +5 -5
  5. data/documentation/RRTF/AnonymousStyle.html +2 -2
  6. data/documentation/RRTF/BorderFormatting.html +48 -48
  7. data/documentation/RRTF/BorderStyle.html +1 -1
  8. data/documentation/RRTF/CharacterFormatting.html +1 -1
  9. data/documentation/RRTF/CharacterStyle.html +1 -1
  10. data/documentation/RRTF/Colour.html +1 -1
  11. data/documentation/RRTF/ColourTable.html +1 -1
  12. data/documentation/RRTF/CommandNode.html +333 -93
  13. data/documentation/RRTF/ContainerNode.html +1 -1
  14. data/documentation/RRTF/Converters.html +1 -1
  15. data/documentation/RRTF/Converters/HTML.html +1 -1
  16. data/documentation/RRTF/Converters/HTML/Helpers.html +1 -1
  17. data/documentation/RRTF/Converters/HTML/Node.html +1 -1
  18. data/documentation/RRTF/Converters/HTML/NodeSet.html +1 -1
  19. data/documentation/RRTF/Document.html +2 -2
  20. data/documentation/RRTF/DocumentFormatting.html +48 -48
  21. data/documentation/RRTF/DocumentProperties.html +8 -3
  22. data/documentation/RRTF/Font.html +1 -1
  23. data/documentation/RRTF/FontTable.html +1 -1
  24. data/documentation/RRTF/FooterNode.html +2 -2
  25. data/documentation/RRTF/GeometryNode.html +2 -2
  26. data/documentation/RRTF/GeometryProperties.html +9 -9
  27. data/documentation/RRTF/HeaderNode.html +2 -2
  28. data/documentation/RRTF/ImageNode.html +64 -61
  29. data/documentation/RRTF/Information.html +1 -1
  30. data/documentation/RRTF/LinkNode.html +2 -2
  31. data/documentation/RRTF/ListLevel.html +1 -1
  32. data/documentation/RRTF/ListLevelNode.html +2 -2
  33. data/documentation/RRTF/ListMarker.html +1 -1
  34. data/documentation/RRTF/ListNode.html +2 -2
  35. data/documentation/RRTF/ListTable.html +1 -1
  36. data/documentation/RRTF/ListTemplate.html +1 -1
  37. data/documentation/RRTF/ListTextNode.html +2 -2
  38. data/documentation/RRTF/Node.html +1 -1
  39. data/documentation/RRTF/Page.html +1 -1
  40. data/documentation/RRTF/Page/Margin.html +1 -1
  41. data/documentation/RRTF/Page/Size.html +1 -1
  42. data/documentation/RRTF/PageFormatting.html +184 -195
  43. data/documentation/RRTF/ParagraphFormatting.html +75 -48
  44. data/documentation/RRTF/ParagraphNode.html +2 -2
  45. data/documentation/RRTF/ParagraphStyle.html +1 -1
  46. data/documentation/RRTF/PositionFormatting.html +48 -48
  47. data/documentation/RRTF/PositionStyle.html +1 -1
  48. data/documentation/RRTF/Properties.html +1 -1
  49. data/documentation/RRTF/RTFError.html +1 -1
  50. data/documentation/RRTF/SectionFormatting.html +750 -0
  51. data/documentation/RRTF/SectionNode.html +383 -0
  52. data/documentation/RRTF/SectionStyle.html +830 -0
  53. data/documentation/RRTF/ShadingFormatting.html +48 -48
  54. data/documentation/RRTF/ShadingStyle.html +1 -1
  55. data/documentation/RRTF/Style.html +2 -2
  56. data/documentation/RRTF/Stylesheet.html +1 -1
  57. data/documentation/RRTF/TabStyle.html +698 -0
  58. data/documentation/RRTF/TableCellNode.html +2 -2
  59. data/documentation/RRTF/TableNode.html +1 -1
  60. data/documentation/RRTF/TableRowNode.html +1 -1
  61. data/documentation/RRTF/TextNode.html +1 -1
  62. data/documentation/RRTF/Utilities.html +1 -1
  63. data/documentation/_index.html +33 -5
  64. data/documentation/class_list.html +1 -1
  65. data/documentation/file.README.html +32 -1
  66. data/documentation/index.html +32 -1
  67. data/documentation/method_list.html +499 -355
  68. data/documentation/top-level-namespace.html +1 -1
  69. data/examples/08.rtf +2 -2
  70. data/examples/09.rtf +9 -13
  71. data/examples/09_shapes.rb +2 -1
  72. data/examples/11.rtf +19 -0
  73. data/examples/11_sections.rb +11 -0
  74. data/examples/12.rtf +19 -0
  75. data/examples/12_tabs.rb +21 -0
  76. data/lib/rrtf/formatting.rb +155 -22
  77. data/lib/rrtf/node.rb +1 -0
  78. data/lib/rrtf/node/command_node.rb +38 -4
  79. data/lib/rrtf/node/image_node.rb +26 -32
  80. data/lib/rrtf/node/section_node.rb +21 -0
  81. data/lib/rrtf/properties/geometry_properties.rb +4 -4
  82. data/lib/rrtf/style.rb +2 -0
  83. data/lib/rrtf/style/section_style.rb +66 -0
  84. data/lib/rrtf/style/tab_style.rb +55 -0
  85. data/lib/rrtf/version.rb +1 -1
  86. data/rrtf.gemspec +4 -4
  87. metadata +30 -20
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
- SHA1:
3
- metadata.gz: cc70901e84aadb460e92e00edce17a81a70cd993
4
- data.tar.gz: 9cbfde57e949d1479bf77b7f0773d9502a4436e9
2
+ SHA256:
3
+ metadata.gz: 3988872ee12fc73f36deec2f270bd3a29dce2606df1fcc59d6ca6ab3e1c12d2e
4
+ data.tar.gz: af41294dd674b653ca0802d6746d25ae3e5ed8dd00435efa5b7bc3bbc7ab75f8
5
5
  SHA512:
6
- metadata.gz: 01d07f75d2b50486c3e55174e10dff2954e235ce6c999be4b8a9d6abb1d5904df7c7a6578c9cebc3606d7ad59fd829031e3d5210233d1d172dd56b1a8cf6bb33
7
- data.tar.gz: 0a74b57a08c94e549579b21196109718c3e2eac0fb042c760f3820224a21898e249997e4483ce2511cbccdc90527c7484c464c5755282768fc2fd574f3c1ba30
6
+ metadata.gz: 100be960b7f499c7bd55f334808f6a3d7f4eff2a405bb3ca5de05ba86b0d294f0c951d7c80cd704dc8cc98cc350318d2c9d19321f849eb32e7e735765f221dec
7
+ data.tar.gz: ae6a47377d23caaa21548a8a41e6a92ef05f9baea38d1a6221e7f3d7cc2e8e009c5d79daed222e9566dddb368b5627d24b0cc84e4d6ff136ad36de2234426532
@@ -22,3 +22,20 @@ _Version 1.0.0:_
22
22
  - Add BorderFormatting module and BorderStyle class to allow border definition on paragraphs and images.
23
23
  - Add ShadingFormatting module and ShadingStyle class to allow paragraph shading.
24
24
  - Add ShapeNode class to implement basic shapes.
25
+
26
+ _Version 1.0.1:_
27
+
28
+ - Allow remote source for images with open-uri.
29
+ - Fix issue with setting "text_margin" for text boxes.
30
+
31
+ _Version 1.1.0:_
32
+
33
+ - Add support for sections.
34
+
35
+ _Version 1.2.0:_
36
+
37
+ - Add support for column breaks.
38
+
39
+ _Version 1.3.0:_
40
+
41
+ - Add support for tab stops (`tab` method in `CommandNode` class, "tabs" option for paragraph formatting, and `TabStyle` class).
data/README.md CHANGED
@@ -10,6 +10,8 @@ RRTF enables programatic creation of Rich Text Format (RTF) documents in Ruby, f
10
10
  - __Images__: Embed, size, and define borders for PNG, JPEG, and BMP images.
11
11
  - __Shapes__: Draw basic shapes, custom shapes, and text boxes.
12
12
  - __Stylesheets__: Define paragraph and character styles, enabling the end user to easily modify the look of RTF documents.
13
+ - __Sections__: Add sections to a document with custom page and column formatting.
14
+ - __Tabs__: Define tab stops with optional leaders for paragraphs.
13
15
 
14
16
  The gem was created with reference to the [Microsoft Office RTF Specification (v1.9.1)](https://www.microsoft.com/en-us/download/details.aspx?id=10725). The syntax for custom shapes was determined by reverse engineering the RTF output from Word 2016 and reference to [Microsoft's Binary Format Specification (pp. 32-33)](https://www.loc.gov/preservation/digital/formats/digformatspecs/OfficeDrawing97-2007BinaryFormatSpecification.pdf).
15
17
 
@@ -221,6 +223,33 @@ rtf.paragraph(styles['SUBTITLE']) do |p|
221
223
  end
222
224
  ```
223
225
 
226
+ #### Sections
227
+
228
+ ```ruby
229
+ rtf.paragraph << "Redshirt Pocket Guide"
230
+ # start a new section with the prescribed styling
231
+ rtf.section("columns" => 2)
232
+ rtf.paragraph << "Section Text"
233
+ ```
234
+
235
+ #### Tabs
236
+
237
+ ```ruby
238
+ rtf.paragraph("tabs" => {
239
+ "leader" => "DOT",
240
+ "type" => "FLUSH_RIGHT",
241
+ "position" => "2in"
242
+ }) do |p|
243
+ p << "Engineers"
244
+ p.tab
245
+ p << "10"
246
+ p.line_break
247
+ p << "Redshirts"
248
+ p.tab
249
+ p << "100"
250
+ end
251
+ ```
252
+
224
253
  ## TODO
225
254
 
226
255
  - Develop rspec examples to replace the unit tests for the classes in the original ifad-rtf gem.
@@ -79,7 +79,7 @@
79
79
  <dl>
80
80
  <dt>Defined in:</dt>
81
81
  <dd>lib/rrtf.rb<span class="defines">,<br />
82
- lib/rrtf/font.rb,<br /> lib/rrtf/list.rb,<br /> lib/rrtf/colour.rb,<br /> lib/rrtf/version.rb,<br /> lib/rrtf/node/node.rb,<br /> lib/rrtf/utilities.rb,<br /> lib/rrtf/stylesheet.rb,<br /> lib/rrtf/information.rb,<br /> lib/rrtf/style/style.rb,<br /> lib/rrtf/node/document.rb,<br /> lib/rrtf/node/link_node.rb,<br /> lib/rrtf/node/list_node.rb,<br /> lib/rrtf/node/text_node.rb,<br /> lib/rrtf/node/image_node.rb,<br /> lib/rrtf/node/table_node.rb,<br /> lib/rrtf/node/footer_node.rb,<br /> lib/rrtf/node/header_node.rb,<br /> lib/rrtf/node/command_node.rb,<br /> lib/rrtf/node/geometry_node.rb,<br /> lib/rrtf/style/border_style.rb,<br /> lib/rrtf/node/container_node.rb,<br /> lib/rrtf/node/list_text_node.rb,<br /> lib/rrtf/node/paragraph_node.rb,<br /> lib/rrtf/node/table_row_node.rb,<br /> lib/rrtf/style/shading_style.rb,<br /> lib/rrtf/node/list_level_node.rb,<br /> lib/rrtf/node/table_cell_node.rb,<br /> lib/rrtf/style/position_style.rb,<br /> lib/rrtf/properties/properties.rb,<br /> lib/rrtf/style/anonymous_style.rb,<br /> lib/rrtf/style/character_style.rb,<br /> lib/rrtf/style/paragraph_style.rb,<br /> lib/rrtf/properties/document_properties.rb,<br /> lib/rrtf/properties/geometry_properties.rb</span>
82
+ lib/rrtf/font.rb,<br /> lib/rrtf/list.rb,<br /> lib/rrtf/colour.rb,<br /> lib/rrtf/version.rb,<br /> lib/rrtf/node/node.rb,<br /> lib/rrtf/utilities.rb,<br /> lib/rrtf/stylesheet.rb,<br /> lib/rrtf/information.rb,<br /> lib/rrtf/style/style.rb,<br /> lib/rrtf/node/document.rb,<br /> lib/rrtf/node/link_node.rb,<br /> lib/rrtf/node/list_node.rb,<br /> lib/rrtf/node/text_node.rb,<br /> lib/rrtf/node/image_node.rb,<br /> lib/rrtf/node/table_node.rb,<br /> lib/rrtf/style/tab_style.rb,<br /> lib/rrtf/node/footer_node.rb,<br /> lib/rrtf/node/header_node.rb,<br /> lib/rrtf/node/command_node.rb,<br /> lib/rrtf/node/section_node.rb,<br /> lib/rrtf/node/geometry_node.rb,<br /> lib/rrtf/style/border_style.rb,<br /> lib/rrtf/node/container_node.rb,<br /> lib/rrtf/node/list_text_node.rb,<br /> lib/rrtf/node/paragraph_node.rb,<br /> lib/rrtf/node/table_row_node.rb,<br /> lib/rrtf/style/section_style.rb,<br /> lib/rrtf/style/shading_style.rb,<br /> lib/rrtf/node/list_level_node.rb,<br /> lib/rrtf/node/table_cell_node.rb,<br /> lib/rrtf/style/position_style.rb,<br /> lib/rrtf/properties/properties.rb,<br /> lib/rrtf/style/anonymous_style.rb,<br /> lib/rrtf/style/character_style.rb,<br /> lib/rrtf/style/paragraph_style.rb,<br /> lib/rrtf/properties/document_properties.rb,<br /> lib/rrtf/properties/geometry_properties.rb</span>
83
83
  </dd>
84
84
  </dl>
85
85
 
@@ -89,11 +89,11 @@
89
89
  <p class="children">
90
90
 
91
91
 
92
- <strong class="modules">Modules:</strong> <span class='object_link'><a href="RRTF/BorderFormatting.html" title="RRTF::BorderFormatting (module)">BorderFormatting</a></span>, <span class='object_link'><a href="RRTF/CharacterFormatting.html" title="RRTF::CharacterFormatting (module)">CharacterFormatting</a></span>, <span class='object_link'><a href="RRTF/Converters.html" title="RRTF::Converters (module)">Converters</a></span>, <span class='object_link'><a href="RRTF/DocumentFormatting.html" title="RRTF::DocumentFormatting (module)">DocumentFormatting</a></span>, <span class='object_link'><a href="RRTF/Page.html" title="RRTF::Page (module)">Page</a></span>, <span class='object_link'><a href="RRTF/PageFormatting.html" title="RRTF::PageFormatting (module)">PageFormatting</a></span>, <span class='object_link'><a href="RRTF/ParagraphFormatting.html" title="RRTF::ParagraphFormatting (module)">ParagraphFormatting</a></span>, <span class='object_link'><a href="RRTF/PositionFormatting.html" title="RRTF::PositionFormatting (module)">PositionFormatting</a></span>, <span class='object_link'><a href="RRTF/ShadingFormatting.html" title="RRTF::ShadingFormatting (module)">ShadingFormatting</a></span>
92
+ <strong class="modules">Modules:</strong> <span class='object_link'><a href="RRTF/BorderFormatting.html" title="RRTF::BorderFormatting (module)">BorderFormatting</a></span>, <span class='object_link'><a href="RRTF/CharacterFormatting.html" title="RRTF::CharacterFormatting (module)">CharacterFormatting</a></span>, <span class='object_link'><a href="RRTF/Converters.html" title="RRTF::Converters (module)">Converters</a></span>, <span class='object_link'><a href="RRTF/DocumentFormatting.html" title="RRTF::DocumentFormatting (module)">DocumentFormatting</a></span>, <span class='object_link'><a href="RRTF/Page.html" title="RRTF::Page (module)">Page</a></span>, <span class='object_link'><a href="RRTF/PageFormatting.html" title="RRTF::PageFormatting (module)">PageFormatting</a></span>, <span class='object_link'><a href="RRTF/ParagraphFormatting.html" title="RRTF::ParagraphFormatting (module)">ParagraphFormatting</a></span>, <span class='object_link'><a href="RRTF/PositionFormatting.html" title="RRTF::PositionFormatting (module)">PositionFormatting</a></span>, <span class='object_link'><a href="RRTF/SectionFormatting.html" title="RRTF::SectionFormatting (module)">SectionFormatting</a></span>, <span class='object_link'><a href="RRTF/ShadingFormatting.html" title="RRTF::ShadingFormatting (module)">ShadingFormatting</a></span>
93
93
 
94
94
 
95
95
 
96
- <strong class="classes">Classes:</strong> <span class='object_link'><a href="RRTF/AnonymousStyle.html" title="RRTF::AnonymousStyle (class)">AnonymousStyle</a></span>, <span class='object_link'><a href="RRTF/BorderStyle.html" title="RRTF::BorderStyle (class)">BorderStyle</a></span>, <span class='object_link'><a href="RRTF/CharacterStyle.html" title="RRTF::CharacterStyle (class)">CharacterStyle</a></span>, <span class='object_link'><a href="RRTF/Colour.html" title="RRTF::Colour (class)">Colour</a></span>, <span class='object_link'><a href="RRTF/ColourTable.html" title="RRTF::ColourTable (class)">ColourTable</a></span>, <span class='object_link'><a href="RRTF/CommandNode.html" title="RRTF::CommandNode (class)">CommandNode</a></span>, <span class='object_link'><a href="RRTF/ContainerNode.html" title="RRTF::ContainerNode (class)">ContainerNode</a></span>, <span class='object_link'><a href="RRTF/Document.html" title="RRTF::Document (class)">Document</a></span>, <span class='object_link'><a href="RRTF/DocumentProperties.html" title="RRTF::DocumentProperties (class)">DocumentProperties</a></span>, <span class='object_link'><a href="RRTF/Font.html" title="RRTF::Font (class)">Font</a></span>, <span class='object_link'><a href="RRTF/FontTable.html" title="RRTF::FontTable (class)">FontTable</a></span>, <span class='object_link'><a href="RRTF/FooterNode.html" title="RRTF::FooterNode (class)">FooterNode</a></span>, <span class='object_link'><a href="RRTF/GeometryNode.html" title="RRTF::GeometryNode (class)">GeometryNode</a></span>, <span class='object_link'><a href="RRTF/GeometryProperties.html" title="RRTF::GeometryProperties (class)">GeometryProperties</a></span>, <span class='object_link'><a href="RRTF/HeaderNode.html" title="RRTF::HeaderNode (class)">HeaderNode</a></span>, <span class='object_link'><a href="RRTF/ImageNode.html" title="RRTF::ImageNode (class)">ImageNode</a></span>, <span class='object_link'><a href="RRTF/Information.html" title="RRTF::Information (class)">Information</a></span>, <span class='object_link'><a href="RRTF/LinkNode.html" title="RRTF::LinkNode (class)">LinkNode</a></span>, <span class='object_link'><a href="RRTF/ListLevel.html" title="RRTF::ListLevel (class)">ListLevel</a></span>, <span class='object_link'><a href="RRTF/ListLevelNode.html" title="RRTF::ListLevelNode (class)">ListLevelNode</a></span>, <span class='object_link'><a href="RRTF/ListMarker.html" title="RRTF::ListMarker (class)">ListMarker</a></span>, <span class='object_link'><a href="RRTF/ListNode.html" title="RRTF::ListNode (class)">ListNode</a></span>, <span class='object_link'><a href="RRTF/ListTable.html" title="RRTF::ListTable (class)">ListTable</a></span>, <span class='object_link'><a href="RRTF/ListTemplate.html" title="RRTF::ListTemplate (class)">ListTemplate</a></span>, <span class='object_link'><a href="RRTF/ListTextNode.html" title="RRTF::ListTextNode (class)">ListTextNode</a></span>, <span class='object_link'><a href="RRTF/Node.html" title="RRTF::Node (class)">Node</a></span>, <span class='object_link'><a href="RRTF/ParagraphNode.html" title="RRTF::ParagraphNode (class)">ParagraphNode</a></span>, <span class='object_link'><a href="RRTF/ParagraphStyle.html" title="RRTF::ParagraphStyle (class)">ParagraphStyle</a></span>, <span class='object_link'><a href="RRTF/PositionStyle.html" title="RRTF::PositionStyle (class)">PositionStyle</a></span>, <span class='object_link'><a href="RRTF/Properties.html" title="RRTF::Properties (class)">Properties</a></span>, <span class='object_link'><a href="RRTF/RTFError.html" title="RRTF::RTFError (class)">RTFError</a></span>, <span class='object_link'><a href="RRTF/ShadingStyle.html" title="RRTF::ShadingStyle (class)">ShadingStyle</a></span>, <span class='object_link'><a href="RRTF/Style.html" title="RRTF::Style (class)">Style</a></span>, <span class='object_link'><a href="RRTF/Stylesheet.html" title="RRTF::Stylesheet (class)">Stylesheet</a></span>, <span class='object_link'><a href="RRTF/TableCellNode.html" title="RRTF::TableCellNode (class)">TableCellNode</a></span>, <span class='object_link'><a href="RRTF/TableNode.html" title="RRTF::TableNode (class)">TableNode</a></span>, <span class='object_link'><a href="RRTF/TableRowNode.html" title="RRTF::TableRowNode (class)">TableRowNode</a></span>, <span class='object_link'><a href="RRTF/TextNode.html" title="RRTF::TextNode (class)">TextNode</a></span>, <span class='object_link'><a href="RRTF/Utilities.html" title="RRTF::Utilities (class)">Utilities</a></span>
96
+ <strong class="classes">Classes:</strong> <span class='object_link'><a href="RRTF/AnonymousStyle.html" title="RRTF::AnonymousStyle (class)">AnonymousStyle</a></span>, <span class='object_link'><a href="RRTF/BorderStyle.html" title="RRTF::BorderStyle (class)">BorderStyle</a></span>, <span class='object_link'><a href="RRTF/CharacterStyle.html" title="RRTF::CharacterStyle (class)">CharacterStyle</a></span>, <span class='object_link'><a href="RRTF/Colour.html" title="RRTF::Colour (class)">Colour</a></span>, <span class='object_link'><a href="RRTF/ColourTable.html" title="RRTF::ColourTable (class)">ColourTable</a></span>, <span class='object_link'><a href="RRTF/CommandNode.html" title="RRTF::CommandNode (class)">CommandNode</a></span>, <span class='object_link'><a href="RRTF/ContainerNode.html" title="RRTF::ContainerNode (class)">ContainerNode</a></span>, <span class='object_link'><a href="RRTF/Document.html" title="RRTF::Document (class)">Document</a></span>, <span class='object_link'><a href="RRTF/DocumentProperties.html" title="RRTF::DocumentProperties (class)">DocumentProperties</a></span>, <span class='object_link'><a href="RRTF/Font.html" title="RRTF::Font (class)">Font</a></span>, <span class='object_link'><a href="RRTF/FontTable.html" title="RRTF::FontTable (class)">FontTable</a></span>, <span class='object_link'><a href="RRTF/FooterNode.html" title="RRTF::FooterNode (class)">FooterNode</a></span>, <span class='object_link'><a href="RRTF/GeometryNode.html" title="RRTF::GeometryNode (class)">GeometryNode</a></span>, <span class='object_link'><a href="RRTF/GeometryProperties.html" title="RRTF::GeometryProperties (class)">GeometryProperties</a></span>, <span class='object_link'><a href="RRTF/HeaderNode.html" title="RRTF::HeaderNode (class)">HeaderNode</a></span>, <span class='object_link'><a href="RRTF/ImageNode.html" title="RRTF::ImageNode (class)">ImageNode</a></span>, <span class='object_link'><a href="RRTF/Information.html" title="RRTF::Information (class)">Information</a></span>, <span class='object_link'><a href="RRTF/LinkNode.html" title="RRTF::LinkNode (class)">LinkNode</a></span>, <span class='object_link'><a href="RRTF/ListLevel.html" title="RRTF::ListLevel (class)">ListLevel</a></span>, <span class='object_link'><a href="RRTF/ListLevelNode.html" title="RRTF::ListLevelNode (class)">ListLevelNode</a></span>, <span class='object_link'><a href="RRTF/ListMarker.html" title="RRTF::ListMarker (class)">ListMarker</a></span>, <span class='object_link'><a href="RRTF/ListNode.html" title="RRTF::ListNode (class)">ListNode</a></span>, <span class='object_link'><a href="RRTF/ListTable.html" title="RRTF::ListTable (class)">ListTable</a></span>, <span class='object_link'><a href="RRTF/ListTemplate.html" title="RRTF::ListTemplate (class)">ListTemplate</a></span>, <span class='object_link'><a href="RRTF/ListTextNode.html" title="RRTF::ListTextNode (class)">ListTextNode</a></span>, <span class='object_link'><a href="RRTF/Node.html" title="RRTF::Node (class)">Node</a></span>, <span class='object_link'><a href="RRTF/ParagraphNode.html" title="RRTF::ParagraphNode (class)">ParagraphNode</a></span>, <span class='object_link'><a href="RRTF/ParagraphStyle.html" title="RRTF::ParagraphStyle (class)">ParagraphStyle</a></span>, <span class='object_link'><a href="RRTF/PositionStyle.html" title="RRTF::PositionStyle (class)">PositionStyle</a></span>, <span class='object_link'><a href="RRTF/Properties.html" title="RRTF::Properties (class)">Properties</a></span>, <span class='object_link'><a href="RRTF/RTFError.html" title="RRTF::RTFError (class)">RTFError</a></span>, <span class='object_link'><a href="RRTF/SectionNode.html" title="RRTF::SectionNode (class)">SectionNode</a></span>, <span class='object_link'><a href="RRTF/SectionStyle.html" title="RRTF::SectionStyle (class)">SectionStyle</a></span>, <span class='object_link'><a href="RRTF/ShadingStyle.html" title="RRTF::ShadingStyle (class)">ShadingStyle</a></span>, <span class='object_link'><a href="RRTF/Style.html" title="RRTF::Style (class)">Style</a></span>, <span class='object_link'><a href="RRTF/Stylesheet.html" title="RRTF::Stylesheet (class)">Stylesheet</a></span>, <span class='object_link'><a href="RRTF/TabStyle.html" title="RRTF::TabStyle (class)">TabStyle</a></span>, <span class='object_link'><a href="RRTF/TableCellNode.html" title="RRTF::TableCellNode (class)">TableCellNode</a></span>, <span class='object_link'><a href="RRTF/TableNode.html" title="RRTF::TableNode (class)">TableNode</a></span>, <span class='object_link'><a href="RRTF/TableRowNode.html" title="RRTF::TableRowNode (class)">TableRowNode</a></span>, <span class='object_link'><a href="RRTF/TextNode.html" title="RRTF::TextNode (class)">TextNode</a></span>, <span class='object_link'><a href="RRTF/Utilities.html" title="RRTF::Utilities (class)">Utilities</a></span>
97
97
 
98
98
 
99
99
  </p>
@@ -104,7 +104,7 @@
104
104
  <dt id="VERSION-constant" class="">VERSION =
105
105
 
106
106
  </dt>
107
- <dd><pre class="code"><span class='tstring'><span class='tstring_beg'>&quot;</span><span class='tstring_content'>1.0.0</span><span class='tstring_end'>&quot;</span></span></pre></dd>
107
+ <dd><pre class="code"><span class='tstring'><span class='tstring_beg'>&quot;</span><span class='tstring_content'>1.2.0</span><span class='tstring_end'>&quot;</span></span></pre></dd>
108
108
 
109
109
  </dl>
110
110
 
@@ -119,7 +119,7 @@
119
119
  </div>
120
120
 
121
121
  <div id="footer">
122
- Generated on Mon Jul 31 21:48:57 2017 by
122
+ Generated on Wed Aug 2 23:05:14 2017 by
123
123
  <a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
124
124
  0.9.9 (ruby-2.3.3).
125
125
  </div>
@@ -149,7 +149,7 @@ RTF document (e.g. paragraph, characters, border, table, etc.)

149
149
 
150
150
  </div><div id="subclasses">
151
151
  <h2>Direct Known Subclasses</h2>
152
- <p class="children"><span class='object_link'><a href="BorderStyle.html" title="RRTF::BorderStyle (class)">BorderStyle</a></span>, <span class='object_link'><a href="PositionStyle.html" title="RRTF::PositionStyle (class)">PositionStyle</a></span>, <span class='object_link'><a href="ShadingStyle.html" title="RRTF::ShadingStyle (class)">ShadingStyle</a></span>, <span class='object_link'><a href="Style.html" title="RRTF::Style (class)">Style</a></span></p>
152
+ <p class="children"><span class='object_link'><a href="BorderStyle.html" title="RRTF::BorderStyle (class)">BorderStyle</a></span>, <span class='object_link'><a href="PositionStyle.html" title="RRTF::PositionStyle (class)">PositionStyle</a></span>, <span class='object_link'><a href="ShadingStyle.html" title="RRTF::ShadingStyle (class)">ShadingStyle</a></span>, <span class='object_link'><a href="Style.html" title="RRTF::Style (class)">Style</a></span>, <span class='object_link'><a href="TabStyle.html" title="RRTF::TabStyle (class)">TabStyle</a></span></p>
153
153
  </div>
154
154
 
155
155
 
@@ -782,7 +782,7 @@ classes as needed.

782
782
  </div>
783
783
 
784
784
  <div id="footer">
785
- Generated on Mon Jul 31 21:49:01 2017 by
785
+ Generated on Wed Aug 2 23:05:19 2017 by
786
786
  <a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
787
787
  0.9.9 (ruby-2.3.3).
788
788
  </div>
@@ -399,17 +399,17 @@ is included in another module or class.

399
399
  <pre class="lines">
400
400
 
401
401
 
402
- 465
403
- 466
404
- 467
405
- 468
406
- 469
407
- 470
408
- 471
409
- 472</pre>
402
+ 492
403
+ 493
404
+ 494
405
+ 495
406
+ 496
407
+ 497
408
+ 498
409
+ 499</pre>
410
410
  </td>
411
411
  <td>
412
- <pre class="code"><span class="info file"># File 'lib/rrtf/formatting.rb', line 465</span>
412
+ <pre class="code"><span class="info file"># File 'lib/rrtf/formatting.rb', line 492</span>
413
413
 
414
414
  <span class='kw'>def</span> <span class='kw'>self</span><span class='period'>.</span><span class='id identifier rubyid_included'>included</span><span class='lparen'>(</span><span class='id identifier rubyid_base'>base</span><span class='rparen'>)</span>
415
415
  <span class='comment'># define accessors in base for paragraph attributes
@@ -502,22 +502,22 @@ be found in the document's colour and font tables, respectively.

502
502
  <pre class="lines">
503
503
 
504
504
 
505
- 514
506
- 515
507
- 516
508
- 517
509
- 518
510
- 519
511
- 520
512
- 521
513
- 522
514
- 523
515
- 524
516
- 525
517
- 526</pre>
505
+ 541
506
+ 542
507
+ 543
508
+ 544
509
+ 545
510
+ 546
511
+ 547
512
+ 548
513
+ 549
514
+ 550
515
+ 551
516
+ 552
517
+ 553</pre>
518
518
  </td>
519
519
  <td>
520
- <pre class="code"><span class="info file"># File 'lib/rrtf/formatting.rb', line 514</span>
520
+ <pre class="code"><span class="info file"># File 'lib/rrtf/formatting.rb', line 541</span>
521
521
 
522
522
  <span class='kw'>def</span> <span class='id identifier rubyid_border_formatting_to_rtf'>border_formatting_to_rtf</span><span class='lparen'>(</span><span class='id identifier rubyid_document'>document</span><span class='rparen'>)</span>
523
523
  <span class='id identifier rubyid_text'>text</span> <span class='op'>=</span> <span class='const'>StringIO</span><span class='period'>.</span><span class='id identifier rubyid_new'>new</span>
@@ -695,17 +695,17 @@ string, see
695
695
  <pre class="lines">
696
696
 
697
697
 
698
- 482
699
- 483
700
- 484
701
- 485
702
- 486
703
- 487
704
- 488
705
- 489</pre>
698
+ 509
699
+ 510
700
+ 511
701
+ 512
702
+ 513
703
+ 514
704
+ 515
705
+ 516</pre>
706
706
  </td>
707
707
  <td>
708
- <pre class="code"><span class="info file"># File 'lib/rrtf/formatting.rb', line 482</span>
708
+ <pre class="code"><span class="info file"># File 'lib/rrtf/formatting.rb', line 509</span>
709
709
 
710
710
  <span class='kw'>def</span> <span class='id identifier rubyid_initialize_border_formatting'>initialize_border_formatting</span><span class='lparen'>(</span><span class='id identifier rubyid_options'>options</span> <span class='op'>=</span> <span class='lbrace'>{</span><span class='rbrace'>}</span><span class='rparen'>)</span>
711
711
  <span class='comment'># load default attribute values
@@ -769,23 +769,23 @@ string, see
769
769
  <pre class="lines">
770
770
 
771
771
 
772
- 493
773
- 494
774
- 495
775
- 496
776
- 497
777
- 498
778
- 499
779
- 500
780
- 501
781
- 502
782
- 503
783
- 504
784
- 505
785
- 506</pre>
772
+ 520
773
+ 521
774
+ 522
775
+ 523
776
+ 524
777
+ 525
778
+ 526
779
+ 527
780
+ 528
781
+ 529
782
+ 530
783
+ 531
784
+ 532
785
+ 533</pre>
786
786
  </td>
787
787
  <td>
788
- <pre class="code"><span class="info file"># File 'lib/rrtf/formatting.rb', line 493</span>
788
+ <pre class="code"><span class="info file"># File 'lib/rrtf/formatting.rb', line 520</span>
789
789
 
790
790
  <span class='kw'>def</span> <span class='id identifier rubyid_set_border_formatting_from_hashmap'>set_border_formatting_from_hashmap</span><span class='lparen'>(</span><span class='id identifier rubyid_hash'>hash</span><span class='rparen'>)</span>
791
791
  <span class='id identifier rubyid_hash'>hash</span><span class='period'>.</span><span class='id identifier rubyid_each'>each</span> <span class='kw'>do</span> <span class='op'>|</span><span class='id identifier rubyid_attribute'>attribute</span><span class='comma'>,</span> <span class='id identifier rubyid_value'>value</span><span class='op'>|</span>
@@ -811,7 +811,7 @@ string, see
811
811
  </div>
812
812
 
813
813
  <div id="footer">
814
- Generated on Mon Jul 31 21:48:57 2017 by
814
+ Generated on Wed Aug 2 23:05:15 2017 by
815
815
  <a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
816
816
  0.9.9 (ruby-2.3.3).
817
817
  </div>
@@ -483,7 +483,7 @@ style object. Equivalent to
483
483
  </div>
484
484
 
485
485
  <div id="footer">
486
- Generated on Mon Jul 31 21:49:00 2017 by
486
+ Generated on Wed Aug 2 23:05:18 2017 by
487
487
  <a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
488
488
  0.9.9 (ruby-2.3.3).
489
489
  </div>
@@ -1123,7 +1123,7 @@ format.

1123
1123
  </div>
1124
1124
 
1125
1125
  <div id="footer">
1126
- Generated on Mon Jul 31 21:48:57 2017 by
1126
+ Generated on Wed Aug 2 23:05:14 2017 by
1127
1127
  <a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
1128
1128
  0.9.9 (ruby-2.3.3).
1129
1129
  </div>
@@ -992,7 +992,7 @@ stylesheet)

992
992
  </div>
993
993
 
994
994
  <div id="footer">
995
- Generated on Mon Jul 31 21:49:01 2017 by
995
+ Generated on Wed Aug 2 23:05:19 2017 by
996
996
  <a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
997
997
  0.9.9 (ruby-2.3.3).
998
998
  </div>
@@ -863,7 +863,7 @@ to zero.

863
863
  </div>
864
864
 
865
865
  <div id="footer">
866
- Generated on Mon Jul 31 21:48:58 2017 by
866
+ Generated on Wed Aug 2 23:05:15 2017 by
867
867
  <a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
868
868
  0.9.9 (ruby-2.3.3).
869
869
  </div>
@@ -760,7 +760,7 @@ Defaults to zero.

760
760
  </div>
761
761
 
762
762
  <div id="footer">
763
- Generated on Mon Jul 31 21:48:58 2017 by
763
+ Generated on Wed Aug 2 23:05:15 2017 by
764
764
  <a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
765
765
  0.9.9 (ruby-2.3.3).
766
766
  </div>
@@ -118,7 +118,7 @@ class for some specific command node types.

118
118
 
119
119
  </div><div id="subclasses">
120
120
  <h2>Direct Known Subclasses</h2>
121
- <p class="children"><span class='object_link'><a href="Document.html" title="RRTF::Document (class)">Document</a></span>, <span class='object_link'><a href="FooterNode.html" title="RRTF::FooterNode (class)">FooterNode</a></span>, <span class='object_link'><a href="GeometryNode.html" title="RRTF::GeometryNode (class)">GeometryNode</a></span>, <span class='object_link'><a href="HeaderNode.html" title="RRTF::HeaderNode (class)">HeaderNode</a></span>, <span class='object_link'><a href="LinkNode.html" title="RRTF::LinkNode (class)">LinkNode</a></span>, <span class='object_link'><a href="ListLevelNode.html" title="RRTF::ListLevelNode (class)">ListLevelNode</a></span>, <span class='object_link'><a href="ListNode.html" title="RRTF::ListNode (class)">ListNode</a></span>, <span class='object_link'><a href="ListTextNode.html" title="RRTF::ListTextNode (class)">ListTextNode</a></span>, <span class='object_link'><a href="ParagraphNode.html" title="RRTF::ParagraphNode (class)">ParagraphNode</a></span>, <span class='object_link'><a href="TableCellNode.html" title="RRTF::TableCellNode (class)">TableCellNode</a></span></p>
121
+ <p class="children"><span class='object_link'><a href="Document.html" title="RRTF::Document (class)">Document</a></span>, <span class='object_link'><a href="FooterNode.html" title="RRTF::FooterNode (class)">FooterNode</a></span>, <span class='object_link'><a href="GeometryNode.html" title="RRTF::GeometryNode (class)">GeometryNode</a></span>, <span class='object_link'><a href="HeaderNode.html" title="RRTF::HeaderNode (class)">HeaderNode</a></span>, <span class='object_link'><a href="LinkNode.html" title="RRTF::LinkNode (class)">LinkNode</a></span>, <span class='object_link'><a href="ListLevelNode.html" title="RRTF::ListLevelNode (class)">ListLevelNode</a></span>, <span class='object_link'><a href="ListNode.html" title="RRTF::ListNode (class)">ListNode</a></span>, <span class='object_link'><a href="ListTextNode.html" title="RRTF::ListTextNode (class)">ListTextNode</a></span>, <span class='object_link'><a href="ParagraphNode.html" title="RRTF::ParagraphNode (class)">ParagraphNode</a></span>, <span class='object_link'><a href="SectionNode.html" title="RRTF::SectionNode (class)">SectionNode</a></span>, <span class='object_link'><a href="TableCellNode.html" title="RRTF::TableCellNode (class)">TableCellNode</a></span></p>
122
122
  </div>
123
123
 
124
124
 
@@ -312,6 +312,31 @@ curly braces.

312
312
  single command node.</p>
313
313
  </div></span>
314
314
 
315
+ </li>
316
+
317
+
318
+ <li class="public ">
319
+ <span class="summary_signature">
320
+
321
+ <a href="#column_break-instance_method" title="#column_break (instance method)">#<strong>column_break</strong> &#x21d2; Object </a>
322
+
323
+
324
+
325
+ </span>
326
+
327
+
328
+
329
+
330
+
331
+
332
+
333
+
334
+
335
+ <span class="summary_desc"><div class='inline'>
336
+ <p>This method provides a short cut means of creating a column break command
337
+ node.</p>
338
+ </div></span>
339
+
315
340
  </li>
316
341
 
317
342
 
@@ -505,6 +530,52 @@ unordered list.

505
530
  node.</p>
506
531
  </div></span>
507
532
 
533
+ </li>
534
+
535
+
536
+ <li class="public ">
537
+ <span class="summary_signature">
538
+
539
+ <a href="#section-instance_method" title="#section (instance method)">#<strong>section</strong>(style = nil) {|node| ... } &#x21d2; Object </a>
540
+
541
+
542
+
543
+ </span>
544
+
545
+
546
+
547
+
548
+
549
+
550
+
551
+
552
+
553
+ <span class="summary_desc"><div class='inline'></div></span>
554
+
555
+ </li>
556
+
557
+
558
+ <li class="public ">
559
+ <span class="summary_signature">
560
+
561
+ <a href="#tab-instance_method" title="#tab (instance method)">#<strong>tab</strong> &#x21d2; Object </a>
562
+
563
+
564
+
565
+ </span>
566
+
567
+
568
+
569
+
570
+
571
+
572
+
573
+
574
+
575
+ <span class="summary_desc"><div class='inline'>
576
+ <p>This method provides a short cut means of creating a tab command node.</p>
577
+ </div></span>
578
+
508
579
  </li>
509
580
 
510
581
 
@@ -1008,29 +1079,29 @@ style).

1008
1079
  <pre class="lines">
1009
1080
 
1010
1081
 
1011
- 217
1012
- 218
1013
- 219
1014
- 220
1015
- 221
1016
- 222
1017
- 223
1018
- 224
1019
- 225
1020
- 226
1021
- 227
1022
- 228
1023
- 229
1024
- 230
1025
- 231
1026
- 232
1027
- 233
1028
- 234
1029
- 235
1030
- 236</pre>
1082
+ 251
1083
+ 252
1084
+ 253
1085
+ 254
1086
+ 255
1087
+ 256
1088
+ 257
1089
+ 258
1090
+ 259
1091
+ 260
1092
+ 261
1093
+ 262
1094
+ 263
1095
+ 264
1096
+ 265
1097
+ 266
1098
+ 267
1099
+ 268
1100
+ 269
1101
+ 270</pre>
1031
1102
  </td>
1032
1103
  <td>
1033
- <pre class="code"><span class="info file"># File 'lib/rrtf/node/command_node.rb', line 217</span>
1104
+ <pre class="code"><span class="info file"># File 'lib/rrtf/node/command_node.rb', line 251</span>
1034
1105
 
1035
1106
  <span class='kw'>def</span> <span class='id identifier rubyid_apply'>apply</span><span class='lparen'>(</span><span class='id identifier rubyid_style'>style</span><span class='rparen'>)</span>
1036
1107
  <span class='comment'># Check the input style.
@@ -1055,6 +1126,51 @@ style).

1055
1126
  </td>
1056
1127
  </tr>
1057
1128
  </table>
1129
+ </div>
1130
+
1131
+ <div class="method_details ">
1132
+ <h3 class="signature " id="column_break-instance_method">
1133
+
1134
+ #<strong>column_break</strong> &#x21d2; <tt>Object</tt>
1135
+
1136
+
1137
+
1138
+
1139
+
1140
+ </h3><div class="docstring">
1141
+ <div class="discussion">
1142
+
1143
+ <p>This method provides a short cut means of creating a column break command
1144
+ node. This command node does not take a block and may possess no other
1145
+ content.</p>
1146
+
1147
+
1148
+ </div>
1149
+ </div>
1150
+ <div class="tags">
1151
+
1152
+
1153
+ </div><table class="source_code">
1154
+ <tr>
1155
+ <td>
1156
+ <pre class="lines">
1157
+
1158
+
1159
+ 170
1160
+ 171
1161
+ 172
1162
+ 173</pre>
1163
+ </td>
1164
+ <td>
1165
+ <pre class="code"><span class="info file"># File 'lib/rrtf/node/command_node.rb', line 170</span>
1166
+
1167
+ <span class='kw'>def</span> <span class='id identifier rubyid_column_break'>column_break</span>
1168
+ <span class='kw'>self</span><span class='period'>.</span><span class='id identifier rubyid_store'>store</span><span class='lparen'>(</span><span class='const'><span class='object_link'><a href="" title="RRTF::CommandNode (class)">CommandNode</a></span></span><span class='period'>.</span><span class='id identifier rubyid_new'><span class='object_link'><a href="#initialize-instance_method" title="RRTF::CommandNode#initialize (method)">new</a></span></span><span class='lparen'>(</span><span class='kw'>self</span><span class='comma'>,</span> <span class='tstring'><span class='tstring_beg'>&#39;</span><span class='tstring_content'>\column</span><span class='tstring_end'>&#39;</span></span><span class='comma'>,</span> <span class='kw'>nil</span><span class='comma'>,</span> <span class='kw'>false</span><span class='rparen'>)</span><span class='rparen'>)</span>
1169
+ <span class='kw'>nil</span>
1170
+ <span class='kw'>end</span></pre>
1171
+ </td>
1172
+ </tr>
1173
+ </table>
1058
1174
  </div>
1059
1175
 
1060
1176
  <div class="method_details ">
@@ -1089,18 +1205,18 @@ style).

1089
1205
  <pre class="lines">
1090
1206
 
1091
1207
 
1092
- 153
1093
- 154
1094
- 155
1095
- 156
1096
- 157
1097
- 158
1098
- 159
1099
- 160
1100
- 161</pre>
1208
+ 187
1209
+ 188
1210
+ 189
1211
+ 190
1212
+ 191
1213
+ 192
1214
+ 193
1215
+ 194
1216
+ 195</pre>
1101
1217
  </td>
1102
1218
  <td>
1103
- <pre class="code"><span class="info file"># File 'lib/rrtf/node/command_node.rb', line 153</span>
1219
+ <pre class="code"><span class="info file"># File 'lib/rrtf/node/command_node.rb', line 187</span>
1104
1220
 
1105
1221
  <span class='kw'>def</span> <span class='id identifier rubyid_footnote'>footnote</span><span class='lparen'>(</span><span class='id identifier rubyid_text'>text</span><span class='rparen'>)</span>
1106
1222
  <span class='kw'>if</span> <span class='op'>!</span><span class='id identifier rubyid_text'>text</span><span class='period'>.</span><span class='id identifier rubyid_nil?'>nil?</span> <span class='kw'>and</span> <span class='id identifier rubyid_text'>text</span> <span class='op'>!=</span> <span class='tstring'><span class='tstring_beg'>&#39;</span><span class='tstring_end'>&#39;</span></span>
@@ -1153,15 +1269,15 @@ style).

1153
1269
  <pre class="lines">
1154
1270
 
1155
1271
 
1156
- 192
1157
- 193
1158
- 194
1159
- 195
1160
- 196
1161
- 197</pre>
1272
+ 226
1273
+ 227
1274
+ 228
1275
+ 229
1276
+ 230
1277
+ 231</pre>
1162
1278
  </td>
1163
1279
  <td>
1164
- <pre class="code"><span class="info file"># File 'lib/rrtf/node/command_node.rb', line 192</span>
1280
+ <pre class="code"><span class="info file"># File 'lib/rrtf/node/command_node.rb', line 226</span>
1165
1281
 
1166
1282
  <span class='kw'>def</span> <span class='id identifier rubyid_geometry'>geometry</span><span class='lparen'>(</span><span class='id identifier rubyid_properties'>properties</span> <span class='op'>=</span> <span class='kw'>nil</span><span class='rparen'>)</span>
1167
1283
  <span class='id identifier rubyid_node'>node</span> <span class='op'>=</span> <span class='const'><span class='object_link'><a href="GeometryNode.html" title="RRTF::GeometryNode (class)">GeometryNode</a></span></span><span class='period'>.</span><span class='id identifier rubyid_new'><span class='object_link'><a href="GeometryNode.html#initialize-instance_method" title="RRTF::GeometryNode#initialize (method)">new</a></span></span><span class='lparen'>(</span><span class='kw'>self</span><span class='comma'>,</span> <span class='id identifier rubyid_properties'>properties</span><span class='rparen'>)</span>
@@ -1265,12 +1381,12 @@ type is not supported.

1265
1381
  <pre class="lines">
1266
1382
 
1267
1383
 
1268
- 172
1269
- 173
1270
- 174</pre>
1384
+ 206
1385
+ 207
1386
+ 208</pre>
1271
1387
  </td>
1272
1388
  <td>
1273
- <pre class="code"><span class="info file"># File 'lib/rrtf/node/command_node.rb', line 172</span>
1389
+ <pre class="code"><span class="info file"># File 'lib/rrtf/node/command_node.rb', line 206</span>
1274
1390
 
1275
1391
  <span class='kw'>def</span> <span class='id identifier rubyid_image'>image</span><span class='lparen'>(</span><span class='id identifier rubyid_source'>source</span><span class='comma'>,</span> <span class='id identifier rubyid_options'>options</span> <span class='op'>=</span> <span class='lbrace'>{</span><span class='rbrace'>}</span><span class='rparen'>)</span>
1276
1392
  <span class='kw'>self</span><span class='period'>.</span><span class='id identifier rubyid_store'>store</span><span class='lparen'>(</span><span class='const'><span class='object_link'><a href="ImageNode.html" title="RRTF::ImageNode (class)">ImageNode</a></span></span><span class='period'>.</span><span class='id identifier rubyid_new'><span class='object_link'><a href="ImageNode.html#initialize-instance_method" title="RRTF::ImageNode#initialize (method)">new</a></span></span><span class='lparen'>(</span><span class='kw'>self</span><span class='comma'>,</span> <span class='id identifier rubyid_source'>source</span><span class='comma'>,</span> <span class='id identifier rubyid_root'><span class='object_link'><a href="../top-level-namespace.html" title="Top Level Namespace (root)">root</a></span></span><span class='period'>.</span><span class='id identifier rubyid_get_id'>get_id</span><span class='comma'>,</span> <span class='id identifier rubyid_options'>options</span><span class='rparen'>)</span><span class='rparen'>)</span>
@@ -1308,13 +1424,13 @@ content.

1308
1424
  <pre class="lines">
1309
1425
 
1310
1426
 
1311
- 144
1312
- 145
1313
- 146
1314
- 147</pre>
1427
+ 162
1428
+ 163
1429
+ 164
1430
+ 165</pre>
1315
1431
  </td>
1316
1432
  <td>
1317
- <pre class="code"><span class="info file"># File 'lib/rrtf/node/command_node.rb', line 144</span>
1433
+ <pre class="code"><span class="info file"># File 'lib/rrtf/node/command_node.rb', line 162</span>
1318
1434
 
1319
1435
  <span class='kw'>def</span> <span class='id identifier rubyid_line_break'>line_break</span>
1320
1436
  <span class='kw'>self</span><span class='period'>.</span><span class='id identifier rubyid_store'>store</span><span class='lparen'>(</span><span class='const'><span class='object_link'><a href="" title="RRTF::CommandNode (class)">CommandNode</a></span></span><span class='period'>.</span><span class='id identifier rubyid_new'><span class='object_link'><a href="#initialize-instance_method" title="RRTF::CommandNode#initialize (method)">new</a></span></span><span class='lparen'>(</span><span class='kw'>self</span><span class='comma'>,</span> <span class='tstring'><span class='tstring_beg'>&#39;</span><span class='tstring_content'>\line</span><span class='tstring_end'>&#39;</span></span><span class='comma'>,</span> <span class='kw'>nil</span><span class='comma'>,</span> <span class='kw'>false</span><span class='rparen'>)</span><span class='rparen'>)</span>
@@ -1362,15 +1478,15 @@ content.

1362
1478
  <pre class="lines">
1363
1479
 
1364
1480
 
1365
- 134
1366
- 135
1367
- 136
1368
- 137
1369
- 138
1370
- 139</pre>
1481
+ 152
1482
+ 153
1483
+ 154
1484
+ 155
1485
+ 156
1486
+ 157</pre>
1371
1487
  </td>
1372
1488
  <td>
1373
- <pre class="code"><span class="info file"># File 'lib/rrtf/node/command_node.rb', line 134</span>
1489
+ <pre class="code"><span class="info file"># File 'lib/rrtf/node/command_node.rb', line 152</span>
1374
1490
 
1375
1491
  <span class='kw'>def</span> <span class='id identifier rubyid_link'>link</span><span class='lparen'>(</span><span class='id identifier rubyid_url'>url</span><span class='comma'>,</span> <span class='id identifier rubyid_text'>text</span><span class='op'>=</span><span class='kw'>nil</span><span class='rparen'>)</span>
1376
1492
  <span class='id identifier rubyid_node'>node</span> <span class='op'>=</span> <span class='const'><span class='object_link'><a href="LinkNode.html" title="RRTF::LinkNode (class)">LinkNode</a></span></span><span class='period'>.</span><span class='id identifier rubyid_new'><span class='object_link'><a href="LinkNode.html#initialize-instance_method" title="RRTF::LinkNode#initialize (method)">new</a></span></span><span class='lparen'>(</span><span class='kw'>self</span><span class='comma'>,</span> <span class='id identifier rubyid_url'>url</span><span class='rparen'>)</span>
@@ -1440,14 +1556,14 @@ the ListLevelNode doc for more information.

1440
1556
  <pre class="lines">
1441
1557
 
1442
1558
 
1443
- 128
1444
- 129
1445
- 130
1446
- 131
1447
- 132</pre>
1559
+ 146
1560
+ 147
1561
+ 148
1562
+ 149
1563
+ 150</pre>
1448
1564
  </td>
1449
1565
  <td>
1450
- <pre class="code"><span class="info file"># File 'lib/rrtf/node/command_node.rb', line 128</span>
1566
+ <pre class="code"><span class="info file"># File 'lib/rrtf/node/command_node.rb', line 146</span>
1451
1567
 
1452
1568
  <span class='kw'>def</span> <span class='id identifier rubyid_list'>list</span><span class='lparen'>(</span><span class='id identifier rubyid_kind'>kind</span><span class='op'>=</span><span class='symbol'>:bullets</span><span class='rparen'>)</span>
1453
1569
  <span class='id identifier rubyid_node'>node</span> <span class='op'>=</span> <span class='const'><span class='object_link'><a href="ListNode.html" title="RRTF::ListNode (class)">ListNode</a></span></span><span class='period'>.</span><span class='id identifier rubyid_new'><span class='object_link'><a href="ListNode.html#initialize-instance_method" title="RRTF::ListNode#initialize (method)">new</a></span></span><span class='lparen'>(</span><span class='kw'>self</span><span class='rparen'>)</span>
@@ -1559,32 +1675,32 @@ style).

1559
1675
  <pre class="lines">
1560
1676
 
1561
1677
 
1562
- 87
1563
- 88
1564
- 89
1565
- 90
1566
- 91
1567
- 92
1568
- 93
1569
- 94
1570
- 95
1571
- 96
1572
- 97
1573
- 98
1574
- 99
1575
- 100
1576
- 101
1577
- 102
1578
- 103
1579
- 104
1580
1678
  105
1581
1679
  106
1582
- 107</pre>
1680
+ 107
1681
+ 108
1682
+ 109
1683
+ 110
1684
+ 111
1685
+ 112
1686
+ 113
1687
+ 114
1688
+ 115
1689
+ 116
1690
+ 117
1691
+ 118
1692
+ 119
1693
+ 120
1694
+ 121
1695
+ 122
1696
+ 123
1697
+ 124
1698
+ 125</pre>
1583
1699
  </td>
1584
1700
  <td>
1585
- <pre class="code"><span class="info file"># File 'lib/rrtf/node/command_node.rb', line 87</span>
1701
+ <pre class="code"><span class="info file"># File 'lib/rrtf/node/command_node.rb', line 105</span>
1586
1702
 
1587
- <span class='kw'>def</span> <span class='id identifier rubyid_paragraph'>paragraph</span><span class='lparen'>(</span><span class='id identifier rubyid_style'>style</span><span class='op'>=</span><span class='kw'>nil</span><span class='rparen'>)</span>
1703
+ <span class='kw'>def</span> <span class='id identifier rubyid_paragraph'>paragraph</span><span class='lparen'>(</span><span class='id identifier rubyid_style'>style</span> <span class='op'>=</span> <span class='kw'>nil</span><span class='rparen'>)</span>
1588
1704
  <span class='comment'># parse style
1589
1705
  </span> <span class='kw'>case</span> <span class='id identifier rubyid_style'>style</span>
1590
1706
  <span class='kw'>when</span> <span class='const'>Hash</span>
@@ -1601,9 +1717,133 @@ style).

1601
1717
  </span> <span class='id identifier rubyid_style'>style</span><span class='period'>.</span><span class='id identifier rubyid_push_colours'>push_colours</span><span class='lparen'>(</span><span class='id identifier rubyid_root'><span class='object_link'><a href="../top-level-namespace.html" title="Top Level Namespace (root)">root</a></span></span><span class='period'>.</span><span class='id identifier rubyid_colours'>colours</span><span class='rparen'>)</span> <span class='kw'>unless</span> <span class='id identifier rubyid_style'>style</span><span class='period'>.</span><span class='id identifier rubyid_nil?'>nil?</span>
1602
1718
  <span class='id identifier rubyid_style'>style</span><span class='period'>.</span><span class='id identifier rubyid_push_fonts'>push_fonts</span><span class='lparen'>(</span><span class='id identifier rubyid_root'><span class='object_link'><a href="../top-level-namespace.html" title="Top Level Namespace (root)">root</a></span></span><span class='period'>.</span><span class='id identifier rubyid_fonts'>fonts</span><span class='rparen'>)</span> <span class='kw'>unless</span> <span class='id identifier rubyid_style'>style</span><span class='period'>.</span><span class='id identifier rubyid_nil?'>nil?</span>
1603
1719
 
1604
- <span class='id identifier rubyid_node'>node</span> <span class='op'>=</span> <span class='const'><span class='object_link'><a href="ParagraphNode.html" title="RRTF::ParagraphNode (class)">ParagraphNode</a></span></span><span class='period'>.</span><span class='id identifier rubyid_new'><span class='object_link'><a href="ParagraphNode.html#initialize-instance_method" title="RRTF::ParagraphNode#initialize (method)">new</a></span></span><span class='lparen'>(</span><span class='kw'>self</span><span class='comma'>,</span> <span class='id identifier rubyid_style'>style</span><span class='rparen'>)</span>
1605
- <span class='kw'>yield</span> <span class='id identifier rubyid_node'>node</span> <span class='kw'>if</span> <span class='id identifier rubyid_block_given?'>block_given?</span>
1606
- <span class='kw'>self</span><span class='period'>.</span><span class='id identifier rubyid_store'>store</span><span class='lparen'>(</span><span class='id identifier rubyid_node'>node</span><span class='rparen'>)</span>
1720
+ <span class='id identifier rubyid_node'>node</span> <span class='op'>=</span> <span class='const'><span class='object_link'><a href="ParagraphNode.html" title="RRTF::ParagraphNode (class)">ParagraphNode</a></span></span><span class='period'>.</span><span class='id identifier rubyid_new'><span class='object_link'><a href="ParagraphNode.html#initialize-instance_method" title="RRTF::ParagraphNode#initialize (method)">new</a></span></span><span class='lparen'>(</span><span class='kw'>self</span><span class='comma'>,</span> <span class='id identifier rubyid_style'>style</span><span class='rparen'>)</span>
1721
+ <span class='kw'>yield</span> <span class='id identifier rubyid_node'>node</span> <span class='kw'>if</span> <span class='id identifier rubyid_block_given?'>block_given?</span>
1722
+ <span class='kw'>self</span><span class='period'>.</span><span class='id identifier rubyid_store'>store</span><span class='lparen'>(</span><span class='id identifier rubyid_node'>node</span><span class='rparen'>)</span>
1723
+ <span class='kw'>end</span></pre>
1724
+ </td>
1725
+ </tr>
1726
+ </table>
1727
+ </div>
1728
+
1729
+ <div class="method_details ">
1730
+ <h3 class="signature " id="section-instance_method">
1731
+
1732
+ #<strong>section</strong>(style = nil) {|node| ... } &#x21d2; <tt>Object</tt>
1733
+
1734
+
1735
+
1736
+
1737
+
1738
+ </h3><div class="docstring">
1739
+ <div class="discussion">
1740
+
1741
+
1742
+ </div>
1743
+ </div>
1744
+ <div class="tags">
1745
+
1746
+ <p class="tag_title">Yields:</p>
1747
+ <ul class="yield">
1748
+
1749
+ <li>
1750
+
1751
+
1752
+ <span class='type'>(<tt>node</tt>)</span>
1753
+
1754
+
1755
+
1756
+ </li>
1757
+
1758
+ </ul>
1759
+
1760
+ </div><table class="source_code">
1761
+ <tr>
1762
+ <td>
1763
+ <pre class="lines">
1764
+
1765
+
1766
+ 71
1767
+ 72
1768
+ 73
1769
+ 74
1770
+ 75
1771
+ 76
1772
+ 77
1773
+ 78
1774
+ 79
1775
+ 80
1776
+ 81
1777
+ 82
1778
+ 83
1779
+ 84
1780
+ 85
1781
+ 86
1782
+ 87</pre>
1783
+ </td>
1784
+ <td>
1785
+ <pre class="code"><span class="info file"># File 'lib/rrtf/node/command_node.rb', line 71</span>
1786
+
1787
+ <span class='kw'>def</span> <span class='id identifier rubyid_section'>section</span><span class='lparen'>(</span><span class='id identifier rubyid_style'>style</span> <span class='op'>=</span> <span class='kw'>nil</span><span class='rparen'>)</span>
1788
+ <span class='comment'># parse style
1789
+ </span> <span class='kw'>case</span> <span class='id identifier rubyid_style'>style</span>
1790
+ <span class='kw'>when</span> <span class='const'>Hash</span>
1791
+ <span class='id identifier rubyid_style'>style</span> <span class='op'>=</span> <span class='const'><span class='object_link'><a href="SectionStyle.html" title="RRTF::SectionStyle (class)">SectionStyle</a></span></span><span class='period'>.</span><span class='id identifier rubyid_new'><span class='object_link'><a href="SectionStyle.html#initialize-instance_method" title="RRTF::SectionStyle#initialize (method)">new</a></span></span><span class='lparen'>(</span><span class='id identifier rubyid_style'>style</span><span class='rparen'>)</span>
1792
+ <span class='kw'>when</span> <span class='const'><span class='object_link'><a href="SectionStyle.html" title="RRTF::SectionStyle (class)">SectionStyle</a></span></span>
1793
+ <span class='comment'># use without modification
1794
+ </span> <span class='kw'>when</span> <span class='kw'>nil</span>
1795
+ <span class='comment'># allow nil style
1796
+ </span> <span class='kw'>else</span>
1797
+ <span class='const'><span class='object_link'><a href="RTFError.html" title="RRTF::RTFError (class)">RTFError</a></span></span><span class='period'>.</span><span class='id identifier rubyid_fire'><span class='object_link'><a href="RTFError.html#fire-class_method" title="RRTF::RTFError.fire (method)">fire</a></span></span><span class='lparen'>(</span><span class='tstring'><span class='tstring_beg'>&quot;</span><span class='tstring_content'>Invalid section style &#39;</span><span class='embexpr_beg'>#{</span><span class='id identifier rubyid_style'>style</span><span class='embexpr_end'>}</span><span class='tstring_content'>&#39;.</span><span class='tstring_end'>&quot;</span></span><span class='rparen'>)</span>
1798
+ <span class='kw'>end</span> <span class='comment'># case
1799
+ </span>
1800
+ <span class='id identifier rubyid_node'>node</span> <span class='op'>=</span> <span class='const'><span class='object_link'><a href="SectionNode.html" title="RRTF::SectionNode (class)">SectionNode</a></span></span><span class='period'>.</span><span class='id identifier rubyid_new'><span class='object_link'><a href="SectionNode.html#initialize-instance_method" title="RRTF::SectionNode#initialize (method)">new</a></span></span><span class='lparen'>(</span><span class='kw'>self</span><span class='comma'>,</span> <span class='id identifier rubyid_style'>style</span><span class='rparen'>)</span>
1801
+ <span class='kw'>yield</span> <span class='id identifier rubyid_node'>node</span> <span class='kw'>if</span> <span class='id identifier rubyid_block_given?'>block_given?</span>
1802
+ <span class='kw'>self</span><span class='period'>.</span><span class='id identifier rubyid_store'>store</span><span class='lparen'>(</span><span class='id identifier rubyid_node'>node</span><span class='rparen'>)</span>
1803
+ <span class='kw'>end</span></pre>
1804
+ </td>
1805
+ </tr>
1806
+ </table>
1807
+ </div>
1808
+
1809
+ <div class="method_details ">
1810
+ <h3 class="signature " id="tab-instance_method">
1811
+
1812
+ #<strong>tab</strong> &#x21d2; <tt>Object</tt>
1813
+
1814
+
1815
+
1816
+
1817
+
1818
+ </h3><div class="docstring">
1819
+ <div class="discussion">
1820
+
1821
+ <p>This method provides a short cut means of creating a tab command node. This
1822
+ command node does not take a block and may possess no other content.</p>
1823
+
1824
+
1825
+ </div>
1826
+ </div>
1827
+ <div class="tags">
1828
+
1829
+
1830
+ </div><table class="source_code">
1831
+ <tr>
1832
+ <td>
1833
+ <pre class="lines">
1834
+
1835
+
1836
+ 178
1837
+ 179
1838
+ 180
1839
+ 181</pre>
1840
+ </td>
1841
+ <td>
1842
+ <pre class="code"><span class="info file"># File 'lib/rrtf/node/command_node.rb', line 178</span>
1843
+
1844
+ <span class='kw'>def</span> <span class='id identifier rubyid_tab'>tab</span>
1845
+ <span class='kw'>self</span><span class='period'>.</span><span class='id identifier rubyid_store'>store</span><span class='lparen'>(</span><span class='const'><span class='object_link'><a href="" title="RRTF::CommandNode (class)">CommandNode</a></span></span><span class='period'>.</span><span class='id identifier rubyid_new'><span class='object_link'><a href="#initialize-instance_method" title="RRTF::CommandNode#initialize (method)">new</a></span></span><span class='lparen'>(</span><span class='kw'>self</span><span class='comma'>,</span> <span class='tstring'><span class='tstring_beg'>&#39;</span><span class='tstring_content'>\tab</span><span class='tstring_end'>&#39;</span></span><span class='comma'>,</span> <span class='kw'>nil</span><span class='comma'>,</span> <span class='kw'>false</span><span class='rparen'>)</span><span class='rparen'>)</span>
1846
+ <span class='kw'>nil</span>
1607
1847
  <span class='kw'>end</span></pre>
1608
1848
  </td>
1609
1849
  </tr>
@@ -1663,15 +1903,15 @@ the node the method is called upon after the block is complete.

1663
1903
  <pre class="lines">
1664
1904
 
1665
1905
 
1666
- 185
1667
- 186
1668
- 187
1669
- 188
1670
- 189
1671
- 190</pre>
1906
+ 219
1907
+ 220
1908
+ 221
1909
+ 222
1910
+ 223
1911
+ 224</pre>
1672
1912
  </td>
1673
1913
  <td>
1674
- <pre class="code"><span class="info file"># File 'lib/rrtf/node/command_node.rb', line 185</span>
1914
+ <pre class="code"><span class="info file"># File 'lib/rrtf/node/command_node.rb', line 219</span>
1675
1915
 
1676
1916
  <span class='kw'>def</span> <span class='id identifier rubyid_table'>table</span><span class='lparen'>(</span><span class='id identifier rubyid_rows'>rows</span><span class='comma'>,</span> <span class='id identifier rubyid_columns'>columns</span><span class='comma'>,</span> <span class='op'>*</span><span class='id identifier rubyid_widths'>widths</span><span class='rparen'>)</span>
1677
1917
  <span class='id identifier rubyid_node'>node</span> <span class='op'>=</span> <span class='const'><span class='object_link'><a href="TableNode.html" title="RRTF::TableNode (class)">TableNode</a></span></span><span class='period'>.</span><span class='id identifier rubyid_new'><span class='object_link'><a href="TableNode.html#initialize-instance_method" title="RRTF::TableNode#initialize (method)">new</a></span></span><span class='lparen'>(</span><span class='kw'>self</span><span class='comma'>,</span> <span class='id identifier rubyid_rows'>rows</span><span class='comma'>,</span> <span class='id identifier rubyid_columns'>columns</span><span class='comma'>,</span> <span class='op'>*</span><span class='id identifier rubyid_widths'>widths</span><span class='rparen'>)</span>
@@ -1758,7 +1998,7 @@ the node the method is called upon after the block is complete.

1758
1998
  </div>
1759
1999
 
1760
2000
  <div id="footer">
1761
- Generated on Mon Jul 31 21:49:00 2017 by
2001
+ Generated on Wed Aug 2 23:05:18 2017 by
1762
2002
  <a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
1763
2003
  0.9.9 (ruby-2.3.3).
1764
2004
  </div>