rrtf 0.1.2 → 1.0.0

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 (137) hide show
  1. checksums.yaml +4 -4
  2. data/.byebug_history +6 -3
  3. data/CHANGELOG.md +24 -0
  4. data/README.md +194 -84
  5. data/documentation/RRTF.html +5 -5
  6. data/documentation/RRTF/AnonymousStyle.html +792 -0
  7. data/documentation/RRTF/BorderFormatting.html +821 -0
  8. data/documentation/RRTF/BorderStyle.html +493 -0
  9. data/documentation/RRTF/CharacterFormatting.html +293 -162
  10. data/documentation/RRTF/CharacterStyle.html +53 -109
  11. data/documentation/RRTF/Colour.html +61 -1
  12. data/documentation/RRTF/ColourTable.html +52 -52
  13. data/documentation/RRTF/CommandNode.html +367 -971
  14. data/documentation/RRTF/ContainerNode.html +44 -44
  15. data/documentation/RRTF/Converters.html +1 -1
  16. data/documentation/RRTF/Converters/HTML.html +1 -1
  17. data/documentation/RRTF/Converters/HTML/Helpers.html +1 -1
  18. data/documentation/RRTF/Converters/HTML/Node.html +1 -1
  19. data/documentation/RRTF/Converters/HTML/NodeSet.html +1 -1
  20. data/documentation/RRTF/Document.html +267 -255
  21. data/documentation/RRTF/DocumentFormatting.html +833 -0
  22. data/documentation/RRTF/DocumentProperties.html +444 -0
  23. data/documentation/RRTF/Font.html +1 -1
  24. data/documentation/RRTF/FontTable.html +1 -1
  25. data/documentation/RRTF/FooterNode.html +16 -16
  26. data/documentation/RRTF/GeometryNode.html +774 -0
  27. data/documentation/RRTF/GeometryProperties.html +1014 -0
  28. data/documentation/RRTF/HeaderNode.html +16 -16
  29. data/documentation/RRTF/ImageNode.html +705 -492
  30. data/documentation/RRTF/Information.html +1 -1
  31. data/documentation/RRTF/LinkNode.html +10 -10
  32. data/documentation/RRTF/ListLevel.html +1 -1
  33. data/documentation/RRTF/ListLevelNode.html +37 -37
  34. data/documentation/RRTF/ListMarker.html +1 -1
  35. data/documentation/RRTF/ListNode.html +19 -19
  36. data/documentation/RRTF/ListTable.html +1 -1
  37. data/documentation/RRTF/ListTemplate.html +1 -1
  38. data/documentation/RRTF/ListTextNode.html +14 -14
  39. data/documentation/RRTF/Node.html +26 -26
  40. data/documentation/RRTF/Page.html +129 -0
  41. data/documentation/RRTF/Page/Margin.html +1158 -0
  42. data/documentation/RRTF/Page/Size.html +946 -0
  43. data/documentation/RRTF/PageFormatting.html +954 -0
  44. data/documentation/RRTF/ParagraphFormatting.html +338 -56
  45. data/documentation/RRTF/ParagraphNode.html +10 -10
  46. data/documentation/RRTF/ParagraphStyle.html +72 -111
  47. data/documentation/RRTF/PositionFormatting.html +780 -0
  48. data/documentation/RRTF/PositionStyle.html +424 -0
  49. data/documentation/RRTF/Properties.html +243 -0
  50. data/documentation/RRTF/RTFError.html +21 -10
  51. data/documentation/RRTF/ShadingFormatting.html +712 -0
  52. data/documentation/RRTF/ShadingStyle.html +424 -0
  53. data/documentation/RRTF/Style.html +284 -697
  54. data/documentation/RRTF/Stylesheet.html +36 -3
  55. data/documentation/RRTF/TableCellNode.html +131 -131
  56. data/documentation/RRTF/TableNode.html +82 -82
  57. data/documentation/RRTF/TableRowNode.html +53 -53
  58. data/documentation/RRTF/TextNode.html +46 -46
  59. data/documentation/RRTF/Utilities.html +837 -17
  60. data/documentation/_index.html +139 -6
  61. data/documentation/class_list.html +1 -1
  62. data/documentation/file.README.html +218 -87
  63. data/documentation/index.html +218 -87
  64. data/documentation/method_list.html +631 -391
  65. data/documentation/top-level-namespace.html +1 -1
  66. data/examples/01.rtf +947 -20
  67. data/examples/01_everything.rb +176 -0
  68. data/examples/02.rtf +13 -0
  69. data/examples/02_basic_paragraph.rb +10 -0
  70. data/examples/03.rtf +20 -0
  71. data/examples/03_paragraph_inline_style.rb +14 -0
  72. data/examples/04.rtf +21 -0
  73. data/examples/04_paragraph_with_character_style.rb +18 -0
  74. data/examples/05.rtf +21 -0
  75. data/examples/05_hyperlinks.rb +21 -0
  76. data/examples/06.rtf +21 -0
  77. data/examples/06_basic_list.rb +21 -0
  78. data/examples/07.rtf +28 -0
  79. data/examples/07_nested_list.rb +27 -0
  80. data/examples/08.rtf +807 -0
  81. data/examples/08_images.rb +17 -0
  82. data/examples/09.rtf +84 -0
  83. data/examples/09_shapes.rb +56 -0
  84. data/examples/10.rtf +34 -0
  85. data/examples/10_stylesheet.rb +18 -0
  86. data/examples/resources/images/redshirt.png +0 -0
  87. data/examples/resources/images/redshirts.jpg +0 -0
  88. data/examples/resources/json/redshirt_styles.json +72 -8
  89. data/examples/~$01.rtf +0 -0
  90. data/lib/rrtf.rb +4 -16
  91. data/lib/rrtf/colour.rb +8 -0
  92. data/lib/rrtf/formatting.rb +988 -0
  93. data/lib/rrtf/node.rb +17 -1851
  94. data/lib/rrtf/node/command_node.rb +242 -0
  95. data/lib/rrtf/node/container_node.rb +75 -0
  96. data/lib/rrtf/node/document.rb +339 -0
  97. data/lib/rrtf/node/footer_node.rb +47 -0
  98. data/lib/rrtf/node/geometry_node.rb +65 -0
  99. data/lib/rrtf/node/header_node.rb +47 -0
  100. data/lib/rrtf/node/image_node.rb +175 -0
  101. data/lib/rrtf/node/link_node.rb +10 -0
  102. data/lib/rrtf/node/list_level_node.rb +44 -0
  103. data/lib/rrtf/node/list_node.rb +30 -0
  104. data/lib/rrtf/node/list_text_node.rb +22 -0
  105. data/lib/rrtf/node/node.rb +53 -0
  106. data/lib/rrtf/node/paragraph_node.rb +11 -0
  107. data/lib/rrtf/node/table_cell_node.rb +233 -0
  108. data/lib/rrtf/node/table_node.rb +136 -0
  109. data/lib/rrtf/node/table_row_node.rb +92 -0
  110. data/lib/rrtf/node/text_node.rb +76 -0
  111. data/lib/rrtf/page.rb +7 -0
  112. data/lib/rrtf/page/margin.rb +98 -0
  113. data/lib/rrtf/page/size.rb +98 -0
  114. data/lib/rrtf/properties.rb +3 -0
  115. data/lib/rrtf/properties/document_properties.rb +34 -0
  116. data/lib/rrtf/properties/geometry_properties.rb +380 -0
  117. data/lib/rrtf/properties/properties.rb +13 -0
  118. data/lib/rrtf/style.rb +4 -5
  119. data/lib/rrtf/style/anonymous_style.rb +73 -0
  120. data/lib/rrtf/style/border_style.rb +27 -0
  121. data/lib/rrtf/style/character_style.rb +1 -7
  122. data/lib/rrtf/style/paragraph_style.rb +0 -6
  123. data/lib/rrtf/style/position_style.rb +26 -0
  124. data/lib/rrtf/style/shading_style.rb +26 -0
  125. data/lib/rrtf/style/style.rb +60 -101
  126. data/lib/rrtf/utilities.rb +138 -0
  127. data/lib/rrtf/version.rb +1 -1
  128. data/rrtf.gemspec +1 -0
  129. metadata +85 -10
  130. data/examples/01_mac_libreoffice5_2_3_3.png +0 -0
  131. data/examples/01_mac_pages6_2.png +0 -0
  132. data/examples/01_mac_textedit1_12.png +0 -0
  133. data/examples/01_mac_word15_36.png +0 -0
  134. data/examples/01_styles_and_paragraphs.rb +0 -32
  135. data/lib/rrtf/paper.rb +0 -53
  136. data/lib/rrtf/style/document_style.rb +0 -116
  137. data/lib/rrtf/style/formatting.rb +0 -320
