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
@@ -74,6 +74,8 @@
74
74
  <ul class="fullTree">
75
75
  <li>Object</li>
76
76
 
77
+ <li class="next"><span class='object_link'><a href="AnonymousStyle.html" title="RRTF::AnonymousStyle (class)">AnonymousStyle</a></span></li>
78
+
77
79
  <li class="next"><span class='object_link'><a href="Style.html" title="RRTF::Style (class)">Style</a></span></li>
78
80
 
79
81
  <li class="next">RRTF::CharacterStyle</li>
@@ -166,31 +168,6 @@
166
168
  <p>This is the constructor for the CharacterStyle class.</p>
167
169
  </div></span>
168
170
 
169
- </li>
170
-
171
-
172
- <li class="public ">
173
- <span class="summary_signature">
174
-
175
- <a href="#is_character_style%3F-instance_method" title="#is_character_style? (instance method)">#<strong>is_character_style?</strong> &#x21d2; Boolean </a>
176
-
177
-
178
-
179
- </span>
180
-
181
-
182
-
183
-
184
-
185
-
186
-
187
-
188
-
189
- <span class="summary_desc"><div class='inline'>
190
- <p>This method overrides the is_character_style? method inherited from the
191
- Style class to always return true.</p>
192
- </div></span>
193
-
194
171
  </li>
195
172
 
196
173
 
@@ -212,7 +189,7 @@ Style class to always return true.</p>
212
189
 
213
190
 
214
191
  <span class="summary_desc"><div class='inline'>
215
- <p>This method generates a string containing the prefix associated with a
192
+ <p>This method generates a string containing the prefix associated with the
216
193
  style object.</p>
217
194
  </div></span>
218
195
 
@@ -279,7 +256,7 @@ stylesheet).</p>
279
256
 
280
257
 
281
258
  <h3 class="inherited">Methods included from <span class='object_link'><a href="CharacterFormatting.html" title="RRTF::CharacterFormatting (module)">CharacterFormatting</a></span></h3>
282
- <p class="inherited"><span class='object_link'><a href="CharacterFormatting.html#character_formatting_to_rtf-instance_method" title="RRTF::CharacterFormatting#character_formatting_to_rtf (method)">#character_formatting_to_rtf</a></span>, <span class='object_link'><a href="CharacterFormatting.html#included-class_method" title="RRTF::CharacterFormatting.included (method)">included</a></span>, <span class='object_link'><a href="CharacterFormatting.html#initialize_character_formatting-instance_method" title="RRTF::CharacterFormatting#initialize_character_formatting (method)">#initialize_character_formatting</a></span>, <span class='object_link'><a href="CharacterFormatting.html#push_colours-instance_method" title="RRTF::CharacterFormatting#push_colours (method)">#push_colours</a></span>, <span class='object_link'><a href="CharacterFormatting.html#push_fonts-instance_method" title="RRTF::CharacterFormatting#push_fonts (method)">#push_fonts</a></span>, <span class='object_link'><a href="CharacterFormatting.html#set_character_formatting_from_hashmap-instance_method" title="RRTF::CharacterFormatting#set_character_formatting_from_hashmap (method)">#set_character_formatting_from_hashmap</a></span></p>
259
+ <p class="inherited"><span class='object_link'><a href="CharacterFormatting.html#character_formatting_to_rtf-instance_method" title="RRTF::CharacterFormatting#character_formatting_to_rtf (method)">#character_formatting_to_rtf</a></span>, <span class='object_link'><a href="CharacterFormatting.html#included-class_method" title="RRTF::CharacterFormatting.included (method)">included</a></span>, <span class='object_link'><a href="CharacterFormatting.html#initialize_character_formatting-instance_method" title="RRTF::CharacterFormatting#initialize_character_formatting (method)">#initialize_character_formatting</a></span>, <span class='object_link'><a href="CharacterFormatting.html#set_character_formatting_from_hashmap-instance_method" title="RRTF::CharacterFormatting#set_character_formatting_from_hashmap (method)">#set_character_formatting_from_hashmap</a></span></p>
283
260
 
284
261
 
285
262
 
@@ -289,8 +266,14 @@ stylesheet).</p>
289
266
 
290
267
 
291
268
 
