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
@@ -1187,8 +1187,8 @@ string format.</p>
1187
1187
  </span>
1188
1188
 
1189
1189
  &mdash; <div class='inline'>
1190
- <p>colour to apply to the background (highlight); see <span class='object_link'><a href="Colour.html#from_string-class_method" title="RRTF::Colour.from_string (method)">Colour.from_string</a></span> for
1191
- string format.</p>
1190
+ <p>colour to apply to the background; see <span class='object_link'><a href="Colour.html#from_string-class_method" title="RRTF::Colour.from_string (method)">Colour.from_string</a></span> for string
1191
+ format.</p>
1192
1192
  </div>
1193
1193
 
1194
1194
  </li>
@@ -1210,6 +1210,22 @@ format.</p>
1210
1210
 
1211
1211
  </li>
1212
1212
 
1213
+ <li>
1214
+ <span class="name">"highlight_color"</span>
1215
+ <span class="type">(<tt>String</tt>, <tt><span class='object_link'><a href="Colour.html" title="RRTF::Colour (class)">Colour</a></span></tt>)</span>
1216
+ <span class="default">
1217
+
1218
+ &mdash; default:
1219
+ <tt>nil</tt>
1220
+
1221
+ </span>
1222
+
1223
+ &mdash; <div class='inline'>
1224
+ <p>colour with which to highlight text.</p>
1225
+ </div>
1226
+
1227
+ </li>
1228
+
1213
1229
  <li>
1214
1230
  <span class="name">"font"</span>
1215
1231
  <span class="type">(<tt>String</tt>, <tt><span class='object_link'><a href="Font.html" title="RRTF::Font (class)">Font</a></span></tt>)</span>
@@ -1434,6 +1450,23 @@ page (i.e. without breaking).</p>
1434
1450
  &mdash; <div class='inline'>