@@ -101,7 +101,7 @@
101
101
 
102
102
  <dl>
103
103
  <dt>Defined in:</dt>
104
- <dd>lib/rrtf/node.rb</dd>
104
+ <dd>lib/rrtf/node/container_node.rb</dd>
105
105
  </dl>
106
106
 
107
107
  </div>
@@ -422,14 +422,14 @@ maintained by a ContainerNode object.</p>
422
422
  <pre class="lines">
423
423
 
424
424
 
425
- 144
426
- 145
427
- 146
428
- 147
429
- 148</pre>
425
+ 15
426
+ 16
427
+ 17
428
+ 18
429
+ 19</pre>
430
430
  </td>
431
431
  <td>
432
- <pre class="code"><span class="info file"># File 'lib/rrtf/node.rb', line 144</span>
432
+ <pre class="code"><span class="info file"># File 'lib/rrtf/node/container_node.rb', line 15</span>
433
433
 
434
434
  <span class='kw'>def</span> <span class='id identifier rubyid_initialize'>initialize</span><span class='lparen'>(</span><span class='id identifier rubyid_parent'>parent</span><span class='rparen'>)</span>
435
435
  <span class='kw'>super</span><span class='lparen'>(</span><span class='id identifier rubyid_parent'>parent</span><span class='rparen'>)</span>
@@ -474,12 +474,12 @@ maintained by a ContainerNode object.</p>
474
474
  <pre class="lines">
475
475
 
476
476
 
477
- 137
478
- 138
479
- 139</pre>
477
+ 8
478
+ 9
479
+ 10</pre>
480
480
  </td>
481
481
  <td>
482
- <pre class="code"><span class="info file"># File 'lib/rrtf/node.rb', line 137</span>
482
+ <pre class="code"><span class="info file"># File 'lib/rrtf/node/container_node.rb', line 8</span>
483
483
 
484
484
  <span class='kw'>def</span> <span class='id identifier rubyid_children'>children</span>
485
485
  <span class='ivar'>@children</span>
@@ -531,12 +531,12 @@ invalid index will cause a nil value to be returned.</p>
531
531
  <pre class="lines">
532
532
 
533
533
 
534
- 195
535
- 196
536
- 197</pre>
534
+ 66
535
+ 67
536
+ 68</pre>
537
537
  </td>
538
538
  <td>
539
- <pre class="code"><span class="info file"># File 'lib/rrtf/node.rb', line 195</span>
539
+ <pre class="code"><span class="info file"># File 'lib/rrtf/node/container_node.rb', line 66</span>
540
540
 
541
541
  <span class='kw'>def</span> <span class='op'>[]</span><span class='lparen'>(</span><span class='id identifier rubyid_index'>index</span><span class='rparen'>)</span>
542
542
  <span class='ivar'>@children</span><span class='lbracket'>[</span><span class='id identifier rubyid_index'>index</span><span class='rbracket'>]</span>
@@ -573,12 +573,12 @@ object.</p>
573
573
  <pre class="lines">
574
574
 
575
575
 
576
- 177
577
- 178
578
- 179</pre>
576
+ 48
577
+ 49
578
+ 50</pre>
579
579
  </td>
580
580
  <td>
581
- <pre class="code"><span class="info file"># File 'lib/rrtf/node.rb', line 177</span>
581
+ <pre class="code"><span class="info file"># File 'lib/rrtf/node/container_node.rb', line 48</span>
582
582
 
583
583
  <span class='kw'>def</span> <span class='id identifier rubyid_each'>each</span>
584
584
  <span class='ivar'>@children</span><span class='period'>.</span><span class='id identifier rubyid_each'>each</span> <span class='lbrace'>{</span><span class='op'>|</span><span class='id identifier rubyid_child'>child</span><span class='op'>|</span> <span class='kw'>yield</span> <span class='id identifier rubyid_child'>child</span><span class='rbrace'>}</span>
@@ -615,12 +615,12 @@ container contains no children this method returns nil.</p>
615
615
  <pre class="lines">
616
616
 
617
617
 
618
- 165
619
- 166
620
- 167</pre>
618
+ 36
619
+ 37
620
+ 38</pre>
621
621
  </td>
622
622
  <td>
623
- <pre class="code"><span class="info file"># File 'lib/rrtf/node.rb', line 165</span>
623
+ <pre class="code"><span class="info file"># File 'lib/rrtf/node/container_node.rb', line 36</span>
624
624
 
625
625
  <span class='kw'>def</span> <span class='id identifier rubyid_first'>first</span>
626
626
  <span class='ivar'>@children</span><span class='lbracket'>[</span><span class='int'>0</span><span class='rbracket'>]</span>
@@ -657,12 +657,12 @@ container contains no children this method returns nil.</p>
657
657
  <pre class="lines">
658
658
 
659
659
 
660
- 171
661
- 172
662
- 173</pre>
660
+ 42
661
+ 43
662
+ 44</pre>
663
663
  </td>
664
664
  <td>
665
- <pre class="code"><span class="info file"># File 'lib/rrtf/node.rb', line 171</span>
665
+ <pre class="code"><span class="info file"># File 'lib/rrtf/node/container_node.rb', line 42</span>
666
666
 
667
667
  <span class='kw'>def</span> <span class='id identifier rubyid_last'>last</span>
668
668
  <span class='ivar'>@children</span><span class='period'>.</span><span class='id identifier rubyid_last'>last</span>
@@ -699,12 +699,12 @@ object contains.</p>
699
699
  <pre class="lines">
700
700
 
701
701
 
702
- 183
703
- 184
704
- 185</pre>
702
+ 54
703
+ 55
704
+ 56</pre>
705
705
  </td>
706
706
  <td>
707
- <pre class="code"><span class="info file"># File 'lib/rrtf/node.rb', line 183</span>
707
+ <pre class="code"><span class="info file"># File 'lib/rrtf/node/container_node.rb', line 54</span>
708
708
 
709
709
  <span class='kw'>def</span> <span class='id identifier rubyid_size'>size</span>
710
710
  <span class='ivar'>@children</span><span class='period'>.</span><span class='id identifier rubyid_size'>size</span>
@@ -747,16 +747,16 @@ maintained by a ContainerNode object. Nil objects are ignored.</p>
747
747
  <pre class="lines">
748
748
 
749
749
 
750
- 155
751
- 156
752
- 157
753
- 158
754
- 159
755
- 160
756
- 161</pre>
750
+ 26
751
+ 27
752
+ 28
753
+ 29
754
+ 30
755
+ 31
756
+ 32</pre>
757
757
  </td>
758
758
  <td>
759
- <pre class="code"><span class="info file"># File 'lib/rrtf/node.rb', line 155</span>
759
+ <pre class="code"><span class="info file"># File 'lib/rrtf/node/container_node.rb', line 26</span>
760
760
 
761
761
  <span class='kw'>def</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>
762
762
  <span class='kw'>if</span> <span class='op'>!</span><span class='id identifier rubyid_node'>node</span><span class='period'>.</span><span class='id identifier rubyid_nil?'>nil?</span>
@@ -796,12 +796,12 @@ maintained by a ContainerNode object. Nil objects are ignored.</p>
796
796
  <pre class="lines">
797
797
 
798
798
 
799
- 200
800
- 201
801
- 202</pre>
799
+ 71
800
+ 72
801
+ 73</pre>
802
802
  </td>
803
803
  <td>
804
- <pre class="code"><span class="info file"># File 'lib/rrtf/node.rb', line 200</span>
804
+ <pre class="code"><span class="info file"># File 'lib/rrtf/node/container_node.rb', line 71</span>
805
805
 
806
806
  <span class='kw'>def</span> <span class='id identifier rubyid_to_rtf'>to_rtf</span>