292
- <h3 class="inherited">Methods inherited from <span class='object_link'><a href="Style.html" title="RRTF::Style (class)">Style</a></span></h3>
293
- <p class="inherited"><span class='object_link'><a href="Style.html#is_document_style%3F-instance_method" title="RRTF::Style#is_document_style? (method)">#is_document_style?</a></span>, <span class='object_link'><a href="Style.html#is_paragraph_style%3F-instance_method" title="RRTF::Style#is_paragraph_style? (method)">#is_paragraph_style?</a></span>, <span class='object_link'><a href="Style.html#is_table_style%3F-instance_method" title="RRTF::Style#is_table_style? (method)">#is_table_style?</a></span>, <span class='object_link'><a href="Style.html#styledef-instance_method" title="RRTF::Style#styledef (method)">#styledef</a></span>, <span class='object_link'><a href="Style.html#stylename-instance_method" title="RRTF::Style#stylename (method)">#stylename</a></span>, <span class='object_link'><a href="Style.html#suffix-instance_method" title="RRTF::Style#suffix (method)">#suffix</a></span></p>
269
+
270
+
271
+
272
+
273
+
274
+
275
+ <h3 class="inherited">Methods inherited from <span class='object_link'><a href="AnonymousStyle.html" title="RRTF::AnonymousStyle (class)">AnonymousStyle</a></span></h3>
276
+ <p class="inherited"><span class='object_link'><a href="AnonymousStyle.html#push_colours-instance_method" title="RRTF::AnonymousStyle#push_colours (method)">#push_colours</a></span>, <span class='object_link'><a href="AnonymousStyle.html#push_fonts-instance_method" title="RRTF::AnonymousStyle#push_fonts (method)">#push_fonts</a></span>, <span class='object_link'><a href="AnonymousStyle.html#suffix-instance_method" title="RRTF::AnonymousStyle#suffix (method)">#suffix</a></span></p>
294
277
  <div id="constructor_details" class="method_details_list">
295
278
  <h2>Constructor Details</h2>
296
279
 
@@ -727,8 +710,8 @@ string format.</p>
727
710
  </span>
728
711
 
729
712
  &mdash; <div class='inline'>
730
- <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)">RRTF::Colour.from_string</a></span> for
731
- string format.</p>
713
+ <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)">RRTF::Colour.from_string</a></span> for string
714
+ format.</p>
732
715
  </div>
733
716
 
734
717
  </li>
@@ -750,6 +733,22 @@ format.</p>
750
733
 
751
734
  </li>
752
735
 
736
+ <li>
737
+ <span class="name">"highlight_color"</span>
738
+ <span class="type">(<tt>String</tt>, <tt><span class='object_link'><a href="Colour.html" title="RRTF::Colour (class)">Colour</a></span></tt>)</span>
739
+ <span class="default">
740
+
741
+ &mdash; default:
742
+ <tt>nil</tt>
743
+
744
+ </span>
745
+
746
+ &mdash; <div class='inline'>
747
+ <p>colour with which to highlight text.</p>
748
+ </div>
749
+
750
+ </li>
751
+
753
752
  <li>
754
753
  <span class="name">"font"</span>
755
754
  <span class="type">(<tt>String</tt>, <tt><span class='object_link'><a href="Font.html" title="RRTF::Font (class)">Font</a></span></tt>)</span>
@@ -817,62 +816,7 @@ format.</p>
817
816
 
818
817
 
819
818
  <div class="method_details first">
820
- <h3 class="signature first" id="is_character_style?-instance_method">
821
-
822
- #<strong>is_character_style?</strong> &#x21d2; <tt>Boolean</tt>
823
-
824
-
825
-
826
-
827
-
828
- </h3><div class="docstring">
829
- <div class="discussion">
830
-
831
- <p>This method overrides the is_character_style? method inherited from the
832
- Style class to always return true.</p>
833
-
834
-
835
- </div>
836
- </div>
837
- <div class="tags">
838
-
839
- <p class="tag_title">Returns:</p>
840
- <ul class="return">
841
-
842
- <li>
843
-
844
-
845
- <span class='type'>(<tt>Boolean</tt>)</span>
846
-
847
-
848
-
849
- </li>
850
-
851
- </ul>
852
-
853
- </div><table class="source_code">
854
- <tr>
855
- <td>
856
- <pre class="lines">
857
-
858
-
859
- 20
860
- 21
861
- 22</pre>
862
- </td>
863
- <td>
864
- <pre class="code"><span class="info file"># File 'lib/rrtf/style/character_style.rb', line 20</span>
865
-
866
- <span class='kw'>def</span> <span class='id identifier rubyid_is_character_style?'>is_character_style?</span>
867
- <span class='kw'>true</span>
868
- <span class='kw'>end</span></pre>
869
- </td>
870
- </tr>
871
- </table>
872
- </div>
873
-
874
- <div class="method_details ">
875
- <h3 class="signature " id="prefix-instance_method">
819
+ <h3 class="signature first" id="prefix-instance_method">
876
820
 