1435
1451
  <p>the text flow direction in the paragraph (&#39;LEFT_TO_RIGHT&#39; or
1436
1452
  &#39;RIGHT_TO_LEFT&#39;).</p>
1453
+ </div>
1454
+
1455
+ </li>
1456
+
1457
+ <li>
1458
+ <span class="name">"border"</span>
1459
+ <span class="type">(<tt>Array&lt;Hash, <span class='object_link'><a href="BorderStyle.html" title="RRTF::BorderStyle (class)">BorderStyle</a></span>&gt;</tt>, <tt>Hash</tt>, <tt><span class='object_link'><a href="BorderStyle.html" title="RRTF::BorderStyle (class)">BorderStyle</a></span></tt>)</span>
1460
+ <span class="default">
1461
+
1462
+ &mdash; default:
1463
+ <tt>nil</tt>
1464
+
1465
+ </span>
1466
+
1467
+ &mdash; <div class='inline'>
1468
+ <p>the border style(s) to be applied to the paragraph (see
1469
+ <span class='object_link'><a href="BorderFormatting.html#initialize_border_formatting-instance_method" title="RRTF::BorderFormatting#initialize_border_formatting (method)">BorderFormatting#initialize_border_formatting</a></span>).</p>
1437
1470
  </div>
1438
1471
 
1439
1472
  </li>
@@ -1758,7 +1791,7 @@ uglify is true).</p>
1758
1791
  </div>
1759
1792
 
1760
1793
  <div id="footer">
1761
- Generated on Mon Jul 24 15:49:01 2017 by
1794
+ Generated on Mon Jul 31 21:48:58 2017 by
1762
1795
  <a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
1763
1796
  0.9.9 (ruby-2.3.3).
1764
1797
  </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/table_cell_node.rb</dd>
104
104
  </dl>
105
105
 
106
106
  </div>
@@ -698,7 +698,7 @@ its use in table cells.</p>
698
698
 
699
699
 
700
700
  <h3 class="inherited">Methods inherited from <span class='object_link'><a href="CommandNode.html" title="RRTF::CommandNode (class)">CommandNode</a></span></h3>
701
- <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#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#underline-instance_method" title="RRTF::CommandNode#underline (method)">#underline</a></span></p>
701
+ <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></p>
702
702
 
703
703
 
704
704
 
@@ -783,25 +783,25 @@ Defaults to nil.</p>
783
783
  <pre class="lines">
784
784
 
785
785
 
786
- 962
787
- 963
788
- 964
789
- 965
790
- 966
791
- 967
792
- 968
793
- 969
794
- 970
795
- 971
796
- 972
797
- 973
798
- 974
799
- 975
800
- 976
801
- 977</pre>
786
+ 38
787
+ 39
788
+ 40
789
+ 41
790
+ 42
791
+ 43
792
+ 44
793
+ 45
794
+ 46
795
+ 47
796
+ 48
797
+ 49
798
+ 50
799
+ 51
800
+ 52
801
+ 53</pre>
802
802
  </td>
803
803
  <td>
804
- <pre class="code"><span class="info file"># File 'lib/rrtf/node.rb', line 962</span>
804
+ <pre class="code"><span class="info file"># File 'lib/rrtf/node/table_cell_node.rb', line 38</span>
805
805
 
806
806
  <span class='kw'>def</span> <span class='id identifier rubyid_initialize'>initialize</span><span class='lparen'>(</span><span class='id identifier rubyid_row'>row</span><span class='comma'>,</span> <span class='id identifier rubyid_width'>width</span><span class='op'>=</span><span class='const'>DEFAULT_WIDTH</span><span class='comma'>,</span> <span class='id identifier rubyid_style'>style</span><span class='op'>=</span><span class='kw'>nil</span><span class='comma'>,</span> <span class='id identifier rubyid_top'>top</span><span class='op'>=</span><span class='kw'>nil</span><span class='comma'>,</span> <span class='id identifier rubyid_right'>right</span><span class='op'>=</span><span class='kw'>nil</span><span class='comma'>,</span>
807
807
  <span class='id identifier rubyid_bottom'>bottom</span><span class='op'>=</span><span class='kw'>nil</span><span class='comma'>,</span> <span class='id identifier rubyid_left'>left</span><span class='op'>=</span><span class='kw'>nil</span><span class='rparen'>)</span>
@@ -857,12 +857,12 @@ Defaults to nil.</p>
857
857
  <pre class="lines">
858
858
 
859
859
 
860
- 943
861
- 944
862
- 945</pre>
860
+ 19
861
+ 20
862
+ 21</pre>
863
863
  </td>
864
864
  <td>
865
- <pre class="code"><span class="info file"># File 'lib/rrtf/node.rb', line 943</span>
865
+ <pre class="code"><span class="info file"># File 'lib/rrtf/node/table_cell_node.rb', line 19</span>
866
866
 
867
867
  <span class='kw'>def</span> <span class='id identifier rubyid_shading_colour'>shading_colour</span>
868
868
  <span class='ivar'>@shading_colour</span>
@@ -900,12 +900,12 @@ Defaults to nil.</p>
900
900
  <pre class="lines">
901
901
 
902
902
 
903
- 943
904
- 944
905
- 945</pre>
903
+ 19
904
+ 20
905
+ 21</pre>
906
906
  </td>
907
907
  <td>
908
- <pre class="code"><span class="info file"># File 'lib/rrtf/node.rb', line 943</span>
908
+ <pre class="code"><span class="info file"># File 'lib/rrtf/node/table_cell_node.rb', line 19</span>
909
909
 
910
910
  <span class='kw'>def</span> <span class='id identifier rubyid_style'>style</span>
911
911
  <span class='ivar'>@style</span>
@@ -943,12 +943,12 @@ Defaults to nil.</p>
943
943
  <pre class="lines">
944
944
 
945
945
 
946
- 941
947
- 942
948
- 943</pre>
946
+ 17
947
+ 18
948
+ 19</pre>
949
949
  </td>
950
950
  <td>
951
- <pre class="code"><span class="info file"># File 'lib/rrtf/node.rb', line 941</span>
951
+ <pre class="code"><span class="info file"># File 'lib/rrtf/node/table_cell_node.rb', line 17</span>
952
952
 
953
953
  <span class='kw'>def</span> <span class='id identifier rubyid_width'>width</span>
954
954
  <span class='ivar'>@width</span>
@@ -999,17 +999,17 @@ border off.</p>
999
999
  <pre class="lines">
1000
1000
 
1001
1001
 
1002
- 1002
1003
- 1003
1004
- 1004
1005
- 1005
1006
- 1006
1007
- 1007
1008
- 1008
1009
- 1009</pre>
1002
+ 78
1003
+ 79
1004
+ 80
1005
+ 81
1006
+ 82
1007
+ 83
1008
+ 84
1009
+ 85</pre>
1010
1010
  </td>
1011
1011
  <td>
1012
- <pre class="code"><span class="info file"># File 'lib/rrtf/node.rb', line 1002</span>
1012
+ <pre class="code"><span class="info file"># File 'lib/rrtf/node/table_cell_node.rb', line 78</span>
1013
1013
 
1014
1014
  <span class='kw'>def</span> <span class='id identifier rubyid_border_width='>border_width=</span><span class='lparen'>(</span><span class='id identifier rubyid_width'>width</span><span class='rparen'>)</span>
1015
1015
  <span class='id identifier rubyid_size'>size</span> <span class='op'>=</span> <span class='id identifier rubyid_width'>width</span><span class='period'>.</span><span class='id identifier rubyid_nil?'>nil?</span> <span class='op'>?</span> <span class='int'>0</span> <span class='op'>:</span> <span class='id identifier rubyid_width'>width</span>
@@ -1051,14 +1051,14 @@ values are inserted in top, right, bottom, left order.</p>
1051
1051
  <pre class="lines">
1052
1052
 
1053
1053
 
1054
- 1080
1055
- 1081
1056
- 1082
1057
- 1083
1058
- 1084</pre>
1054
+ 156
1055
+ 157
1056
+ 158
1057
+ 159
1058
+ 160</pre>
1059
1059
  </td>
1060
1060
  <td>
1061
- <pre class="code"><span class="info file"># File 'lib/rrtf/node.rb', line 1080</span>
1061
+ <pre class="code"><span class="info file"># File 'lib/rrtf/node/table_cell_node.rb', line 156</span>
1062
1062
 
1063
1063
  <span class='kw'>def</span> <span class='id identifier rubyid_border_widths'>border_widths</span>
1064
1064
  <span class='id identifier rubyid_widths'>widths</span> <span class='op'>=</span> <span class='lbracket'>[</span><span class='rbracket'>]</span>
@@ -1096,12 +1096,12 @@ values are inserted in top, right, bottom, left order.</p>
1096
1096
  <pre class="lines">
1097
1097
 
1098
1098
 
1099
- 1097
1100
- 1098
1101
- 1099</pre>
1099
+ 173
1100
+ 174
1101
+ 175</pre>
1102
1102
  </td>
1103
1103
  <td>
1104
- <pre class="code"><span class="info file"># File 'lib/rrtf/node.rb', line 1097</span>
1104
+ <pre class="code"><span class="info file"># File 'lib/rrtf/node/table_cell_node.rb', line 173</span>
1105
1105
 
1106
1106
  <span class='kw'>def</span> <span class='id identifier rubyid_bottom_border_width'>bottom_border_width</span>
1107
1107
  <span class='ivar'>@borders</span><span class='lbracket'>[</span><span class='const'><span class='object_link'><a href="#BOTTOM-constant" title="RRTF::TableCellNode::BOTTOM (constant)">BOTTOM</a></span></span><span class='rbracket'>]</span><span class='period'>.</span><span class='id identifier rubyid_nil?'>nil?</span> <span class='op'>?</span> <span class='int'>0</span> <span class='op'>:</span> <span class='ivar'>@borders</span><span class='lbracket'>[</span><span class='const'><span class='object_link'><a href="#BOTTOM-constant" title="RRTF::TableCellNode::BOTTOM (constant)">BOTTOM</a></span></span><span class='rbracket'>]</span>
@@ -1144,17 +1144,17 @@ Negative values are ignored and a value of 0 switches the border off.</p>
1144
1144
  <pre class="lines">
1145
1145
 
1146
1146
 
1147
- 1044
1148
- 1045
1149
- 1046
1150
- 1047
1151
- 1048
1152
- 1049
1153
- 1050
1154
- 1051</pre>
1147
+ 120
1148
+ 121
1149
+ 122
1150
+ 123
1151
+ 124
1152
+ 125
1153
+ 126
1154
+ 127</pre>
1155
1155
  </td>
1156
1156
  <td>
1157
- <pre class="code"><span class="info file"># File 'lib/rrtf/node.rb', line 1044</span>
1157
+ <pre class="code"><span class="info file"># File 'lib/rrtf/node/table_cell_node.rb', line 120</span>
1158
1158
 
1159
1159
  <span class='kw'>def</span> <span class='id identifier rubyid_bottom_border_width='>bottom_border_width=</span><span class='lparen'>(</span><span class='id identifier rubyid_width'>width</span><span class='rparen'>)</span>
1160
1160
  <span class='id identifier rubyid_size'>size</span> <span class='op'>=</span> <span class='id identifier rubyid_width'>width</span><span class='period'>.</span><span class='id identifier rubyid_nil?'>nil?</span> <span class='op'>?</span> <span class='int'>0</span> <span class='op'>:</span> <span class='id identifier rubyid_width'>width</span>
@@ -1195,12 +1195,12 @@ Negative values are ignored and a value of 0 switches the border off.</p>
1195
1195
  <pre class="lines">
1196
1196
 
1197
1197
 
1198
- 1102
1199
- 1103
1200
- 1104</pre>
1198
+ 178
1199
+ 179
1200
+ 180</pre>
1201
1201
  </td>
1202
1202
  <td>
1203
- <pre class="code"><span class="info file"># File 'lib/rrtf/node.rb', line 1102</span>
1203
+ <pre class="code"><span class="info file"># File 'lib/rrtf/node/table_cell_node.rb', line 178</span>
1204
1204
 
1205
1205
  <span class='kw'>def</span> <span class='id identifier rubyid_left_border_width'>left_border_width</span>
1206
1206
  <span class='ivar'>@borders</span><span class='lbracket'>[</span><span class='const'><span class='object_link'><a href="#LEFT-constant" title="RRTF::TableCellNode::LEFT (constant)">LEFT</a></span></span><span class='rbracket'>]</span><span class='period'>.</span><span class='id identifier rubyid_nil?'>nil?</span> <span class='op'>?</span> <span class='int'>0</span> <span class='op'>:</span> <span class='ivar'>@borders</span><span class='lbracket'>[</span><span class='const'><span class='object_link'><a href="#LEFT-constant" title="RRTF::TableCellNode::LEFT (constant)">LEFT</a></span></span><span class='rbracket'>]</span>
@@ -1243,17 +1243,17 @@ Negative values are ignored and a value of 0 switches the border off.</p>
1243
1243
  <pre class="lines">
1244
1244
 
1245
1245
 
1246
- 1058
1247
- 1059
1248
- 1060
1249
- 1061
1250
- 1062
1251
- 1063
1252
- 1064
1253
- 1065</pre>
1246
+ 134
1247
+ 135
1248
+ 136
1249
+ 137
1250
+ 138
1251
+ 139
1252
+ 140
1253
+ 141</pre>
1254
1254
  </td>
1255
1255
  <td>
1256
- <pre class="code"><span class="info file"># File 'lib/rrtf/node.rb', line 1058</span>
1256
+ <pre class="code"><span class="info file"># File 'lib/rrtf/node/table_cell_node.rb', line 134</span>
1257
1257
 
1258
1258
  <span class='kw'>def</span> <span class='id identifier rubyid_left_border_width='>left_border_width=</span><span class='lparen'>(</span><span class='id identifier rubyid_width'>width</span><span class='rparen'>)</span>
1259
1259
  <span class='id identifier rubyid_size'>size</span> <span class='op'>=</span> <span class='id identifier rubyid_width'>width</span><span class='period'>.</span><span class='id identifier rubyid_nil?'>nil?</span> <span class='op'>?</span> <span class='int'>0</span> <span class='op'>:</span> <span class='id identifier rubyid_width'>width</span>
@@ -1301,13 +1301,13 @@ class to forbid the creation of paragraphs.</p>
1301
1301
  <pre class="lines">
1302
1302
 
1303
1303
 
1304
- 1111
1305
- 1112
1306
- 1113
1307
- 1114</pre>
1304
+ 187
1305
+ 188
1306
+ 189
1307
+ 190</pre>
1308
1308
  </td>
1309
1309
  <td>
1310
- <pre class="code"><span class="info file"># File 'lib/rrtf/node.rb', line 1111</span>
1310
+ <pre class="code"><span class="info file"># File 'lib/rrtf/node/table_cell_node.rb', line 187</span>
1311
1311
 
1312
1312
  <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>
1313
1313
  <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'>TableCellNode#paragraph() called. Table cells cannot </span><span class='tstring_end'>&quot;</span></span>\
@@ -1351,12 +1351,12 @@ forbid the alteration of the cells parent.</p>
1351
1351
  <pre class="lines">
1352
1352
 
1353
1353
 
1354
- 1121
1355
- 1122
1356
- 1123</pre>
1354
+ 197
1355
+ 198
1356
+ 199</pre>
1357
1357
  </td>
1358
1358
  <td>
1359
- <pre class="code"><span class="info file"># File 'lib/rrtf/node.rb', line 1121</span>
1359
+ <pre class="code"><span class="info file"># File 'lib/rrtf/node/table_cell_node.rb', line 197</span>
1360
1360
 
1361
1361
  <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>
1362
1362
  <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'>Table cell nodes cannot have their parent changed.</span><span class='tstring_end'>&quot;</span></span><span class='rparen'>)</span>
@@ -1392,12 +1392,12 @@ forbid the alteration of the cells parent.</p>
1392
1392
  <pre class="lines">
1393
1393
 
1394
1394
 
1395
- 1092
1396
- 1093
1397
- 1094</pre>
1395
+ 168
1396
+ 169
1397
+ 170</pre>
1398
1398
  </td>
1399
1399
  <td>
1400
- <pre class="code"><span class="info file"># File 'lib/rrtf/node.rb', line 1092</span>
1400
+ <pre class="code"><span class="info file"># File 'lib/rrtf/node/table_cell_node.rb', line 168</span>
1401
1401
 
1402
1402
  <span class='kw'>def</span> <span class='id identifier rubyid_right_border_width'>right_border_width</span>
1403
1403
  <span class='ivar'>@borders</span><span class='lbracket'>[</span><span class='const'><span class='object_link'><a href="#RIGHT-constant" title="RRTF::TableCellNode::RIGHT (constant)">RIGHT</a></span></span><span class='rbracket'>]</span><span class='period'>.</span><span class='id identifier rubyid_nil?'>nil?</span> <span class='op'>?</span> <span class='int'>0</span> <span class='op'>:</span> <span class='ivar'>@borders</span><span class='lbracket'>[</span><span class='const'><span class='object_link'><a href="#RIGHT-constant" title="RRTF::TableCellNode::RIGHT (constant)">RIGHT</a></span></span><span class='rbracket'>]</span>
@@ -1440,17 +1440,17 @@ Negative values are ignored and a value of 0 switches the border off.</p>
1440
1440
  <pre class="lines">
1441
1441
 
1442
1442
 
1443
- 1030
1444
- 1031
1445
- 1032
1446
- 1033
1447
- 1034
1448
- 1035
1449
- 1036
1450
- 1037</pre>
1443
+ 106
1444
+ 107
1445
+ 108
1446
+ 109
1447
+ 110
1448
+ 111
1449
+ 112
1450
+ 113</pre>
1451
1451
  </td>
1452
1452
  <td>
1453
- <pre class="code"><span class="info file"># File 'lib/rrtf/node.rb', line 1030</span>
1453
+ <pre class="code"><span class="info file"># File 'lib/rrtf/node/table_cell_node.rb', line 106</span>
1454
1454
 
1455
1455
  <span class='kw'>def</span> <span class='id identifier rubyid_right_border_width='>right_border_width=</span><span class='lparen'>(</span><span class='id identifier rubyid_width'>width</span><span class='rparen'>)</span>
1456
1456
  <span class='id identifier rubyid_size'>size</span> <span class='op'>=</span> <span class='id identifier rubyid_width'>width</span><span class='period'>.</span><span class='id identifier rubyid_nil?'>nil?</span> <span class='op'>?</span> <span class='int'>0</span> <span class='op'>:</span> <span class='id identifier rubyid_width'>width</span>
@@ -1504,12 +1504,12 @@ its use in table cells.</p>
1504
1504
  <pre class="lines">
1505
1505
 
1506
1506
 
1507
- 1133
1508
- 1134
1509
- 1135</pre>
1507
+ 209
1508
+ 210
1509
+ 211</pre>
1510
1510
  </td>
1511
1511
  <td>
1512
- <pre class="code"><span class="info file"># File 'lib/rrtf/node.rb', line 1133</span>
1512
+ <pre class="code"><span class="info file"># File 'lib/rrtf/node/table_cell_node.rb', line 209</span>
1513
1513
 
1514
1514
  <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>
1515
1515
  <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'>TableCellNode#table() called. Nested tables not allowed.</span><span class='tstring_end'>&quot;</span></span><span class='rparen'>)</span>
@@ -1545,27 +1545,27 @@ its use in table cells.</p>
1545
1545
  <pre class="lines">
1546
1546
 
1547
1547
 
1548
- 1138
1549
- 1139
1550
- 1140
1551
- 1141
1552
- 1142
1553
- 1143
1554
- 1144
1555
- 1145
1556
- 1146
1557
- 1147
1558
- 1148
1559
- 1149
1560
- 1150
1561
- 1151
1562
- 1152
1563
- 1153
1564
- 1154
1565
- 1155</pre>
1548
+ 214
1549
+ 215
1550
+ 216
1551
+ 217
1552
+ 218
1553
+ 219
1554
+ 220
1555
+ 221
1556
+ 222
1557
+ 223
1558
+ 224
1559
+ 225
1560
+ 226
1561
+ 227
1562
+ 228
1563
+ 229
1564
+ 230
1565
+ 231</pre>
1566
1566
  </td>
1567
1567
  <td>
1568
- <pre class="code"><span class="info file"># File 'lib/rrtf/node.rb', line 1138</span>
1568
+ <pre class="code"><span class="info file"># File 'lib/rrtf/node/table_cell_node.rb', line 214</span>
1569
1569
 
1570
1570
  <span class='kw'>def</span> <span class='id identifier rubyid_to_rtf'>to_rtf</span>
1571
1571
  <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>
@@ -1616,12 +1616,12 @@ its use in table cells.</p>
1616
1616
  <pre class="lines">
1617
1617
 
1618
1618
 
1619
- 1087
1620
- 1088
1621
- 1089</pre>
1619
+ 163
1620
+ 164
1621
+ 165</pre>
1622
1622
  </td>
1623
1623
  <td>
1624
- <pre class="code"><span class="info file"># File 'lib/rrtf/node.rb', line 1087</span>
1624
+ <pre class="code"><span class="info file"># File 'lib/rrtf/node/table_cell_node.rb', line 163</span>
1625
1625
 
1626
1626
  <span class='kw'>def</span> <span class='id identifier rubyid_top_border_width'>top_border_width</span>
1627
1627
  <span class='ivar'>@borders</span><span class='lbracket'>[</span><span class='const'><span class='object_link'><a href="#TOP-constant" title="RRTF::TableCellNode::TOP (constant)">TOP</a></span></span><span class='rbracket'>]</span><span class='period'>.</span><span class='id identifier rubyid_nil?'>nil?</span> <span class='op'>?</span> <span class='int'>0</span> <span class='op'>:</span> <span class='ivar'>@borders</span><span class='lbracket'>[</span><span class='const'><span class='object_link'><a href="#TOP-constant" title="RRTF::TableCellNode::TOP (constant)">TOP</a></span></span><span class='rbracket'>]</span>
@@ -1664,17 +1664,17 @@ Negative values are ignored and a value of 0 switches the border off.</p>
1664
1664
  <pre class="lines">
1665
1665
 
1666
1666
 
1667
- 1016
1668
- 1017
1669
- 1018
1670
- 1019
1671
- 1020
1672
- 1021
1673
- 1022
1674
- 1023</pre>
1667
+ 92
1668
+ 93
1669
+ 94
1670
+ 95
1671
+ 96
1672
+ 97
1673
+ 98
1674
+ 99</pre>
1675
1675
  </td>
1676
1676
  <td>
1677
- <pre class="code"><span class="info file"># File 'lib/rrtf/node.rb', line 1016</span>
1677
+ <pre class="code"><span class="info file"># File 'lib/rrtf/node/table_cell_node.rb', line 92</span>
1678
1678
 
1679
1679
  <span class='kw'>def</span> <span class='id identifier rubyid_top_border_width='>top_border_width=</span><span class='lparen'>(</span><span class='id identifier rubyid_width'>width</span><span class='rparen'>)</span>
1680
1680
  <span class='id identifier rubyid_size'>size</span> <span class='op'>=</span> <span class='id identifier rubyid_width'>width</span><span class='period'>.</span><span class='id identifier rubyid_nil?'>nil?</span> <span class='op'>?</span> <span class='int'>0</span> <span class='op'>:</span> <span class='id identifier rubyid_width'>width</span>
@@ -1694,7 +1694,7 @@ Negative values are ignored and a value of 0 switches the border off.</p>
1694
1694
  </div>
1695
1695
 
1696
1696
  <div id="footer">
1697
- Generated on Mon Jul 24 15:49:00 2017 by
1697
+ Generated on Mon Jul 31 21:49:01 2017 by
1698
1698
  <a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
1699
1699
  0.9.9 (ruby-2.3.3).
1700
1700
  </div>