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.
- checksums.yaml +4 -4
- data/.byebug_history +6 -3
- data/CHANGELOG.md +24 -0
- data/README.md +194 -84
- data/documentation/RRTF.html +5 -5
- data/documentation/RRTF/AnonymousStyle.html +792 -0
- data/documentation/RRTF/BorderFormatting.html +821 -0
- data/documentation/RRTF/BorderStyle.html +493 -0
- data/documentation/RRTF/CharacterFormatting.html +293 -162
- data/documentation/RRTF/CharacterStyle.html +53 -109
- data/documentation/RRTF/Colour.html +61 -1
- data/documentation/RRTF/ColourTable.html +52 -52
- data/documentation/RRTF/CommandNode.html +367 -971
- data/documentation/RRTF/ContainerNode.html +44 -44
- data/documentation/RRTF/Converters.html +1 -1
- data/documentation/RRTF/Converters/HTML.html +1 -1
- data/documentation/RRTF/Converters/HTML/Helpers.html +1 -1
- data/documentation/RRTF/Converters/HTML/Node.html +1 -1
- data/documentation/RRTF/Converters/HTML/NodeSet.html +1 -1
- data/documentation/RRTF/Document.html +267 -255
- data/documentation/RRTF/DocumentFormatting.html +833 -0
- data/documentation/RRTF/DocumentProperties.html +444 -0
- data/documentation/RRTF/Font.html +1 -1
- data/documentation/RRTF/FontTable.html +1 -1
- data/documentation/RRTF/FooterNode.html +16 -16
- data/documentation/RRTF/GeometryNode.html +774 -0
- data/documentation/RRTF/GeometryProperties.html +1014 -0
- data/documentation/RRTF/HeaderNode.html +16 -16
- data/documentation/RRTF/ImageNode.html +705 -492
- data/documentation/RRTF/Information.html +1 -1
- data/documentation/RRTF/LinkNode.html +10 -10
- data/documentation/RRTF/ListLevel.html +1 -1
- data/documentation/RRTF/ListLevelNode.html +37 -37
- data/documentation/RRTF/ListMarker.html +1 -1
- data/documentation/RRTF/ListNode.html +19 -19
- data/documentation/RRTF/ListTable.html +1 -1
- data/documentation/RRTF/ListTemplate.html +1 -1
- data/documentation/RRTF/ListTextNode.html +14 -14
- data/documentation/RRTF/Node.html +26 -26
- data/documentation/RRTF/Page.html +129 -0
- data/documentation/RRTF/Page/Margin.html +1158 -0
- data/documentation/RRTF/Page/Size.html +946 -0
- data/documentation/RRTF/PageFormatting.html +954 -0
- data/documentation/RRTF/ParagraphFormatting.html +338 -56
- data/documentation/RRTF/ParagraphNode.html +10 -10
- data/documentation/RRTF/ParagraphStyle.html +72 -111
- data/documentation/RRTF/PositionFormatting.html +780 -0
- data/documentation/RRTF/PositionStyle.html +424 -0
- data/documentation/RRTF/Properties.html +243 -0
- data/documentation/RRTF/RTFError.html +21 -10
- data/documentation/RRTF/ShadingFormatting.html +712 -0
- data/documentation/RRTF/ShadingStyle.html +424 -0
- data/documentation/RRTF/Style.html +284 -697
- data/documentation/RRTF/Stylesheet.html +36 -3
- data/documentation/RRTF/TableCellNode.html +131 -131
- data/documentation/RRTF/TableNode.html +82 -82
- data/documentation/RRTF/TableRowNode.html +53 -53
- data/documentation/RRTF/TextNode.html +46 -46
- data/documentation/RRTF/Utilities.html +837 -17
- data/documentation/_index.html +139 -6
- data/documentation/class_list.html +1 -1
- data/documentation/file.README.html +218 -87
- data/documentation/index.html +218 -87
- data/documentation/method_list.html +631 -391
- data/documentation/top-level-namespace.html +1 -1
- data/examples/01.rtf +947 -20
- data/examples/01_everything.rb +176 -0
- data/examples/02.rtf +13 -0
- data/examples/02_basic_paragraph.rb +10 -0
- data/examples/03.rtf +20 -0
- data/examples/03_paragraph_inline_style.rb +14 -0
- data/examples/04.rtf +21 -0
- data/examples/04_paragraph_with_character_style.rb +18 -0
- data/examples/05.rtf +21 -0
- data/examples/05_hyperlinks.rb +21 -0
- data/examples/06.rtf +21 -0
- data/examples/06_basic_list.rb +21 -0
- data/examples/07.rtf +28 -0
- data/examples/07_nested_list.rb +27 -0
- data/examples/08.rtf +807 -0
- data/examples/08_images.rb +17 -0
- data/examples/09.rtf +84 -0
- data/examples/09_shapes.rb +56 -0
- data/examples/10.rtf +34 -0
- data/examples/10_stylesheet.rb +18 -0
- data/examples/resources/images/redshirt.png +0 -0
- data/examples/resources/images/redshirts.jpg +0 -0
- data/examples/resources/json/redshirt_styles.json +72 -8
- data/examples/~$01.rtf +0 -0
- data/lib/rrtf.rb +4 -16
- data/lib/rrtf/colour.rb +8 -0
- data/lib/rrtf/formatting.rb +988 -0
- data/lib/rrtf/node.rb +17 -1851
- data/lib/rrtf/node/command_node.rb +242 -0
- data/lib/rrtf/node/container_node.rb +75 -0
- data/lib/rrtf/node/document.rb +339 -0
- data/lib/rrtf/node/footer_node.rb +47 -0
- data/lib/rrtf/node/geometry_node.rb +65 -0
- data/lib/rrtf/node/header_node.rb +47 -0
- data/lib/rrtf/node/image_node.rb +175 -0
- data/lib/rrtf/node/link_node.rb +10 -0
- data/lib/rrtf/node/list_level_node.rb +44 -0
- data/lib/rrtf/node/list_node.rb +30 -0
- data/lib/rrtf/node/list_text_node.rb +22 -0
- data/lib/rrtf/node/node.rb +53 -0
- data/lib/rrtf/node/paragraph_node.rb +11 -0
- data/lib/rrtf/node/table_cell_node.rb +233 -0
- data/lib/rrtf/node/table_node.rb +136 -0
- data/lib/rrtf/node/table_row_node.rb +92 -0
- data/lib/rrtf/node/text_node.rb +76 -0
- data/lib/rrtf/page.rb +7 -0
- data/lib/rrtf/page/margin.rb +98 -0
- data/lib/rrtf/page/size.rb +98 -0
- data/lib/rrtf/properties.rb +3 -0
- data/lib/rrtf/properties/document_properties.rb +34 -0
- data/lib/rrtf/properties/geometry_properties.rb +380 -0
- data/lib/rrtf/properties/properties.rb +13 -0
- data/lib/rrtf/style.rb +4 -5
- data/lib/rrtf/style/anonymous_style.rb +73 -0
- data/lib/rrtf/style/border_style.rb +27 -0
- data/lib/rrtf/style/character_style.rb +1 -7
- data/lib/rrtf/style/paragraph_style.rb +0 -6
- data/lib/rrtf/style/position_style.rb +26 -0
- data/lib/rrtf/style/shading_style.rb +26 -0
- data/lib/rrtf/style/style.rb +60 -101
- data/lib/rrtf/utilities.rb +138 -0
- data/lib/rrtf/version.rb +1 -1
- data/rrtf.gemspec +1 -0
- metadata +85 -10
- data/examples/01_mac_libreoffice5_2_3_3.png +0 -0
- data/examples/01_mac_pages6_2.png +0 -0
- data/examples/01_mac_textedit1_12.png +0 -0
- data/examples/01_mac_word15_36.png +0 -0
- data/examples/01_styles_and_paragraphs.rb +0 -32
- data/lib/rrtf/paper.rb +0 -53
- data/lib/rrtf/style/document_style.rb +0 -116
- data/lib/rrtf/style/formatting.rb +0 -320
|
@@ -799,7 +799,7 @@ Defaults to zero.</p>
|
|
|
799
799
|
</div>
|
|
800
800
|
|
|
801
801
|
<div id="footer">
|
|
802
|
-
Generated on Mon Jul
|
|
802
|
+
Generated on Mon Jul 31 21:48:59 2017 by
|
|
803
803
|
<a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
|
|
804
804
|
0.9.9 (ruby-2.3.3).
|
|
805
805
|
</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/link_node.rb</dd>
|
|
104
104
|
</dl>
|
|
105
105
|
|
|
106
106
|
</div>
|
|
@@ -174,7 +174,7 @@
|
|
|
174
174
|
|
|
175
175
|
|
|
176
176
|
<h3 class="inherited">Methods inherited from <span class='object_link'><a href="CommandNode.html" title="RRTF::CommandNode (class)">CommandNode</a></span></h3>
|
|
177
|
-
<p class="inherited"><span class='object_link'><a href="CommandNode.html#<<-instance_method" title="RRTF::CommandNode#<< (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#
|
|
177
|
+
<p class="inherited"><span class='object_link'><a href="CommandNode.html#<<-instance_method" title="RRTF::CommandNode#<< (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>, <span class='object_link'><a href="CommandNode.html#to_rtf-instance_method" title="RRTF::CommandNode#to_rtf (method)">#to_rtf</a></span></p>
|
|
178
178
|
|
|
179
179
|
|
|
180
180
|
|
|
@@ -227,15 +227,15 @@
|
|
|
227
227
|
<pre class="lines">
|
|
228
228
|
|
|
229
229
|
|
|
230
|
-
|
|
231
|
-
|
|
232
|
-
|
|
233
|
-
|
|
234
|
-
|
|
235
|
-
|
|
230
|
+
3
|
|
231
|
+
4
|
|
232
|
+
5
|
|
233
|
+
6
|
|
234
|
+
7
|
|
235
|
+
8</pre>
|
|
236
236
|
</td>
|
|
237
237
|
<td>
|
|
238
|
-
<pre class="code"><span class="info file"># File 'lib/rrtf/node.rb', line
|
|
238
|
+
<pre class="code"><span class="info file"># File 'lib/rrtf/node/link_node.rb', line 3</span>
|
|
239
239
|
|
|
240
240
|
<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='comma'>,</span> <span class='id identifier rubyid_url'>url</span><span class='rparen'>)</span>
|
|
241
241
|
<span class='id identifier rubyid_prefix'>prefix</span> <span class='op'>=</span> <span class='tstring'><span class='tstring_beg'>"</span><span class='tstring_content'>\\field{\\*\\fldinst HYPERLINK \"</span><span class='embexpr_beg'>#{</span><span class='id identifier rubyid_url'>url</span><span class='embexpr_end'>}</span><span class='tstring_content'>\"}{\\fldrslt </span><span class='tstring_end'>"</span></span>
|
|
@@ -254,7 +254,7 @@
|
|
|
254
254
|
</div>
|
|
255
255
|
|
|
256
256
|
<div id="footer">
|
|
257
|
-
Generated on Mon Jul
|
|
257
|
+
Generated on Mon Jul 31 21:48:59 2017 by
|
|
258
258
|
<a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
|
|
259
259
|
0.9.9 (ruby-2.3.3).
|
|
260
260
|
</div>
|
|
@@ -789,7 +789,7 @@
|
|
|
789
789
|
</div>
|
|
790
790
|
|
|
791
791
|
<div id="footer">
|
|
792
|
-
Generated on Mon Jul
|
|
792
|
+
Generated on Mon Jul 31 21:48:58 2017 by
|
|
793
793
|
<a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
|
|
794
794
|
0.9.9 (ruby-2.3.3).
|
|
795
795
|
</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/list_level_node.rb</dd>
|
|
104
104
|
</dl>
|
|
105
105
|
|
|
106
106
|
</div>
|
|
@@ -297,7 +297,7 @@ provides the <code>item</code> method to add a new list item, the
|
|
|
297
297
|
|
|
298
298
|
|
|
299
299
|
<h3 class="inherited">Methods inherited from <span class='object_link'><a href="CommandNode.html" title="RRTF::CommandNode (class)">CommandNode</a></span></h3>
|
|
300
|
-
<p class="inherited"><span class='object_link'><a href="CommandNode.html#<<-instance_method" title="RRTF::CommandNode#<< (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#
|
|
300
|
+
<p class="inherited"><span class='object_link'><a href="CommandNode.html#<<-instance_method" title="RRTF::CommandNode#<< (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#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>, <span class='object_link'><a href="CommandNode.html#to_rtf-instance_method" title="RRTF::CommandNode#to_rtf (method)">#to_rtf</a></span></p>
|
|
301
301
|
|
|
302
302
|
|
|
303
303
|
|
|
@@ -350,22 +350,22 @@ provides the <code>item</code> method to add a new list item, the
|
|
|
350
350
|
<pre class="lines">
|
|
351
351
|
|
|
352
352
|
|
|
353
|
-
|
|
354
|
-
|
|
355
|
-
|
|
356
|
-
|
|
357
|
-
|
|
358
|
-
|
|
359
|
-
|
|
360
|
-
|
|
361
|
-
|
|
362
|
-
|
|
363
|
-
|
|
364
|
-
|
|
365
|
-
|
|
353
|
+
8
|
|
354
|
+
9
|
|
355
|
+
10
|
|
356
|
+
11
|
|
357
|
+
12
|
|
358
|
+
13
|
|
359
|
+
14
|
|
360
|
+
15
|
|
361
|
+
16
|
|
362
|
+
17
|
|
363
|
+
18
|
|
364
|
+
19
|
|
365
|
+
20</pre>
|
|
366
366
|
</td>
|
|
367
367
|
<td>
|
|
368
|
-
<pre class="code"><span class="info file"># File 'lib/rrtf/node.rb', line
|
|
368
|
+
<pre class="code"><span class="info file"># File 'lib/rrtf/node/list_level_node.rb', line 8</span>
|
|
369
369
|
|
|
370
370
|
<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='comma'>,</span> <span class='id identifier rubyid_template'>template</span><span class='comma'>,</span> <span class='id identifier rubyid_kind'>kind</span><span class='comma'>,</span> <span class='id identifier rubyid_level'>level</span><span class='op'>=</span><span class='int'>1</span><span class='rparen'>)</span>
|
|
371
371
|
<span class='ivar'>@template</span> <span class='op'>=</span> <span class='id identifier rubyid_template'>template</span>
|
|
@@ -418,12 +418,12 @@ provides the <code>item</code> method to add a new list item, the
|
|
|
418
418
|
<pre class="lines">
|
|
419
419
|
|
|
420
420
|
|
|
421
|
-
|
|
422
|
-
|
|
423
|
-
|
|
421
|
+
23
|
|
422
|
+
24
|
|
423
|
+
25</pre>
|
|
424
424
|
</td>
|
|
425
425
|
<td>
|
|
426
|
-
<pre class="code"><span class="info file"># File 'lib/rrtf/node.rb', line
|
|
426
|
+
<pre class="code"><span class="info file"># File 'lib/rrtf/node/list_level_node.rb', line 23</span>
|
|
427
427
|
|
|
428
428
|
<span class='kw'>def</span> <span class='id identifier rubyid_kind'>kind</span>
|
|
429
429
|
<span class='ivar'>@kind</span>
|
|
@@ -479,14 +479,14 @@ provides the <code>item</code> method to add a new list item, the
|
|
|
479
479
|
<pre class="lines">
|
|
480
480
|
|
|
481
481
|
|
|
482
|
-
|
|
483
|
-
|
|
484
|
-
|
|
485
|
-
|
|
486
|
-
|
|
482
|
+
31
|
|
483
|
+
32
|
|
484
|
+
33
|
|
485
|
+
34
|
|
486
|
+
35</pre>
|
|
487
487
|
</td>
|
|
488
488
|
<td>
|
|
489
|
-
<pre class="code"><span class="info file"># File 'lib/rrtf/node.rb', line
|
|
489
|
+
<pre class="code"><span class="info file"># File 'lib/rrtf/node/list_level_node.rb', line 31</span>
|
|
490
490
|
|
|
491
491
|
<span class='kw'>def</span> <span class='id identifier rubyid_item'>item</span>
|
|
492
492
|
<span class='id identifier rubyid_node'>node</span> <span class='op'>=</span> <span class='const'><span class='object_link'><a href="ListTextNode.html" title="RRTF::ListTextNode (class)">ListTextNode</a></span></span><span class='period'>.</span><span class='id identifier rubyid_new'><span class='object_link'><a href="ListTextNode.html#initialize-instance_method" title="RRTF::ListTextNode#initialize (method)">new</a></span></span><span class='lparen'>(</span><span class='kw'>self</span><span class='comma'>,</span> <span class='ivar'>@level</span><span class='rparen'>)</span>
|
|
@@ -524,12 +524,12 @@ provides the <code>item</code> method to add a new list item, the
|
|
|
524
524
|
<pre class="lines">
|
|
525
525
|
|
|
526
526
|
|
|
527
|
-
|
|
528
|
-
|
|
529
|
-
|
|
527
|
+
26
|
|
528
|
+
27
|
|
529
|
+
28</pre>
|
|
530
530
|
</td>
|
|
531
531
|
<td>
|
|
532
|
-
<pre class="code"><span class="info file"># File 'lib/rrtf/node.rb', line
|
|
532
|
+
<pre class="code"><span class="info file"># File 'lib/rrtf/node/list_level_node.rb', line 26</span>
|
|
533
533
|
|
|
534
534
|
<span class='kw'>def</span> <span class='id identifier rubyid_level'>level</span>
|
|
535
535
|
<span class='ivar'>@level</span><span class='period'>.</span><span class='id identifier rubyid_level'>level</span>
|
|
@@ -578,14 +578,14 @@ provides the <code>item</code> method to add a new list item, the
|
|
|
578
578
|
<pre class="lines">
|
|
579
579
|
|
|
580
580
|
|
|
581
|
-
|
|
582
|
-
|
|
583
|
-
|
|
584
|
-
|
|
585
|
-
|
|
581
|
+
38
|
|
582
|
+
39
|
|
583
|
+
40
|
|
584
|
+
41
|
|
585
|
+
42</pre>
|
|
586
586
|
</td>
|
|
587
587
|
<td>
|
|
588
|
-
<pre class="code"><span class="info file"># File 'lib/rrtf/node.rb', line
|
|
588
|
+
<pre class="code"><span class="info file"># File 'lib/rrtf/node/list_level_node.rb', line 38</span>
|
|
589
589
|
|
|
590
590
|
<span class='kw'>def</span> <span class='id identifier rubyid_list'>list</span><span class='lparen'>(</span><span class='id identifier rubyid_kind'>kind</span><span class='op'>=</span><span class='ivar'>@kind</span><span class='rparen'>)</span>
|
|
591
591
|
<span class='id identifier rubyid_node'>node</span> <span class='op'>=</span> <span class='const'><span class='object_link'><a href="" title="RRTF::ListLevelNode (class)">ListLevelNode</a></span></span><span class='period'>.</span><span class='id identifier rubyid_new'><span class='object_link'><a href="#initialize-instance_method" title="RRTF::ListLevelNode#initialize (method)">new</a></span></span><span class='lparen'>(</span><span class='kw'>self</span><span class='comma'>,</span> <span class='ivar'>@template</span><span class='comma'>,</span> <span class='id identifier rubyid_kind'>kind</span><span class='comma'>,</span> <span class='ivar'>@level</span><span class='period'>.</span><span class='id identifier rubyid_level'>level</span><span class='op'>+</span><span class='int'>1</span><span class='rparen'>)</span>
|
|
@@ -602,7 +602,7 @@ provides the <code>item</code> method to add a new list item, the
|
|
|
602
602
|
</div>
|
|
603
603
|
|
|
604
604
|
<div id="footer">
|
|
605
|
-
Generated on Mon Jul
|
|
605
|
+
Generated on Mon Jul 31 21:49:01 2017 by
|
|
606
606
|
<a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
|
|
607
607
|
0.9.9 (ruby-2.3.3).
|
|
608
608
|
</div>
|
|
@@ -585,7 +585,7 @@
|
|
|
585
585
|
</div>
|
|
586
586
|
|
|
587
587
|
<div id="footer">
|
|
588
|
-
Generated on Mon Jul
|
|
588
|
+
Generated on Mon Jul 31 21:48:58 2017 by
|
|
589
589
|
<a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
|
|
590
590
|
0.9.9 (ruby-2.3.3).
|
|
591
591
|
</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/list_node.rb</dd>
|
|
104
104
|
</dl>
|
|
105
105
|
|
|
106
106
|
</div>
|
|
@@ -214,7 +214,7 @@ stores it in the document tree.</p>
|
|
|
214
214
|
|
|
215
215
|
|
|
216
216
|
<h3 class="inherited">Methods inherited from <span class='object_link'><a href="CommandNode.html" title="RRTF::CommandNode (class)">CommandNode</a></span></h3>
|
|
217
|
-
<p class="inherited"><span class='object_link'><a href="CommandNode.html#<<-instance_method" title="RRTF::CommandNode#<< (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#
|
|
217
|
+
<p class="inherited"><span class='object_link'><a href="CommandNode.html#<<-instance_method" title="RRTF::CommandNode#<< (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#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>, <span class='object_link'><a href="CommandNode.html#to_rtf-instance_method" title="RRTF::CommandNode#to_rtf (method)">#to_rtf</a></span></p>
|
|
218
218
|
|
|
219
219
|
|
|
220
220
|
|
|
@@ -267,20 +267,20 @@ stores it in the document tree.</p>
|
|
|
267
267
|
<pre class="lines">
|
|
268
268
|
|
|
269
269
|
|
|
270
|
-
|
|
271
|
-
|
|
272
|
-
|
|
273
|
-
|
|
274
|
-
|
|
275
|
-
|
|
276
|
-
|
|
277
|
-
|
|
278
|
-
|
|
279
|
-
|
|
280
|
-
|
|
270
|
+
9
|
|
271
|
+
10
|
|
272
|
+
11
|
|
273
|
+
12
|
|
274
|
+
13
|
|
275
|
+
14
|
|
276
|
+
15
|
|
277
|
+
16
|
|
278
|
+
17
|
|
279
|
+
18
|
|
280
|
+
19</pre>
|
|
281
281
|
</td>
|
|
282
282
|
<td>
|
|
283
|
-
<pre class="code"><span class="info file"># File 'lib/rrtf/node.rb', line
|
|
283
|
+
<pre class="code"><span class="info file"># File 'lib/rrtf/node/list_node.rb', line 9</span>
|
|
284
284
|
|
|
285
285
|
<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>
|
|
286
286
|
<span class='id identifier rubyid_prefix'>prefix</span> <span class='op'>=</span> <span class='tstring'><span class='tstring_beg'>"</span><span class='tstring_content'>\\</span><span class='tstring_end'>"</span></span>
|
|
@@ -338,12 +338,12 @@ stores it in the document tree.</p>
|
|
|
338
338
|
<pre class="lines">
|
|
339
339
|
|
|
340
340
|
|
|
341
|
-
|
|
342
|
-
|
|
343
|
-
|
|
341
|
+
26
|
|
342
|
+
27
|
|
343
|
+
28</pre>
|
|
344
344
|
</td>
|
|
345
345
|
<td>
|
|
346
|
-
<pre class="code"><span class="info file"># File 'lib/rrtf/node.rb', line
|
|
346
|
+
<pre class="code"><span class="info file"># File 'lib/rrtf/node/list_node.rb', line 26</span>
|
|
347
347
|
|
|
348
348
|
<span class='kw'>def</span> <span class='id identifier rubyid_list'>list</span><span class='lparen'>(</span><span class='id identifier rubyid_kind'>kind</span><span class='rparen'>)</span>
|
|
349
349
|
<span class='kw'>self</span><span class='period'>.</span><span class='id identifier rubyid_store'>store</span> <span class='const'><span class='object_link'><a href="ListLevelNode.html" title="RRTF::ListLevelNode (class)">ListLevelNode</a></span></span><span class='period'>.</span><span class='id identifier rubyid_new'><span class='object_link'><a href="ListLevelNode.html#initialize-instance_method" title="RRTF::ListLevelNode#initialize (method)">new</a></span></span><span class='lparen'>(</span><span class='kw'>self</span><span class='comma'>,</span> <span class='ivar'>@template</span><span class='comma'>,</span> <span class='id identifier rubyid_kind'>kind</span><span class='rparen'>)</span>
|
|
@@ -358,7 +358,7 @@ stores it in the document tree.</p>
|
|
|
358
358
|
</div>
|
|
359
359
|
|
|
360
360
|
<div id="footer">
|
|
361
|
-
Generated on Mon Jul
|
|
361
|
+
Generated on Mon Jul 31 21:48:59 2017 by
|
|
362
362
|
<a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
|
|
363
363
|
0.9.9 (ruby-2.3.3).
|
|
364
364
|
</div>
|
|
@@ -333,7 +333,7 @@
|
|
|
333
333
|
</div>
|
|
334
334
|
|
|
335
335
|
<div id="footer">
|
|
336
|
-
Generated on Mon Jul
|
|
336
|
+
Generated on Mon Jul 31 21:48:58 2017 by
|
|
337
337
|
<a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
|
|
338
338
|
0.9.9 (ruby-2.3.3).
|
|
339
339
|
</div>
|
|
@@ -423,7 +423,7 @@
|
|
|
423
423
|
</div>
|
|
424
424
|
|
|
425
425
|
<div id="footer">
|
|
426
|
-
Generated on Mon Jul
|
|
426
|
+
Generated on Mon Jul 31 21:48:58 2017 by
|
|
427
427
|
<a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
|
|
428
428
|
0.9.9 (ruby-2.3.3).
|
|
429
429
|
</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/list_text_node.rb</dd>
|
|
104
104
|
</dl>
|
|
105
105
|
|
|
106
106
|
</div>
|
|
@@ -187,7 +187,7 @@ this behaviour may change.</p>
|
|
|
187
187
|
|
|
188
188
|
|
|
189
189
|
<h3 class="inherited">Methods inherited from <span class='object_link'><a href="CommandNode.html" title="RRTF::CommandNode (class)">CommandNode</a></span></h3>
|
|
190
|
-
<p class="inherited"><span class='object_link'><a href="CommandNode.html#<<-instance_method" title="RRTF::CommandNode#<< (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#
|
|
190
|
+
<p class="inherited"><span class='object_link'><a href="CommandNode.html#<<-instance_method" title="RRTF::CommandNode#<< (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>, <span class='object_link'><a href="CommandNode.html#to_rtf-instance_method" title="RRTF::CommandNode#to_rtf (method)">#to_rtf</a></span></p>
|
|
191
191
|
|
|
192
192
|
|
|
193
193
|
|
|
@@ -240,19 +240,19 @@ this behaviour may change.</p>
|
|
|
240
240
|
<pre class="lines">
|
|
241
241
|
|
|
242
242
|
|
|
243
|
-
|
|
244
|
-
|
|
245
|
-
|
|
246
|
-
|
|
247
|
-
|
|
248
|
-
|
|
249
|
-
|
|
250
|
-
|
|
251
|
-
|
|
252
|
-
|
|
243
|
+
6
|
|
244
|
+
7
|
|
245
|
+
8
|
|
246
|
+
9
|
|
247
|
+
10
|
|
248
|
+
11
|
|
249
|
+
12
|
|
250
|
+
13
|
|
251
|
+
14
|
|
252
|
+
15</pre>
|
|
253
253
|
</td>
|
|
254
254
|
<td>
|
|
255
|
-
<pre class="code"><span class="info file"># File 'lib/rrtf/node.rb', line
|
|
255
|
+
<pre class="code"><span class="info file"># File 'lib/rrtf/node/list_text_node.rb', line 6</span>
|
|
256
256
|
|
|
257
257
|
<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='comma'>,</span> <span class='id identifier rubyid_level'>level</span><span class='rparen'>)</span>
|
|
258
258
|
<span class='ivar'>@level</span> <span class='op'>=</span> <span class='id identifier rubyid_level'>level</span>
|
|
@@ -275,7 +275,7 @@ this behaviour may change.</p>
|
|
|
275
275
|
</div>
|
|
276
276
|
|
|
277
277
|
<div id="footer">
|
|
278
|
-
Generated on Mon Jul
|
|
278
|
+
Generated on Mon Jul 31 21:49:00 2017 by
|
|
279
279
|
<a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
|
|
280
280
|
0.9.9 (ruby-2.3.3).
|
|
281
281
|
</div>
|
|
@@ -94,7 +94,7 @@
|
|
|
94
94
|
|
|
95
95
|
<dl>
|
|
96
96
|
<dt>Defined in:</dt>
|
|
97
|
-
<dd>lib/rrtf/node.rb</dd>
|
|
97
|
+
<dd>lib/rrtf/node/node.rb</dd>
|
|
98
98
|
</dl>
|
|
99
99
|
|
|
100
100
|
</div>
|
|
@@ -326,12 +326,12 @@ base or root node.</p>
|
|
|
326
326
|
<pre class="lines">
|
|
327
327
|
|
|
328
328
|
|
|
329
|
-
|
|
330
|
-
|
|
331
|
-
|
|
329
|
+
13
|
|
330
|
+
14
|
|
331
|
+
15</pre>
|
|
332
332
|
</td>
|
|
333
333
|
<td>
|
|
334
|
-
<pre class="code"><span class="info file"># File 'lib/rrtf/node.rb', line
|
|
334
|
+
<pre class="code"><span class="info file"># File 'lib/rrtf/node/node.rb', line 13</span>
|
|
335
335
|
|
|
336
336
|
<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>
|
|
337
337
|
<span class='ivar'>@parent</span> <span class='op'>=</span> <span class='id identifier rubyid_parent'>parent</span>
|
|
@@ -374,12 +374,12 @@ base or root node.</p>
|
|
|
374
374
|
<pre class="lines">
|
|
375
375
|
|
|
376
376
|
|
|
377
|
-
|
|
378
|
-
|
|
379
|
-
|
|
377
|
+
6
|
|
378
|
+
7
|
|
379
|
+
8</pre>
|
|
380
380
|
</td>
|
|
381
381
|
<td>
|
|
382
|
-
<pre class="code"><span class="info file"># File 'lib/rrtf/node.rb', line
|
|
382
|
+
<pre class="code"><span class="info file"># File 'lib/rrtf/node/node.rb', line 6</span>
|
|
383
383
|
|
|
384
384
|
<span class='kw'>def</span> <span class='id identifier rubyid_parent'>parent</span>
|
|
385
385
|
<span class='ivar'>@parent</span>
|
|
@@ -437,12 +437,12 @@ otherwise.</p>
|
|
|
437
437
|
<pre class="lines">
|
|
438
438
|
|
|
439
439
|
|
|
440
|
-
|
|
441
|
-
|
|
442
|
-
|
|
440
|
+
42
|
|
441
|
+
43
|
|
442
|
+
44</pre>
|
|
443
443
|
</td>
|
|
444
444
|
<td>
|
|
445
|
-
<pre class="code"><span class="info file"># File 'lib/rrtf/node.rb', line
|
|
445
|
+
<pre class="code"><span class="info file"># File 'lib/rrtf/node/node.rb', line 42</span>
|
|
446
446
|
|
|
447
447
|
<span class='kw'>def</span> <span class='id identifier rubyid_is_root?'>is_root?</span>
|
|
448
448
|
<span class='ivar'>@parent</span><span class='period'>.</span><span class='id identifier rubyid_nil?'>nil?</span>
|
|
@@ -479,17 +479,17 @@ Node has no previous peer.</p>
|
|
|
479
479
|
<pre class="lines">
|
|
480
480
|
|
|
481
481
|
|
|
482
|
+
30
|
|
483
|
+
31
|
|
482
484
|
32
|
|
483
485
|
33
|
|
484
486
|
34
|
|
485
487
|
35
|
|
486
488
|
36
|
|
487
|
-
37
|
|
488
|
-
38
|
|
489
|
-
39</pre>
|
|
489
|
+
37</pre>
|
|
490
490
|
</td>
|
|
491
491
|
<td>
|
|
492
|
-
<pre class="code"><span class="info file"># File 'lib/rrtf/node.rb', line
|
|
492
|
+
<pre class="code"><span class="info file"># File 'lib/rrtf/node/node.rb', line 30</span>
|
|
493
493
|
|
|
494
494
|
<span class='kw'>def</span> <span class='id identifier rubyid_next_node'>next_node</span>
|
|
495
495
|
<span class='id identifier rubyid_peer'>peer</span> <span class='op'>=</span> <span class='kw'>nil</span>
|
|
@@ -531,17 +531,17 @@ the Node has no previous peer.</p>
|
|
|
531
531
|
<pre class="lines">
|
|
532
532
|
|
|
533
533
|
|
|
534
|
+
19
|
|
535
|
+
20
|
|
534
536
|
21
|
|
535
537
|
22
|
|
536
538
|
23
|
|
537
539
|
24
|
|
538
540
|
25
|
|
539
|
-
26
|
|
540
|
-
27
|
|
541
|
-
28</pre>
|
|
541
|
+
26</pre>
|
|
542
542
|
</td>
|
|
543
543
|
<td>
|
|
544
|
-
<pre class="code"><span class="info file"># File 'lib/rrtf/node.rb', line
|
|
544
|
+
<pre class="code"><span class="info file"># File 'lib/rrtf/node/node.rb', line 19</span>
|
|
545
545
|
|
|
546
546
|
<span class='kw'>def</span> <span class='id identifier rubyid_previous_node'>previous_node</span>
|
|
547
547
|
<span class='id identifier rubyid_peer'>peer</span> <span class='op'>=</span> <span class='kw'>nil</span>
|
|
@@ -582,14 +582,14 @@ the Node has no previous peer.</p>
|
|
|
582
582
|
<pre class="lines">
|
|
583
583
|
|
|
584
584
|
|
|
585
|
+
47
|
|
586
|
+
48
|
|
585
587
|
49
|
|
586
588
|
50
|
|
587
|
-
51
|
|
588
|
-
52
|
|
589
|
-
53</pre>
|
|
589
|
+
51</pre>
|
|
590
590
|
</td>
|
|
591
591
|
<td>
|
|
592
|
-
<pre class="code"><span class="info file"># File 'lib/rrtf/node.rb', line
|
|
592
|
+
<pre class="code"><span class="info file"># File 'lib/rrtf/node/node.rb', line 47</span>
|
|
593
593
|
|
|
594
594
|
<span class='kw'>def</span> <span class='id identifier rubyid_root'><span class='object_link'><a href="../top-level-namespace.html" title="Top Level Namespace (root)">root</a></span></span>
|
|
595
595
|
<span class='id identifier rubyid_node'>node</span> <span class='op'>=</span> <span class='kw'>self</span>
|
|
@@ -606,7 +606,7 @@ the Node has no previous peer.</p>
|
|
|
606
606
|
</div>
|
|
607
607
|
|
|
608
608
|
<div id="footer">
|
|
609
|
-
Generated on Mon Jul
|
|
609
|
+
Generated on Mon Jul 31 21:48:58 2017 by
|
|
610
610
|
<a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
|
|
611
611
|
0.9.9 (ruby-2.3.3).
|
|
612
612
|
</div>
|