877
821
  #<strong>prefix</strong>(document) &#x21d2; <tt>Object</tt>
878
822
 
@@ -883,7 +827,7 @@ Style class to always return true.</p>
883
827
  </h3><div class="docstring">
884
828
  <div class="discussion">
885
829
 
886
- <p>This method generates a string containing the prefix associated with a
830
+ <p>This method generates a string containing the prefix associated with the
887
831
  style object.</p>
888
832
 
889
833
 
@@ -898,17 +842,17 @@ style object.</p>
898
842
  <pre class="lines">
899
843
 
900
844
 
845
+ 50
846
+ 51
847
+ 52
848
+ 53
849
+ 54
850
+ 55
901
851
  56
902
- 57
903
- 58
904
- 59
905
- 60
906
- 61
907
- 62
908
- 63</pre>
852
+ 57</pre>
909
853
  </td>
910
854
  <td>
911
- <pre class="code"><span class="info file"># File 'lib/rrtf/style/character_style.rb', line 56</span>
855
+ <pre class="code"><span class="info file"># File 'lib/rrtf/style/character_style.rb', line 50</span>
912
856
 
913
857
  <span class='kw'>def</span> <span class='id identifier rubyid_prefix'>prefix</span><span class='lparen'>(</span><span class='id identifier rubyid_document'>document</span><span class='rparen'>)</span>
914
858
  <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>
@@ -938,12 +882,12 @@ style object.</p>
938
882
  <pre class="lines">
939
883
 
940
884
 
941
- 65
942
- 66
943
- 67</pre>
885
+ 59
886
+ 60
887
+ 61</pre>
944
888
  </td>
945
889
  <td>
946
- <pre class="code"><span class="info file"># File 'lib/rrtf/style/character_style.rb', line 65</span>
890
+ <pre class="code"><span class="info file"># File 'lib/rrtf/style/character_style.rb', line 59</span>
947
891
 
948
892
  <span class='kw'>def</span> <span class='id identifier rubyid_rtf_formatting'>rtf_formatting</span><span class='lparen'>(</span><span class='id identifier rubyid_document'>document</span><span class='rparen'>)</span>
949
893
  <span class='id identifier rubyid_character_formatting_to_rtf'>character_formatting_to_rtf</span><span class='lparen'>(</span><span class='id identifier rubyid_document'>document</span><span class='rparen'>)</span>
@@ -980,6 +924,12 @@ stylesheet)</p>
980
924
  <pre class="lines">
981
925
 
982
926
 
927
+ 20
928
+ 21
929
+ 22
930
+ 23
931
+ 24
932
+ 25
983
933
  26
984
934
  27
985
935
  28
@@ -1000,16 +950,10 @@ stylesheet)</p>
1000
950
  43
1001
951
  44
1002
952
  45
1003
- 46
1004
- 47
1005
- 48
1006
- 49
1007
- 50
1008
- 51
1009
- 52</pre>
953
+ 46</pre>
1010
954
  </td>
1011
955
  <td>
1012
- <pre class="code"><span class="info file"># File 'lib/rrtf/style/character_style.rb', line 26</span>
956
+ <pre class="code"><span class="info file"># File 'lib/rrtf/style/character_style.rb', line 20</span>
1013
957
 
1014
958
  <span class='kw'>def</span> <span class='id identifier rubyid_to_rtf'>to_rtf</span><span class='lparen'>(</span><span class='id identifier rubyid_document'>document</span><span class='comma'>,</span> <span class='id identifier rubyid_options'>options</span> <span class='op'>=</span> <span class='lbrace'>{</span><span class='rbrace'>}</span><span class='rparen'>)</span>
1015
959
  <span class='comment'># load default options
@@ -1048,7 +992,7 @@ stylesheet)</p>
1048
992
  </div>