807
807
  <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='embexpr_beg'>#{</span><span class='kw'>self</span><span class='period'>.</span><span class='id identifier rubyid_class'>class</span><span class='period'>.</span><span class='id identifier rubyid_name'>name</span><span class='embexpr_end'>}</span><span class='tstring_content'>.to_rtf method not yet implemented.</span><span class='tstring_end'>&quot;</span></span><span class='rparen'>)</span>
@@ -816,7 +816,7 @@ maintained by a ContainerNode object. Nil objects are ignored.</p>
816
816
  </div>
817
817
 
818
818
  <div id="footer">
819
- Generated on Mon Jul 24 15:48:59 2017 by
819
+ Generated on Mon Jul 31 21:49:00 2017 by
820
820
  <a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
821
821
  0.9.9 (ruby-2.3.3).
822
822
  </div>
@@ -107,7 +107,7 @@
107
107
  </div>
108
108
 
109
109
  <div id="footer">
110
- Generated on Mon Jul 24 15:48:59 2017 by
110
+ Generated on Mon Jul 31 21:48:57 2017 by
111
111
  <a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
112
112
  0.9.9 (ruby-2.3.3).
113
113
  </div>
@@ -327,7 +327,7 @@
327
327
  </div>
328
328
 
329
329
  <div id="footer">
330
- Generated on Mon Jul 24 15:49:02 2017 by
330
+ Generated on Mon Jul 31 21:48:59 2017 by
331
331
  <a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
332
332
  0.9.9 (ruby-2.3.3).
333
333
  </div>
@@ -262,7 +262,7 @@
262
262
  </div>
263
263
 
264
264
  <div id="footer">
265
- Generated on Mon Jul 24 15:48:59 2017 by
265
+ Generated on Mon Jul 31 21:48:57 2017 by
266
266
  <a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
267
267
  0.9.9 (ruby-2.3.3).
268
268
  </div>
@@ -354,7 +354,7 @@
354
354
  </div>
355
355
 
356
356
  <div id="footer">
357
- Generated on Mon Jul 24 15:49:02 2017 by
357
+ Generated on Mon Jul 31 21:48:59 2017 by
358
358
  <a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
359
359
  0.9.9 (ruby-2.3.3).
360
360
  </div>
@@ -255,7 +255,7 @@
255
255
  </div>
256
256
 
257
257
  <div id="footer">
258
- Generated on Mon Jul 24 15:49:02 2017 by
258
+ Generated on Mon Jul 31 21:48:59 2017 by
259
259
  <a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
260
260
  0.9.9 (ruby-2.3.3).
261
261
  </div>
@@ -100,7 +100,7 @@
100
100
 
101
101
  <dl>
102
102
  <dt>Defined in:</dt>
103
- <dd>lib/rrtf/node.rb</dd>
103
+ <dd>lib/rrtf/node/document.rb</dd>
104
104
  </dl>
105
105
 
106
106
  </div>
@@ -128,6 +128,18 @@ document font, colour and information tables.</p>
128
128
 
129
129
  <div class='inline'>
130
130
  <p>Peter Wood</p>
131
+ </div>
132
+
133
+ </li>
134
+
135
+ <li>
136
+
137
+
138
+
139
+
140
+
141
+ <div class='inline'>
142
+ <p>Wesley Hileman</p>
131
143
  </div>
132
144
 
133
145
  </li>
@@ -437,7 +449,7 @@ document font, colour and information tables.</p>
437
449
  <li class="public ">
438
450
  <span class="summary_signature">
439
451
 
440
- <a href="#style-instance_method" title="#style (instance method)">#<strong>style</strong> &#x21d2; Object </a>
452
+ <a href="#properties-instance_method" title="#properties (instance method)">#<strong>properties</strong> &#x21d2; Object </a>
441
453
 
442
454
 
443
455
 
@@ -899,7 +911,7 @@ class to disallow setting a parent on a Document object.</p>
899
911
 
900
912
 
901
913
  <h3 class="inherited">Methods inherited from <span class='object_link'><a href="CommandNode.html" title="RRTF::CommandNode (class)">CommandNode</a></span></h3>
902
- <p class="inherited"><span class='object_link'><a href="CommandNode.html#<<-instance_method" title="RRTF::CommandNode#&lt;&lt; (method)">#<<</a></span>, <span class='object_link'><a href="CommandNode.html#apply-instance_method" title="RRTF::CommandNode#apply (method)">#apply</a></span>, <span class='object_link'><a href="CommandNode.html#background-instance_method" title="RRTF::CommandNode#background (method)">#background</a></span>, <span class='object_link'><a href="CommandNode.html#bold-instance_method" title="RRTF::CommandNode#bold (method)">#bold</a></span>, <span class='object_link'><a href="CommandNode.html#colour-instance_method" title="RRTF::CommandNode#colour (method)">#colour</a></span>, <span class='object_link'><a href="CommandNode.html#font-instance_method" title="RRTF::CommandNode#font (method)">#font</a></span>, <span class='object_link'><a href="CommandNode.html#footnote-instance_method" title="RRTF::CommandNode#footnote (method)">#footnote</a></span>, <span class='object_link'><a href="CommandNode.html#foreground-instance_method" title="RRTF::CommandNode#foreground (method)">#foreground</a></span>, <span class='object_link'><a href="CommandNode.html#image-instance_method" title="RRTF::CommandNode#image (method)">#image</a></span>, <span class='object_link'><a href="CommandNode.html#italic-instance_method" title="RRTF::CommandNode#italic (method)">#italic</a></span>, <span class='object_link'><a href="CommandNode.html#line_break-instance_method" title="RRTF::CommandNode#line_break (method)">#line_break</a></span>, <span class='object_link'><a href="CommandNode.html#link-instance_method" title="RRTF::CommandNode#link (method)">#link</a></span>, <span class='object_link'><a href="CommandNode.html#list-instance_method" title="RRTF::CommandNode#list (method)">#list</a></span>, <span class='object_link'><a href="CommandNode.html#paragraph-instance_method" title="RRTF::CommandNode#paragraph (method)">#paragraph</a></span>, <span class='object_link'><a href="CommandNode.html#strike-instance_method" title="RRTF::CommandNode#strike (method)">#strike</a></span>, <span class='object_link'><a href="CommandNode.html#subscript-instance_method" title="RRTF::CommandNode#subscript (method)">#subscript</a></span>, <span class='object_link'><a href="CommandNode.html#superscript-instance_method" title="RRTF::CommandNode#superscript (method)">#superscript</a></span>, <span class='object_link'><a href="CommandNode.html#table-instance_method" title="RRTF::CommandNode#table (method)">#table</a></span>, <span class='object_link'><a href="CommandNode.html#underline-instance_method" title="RRTF::CommandNode#underline (method)">#underline</a></span></p>
914
+ <p class="inherited"><span class='object_link'><a href="CommandNode.html#<<-instance_method" title="RRTF::CommandNode#&lt;&lt; (method)">#<<</a></span>, <span class='object_link'><a href="CommandNode.html#apply-instance_method" title="RRTF::CommandNode#apply (method)">#apply</a></span>, <span class='object_link'><a href="CommandNode.html#footnote-instance_method" title="RRTF::CommandNode#footnote (method)">#footnote</a></span>, <span class='object_link'><a href="CommandNode.html#geometry-instance_method" title="RRTF::CommandNode#geometry (method)">#geometry</a></span>, <span class='object_link'><a href="CommandNode.html#image-instance_method" title="RRTF::CommandNode#image (method)">#image</a></span>, <span class='object_link'><a href="CommandNode.html#line_break-instance_method" title="RRTF::CommandNode#line_break (method)">#line_break</a></span>, <span class='object_link'><a href="CommandNode.html#link-instance_method" title="RRTF::CommandNode#link (method)">#link</a></span>, <span class='object_link'><a href="CommandNode.html#list-instance_method" title="RRTF::CommandNode#list (method)">#list</a></span>, <span class='object_link'><a href="CommandNode.html#paragraph-instance_method" title="RRTF::CommandNode#paragraph (method)">#paragraph</a></span>, <span class='object_link'><a href="CommandNode.html#table-instance_method" title="RRTF::CommandNode#table (method)">#table</a></span></p>
903
915
 
904
916
 
905
917
 
@@ -1051,17 +1063,17 @@ noqfpromote control word before stylesheet definition).</p>
1051
1063
  </li>
1052
1064
 
1053
1065
  <li>