1049
993
 
1050
994
  <div id="footer">
1051
- Generated on Mon Jul 24 15:49:02 2017 by
995
+ Generated on Mon Jul 31 21:49:01 2017 by
1052
996
  <a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
1053
997
  0.9.9 (ruby-2.3.3).
1054
998
  </div>
@@ -297,6 +297,28 @@
297
297
  <p>This is the constructor for the Colour class.</p>
298
298
  </div></span>
299
299
 
300
+ </li>
301
+
302
+
303
+ <li class="public ">
304
+ <span class="summary_signature">
305
+
306
+ <a href="#to_decimal-instance_method" title="#to_decimal (instance method)">#<strong>to_decimal</strong>(options = {}) &#x21d2; Object </a>
307
+
308
+
309
+
310
+ </span>
311
+
312
+
313
+
314
+
315
+
316
+
317
+
318
+
319
+
320
+ <span class="summary_desc"><div class='inline'></div></span>
321
+
300
322
  </li>
301
323
 
302
324
 
@@ -696,6 +718,44 @@ green or blue values.</p>
696
718
  </td>
697
719
  </tr>
698
720
  </table>
721
+ </div>
722
+
723
+ <div class="method_details ">
724
+ <h3 class="signature " id="to_decimal-instance_method">
725
+
726
+ #<strong>to_decimal</strong>(options = {}) &#x21d2; <tt>Object</tt>
727
+
728
+
729
+
730
+
731
+
732
+ </h3><table class="source_code">
733
+ <tr>
734
+ <td>
735
+ <pre class="lines">
736
+
737
+
738
+ 84
739
+ 85
740
+ 86
741
+ 87
742
+ 88
743
+ 89
744
+ 90</pre>
745
+ </td>
746
+ <td>
747
+ <pre class="code"><span class="info file"># File 'lib/rrtf/colour.rb', line 84</span>
748
+
749
+ <span class='kw'>def</span> <span class='id identifier rubyid_to_decimal'>to_decimal</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>
750
+ <span class='kw'>if</span> <span class='id identifier rubyid_options'>options</span><span class='lbracket'>[</span><span class='tstring'><span class='tstring_beg'>&quot;</span><span class='tstring_content'>reverse_bytes</span><span class='tstring_end'>&quot;</span></span><span class='rbracket'>]</span>
751
+ <span class='lparen'>(</span><span class='ivar'>@blue</span> <span class='op'>*</span> <span class='int'>65536</span><span class='rparen'>)</span> <span class='op'>+</span> <span class='lparen'>(</span><span class='ivar'>@green</span> <span class='op'>*</span> <span class='int'>256</span><span class='rparen'>)</span> <span class='op'>+</span> <span class='ivar'>@red</span>
752
+ <span class='kw'>else</span>
753
+ <span class='lparen'>(</span><span class='ivar'>@red</span> <span class='op'>*</span> <span class='int'>65536</span><span class='rparen'>)</span> <span class='op'>+</span> <span class='lparen'>(</span><span class='ivar'>@green</span> <span class='op'>*</span> <span class='int'>256</span><span class='rparen'>)</span> <span class='op'>+</span> <span class='ivar'>@blue</span>
754
+ <span class='kw'>end</span> <span class='comment'># if
755
+ </span><span class='kw'>end</span></pre>
756
+ </td>
757
+ </tr>
758
+ </table>
699
759
  </div>
700
760
 
701
761
  <div class="method_details ">
@@ -803,7 +863,7 @@ to zero.</p>
803
863
  </div>
804
864
 
805
865
  <div id="footer">
806
- Generated on Mon Jul 24 15:49:01 2017 by
866
+ Generated on Mon Jul 31 21:48:58 2017 by
807
867
  <a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
808
868
  0.9.9 (ruby-2.3.3).
809
869
  </div>
@@ -362,13 +362,13 @@ class.</p>
362
362
  <pre class="lines">
363
363
 
364
364
 
365
- 95
366
- 96
367
- 97
368
- 98</pre>
365
+ 103
366
+ 104
367
+ 105
368
+ 106</pre>
369
369
  </td>
370
370
  <td>
371
- <pre class="code"><span class="info file"># File 'lib/rrtf/colour.rb', line 95</span>
371
+ <pre class="code"><span class="info file"># File 'lib/rrtf/colour.rb', line 103</span>
372
372
 
373
373
  <span class='kw'>def</span> <span class='id identifier rubyid_initialize'>initialize</span><span class='lparen'>(</span><span class='op'>*</span><span class='id identifier rubyid_colours'>colours</span><span class='rparen'>)</span>
374
374
  <span class='ivar'>@colours</span> <span class='op'>=</span> <span class='lbracket'>[</span><span class='rbracket'>]</span>
@@ -420,12 +420,12 @@ this method. An invalid index will return a nil value.</p>
420
420
  <pre class="lines">
421
421
 
422
422
 
423
- 133
424
- 134
425
- 135</pre>
423
+ 141
424
+ 142
425
+ 143</pre>
426
426
  </td>
427
427
  <td>
428
- <pre class="code"><span class="info file"># File 'lib/rrtf/colour.rb', line 133</span>
428
+ <pre class="code"><span class="info file"># File 'lib/rrtf/colour.rb', line 141</span>
429
429
 
430
430
  <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>
431
431
  <span class='ivar'>@colours</span><span class='lbracket'>[</span><span class='id identifier rubyid_index'>index</span><span class='rbracket'>]</span>
@@ -473,15 +473,15 @@ does nothing.</p>
473
473
  <pre class="lines">
474
474
 
475
475
 
476
- 112
477
- 113
478
- 114
479
- 115
480
- 116
481
- 117</pre>
476
+ 120
477
+ 121
478
+ 122
479
+ 123
480
+ 124
481
+ 125</pre>
482
482
  </td>
483
483
  <td>
484
- <pre class="code"><span class="info file"># File 'lib/rrtf/colour.rb', line 112</span>
484
+ <pre class="code"><span class="info file"># File 'lib/rrtf/colour.rb', line 120</span>
485
485
 
486
486
  <span class='kw'>def</span> <span class='id identifier rubyid_add'>add</span><span class='lparen'>(</span><span class='id identifier rubyid_colour'>colour</span><span class='rparen'>)</span>
487
487
  <span class='kw'>if</span> <span class='id identifier rubyid_colour'>colour</span><span class='period'>.</span><span class='id identifier rubyid_instance_of?'>instance_of?</span><span class='lparen'>(</span><span class='const'><span class='object_link'><a href="Colour.html" title="RRTF::Colour (class)">Colour</a></span></span><span class='rparen'>)</span>
@@ -521,14 +521,14 @@ iteration does not include the implicit default colour entry.</p>
521
521
  <pre class="lines">
522
522
 
523
523
 
524
- 121
525
- 122
526
- 123
527
- 124
528
- 125</pre>
524
+ 129
525
+ 130
526
+ 131
527
+ 132
528
+ 133</pre>
529
529
  </td>
530
530
  <td>
531
- <pre class="code"><span class="info file"># File 'lib/rrtf/colour.rb', line 121</span>
531
+ <pre class="code"><span class="info file"># File 'lib/rrtf/colour.rb', line 129</span>
532
532
 
533
533
  <span class='kw'>def</span> <span class='id identifier rubyid_each'>each</span>
534
534
  <span class='kw'>if</span> <span class='id identifier rubyid_block_given?'>block_given?</span>
@@ -575,13 +575,13 @@ of entry to account for the implicit default colour entry.</p>
575
575
  <pre class="lines">
576
576
 
577
577
 
578
- 144
579
- 145
580
- 146
581
- 147</pre>
578
+ 152
579
+ 153
580
+ 154
581
+ 155</pre>
582
582
  </td>
583
583
  <td>
584
- <pre class="code"><span class="info file"># File 'lib/rrtf/colour.rb', line 144</span>
584
+ <pre class="code"><span class="info file"># File 'lib/rrtf/colour.rb', line 152</span>
585
585
 
586
586
  <span class='kw'>def</span> <span class='id identifier rubyid_index'>index</span><span class='lparen'>(</span><span class='id identifier rubyid_colour'>colour</span><span class='rparen'>)</span>
587
587
  <span class='id identifier rubyid_index'>index</span> <span class='op'>=</span> <span class='ivar'>@colours</span><span class='period'>.</span><span class='id identifier rubyid_index'>index</span><span class='lparen'>(</span><span class='id identifier rubyid_colour'>colour</span><span class='rparen'>)</span>
@@ -618,12 +618,12 @@ of entry to account for the implicit default colour entry.</p>
618
618
  <pre class="lines">