1054
- <span class="name">"document_style"</span>
1055
- <span class="type">(<tt><span class='object_link'><a href="DocumentStyle.html" title="RRTF::DocumentStyle (class)">DocumentStyle</a></span></tt>)</span>
1066
+ <span class="name">"document_properties"</span>
1067
+ <span class="type">(<tt><span class='object_link'><a href="DocumentProperties.html" title="RRTF::DocumentProperties (class)">DocumentProperties</a></span></tt>)</span>
1056
1068
  <span class="default">
1057
1069
 
1058
1070
  &mdash; default:
1059
- <tt>DocumentStyle.new</tt>
1071
+ <tt>DocumentProperties.new</tt>
1060
1072
 
1061
1073
  </span>
1062
1074
 
1063
1075
  &mdash; <div class='inline'>
1064
- <p>a DocumentStyle object OR options hash encapsulating the style settings to
1076
+ <p>a DocumentProperties object OR options hash encapsulating the properties to
1065
1077
  be applied to the document.</p>
1066
1078
  </div>
1067
1079
 
@@ -1091,7 +1103,7 @@ with which to use as or construct the stylesheet for the document.</p>
1091
1103
  <p class="tag_title">See Also:</p>
1092
1104
  <ul class="see">
1093
1105
 
1094
- <li><span class='object_link'><a href="DocumentStyle.html#initialize-instance_method" title="RRTF::DocumentStyle#initialize (method)">DocumentStyle#initialize for available document style options.</a></span></li>
1106
+ <li><span class='object_link'><a href="DocumentProperties.html#initialize-instance_method" title="RRTF::DocumentProperties#initialize (method)">DocumentProperties#initialize for available document properties.</a></span></li>
1095
1107
 
1096
1108
  <li><span class='object_link'><a href="Stylesheet.html#add_style-instance_method" title="RRTF::Stylesheet#add_style (method)">Stylesheet#initialize for available stylesheet options.</a></span></li>
1097
1109
 
@@ -1103,93 +1115,93 @@ with which to use as or construct the stylesheet for the document.</p>
1103
1115
  <pre class="lines">
1104
1116
 
1105
1117
 
1106
- 1598
1107
- 1599
1108
- 1600
1109
- 1601
1110
- 1602
1111
- 1603
1112
- 1604
1113
- 1605
1114
- 1606
1115
- 1607
1116
- 1608
1117
- 1609
1118
- 1610
1119
- 1611
1120
- 1612
1121
- 1613
1122
- 1614
1123
- 1615
1124
- 1616
1125
- 1617
1126
- 1618
1127
- 1619
1128
- 1620
1129
- 1621
1130
- 1622
1131
- 1623
1132
- 1624
1133
- 1625
1134
- 1626
1135
- 1627
1136
- 1628
1137
- 1629
1138
- 1630
1139
- 1631
1140
- 1632
1141
- 1633
1142
- 1634
1143
- 1635
1144
- 1636
1145
- 1637
1146
- 1638
1147
- 1639
1148
- 1640
1149
- 1641
1150
- 1642
1151
- 1643
1152
- 1644
1153
- 1645
1154
- 1646
1155
- 1647
1156
- 1648
1157
- 1649
1158
- 1650
1159
- 1651
1160
- 1652
1161
- 1653
1162
- 1654
1163
- 1655
1164
- 1656
1165
- 1657
1166
- 1658
1167
- 1659
1168
- 1660
1169
- 1661
1170
- 1662
1171
- 1663
1172
- 1664
1173
- 1665
1174
- 1666
1175
- 1667
1176
- 1668
1177
- 1669
1178
- 1670
1179
- 1671
1180
- 1672
1181
- 1673
1182
- 1674
1183
- 1675</pre>
1118
+ 86
1119
+ 87
1120
+ 88
1121
+ 89
1122
+ 90
1123
+ 91
1124
+ 92
1125
+ 93
1126
+ 94
1127
+ 95
1128
+ 96
1129
+ 97
1130
+ 98
1131
+ 99
1132
+ 100
1133
+ 101
1134
+ 102
1135
+ 103
1136
+ 104
1137
+ 105
1138
+ 106
1139
+ 107
1140
+ 108
1141
+ 109
1142
+ 110
1143
+ 111
1144
+ 112
1145
+ 113
1146
+ 114
1147
+ 115
1148
+ 116
1149
+ 117
1150
+ 118
1151
+ 119
1152
+ 120
1153
+ 121
1154
+ 122
1155
+ 123
1156
+ 124
1157
+ 125
1158
+ 126
1159
+ 127
1160
+ 128
1161
+ 129
1162
+ 130
1163
+ 131
1164
+ 132
1165
+ 133
1166
+ 134
1167
+ 135
1168
+ 136
1169
+ 137
1170
+ 138
1171
+ 139
1172
+ 140
1173
+ 141
1174
+ 142
1175
+ 143
1176
+ 144
1177
+ 145
1178
+ 146
1179
+ 147
1180
+ 148
1181
+ 149
1182
+ 150
1183
+ 151
1184
+ 152
1185
+ 153
1186
+ 154
1187
+ 155
1188
+ 156
1189
+ 157
1190
+ 158
1191
+ 159
1192
+ 160
1193
+ 161
1194
+ 162
1195
+ 163</pre>
1184
1196
  </td>
1185
1197
  <td>
1186
- <pre class="code"><span class="info file"># File 'lib/rrtf/node.rb', line 1598</span>
1198
+ <pre class="code"><span class="info file"># File 'lib/rrtf/node/document.rb', line 86</span>
1187
1199
 
1188
1200
  <span class='kw'>def</span> <span class='id identifier rubyid_initialize'>initialize</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>
1189
1201
  <span class='comment'># load default options