619
619
 
620
620
 
621
- 102
622
- 103
623
- 104</pre>
621
+ 110
622
+ 111
623
+ 112</pre>
624
624
  </td>
625
625
  <td>
626
- <pre class="code"><span class="info file"># File 'lib/rrtf/colour.rb', line 102</span>
626
+ <pre class="code"><span class="info file"># File 'lib/rrtf/colour.rb', line 110</span>
627
627
 
628
628
  <span class='kw'>def</span> <span class='id identifier rubyid_size'>size</span>
629
629
  <span class='ivar'>@colours</span><span class='period'>.</span><span class='id identifier rubyid_size'>size</span>
@@ -666,19 +666,19 @@ Defaults to zero.</p>
666
666
  <pre class="lines">
667
667
 
668
668
 
669
- 169
670
- 170
671
- 171
672
- 172
673
- 173
674
- 174
675
- 175
676
- 176
677
669
  177
678
- 178</pre>
670
+ 178
671
+ 179
672
+ 180
673
+ 181
674
+ 182
675
+ 183
676
+ 184
677
+ 185
678
+ 186</pre>
679
679
  </td>
680
680
  <td>
681
- <pre class="code"><span class="info file"># File 'lib/rrtf/colour.rb', line 169</span>
681
+ <pre class="code"><span class="info file"># File 'lib/rrtf/colour.rb', line 177</span>
682
682
 
683
683
  <span class='kw'>def</span> <span class='id identifier rubyid_to_rtf'>to_rtf</span><span class='lparen'>(</span><span class='id identifier rubyid_indent'>indent</span><span class='op'>=</span><span class='int'>0</span><span class='rparen'>)</span>
684
684
  <span class='id identifier rubyid_prefix'>prefix</span> <span class='op'>=</span> <span class='id identifier rubyid_indent'>indent</span> <span class='op'>&gt;</span> <span class='int'>0</span> <span class='op'>?</span> <span class='tstring'><span class='tstring_beg'>&#39;</span><span class='tstring_content'> </span><span class='tstring_end'>&#39;</span></span> <span class='op'>*</span> <span class='id identifier rubyid_indent'>indent</span> <span class='op'>:</span> <span class='tstring'><span class='tstring_beg'>&#39;</span><span class='tstring_end'>&#39;</span></span>
@@ -728,18 +728,18 @@ Defaults to zero.</p>
728
728
  <pre class="lines">
729
729
 
730
730
 
731
- 154
732
- 155
733
- 156
734
- 157
735
- 158
736
- 159
737
- 160
738
- 161
739
- 162</pre>
731
+ 162
732
+ 163
733
+ 164
734
+ 165
735
+ 166
736
+ 167
737
+ 168
738
+ 169
739
+ 170</pre>
740
740
  </td>
741
741
  <td>
742
- <pre class="code"><span class="info file"># File 'lib/rrtf/colour.rb', line 154</span>
742
+ <pre class="code"><span class="info file"># File 'lib/rrtf/colour.rb', line 162</span>
743
743
 
744
744
  <span class='kw'>def</span> <span class='id identifier rubyid_to_s'>to_s</span><span class='lparen'>(</span><span class='id identifier rubyid_indent'>indent</span><span class='op'>=</span><span class='int'>0</span><span class='rparen'>)</span>
745
745
  <span class='id identifier rubyid_prefix'>prefix</span> <span class='op'>=</span> <span class='id identifier rubyid_indent'>indent</span> <span class='op'>&gt;</span> <span class='int'>0</span> <span class='op'>?</span> <span class='tstring'><span class='tstring_beg'>&#39;</span><span class='tstring_content'> </span><span class='tstring_end'>&#39;</span></span> <span class='op'>*</span> <span class='id identifier rubyid_indent'>indent</span> <span class='op'>:</span> <span class='tstring'><span class='tstring_beg'>&#39;</span><span class='tstring_end'>&#39;</span></span>
@@ -760,7 +760,7 @@ Defaults to zero.</p>
760
760
  </div>
761
761
 
762
762
  <div id="footer">
763
- Generated on Mon Jul 24 15:49:01 2017 by
763
+ Generated on Mon Jul 31 21:48:58 2017 by
764
764
  <a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
765
765
  0.9.9 (ruby-2.3.3).
766
766
  </div>