1190
1202
  </span> <span class='id identifier rubyid_options'>options</span> <span class='op'>=</span> <span class='lbrace'>{</span>
1191
1203
  <span class='tstring'><span class='tstring_beg'>&quot;</span><span class='tstring_content'>default_font</span><span class='tstring_end'>&quot;</span></span> <span class='op'>=&gt;</span> <span class='tstring'><span class='tstring_beg'>&quot;</span><span class='tstring_content'>SWISS:Helvetica</span><span class='tstring_end'>&quot;</span></span><span class='comma'>,</span>
1192
- <span class='tstring'><span class='tstring_beg'>&quot;</span><span class='tstring_content'>document_style</span><span class='tstring_end'>&quot;</span></span> <span class='op'>=&gt;</span> <span class='const'><span class='object_link'><a href="DocumentStyle.html" title="RRTF::DocumentStyle (class)">DocumentStyle</a></span></span><span class='period'>.</span><span class='id identifier rubyid_new'><span class='object_link'><a href="DocumentStyle.html#initialize-instance_method" title="RRTF::DocumentStyle#initialize (method)">new</a></span></span><span class='comma'>,</span>
1204
+ <span class='tstring'><span class='tstring_beg'>&quot;</span><span class='tstring_content'>document_properties</span><span class='tstring_end'>&quot;</span></span> <span class='op'>=&gt;</span> <span class='const'><span class='object_link'><a href="DocumentProperties.html" title="RRTF::DocumentProperties (class)">DocumentProperties</a></span></span><span class='period'>.</span><span class='id identifier rubyid_new'><span class='object_link'><a href="DocumentProperties.html#initialize-instance_method" title="RRTF::DocumentProperties#initialize (method)">new</a></span></span><span class='comma'>,</span>
1193
1205
  <span class='tstring'><span class='tstring_beg'>&quot;</span><span class='tstring_content'>character_set</span><span class='tstring_end'>&quot;</span></span> <span class='op'>=&gt;</span> <span class='tstring'><span class='tstring_beg'>&quot;</span><span class='tstring_content'>ANSI</span><span class='tstring_end'>&quot;</span></span><span class='comma'>,</span>
1194
1206
  <span class='tstring'><span class='tstring_beg'>&quot;</span><span class='tstring_content'>language</span><span class='tstring_end'>&quot;</span></span> <span class='op'>=&gt;</span> <span class='tstring'><span class='tstring_beg'>&quot;</span><span class='tstring_content'>ENGLISH_US</span><span class='tstring_end'>&quot;</span></span><span class='comma'>,</span>
1195
1207
  <span class='tstring'><span class='tstring_beg'>&quot;</span><span class='tstring_content'>suppress_system_styles</span><span class='tstring_end'>&quot;</span></span> <span class='op'>=&gt;</span> <span class='kw'>false</span><span class='comma'>,</span>
@@ -1208,12 +1220,12 @@ with which to use as or construct the stylesheet for the document.</p>
1208
1220
  <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'>Unreconized font format </span><span class='embexpr_beg'>#{</span><span class='id identifier rubyid_font'>font</span><span class='period'>.</span><span class='id identifier rubyid_class'>class</span><span class='period'>.</span><span class='id identifier rubyid_to_s'>to_s</span><span class='embexpr_end'>}</span><span class='tstring_end'>&quot;</span></span><span class='rparen'>)</span>
1209
1221
  <span class='kw'>end</span> <span class='comment'># case
1210
1222
  </span>
1211
- <span class='comment'># parse document style
1212
- </span> <span class='id identifier rubyid_style'>style</span> <span class='op'>=</span> <span class='id identifier rubyid_options'>options</span><span class='period'>.</span><span class='id identifier rubyid_delete'>delete</span><span class='lparen'>(</span><span class='tstring'><span class='tstring_beg'>&quot;</span><span class='tstring_content'>document_style</span><span class='tstring_end'>&quot;</span></span><span class='rparen'>)</span>
1213
- <span class='kw'>case</span> <span class='id identifier rubyid_style'>style</span>
1214
- <span class='kw'>when</span> <span class='const'><span class='object_link'><a href="DocumentStyle.html" title="RRTF::DocumentStyle (class)">DocumentStyle</a></span></span>
1223
+ <span class='comment'># parse document properties
1224
+ </span> <span class='id identifier rubyid_properties'>properties</span> <span class='op'>=</span> <span class='id identifier rubyid_options'>options</span><span class='period'>.</span><span class='id identifier rubyid_delete'>delete</span><span class='lparen'>(</span><span class='tstring'><span class='tstring_beg'>&quot;</span><span class='tstring_content'>document_properties</span><span class='tstring_end'>&quot;</span></span><span class='rparen'>)</span>
1225
+ <span class='kw'>case</span> <span class='id identifier rubyid_properties'>properties</span>
1226
+ <span class='kw'>when</span> <span class='const'><span class='object_link'><a href="DocumentProperties.html" title="RRTF::DocumentProperties (class)">DocumentProperties</a></span></span>
1215
1227
  <span class='kw'>when</span> <span class='const'>Hash</span>
1216
- <span class='id identifier rubyid_style'>style</span> <span class='op'>=</span> <span class='const'><span class='object_link'><a href="DocumentStyle.html" title="RRTF::DocumentStyle (class)">DocumentStyle</a></span></span><span class='period'>.</span><span class='id identifier rubyid_new'><span class='object_link'><a href="DocumentStyle.html#initialize-instance_method" title="RRTF::DocumentStyle#initialize (method)">new</a></span></span><span class='lparen'>(</span><span class='id identifier rubyid_style'>style</span><span class='rparen'>)</span>
1228
+ <span class='id identifier rubyid_properties'>properties</span> <span class='op'>=</span> <span class='const'><span class='object_link'><a href="DocumentProperties.html" title="RRTF::DocumentProperties (class)">DocumentProperties</a></span></span><span class='period'>.</span><span class='id identifier rubyid_new'><span class='object_link'><a href="DocumentProperties.html#initialize-instance_method" title="RRTF::DocumentProperties#initialize (method)">new</a></span></span><span class='lparen'>(</span><span class='id identifier rubyid_properties'>properties</span><span class='rparen'>)</span>
1217
1229
  <span class='kw'>else</span>
1218
1230
  <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'>Unreconized document style format </span><span class='embexpr_beg'>#{</span><span class='id identifier rubyid_font'>font</span><span class='period'>.</span><span class='id identifier rubyid_class'>class</span><span class='period'>.</span><span class='id identifier rubyid_to_s'>to_s</span><span class='embexpr_end'>}</span><span class='tstring_end'>&quot;</span></span><span class='rparen'>)</span>
1219
1231
  <span class='kw'>end</span> <span class='comment'># case
@@ -1239,7 +1251,7 @@ with which to use as or construct the stylesheet for the document.</p>
1239
1251
  <span class='ivar'>@information</span> <span class='op'>=</span> <span class='const'><span class='object_link'><a href="Information.html" title="RRTF::Information (class)">Information</a></span></span><span class='period'>.</span><span class='id identifier rubyid_new'><span class='object_link'><a href="Information.html#initialize-instance_method" title="RRTF::Information#initialize (method)">new</a></span></span>
1240
1252
  <span class='ivar'>@character_set</span> <span class='op'>=</span> <span class='id identifier rubyid_cs_val'>cs_val</span>
1241
1253
  <span class='ivar'>@language</span> <span class='op'>=</span> <span class='id identifier rubyid_ls_val'>ls_val</span>
1242
- <span class='ivar'>@style</span> <span class='op'>=</span> <span class='id identifier rubyid_style'>style</span>
1254
+ <span class='ivar'>@properties</span> <span class='op'>=</span> <span class='id identifier rubyid_properties'>properties</span>
1243
1255
  <span class='ivar'>@headers</span> <span class='op'>=</span> <span class='lbracket'>[</span><span class='kw'>nil</span><span class='comma'>,</span> <span class='kw'>nil</span><span class='comma'>,</span> <span class='kw'>nil</span><span class='comma'>,</span> <span class='kw'>nil</span><span class='rbracket'>]</span>
1244
1256
  <span class='ivar'>@footers</span> <span class='op'>=</span> <span class='lbracket'>[</span><span class='kw'>nil</span><span class='comma'>,</span> <span class='kw'>nil</span><span class='comma'>,</span> <span class='kw'>nil</span><span class='comma'>,</span> <span class='kw'>nil</span><span class='rbracket'>]</span>
1245
1257
  <span class='ivar'>@id</span> <span class='op'>=</span> <span class='int'>0</span>
@@ -1301,12 +1313,12 @@ with which to use as or construct the stylesheet for the document.</p>
1301
1313
  <pre class="lines">
1302
1314
 
1303
1315
 
1304
- 1579
1305
- 1580
1306
- 1581</pre>
1316
+ 67
1317
+ 68
1318
+ 69</pre>
1307
1319
  </td>
1308
1320
  <td>
1309
- <pre class="code"><span class="info file"># File 'lib/rrtf/node.rb', line 1579</span>
1321
+ <pre class="code"><span class="info file"># File 'lib/rrtf/node/document.rb', line 67</span>
1310
1322
 
1311
1323
  <span class='kw'>def</span> <span class='id identifier rubyid_character_set'>character_set</span>
1312
1324
  <span class='ivar'>@character_set</span>
@@ -1344,12 +1356,12 @@ with which to use as or construct the stylesheet for the document.</p>
1344
1356
  <pre class="lines">
1345
1357
 
1346
1358
 
1347
- 1579
1348
- 1580
1349
- 1581</pre>
1359
+ 67
1360
+ 68
1361
+ 69</pre>
1350
1362
  </td>
1351
1363
  <td>
1352
- <pre class="code"><span class="info file"># File 'lib/rrtf/node.rb', line 1579</span>
1364
+ <pre class="code"><span class="info file"># File 'lib/rrtf/node/document.rb', line 67</span>
1353
1365
 
1354
1366
  <span class='kw'>def</span> <span class='id identifier rubyid_colours'>colours</span>
1355
1367
  <span class='ivar'>@colours</span>
@@ -1387,12 +1399,12 @@ with which to use as or construct the stylesheet for the document.</p>
1387
1399
  <pre class="lines">
1388
1400
 
1389
1401
 
1390
- 1579
1391
- 1580
1392
- 1581</pre>
1402
+ 67
1403
+ 68
1404
+ 69</pre>
1393
1405
  </td>
1394
1406
  <td>
1395
- <pre class="code"><span class="info file"># File 'lib/rrtf/node.rb', line 1579</span>
1407
+ <pre class="code"><span class="info file"># File 'lib/rrtf/node/document.rb', line 67</span>
1396
1408
 
1397
1409
  <span class='kw'>def</span> <span class='id identifier rubyid_fonts'>fonts</span>
1398
1410
  <span class='ivar'>@fonts</span>
@@ -1430,12 +1442,12 @@ with which to use as or construct the stylesheet for the document.</p>
1430
1442
  <pre class="lines">
1431
1443
 
1432
1444
 
1433
- 1579
1434
- 1580
1435
- 1581</pre>
1445
+ 67
1446
+ 68
1447
+ 69</pre>
1436
1448
  </td>
1437
1449
  <td>
1438
- <pre class="code"><span class="info file"># File 'lib/rrtf/node.rb', line 1579</span>
1450
+ <pre class="code"><span class="info file"># File 'lib/rrtf/node/document.rb', line 67</span>
1439
1451
 
1440
1452
  <span class='kw'>def</span> <span class='id identifier rubyid_information'>information</span>
1441
1453
  <span class='ivar'>@information</span>
@@ -1473,12 +1485,12 @@ with which to use as or construct the stylesheet for the document.</p>
1473
1485
  <pre class="lines">
1474
1486
 
1475
1487
 
1476
- 1579
1477
- 1580
1478
- 1581</pre>
1488
+ 67
1489
+ 68
1490
+ 69</pre>
1479
1491
  </td>
1480
1492
  <td>
1481
- <pre class="code"><span class="info file"># File 'lib/rrtf/node.rb', line 1579</span>
1493
+ <pre class="code"><span class="info file"># File 'lib/rrtf/node/document.rb', line 67</span>
1482
1494
 
1483
1495
  <span class='kw'>def</span> <span class='id identifier rubyid_language'>language</span>
1484
1496
  <span class='ivar'>@language</span>
@@ -1516,12 +1528,12 @@ with which to use as or construct the stylesheet for the document.</p>
1516
1528
  <pre class="lines">
1517
1529
 
1518
1530
 
1519
- 1579
1520
- 1580
1521
- 1581</pre>
1531
+ 67
1532
+ 68
1533
+ 69</pre>
1522
1534
  </td>
1523
1535
  <td>
1524
- <pre class="code"><span class="info file"># File 'lib/rrtf/node.rb', line 1579</span>
1536
+ <pre class="code"><span class="info file"># File 'lib/rrtf/node/document.rb', line 67</span>
1525
1537
 
1526
1538
  <span class='kw'>def</span> <span class='id identifier rubyid_lists'>lists</span>
1527
1539
  <span class='ivar'>@lists</span>
@@ -1534,9 +1546,9 @@ with which to use as or construct the stylesheet for the document.</p>
1534
1546
 
1535
1547
  <span id=""></span>
1536
1548
  <div class="method_details ">
1537
- <h3 class="signature " id="style-instance_method">
1549
+ <h3 class="signature " id="properties-instance_method">
1538
1550
 
1539
- #<strong>style</strong> &#x21d2; <tt>Object</tt> <span class="extras">(readonly)</span>
1551
+ #<strong>properties</strong> &#x21d2; <tt>Object</tt> <span class="extras">(readonly)</span>
1540
1552
 
1541
1553
 
1542
1554
 
@@ -1559,15 +1571,15 @@ with which to use as or construct the stylesheet for the document.</p>
1559
1571
  <pre class="lines">
1560
1572
 
1561
1573
 
1562
- 1579
1563
- 1580
1564
- 1581</pre>
1574
+ 67
1575
+ 68
1576
+ 69</pre>
1565
1577
  </td>
1566
1578
  <td>
1567
- <pre class="code"><span class="info file"># File 'lib/rrtf/node.rb', line 1579</span>
1579
+ <pre class="code"><span class="info file"># File 'lib/rrtf/node/document.rb', line 67</span>
1568
1580
 
1569
- <span class='kw'>def</span> <span class='id identifier rubyid_style'>style</span>
1570
- <span class='ivar'>@style</span>
1581
+ <span class='kw'>def</span> <span class='id identifier rubyid_properties'>properties</span>
1582
+ <span class='ivar'>@properties</span>
1571
1583
  <span class='kw'>end</span></pre>
1572
1584
  </td>
1573
1585
  </tr>
@@ -1602,12 +1614,12 @@ with which to use as or construct the stylesheet for the document.</p>
1602
1614
  <pre class="lines">
1603
1615
 
1604
1616
 
1605
- 1579
1606
- 1580
1607
- 1581</pre>
1617
+ 67
1618
+ 68
1619
+ 69</pre>
1608
1620
  </td>
1609
1621
  <td>
1610
- <pre class="code"><span class="info file"># File 'lib/rrtf/node.rb', line 1579</span>
1622
+ <pre class="code"><span class="info file"># File 'lib/rrtf/node/document.rb', line 67</span>
1611
1623
 
1612
1624
  <span class='kw'>def</span> <span class='id identifier rubyid_stylesheet'>stylesheet</span>
1613
1625
  <span class='ivar'>@stylesheet</span>
@@ -1651,12 +1663,12 @@ typical Document object page.</p>
1651
1663
  <pre class="lines">
1652
1664
 
1653
1665
 
1654
- 1810
1655
- 1811
1656
- 1812</pre>
1666
+ 298
1667
+ 299
1668
+ 300</pre>
1657
1669
  </td>
1658
1670
  <td>
1659
- <pre class="code"><span class="info file"># File 'lib/rrtf/node.rb', line 1810</span>
1671
+ <pre class="code"><span class="info file"># File 'lib/rrtf/node/document.rb', line 298</span>
1660
1672
 
1661
1673
  <span class='kw'>def</span> <span class='id identifier rubyid_body_height'>body_height</span>
1662
1674
  <span class='ivar'>@style</span><span class='period'>.</span><span class='id identifier rubyid_body_height'>body_height</span>
@@ -1693,12 +1705,12 @@ typical Document object page.</p>
1693
1705
  <pre class="lines">
1694
1706
 
1695
1707
 
1696
- 1804
1697
- 1805
1698
- 1806</pre>
1708
+ 292
1709
+ 293
1710
+ 294</pre>
1699
1711
  </td>
1700
1712
  <td>
1701
- <pre class="code"><span class="info file"># File 'lib/rrtf/node.rb', line 1804</span>
1713
+ <pre class="code"><span class="info file"># File 'lib/rrtf/node/document.rb', line 292</span>
1702
1714
 
1703
1715
  <span class='kw'>def</span> <span class='id identifier rubyid_body_width'>body_width</span>
1704
1716
  <span class='ivar'>@style</span><span class='period'>.</span><span class='id identifier rubyid_body_width'>body_width</span>
@@ -1734,12 +1746,12 @@ typical Document object page.</p>
1734
1746
  <pre class="lines">
1735
1747
 
1736
1748
 
1737
- 1685
1738
- 1686
1739
- 1687</pre>
1749
+ 173
1750
+ 174
1751
+ 175</pre>
1740
1752
  </td>
1741
1753
  <td>
1742
- <pre class="code"><span class="info file"># File 'lib/rrtf/node.rb', line 1685</span>
1754
+ <pre class="code"><span class="info file"># File 'lib/rrtf/node/document.rb', line 173</span>
1743
1755
 
1744
1756
  <span class='kw'>def</span> <span class='id identifier rubyid_default_font'>default_font</span>
1745
1757
  <span class='ivar'>@fonts</span><span class='lbracket'>[</span><span class='ivar'>@default_font</span><span class='rbracket'>]</span>
@@ -1781,13 +1793,13 @@ typical Document object page.</p>
1781
1793
  <pre class="lines">
1782
1794
 
1783
1795
 
1784
- 1773
1785
- 1774
1786
- 1775
1787
- 1776</pre>
1796
+ 261
1797
+ 262
1798
+ 263
1799
+ 264</pre>
1788
1800
  </td>
1789
1801
  <td>
1790
- <pre class="code"><span class="info file"># File 'lib/rrtf/node.rb', line 1773</span>
1802
+ <pre class="code"><span class="info file"># File 'lib/rrtf/node/document.rb', line 261</span>
1791
1803
 
1792
1804
  <span class='kw'>def</span> <span class='id identifier rubyid_default_font='>default_font=</span><span class='lparen'>(</span><span class='id identifier rubyid_font'>font</span><span class='rparen'>)</span>
1793
1805
  <span class='ivar'>@fonts</span> <span class='op'>&lt;&lt;</span> <span class='id identifier rubyid_font'>font</span>
@@ -1831,20 +1843,20 @@ FooterNode::UNIVERSAL.</p>
1831
1843
  <pre class="lines">
1832
1844
 
1833
1845
 
1834
- 1751
1835
- 1752
1836
- 1753
1837
- 1754
1838
- 1755
1839
- 1756
1840
- 1757
1841
- 1758
1842
- 1759
1843
- 1760
1844
- 1761</pre>
1846
+ 239
1847
+ 240
1848
+ 241
1849
+ 242
1850
+ 243
1851
+ 244
1852
+ 245
1853
+ 246
1854
+ 247
1855
+ 248
1856
+ 249</pre>
1845
1857
  </td>
1846
1858
  <td>
1847
- <pre class="code"><span class="info file"># File 'lib/rrtf/node.rb', line 1751</span>
1859
+ <pre class="code"><span class="info file"># File 'lib/rrtf/node/document.rb', line 239</span>
1848
1860
 
1849
1861
  <span class='kw'>def</span> <span class='id identifier rubyid_footer'>footer</span><span class='lparen'>(</span><span class='id identifier rubyid_type'>type</span><span class='op'>=</span><span class='const'>FooterNode</span><span class='op'>::</span><span class='const'>UNIVERSAL</span><span class='rparen'>)</span>
1850
1862
  <span class='id identifier rubyid_index'>index</span> <span class='op'>=</span> <span class='int'>0</span>
@@ -1898,20 +1910,20 @@ overwritten.</p>
1898
1910
  <pre class="lines">
1899
1911
 
1900
1912
 
1901
- 1717
1902
- 1718
1903
- 1719
1904
- 1720
1905
- 1721
1906
- 1722
1907
- 1723
1908
- 1724
1909
- 1725
1910
- 1726
1911
- 1727</pre>
1913
+ 205
1914
+ 206
1915
+ 207
1916
+ 208
1917
+ 209
1918
+ 210
1919
+ 211
1920
+ 212
1921
+ 213
1922
+ 214
1923
+ 215</pre>
1912
1924
  </td>
1913
1925
  <td>
1914
- <pre class="code"><span class="info file"># File 'lib/rrtf/node.rb', line 1717</span>
1926
+ <pre class="code"><span class="info file"># File 'lib/rrtf/node/document.rb', line 205</span>
1915
1927
 
1916
1928
  <span class='kw'>def</span> <span class='id identifier rubyid_footer='>footer=</span><span class='lparen'>(</span><span class='id identifier rubyid_footer'>footer</span><span class='rparen'>)</span>
1917
1929
  <span class='kw'>if</span> <span class='id identifier rubyid_footer'>footer</span><span class='period'>.</span><span class='id identifier rubyid_type'>type</span> <span class='op'>==</span> <span class='const'><span class='object_link'><a href="FooterNode.html" title="RRTF::FooterNode (class)">FooterNode</a></span></span><span class='op'>::</span><span class='const'><span class='object_link'><a href="FooterNode.html#UNIVERSAL-constant" title="RRTF::FooterNode::UNIVERSAL (constant)">UNIVERSAL</a></span></span>
@@ -1956,13 +1968,13 @@ that is unique within the document.</p>
1956
1968
  <pre class="lines">
1957
1969
 
1958
1970
 
1959
- 1679
1960
- 1680
1961
- 1681
1962
- 1682</pre>
1971
+ 167
1972
+ 168
1973
+ 169
1974
+ 170</pre>
1963
1975
  </td>
1964
1976
  <td>
1965
- <pre class="code"><span class="info file"># File 'lib/rrtf/node.rb', line 1679</span>
1977
+ <pre class="code"><span class="info file"># File 'lib/rrtf/node/document.rb', line 167</span>
1966
1978
 
1967
1979
  <span class='kw'>def</span> <span class='id identifier rubyid_get_id'>get_id</span>
1968
1980
  <span class='ivar'>@id</span> <span class='op'>+=</span> <span class='int'>1</span>
@@ -2006,20 +2018,20 @@ HeaderNode::UNIVERSAL.</p>
2006
2018
  <pre class="lines">
2007
2019
 
2008
2020
 
2009
- 1734
2010
- 1735
2011
- 1736
2012
- 1737
2013
- 1738
2014
- 1739
2015
- 1740
2016
- 1741
2017
- 1742
2018
- 1743
2019
- 1744</pre>
2021
+ 222
2022
+ 223
2023
+ 224
2024
+ 225
2025
+ 226
2026
+ 227
2027
+ 228
2028
+ 229
2029
+ 230
2030
+ 231
2031
+ 232</pre>
2020
2032
  </td>
2021
2033
  <td>
2022
- <pre class="code"><span class="info file"># File 'lib/rrtf/node.rb', line 1734</span>
2034
+ <pre class="code"><span class="info file"># File 'lib/rrtf/node/document.rb', line 222</span>
2023
2035
 
2024
2036
  <span class='kw'>def</span> <span class='id identifier rubyid_header'>header</span><span class='lparen'>(</span><span class='id identifier rubyid_type'>type</span><span class='op'>=</span><span class='const'>HeaderNode</span><span class='op'>::</span><span class='const'>UNIVERSAL</span><span class='rparen'>)</span>
2025
2037
  <span class='id identifier rubyid_index'>index</span> <span class='op'>=</span> <span class='int'>0</span>
@@ -2073,20 +2085,20 @@ overwritten.</p>
2073
2085
  <pre class="lines">
2074
2086
 
2075
2087
 
2076
- 1697
2077
- 1698
2078
- 1699
2079
- 1700
2080
- 1701
2081
- 1702
2082
- 1703
2083
- 1704
2084
- 1705
2085
- 1706
2086
- 1707</pre>
2088
+ 185
2089
+ 186
2090
+ 187
2091
+ 188
2092
+ 189
2093
+ 190
2094
+ 191
2095
+ 192
2096
+ 193
2097
+ 194
2098
+ 195</pre>
2087
2099
  </td>
2088
2100
  <td>
2089
- <pre class="code"><span class="info file"># File 'lib/rrtf/node.rb', line 1697</span>
2101
+ <pre class="code"><span class="info file"># File 'lib/rrtf/node/document.rb', line 185</span>
2090
2102
 
2091
2103
  <span class='kw'>def</span> <span class='id identifier rubyid_header='>header=</span><span class='lparen'>(</span><span class='id identifier rubyid_header'>header</span><span class='rparen'>)</span>
2092
2104
  <span class='kw'>if</span> <span class='id identifier rubyid_header'>header</span><span class='period'>.</span><span class='id identifier rubyid_type'>type</span> <span class='op'>==</span> <span class='const'><span class='object_link'><a href="HeaderNode.html" title="RRTF::HeaderNode (class)">HeaderNode</a></span></span><span class='op'>::</span><span class='const'><span class='object_link'><a href="HeaderNode.html#UNIVERSAL-constant" title="RRTF::HeaderNode::UNIVERSAL (constant)">UNIVERSAL</a></span></span>
@@ -2131,12 +2143,12 @@ styles</p>
2131
2143
  <pre class="lines">
2132
2144
 
2133
2145
 
2134
- 1765
2135
- 1766
2136
- 1767</pre>
2146
+ 253
2147
+ 254
2148
+ 255</pre>
2137
2149
  </td>
2138
2150
  <td>
2139
- <pre class="code"><span class="info file"># File 'lib/rrtf/node.rb', line 1765</span>
2151
+ <pre class="code"><span class="info file"># File 'lib/rrtf/node/document.rb', line 253</span>
2140
2152
 
2141
2153
  <span class='kw'>def</span> <span class='id identifier rubyid_load_stylesheet'>load_stylesheet</span><span class='lparen'>(</span><span class='id identifier rubyid_hashmap_array'>hashmap_array</span><span class='rparen'>)</span>
2142
2154
  <span class='ivar'>@stylesheet</span> <span class='op'>=</span> <span class='const'><span class='object_link'><a href="Stylesheet.html" title="RRTF::Stylesheet (class)">Stylesheet</a></span></span><span class='period'>.</span><span class='id identifier rubyid_new'><span class='object_link'><a href="Stylesheet.html#initialize-instance_method" title="RRTF::Stylesheet#initialize (method)">new</a></span></span><span class='lparen'>(</span><span class='kw'>self</span><span class='comma'>,</span> <span class='id identifier rubyid_hashmap_array'>hashmap_array</span><span class='rparen'>)</span>
@@ -2172,13 +2184,13 @@ styles</p>
2172
2184
  <pre class="lines">
2173
2185
 
2174
2186
 
2175
- 1797
2176
- 1798
2177
- 1799
2178
- 1800</pre>
2187
+ 285
2188
+ 286
2189
+ 287
2190
+ 288</pre>
2179
2191
  </td>
2180
2192
  <td>
2181
- <pre class="code"><span class="info file"># File 'lib/rrtf/node.rb', line 1797</span>
2193
+ <pre class="code"><span class="info file"># File 'lib/rrtf/node/document.rb', line 285</span>
2182
2194
 
2183
2195
  <span class='kw'>def</span> <span class='id identifier rubyid_page_break'>page_break</span>
2184
2196
  <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="CommandNode.html" title="RRTF::CommandNode (class)">CommandNode</a></span></span><span class='period'>.</span><span class='id identifier rubyid_new'><span class='object_link'><a href="CommandNode.html#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'>\page</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>
@@ -2216,12 +2228,12 @@ with a Document object.</p>
2216
2228
  <pre class="lines">
2217
2229
 
2218
2230
 
2219
- 1780
2220
- 1781
2221
- 1782</pre>
2231
+ 268
2232
+ 269
2233
+ 270</pre>
2222
2234
  </td>
2223
2235
  <td>
2224
- <pre class="code"><span class="info file"># File 'lib/rrtf/node.rb', line 1780</span>
2236
+ <pre class="code"><span class="info file"># File 'lib/rrtf/node/document.rb', line 268</span>
2225
2237
 
2226
2238
  <span class='kw'>def</span> <span class='id identifier rubyid_paper'>paper</span>
2227
2239
  <span class='ivar'>@style</span><span class='period'>.</span><span class='id identifier rubyid_paper'>paper</span>
@@ -2270,12 +2282,12 @@ class to disallow setting a parent on a Document object.</p>
2270
2282
  <pre class="lines">
2271
2283
 
2272
2284
 
2273
- 1792
2274
- 1793
2275
- 1794</pre>
2285
+ 280
2286
+ 281
2287
+ 282</pre>
2276
2288
  </td>
2277
2289
  <td>
2278
- <pre class="code"><span class="info file"># File 'lib/rrtf/node.rb', line 1792</span>
2290
+ <pre class="code"><span class="info file"># File 'lib/rrtf/node/document.rb', line 280</span>
2279
2291
 
2280
2292
  <span class='kw'>def</span> <span class='id identifier rubyid_parent='>parent=</span><span class='lparen'>(</span><span class='id identifier rubyid_parent'>parent</span><span class='rparen'>)</span>
2281
2293
  <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'>Document objects may not have a parent.</span><span class='tstring_end'>&quot;</span></span><span class='rparen'>)</span>
@@ -2311,44 +2323,44 @@ class to disallow setting a parent on a Document object.</p>
2311
2323
  <pre class="lines">
2312
2324
 
2313
2325
 
2314
- 1815
2315
- 1816
2316
- 1817
2317
- 1818
2318
- 1819
2319
- 1820
2320
- 1821
2321
- 1822
2322
- 1823
2323
- 1824
2324
- 1825
2325
- 1826
2326
- 1827
2327
- 1828
2328
- 1829
2329
- 1830
2330
- 1831
2331
- 1832
2332
- 1833
2333
- 1834
2334
- 1835
2335
- 1836
2336
- 1837
2337
- 1838
2338
- 1839
2339
- 1840
2340
- 1841
2341
- 1842
2342
- 1843
2343
- 1844
2344
- 1845
2345
- 1846
2346
- 1847
2347
- 1848
2348
- 1849</pre>
2326
+ 303
2327
+ 304
2328
+ 305
2329
+ 306
2330
+ 307
2331
+ 308
2332
+ 309
2333
+ 310
2334
+ 311
2335
+ 312
2336
+ 313
2337
+ 314
2338
+ 315
2339
+ 316
2340
+ 317
2341
+ 318
2342
+ 319
2343
+ 320
2344
+ 321
2345
+ 322
2346
+ 323
2347
+ 324
2348
+ 325
2349
+ 326
2350
+ 327
2351
+ 328
2352
+ 329
2353
+ 330
2354
+ 331
2355
+ 332
2356
+ 333
2357
+ 334
2358
+ 335
2359
+ 336
2360
+ 337</pre>
2349
2361
  </td>
2350
2362
  <td>
2351
- <pre class="code"><span class="info file"># File 'lib/rrtf/node.rb', line 1815</span>
2363
+ <pre class="code"><span class="info file"># File 'lib/rrtf/node/document.rb', line 303</span>
2352
2364
 
2353
2365
  <span class='kw'>def</span> <span class='id identifier rubyid_to_rtf'>to_rtf</span>
2354
2366
  <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>
@@ -2379,7 +2391,7 @@ class to disallow setting a parent on a Document object.</p>
2379
2391
  <span class='id identifier rubyid_text'>text</span> <span class='op'>&lt;&lt;</span> <span class='tstring'><span class='tstring_beg'>&quot;</span><span class='tstring_content'>\n</span><span class='embexpr_beg'>#{</span><span class='ivar'>@footers</span><span class='lbracket'>[</span><span class='int'>0</span><span class='rbracket'>]</span><span class='period'>.</span><span class='id identifier rubyid_to_rtf'>to_rtf</span><span class='embexpr_end'>}</span><span class='tstring_end'>&quot;</span></span>
2380
2392
  <span class='kw'>end</span>
2381
2393
  <span class='kw'>end</span>
2382
- <span class='id identifier rubyid_text'>text</span> <span class='op'>&lt;&lt;</span> <span class='tstring'><span class='tstring_beg'>&quot;</span><span class='tstring_content'>\n</span><span class='embexpr_beg'>#{</span><span class='ivar'>@style</span><span class='period'>.</span><span class='id identifier rubyid_prefix'>prefix</span><span class='lparen'>(</span><span class='kw'>self</span><span class='rparen'>)</span><span class='embexpr_end'>}</span><span class='tstring_end'>&quot;</span></span> <span class='kw'>if</span> <span class='op'>!</span><span class='ivar'>@style</span><span class='period'>.</span><span class='id identifier rubyid_nil?'>nil?</span>
2394
+ <span class='id identifier rubyid_text'>text</span> <span class='op'>&lt;&lt;</span> <span class='tstring'><span class='tstring_beg'>&quot;</span><span class='tstring_content'>\n</span><span class='embexpr_beg'>#{</span><span class='ivar'>@properties</span><span class='period'>.</span><span class='id identifier rubyid_to_rtf'>to_rtf</span><span class='embexpr_end'>}</span><span class='tstring_end'>&quot;</span></span> <span class='kw'>if</span> <span class='op'>!</span><span class='ivar'>@properties</span><span class='period'>.</span><span class='id identifier rubyid_nil?'>nil?</span>
2383
2395
  <span class='kw'>self</span><span class='period'>.</span><span class='id identifier rubyid_each'>each</span> <span class='lbrace'>{</span><span class='op'>|</span><span class='id identifier rubyid_entry'>entry</span><span class='op'>|</span> <span class='id identifier rubyid_text'>text</span> <span class='op'>&lt;&lt;</span> <span class='tstring'><span class='tstring_beg'>&quot;</span><span class='tstring_content'>\n</span><span class='embexpr_beg'>#{</span><span class='id identifier rubyid_entry'>entry</span><span class='period'>.</span><span class='id identifier rubyid_to_rtf'>to_rtf</span><span class='embexpr_end'>}</span><span class='tstring_end'>&quot;</span></span><span class='rbrace'>}</span>
2384
2396
  <span class='id identifier rubyid_text'>text</span> <span class='op'>&lt;&lt;</span> <span class='tstring'><span class='tstring_beg'>&quot;</span><span class='tstring_content'>\n}</span><span class='tstring_end'>&quot;</span></span>
2385
2397
 
@@ -2395,7 +2407,7 @@ class to disallow setting a parent on a Document object.</p>
2395
2407
  </div>
2396
2408
 
2397
2409
  <div id="footer">
2398
- Generated on Mon Jul 24 15:49:01 2017 by
2410
+ Generated on Mon Jul 31 21:48:59 2017 by
2399
2411
  <a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
2400
2412
  0.9.9 (ruby-2.3.3).
2401
2413
  </div>