rrtf 1.2.0 → 1.3.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +8 -0
- data/README.md +19 -0
- data/documentation/RRTF.html +5 -5
- data/documentation/RRTF/AnonymousStyle.html +2 -2
- data/documentation/RRTF/BorderFormatting.html +48 -48
- data/documentation/RRTF/BorderStyle.html +1 -1
- data/documentation/RRTF/CharacterFormatting.html +1 -1
- data/documentation/RRTF/CharacterStyle.html +1 -1
- data/documentation/RRTF/Colour.html +1 -1
- data/documentation/RRTF/ColourTable.html +1 -1
- data/documentation/RRTF/CommandNode.html +333 -93
- data/documentation/RRTF/ContainerNode.html +1 -1
- 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 +2 -2
- data/documentation/RRTF/DocumentFormatting.html +48 -48
- data/documentation/RRTF/DocumentProperties.html +8 -3
- data/documentation/RRTF/Font.html +1 -1
- data/documentation/RRTF/FontTable.html +1 -1
- data/documentation/RRTF/FooterNode.html +2 -2
- data/documentation/RRTF/GeometryNode.html +2 -2
- data/documentation/RRTF/GeometryProperties.html +9 -9
- data/documentation/RRTF/HeaderNode.html +2 -2
- data/documentation/RRTF/ImageNode.html +64 -61
- data/documentation/RRTF/Information.html +1 -1
- data/documentation/RRTF/LinkNode.html +2 -2
- data/documentation/RRTF/ListLevel.html +1 -1
- data/documentation/RRTF/ListLevelNode.html +2 -2
- data/documentation/RRTF/ListMarker.html +1 -1
- data/documentation/RRTF/ListNode.html +2 -2
- data/documentation/RRTF/ListTable.html +1 -1
- data/documentation/RRTF/ListTemplate.html +1 -1
- data/documentation/RRTF/ListTextNode.html +2 -2
- data/documentation/RRTF/Node.html +1 -1
- data/documentation/RRTF/Page.html +1 -1
- data/documentation/RRTF/Page/Margin.html +1 -1
- data/documentation/RRTF/Page/Size.html +1 -1
- data/documentation/RRTF/PageFormatting.html +184 -195
- data/documentation/RRTF/ParagraphFormatting.html +75 -48
- data/documentation/RRTF/ParagraphNode.html +2 -2
- data/documentation/RRTF/ParagraphStyle.html +1 -1
- data/documentation/RRTF/PositionFormatting.html +48 -48
- data/documentation/RRTF/PositionStyle.html +1 -1
- data/documentation/RRTF/Properties.html +1 -1
- data/documentation/RRTF/RTFError.html +1 -1
- data/documentation/RRTF/SectionFormatting.html +750 -0
- data/documentation/RRTF/SectionNode.html +383 -0
- data/documentation/RRTF/SectionStyle.html +830 -0
- data/documentation/RRTF/ShadingFormatting.html +48 -48
- data/documentation/RRTF/ShadingStyle.html +1 -1
- data/documentation/RRTF/Style.html +2 -2
- data/documentation/RRTF/Stylesheet.html +1 -1
- data/documentation/RRTF/TabStyle.html +698 -0
- data/documentation/RRTF/TableCellNode.html +2 -2
- data/documentation/RRTF/TableNode.html +1 -1
- data/documentation/RRTF/TableRowNode.html +1 -1
- data/documentation/RRTF/TextNode.html +1 -1
- data/documentation/RRTF/Utilities.html +1 -1
- data/documentation/_index.html +33 -5
- data/documentation/class_list.html +1 -1
- data/documentation/file.README.html +32 -1
- data/documentation/index.html +32 -1
- data/documentation/method_list.html +499 -355
- data/documentation/top-level-namespace.html +1 -1
- data/examples/11.rtf +9 -8
- data/examples/12.rtf +19 -0
- data/examples/12_tabs.rb +21 -0
- data/lib/rrtf/formatting.rb +27 -0
- data/lib/rrtf/node/command_node.rb +8 -0
- data/lib/rrtf/style.rb +1 -0
- data/lib/rrtf/style/tab_style.rb +55 -0
- data/lib/rrtf/version.rb +1 -1
- metadata +8 -1
@@ -799,7 +799,7 @@ Defaults to zero.</p>
|
|
799
799
|
</div>
|
800
800
|
|
801
801
|
<div id="footer">
|
802
|
-
Generated on
|
802
|
+
Generated on Wed Aug 2 23:05:16 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>
|
@@ -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#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>
|
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#column_break-instance_method" title="RRTF::CommandNode#column_break (method)">#column_break</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#section-instance_method" title="RRTF::CommandNode#section (method)">#section</a></span>, <span class='object_link'><a href="CommandNode.html#tab-instance_method" title="RRTF::CommandNode#tab (method)">#tab</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
|
|
@@ -254,7 +254,7 @@
|
|
254
254
|
</div>
|
255
255
|
|
256
256
|
<div id="footer">
|
257
|
-
Generated on
|
257
|
+
Generated on Wed Aug 2 23:05:17 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
|
792
|
+
Generated on Wed Aug 2 23:05:15 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>
|
@@ -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#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>
|
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#column_break-instance_method" title="RRTF::CommandNode#column_break (method)">#column_break</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#section-instance_method" title="RRTF::CommandNode#section (method)">#section</a></span>, <span class='object_link'><a href="CommandNode.html#tab-instance_method" title="RRTF::CommandNode#tab (method)">#tab</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
|
|
@@ -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
|
605
|
+
Generated on Wed Aug 2 23:05:18 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
|
588
|
+
Generated on Wed Aug 2 23:05:15 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>
|
@@ -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#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>
|
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#column_break-instance_method" title="RRTF::CommandNode#column_break (method)">#column_break</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#section-instance_method" title="RRTF::CommandNode#section (method)">#section</a></span>, <span class='object_link'><a href="CommandNode.html#tab-instance_method" title="RRTF::CommandNode#tab (method)">#tab</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
|
|
@@ -358,7 +358,7 @@ stores it in the document tree.</p>
|
|
358
358
|
</div>
|
359
359
|
|
360
360
|
<div id="footer">
|
361
|
-
Generated on
|
361
|
+
Generated on Wed Aug 2 23:05:17 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
|
336
|
+
Generated on Wed Aug 2 23:05:15 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
|
426
|
+
Generated on Wed Aug 2 23:05:15 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>
|
@@ -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#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>
|
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#column_break-instance_method" title="RRTF::CommandNode#column_break (method)">#column_break</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#section-instance_method" title="RRTF::CommandNode#section (method)">#section</a></span>, <span class='object_link'><a href="CommandNode.html#tab-instance_method" title="RRTF::CommandNode#tab (method)">#tab</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
|
|
@@ -275,7 +275,7 @@ this behaviour may change.</p>
|
|
275
275
|
</div>
|
276
276
|
|
277
277
|
<div id="footer">
|
278
|
-
Generated on
|
278
|
+
Generated on Wed Aug 2 23:05:18 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>
|
@@ -606,7 +606,7 @@ the Node has no previous peer.</p>
|
|
606
606
|
</div>
|
607
607
|
|
608
608
|
<div id="footer">
|
609
|
-
Generated on
|
609
|
+
Generated on Wed Aug 2 23:05:15 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>
|
@@ -119,7 +119,7 @@ document.</p>
|
|
119
119
|
</div>
|
120
120
|
|
121
121
|
<div id="footer">
|
122
|
-
Generated on
|
122
|
+
Generated on Wed Aug 2 23:05:14 2017 by
|
123
123
|
<a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
|
124
124
|
0.9.9 (ruby-2.3.3).
|
125
125
|
</div>
|
@@ -1148,7 +1148,7 @@ number may be suffixed by an optional unit (see <span class='object_link'><a hre
|
|
1148
1148
|
</div>
|
1149
1149
|
|
1150
1150
|
<div id="footer">
|
1151
|
-
Generated on
|
1151
|
+
Generated on Wed Aug 2 23:05:16 2017 by
|
1152
1152
|
<a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
|
1153
1153
|
0.9.9 (ruby-2.3.3).
|
1154
1154
|
</div>
|
@@ -936,7 +936,7 @@ width and height of the paper.</p>
|
|
936
936
|
</div>
|
937
937
|
|
938
938
|
<div id="footer">
|
939
|
-
Generated on
|
939
|
+
Generated on Wed Aug 2 23:05:15 2017 by
|
940
940
|
<a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
|
941
941
|
0.9.9 (ruby-2.3.3).
|
942
942
|
</div>
|
@@ -76,7 +76,7 @@
|
|
76
76
|
|
77
77
|
<dl>
|
78
78
|
<dt>Included in:</dt>
|
79
|
-
<dd><span class='object_link'><a href="DocumentProperties.html" title="RRTF::DocumentProperties (class)">DocumentProperties</a></span></dd>
|
79
|
+
<dd><span class='object_link'><a href="DocumentProperties.html" title="RRTF::DocumentProperties (class)">DocumentProperties</a></span>, <span class='object_link'><a href="SectionStyle.html" title="RRTF::SectionStyle (class)">SectionStyle</a></span></dd>
|
80
80
|
</dl>
|
81
81
|
|
82
82
|
|
@@ -193,45 +193,98 @@ user, and (3) how to convert the attribute to an RTF sequence.</p>
|
|
193
193
|
<span class='tstring'><span class='tstring_beg'>"</span><span class='tstring_content'>PORTRAIT</span><span class='tstring_end'>"</span></span> <span class='op'>=></span> <span class='symbol'>:portrait</span><span class='comma'>,</span>
|
194
194
|
<span class='tstring'><span class='tstring_beg'>"</span><span class='tstring_content'>LANDSCAPE</span><span class='tstring_end'>"</span></span> <span class='op'>=></span> <span class='symbol'>:landscape</span>
|
195
195
|
<span class='rbrace'>}</span><span class='comma'>,</span>
|
196
|
-
<span class='tstring'><span class='tstring_beg'>"</span><span class='tstring_content'>to_rtf</span><span class='tstring_end'>"</span></span> <span class='op'>=></span> <span class='id identifier rubyid_lambda'>lambda</span
|
196
|
+
<span class='tstring'><span class='tstring_beg'>"</span><span class='tstring_content'>to_rtf</span><span class='tstring_end'>"</span></span> <span class='op'>=></span> <span class='id identifier rubyid_lambda'>lambda</span> <span class='kw'>do</span> <span class='op'>|</span><span class='id identifier rubyid_value'>value</span><span class='comma'>,</span> <span class='id identifier rubyid_targ'>targ</span><span class='op'>|</span>
|
197
|
+
<span class='kw'>case</span> <span class='id identifier rubyid_targ'>targ</span>
|
198
|
+
<span class='kw'>when</span> <span class='symbol'>:document</span>
|
199
|
+
<span class='tstring'><span class='tstring_beg'>"</span><span class='tstring_content'>\\landscape</span><span class='tstring_end'>"</span></span> <span class='kw'>if</span> <span class='id identifier rubyid_value'>value</span> <span class='op'>==</span> <span class='symbol'>:landscape</span>
|
200
|
+
<span class='kw'>when</span> <span class='symbol'>:section</span>
|
201
|
+
<span class='tstring'><span class='tstring_beg'>"</span><span class='tstring_content'>\\lndscpsxn</span><span class='tstring_end'>"</span></span> <span class='kw'>if</span> <span class='id identifier rubyid_value'>value</span> <span class='op'>==</span> <span class='symbol'>:landscape</span>
|
202
|
+
<span class='kw'>end</span> <span class='comment'># case
|
203
|
+
</span> <span class='kw'>end</span>
|
197
204
|
<span class='rbrace'>}</span><span class='comma'>,</span>
|
198
205
|
<span class='tstring'><span class='tstring_beg'>"</span><span class='tstring_content'>size</span><span class='tstring_end'>"</span></span> <span class='op'>=></span> <span class='lbrace'>{</span>
|
199
206
|
<span class='tstring'><span class='tstring_beg'>"</span><span class='tstring_content'>default</span><span class='tstring_end'>"</span></span> <span class='op'>=></span> <span class='const'><span class='object_link'><a href="../RRTF.html" title="RRTF (module)">RRTF</a></span></span><span class='op'>::</span><span class='const'><span class='object_link'><a href="Page.html" title="RRTF::Page (module)">Page</a></span></span><span class='op'>::</span><span class='const'><span class='object_link'><a href="Page/Size.html" title="RRTF::Page::Size (class)">Size</a></span></span><span class='period'>.</span><span class='id identifier rubyid_new'><span class='object_link'><a href="Page/Size.html#initialize-instance_method" title="RRTF::Page::Size#initialize (method)">new</a></span></span><span class='comma'>,</span>
|
200
207
|
<span class='tstring'><span class='tstring_beg'>"</span><span class='tstring_content'>from_user</span><span class='tstring_end'>"</span></span> <span class='op'>=></span> <span class='id identifier rubyid_lambda'>lambda</span><span class='lbrace'>{</span> <span class='op'>|</span><span class='id identifier rubyid_value'>value</span><span class='op'>|</span> <span class='const'><span class='object_link'><a href="../RRTF.html" title="RRTF (module)">RRTF</a></span></span><span class='op'>::</span><span class='const'><span class='object_link'><a href="Page.html" title="RRTF::Page (module)">Page</a></span></span><span class='op'>::</span><span class='const'><span class='object_link'><a href="Page/Size.html" title="RRTF::Page::Size (class)">Size</a></span></span><span class='period'>.</span><span class='id identifier rubyid_new'><span class='object_link'><a href="Page/Size.html#initialize-instance_method" title="RRTF::Page::Size#initialize (method)">new</a></span></span><span class='lparen'>(</span><span class='id identifier rubyid_value'>value</span><span class='rparen'>)</span> <span class='rbrace'>}</span><span class='comma'>,</span>
|
201
|
-
<span class='tstring'><span class='tstring_beg'>"</span><span class='tstring_content'>to_rtf</span><span class='tstring_end'>"</span></span> <span class='op'>=></span> <span class='id identifier rubyid_lambda'>lambda</span
|
208
|
+
<span class='tstring'><span class='tstring_beg'>"</span><span class='tstring_content'>to_rtf</span><span class='tstring_end'>"</span></span> <span class='op'>=></span> <span class='id identifier rubyid_lambda'>lambda</span> <span class='kw'>do</span> <span class='op'>|</span><span class='id identifier rubyid_value'>value</span><span class='comma'>,</span> <span class='id identifier rubyid_targ'>targ</span><span class='op'>|</span>
|
209
|
+
<span class='kw'>case</span> <span class='id identifier rubyid_targ'>targ</span>
|
210
|
+
<span class='kw'>when</span> <span class='symbol'>:document</span>
|
211
|
+
<span class='tstring'><span class='tstring_beg'>"</span><span class='tstring_content'>\\paperw</span><span class='embexpr_beg'>#{</span><span class='id identifier rubyid_value'>value</span><span class='period'>.</span><span class='id identifier rubyid_width'>width</span><span class='embexpr_end'>}</span><span class='tstring_content'>\\paperh</span><span class='embexpr_beg'>#{</span><span class='id identifier rubyid_value'>value</span><span class='period'>.</span><span class='id identifier rubyid_height'>height</span><span class='embexpr_end'>}</span><span class='tstring_end'>"</span></span>
|
212
|
+
<span class='kw'>when</span> <span class='symbol'>:section</span>
|
213
|
+
<span class='tstring'><span class='tstring_beg'>"</span><span class='tstring_content'>\\pgwsxn</span><span class='embexpr_beg'>#{</span><span class='id identifier rubyid_value'>value</span><span class='period'>.</span><span class='id identifier rubyid_width'>width</span><span class='embexpr_end'>}</span><span class='tstring_content'>\\pghsxn</span><span class='embexpr_beg'>#{</span><span class='id identifier rubyid_value'>value</span><span class='period'>.</span><span class='id identifier rubyid_height'>height</span><span class='embexpr_end'>}</span><span class='tstring_end'>"</span></span>
|
214
|
+
<span class='kw'>end</span> <span class='comment'># case
|
215
|
+
</span> <span class='kw'>end</span>
|
202
216
|
<span class='rbrace'>}</span><span class='comma'>,</span>
|
203
217
|
<span class='tstring'><span class='tstring_beg'>"</span><span class='tstring_content'>margin</span><span class='tstring_end'>"</span></span> <span class='op'>=></span> <span class='lbrace'>{</span>
|
204
218
|
<span class='tstring'><span class='tstring_beg'>"</span><span class='tstring_content'>default</span><span class='tstring_end'>"</span></span> <span class='op'>=></span> <span class='const'><span class='object_link'><a href="../RRTF.html" title="RRTF (module)">RRTF</a></span></span><span class='op'>::</span><span class='const'><span class='object_link'><a href="Page.html" title="RRTF::Page (module)">Page</a></span></span><span class='op'>::</span><span class='const'><span class='object_link'><a href="Page/Margin.html" title="RRTF::Page::Margin (class)">Margin</a></span></span><span class='period'>.</span><span class='id identifier rubyid_new'><span class='object_link'><a href="Page/Margin.html#initialize-instance_method" title="RRTF::Page::Margin#initialize (method)">new</a></span></span><span class='comma'>,</span>
|
205
219
|
<span class='tstring'><span class='tstring_beg'>"</span><span class='tstring_content'>from_user</span><span class='tstring_end'>"</span></span> <span class='op'>=></span> <span class='id identifier rubyid_lambda'>lambda</span><span class='lbrace'>{</span> <span class='op'>|</span><span class='id identifier rubyid_value'>value</span><span class='op'>|</span> <span class='const'><span class='object_link'><a href="../RRTF.html" title="RRTF (module)">RRTF</a></span></span><span class='op'>::</span><span class='const'><span class='object_link'><a href="Page.html" title="RRTF::Page (module)">Page</a></span></span><span class='op'>::</span><span class='const'><span class='object_link'><a href="Page/Margin.html" title="RRTF::Page::Margin (class)">Margin</a></span></span><span class='period'>.</span><span class='id identifier rubyid_new'><span class='object_link'><a href="Page/Margin.html#initialize-instance_method" title="RRTF::Page::Margin#initialize (method)">new</a></span></span><span class='lparen'>(</span><span class='id identifier rubyid_value'>value</span><span class='rparen'>)</span> <span class='rbrace'>}</span><span class='comma'>,</span>
|
206
|
-
<span class='tstring'><span class='tstring_beg'>"</span><span class='tstring_content'>to_rtf</span><span class='tstring_end'>"</span></span> <span class='op'>=></span> <span class='id identifier rubyid_lambda'>lambda</span
|
220
|
+
<span class='tstring'><span class='tstring_beg'>"</span><span class='tstring_content'>to_rtf</span><span class='tstring_end'>"</span></span> <span class='op'>=></span> <span class='id identifier rubyid_lambda'>lambda</span> <span class='kw'>do</span> <span class='op'>|</span><span class='id identifier rubyid_value'>value</span><span class='comma'>,</span> <span class='id identifier rubyid_targ'>targ</span><span class='op'>|</span>
|
221
|
+
<span class='kw'>case</span> <span class='id identifier rubyid_targ'>targ</span>
|
222
|
+
<span class='kw'>when</span> <span class='symbol'>:document</span>
|
223
|
+
<span class='tstring'><span class='tstring_beg'>"</span><span class='tstring_content'>\\margl</span><span class='embexpr_beg'>#{</span><span class='id identifier rubyid_value'>value</span><span class='period'>.</span><span class='id identifier rubyid_left'>left</span><span class='embexpr_end'>}</span><span class='tstring_content'>\\margr</span><span class='embexpr_beg'>#{</span><span class='id identifier rubyid_value'>value</span><span class='period'>.</span><span class='id identifier rubyid_right'>right</span><span class='embexpr_end'>}</span><span class='tstring_content'>\\margt</span><span class='embexpr_beg'>#{</span><span class='id identifier rubyid_value'>value</span><span class='period'>.</span><span class='id identifier rubyid_top'>top</span><span class='embexpr_end'>}</span><span class='tstring_content'>\\margb</span><span class='embexpr_beg'>#{</span><span class='id identifier rubyid_value'>value</span><span class='period'>.</span><span class='id identifier rubyid_bottom'>bottom</span><span class='embexpr_end'>}</span><span class='tstring_end'>"</span></span>
|
224
|
+
<span class='kw'>when</span> <span class='symbol'>:section</span>
|
225
|
+
<span class='tstring'><span class='tstring_beg'>"</span><span class='tstring_content'>\\marglsxn</span><span class='embexpr_beg'>#{</span><span class='id identifier rubyid_value'>value</span><span class='period'>.</span><span class='id identifier rubyid_left'>left</span><span class='embexpr_end'>}</span><span class='tstring_content'>\\margrsnx</span><span class='embexpr_beg'>#{</span><span class='id identifier rubyid_value'>value</span><span class='period'>.</span><span class='id identifier rubyid_right'>right</span><span class='embexpr_end'>}</span><span class='tstring_content'>\\margtsxn</span><span class='embexpr_beg'>#{</span><span class='id identifier rubyid_value'>value</span><span class='period'>.</span><span class='id identifier rubyid_top'>top</span><span class='embexpr_end'>}</span><span class='tstring_content'>\\margbsnx</span><span class='embexpr_beg'>#{</span><span class='id identifier rubyid_value'>value</span><span class='period'>.</span><span class='id identifier rubyid_bottom'>bottom</span><span class='embexpr_end'>}</span><span class='tstring_end'>"</span></span>
|
226
|
+
<span class='kw'>end</span> <span class='comment'># case
|
227
|
+
</span> <span class='kw'>end</span>
|
207
228
|
<span class='rbrace'>}</span><span class='comma'>,</span>
|
208
229
|
<span class='tstring'><span class='tstring_beg'>"</span><span class='tstring_content'>gutter</span><span class='tstring_end'>"</span></span> <span class='op'>=></span> <span class='lbrace'>{</span>
|
209
230
|
<span class='tstring'><span class='tstring_beg'>"</span><span class='tstring_content'>default</span><span class='tstring_end'>"</span></span> <span class='op'>=></span> <span class='kw'>nil</span><span class='comma'>,</span>
|
210
231
|
<span class='tstring'><span class='tstring_beg'>"</span><span class='tstring_content'>from_user</span><span class='tstring_end'>"</span></span> <span class='op'>=></span> <span class='id identifier rubyid_lambda'>lambda</span><span class='lbrace'>{</span> <span class='op'>|</span><span class='id identifier rubyid_value'>value</span><span class='op'>|</span> <span class='const'><span class='object_link'><a href="../RRTF.html" title="RRTF (module)">RRTF</a></span></span><span class='op'>::</span><span class='const'><span class='object_link'><a href="Utilities.html" title="RRTF::Utilities (class)">Utilities</a></span></span><span class='period'>.</span><span class='id identifier rubyid_value2twips'><span class='object_link'><a href="Utilities.html#value2twips-class_method" title="RRTF::Utilities.value2twips (method)">value2twips</a></span></span><span class='lparen'>(</span><span class='id identifier rubyid_value'>value</span><span class='rparen'>)</span> <span class='rbrace'>}</span><span class='comma'>,</span>
|
211
|
-
<span class='tstring'><span class='tstring_beg'>"</span><span class='tstring_content'>to_rtf</span><span class='tstring_end'>"</span></span> <span class='op'>=></span> <span class='id identifier rubyid_lambda'>lambda</span
|
232
|
+
<span class='tstring'><span class='tstring_beg'>"</span><span class='tstring_content'>to_rtf</span><span class='tstring_end'>"</span></span> <span class='op'>=></span> <span class='id identifier rubyid_lambda'>lambda</span> <span class='kw'>do</span> <span class='op'>|</span><span class='id identifier rubyid_value'>value</span><span class='comma'>,</span> <span class='id identifier rubyid_targ'>targ</span><span class='op'>|</span>
|
233
|
+
<span class='kw'>case</span> <span class='id identifier rubyid_targ'>targ</span>
|
234
|
+
<span class='kw'>when</span> <span class='symbol'>:document</span>
|
235
|
+
<span class='tstring'><span class='tstring_beg'>"</span><span class='tstring_content'>\\gutter</span><span class='embexpr_beg'>#{</span><span class='id identifier rubyid_value'>value</span><span class='embexpr_end'>}</span><span class='tstring_end'>"</span></span> <span class='kw'>unless</span> <span class='id identifier rubyid_value'>value</span><span class='period'>.</span><span class='id identifier rubyid_nil?'>nil?</span>
|
236
|
+
<span class='kw'>when</span> <span class='symbol'>:section</span>
|
237
|
+
<span class='tstring'><span class='tstring_beg'>"</span><span class='tstring_content'>\\guttersxn</span><span class='embexpr_beg'>#{</span><span class='id identifier rubyid_value'>value</span><span class='embexpr_end'>}</span><span class='tstring_end'>"</span></span> <span class='kw'>unless</span> <span class='id identifier rubyid_value'>value</span><span class='period'>.</span><span class='id identifier rubyid_nil?'>nil?</span>
|
238
|
+
<span class='kw'>end</span> <span class='comment'># case
|
239
|
+
</span> <span class='kw'>end</span>
|
212
240
|
<span class='rbrace'>}</span>
|
213
241
|
<span class='rbrace'>}</span><span class='period'>.</span><span class='id identifier rubyid_freeze'>freeze</span></pre></dd>
|
214
242
|
|
215
|
-
|
216
|
-
|
217
|
-
|
243
|
+
<dt id="PAGE_FORMATTING_TARGET_DICTIONARY-constant" class="">PAGE_FORMATTING_TARGET_DICTIONARY =
|
244
|
+
<div class="docstring">
|
245
|
+
<div class="discussion">
|
246
|
+
|
218
247
|
|
248
|
+
</div>
|
249
|
+
</div>
|
250
|
+
<div class="tags">
|
251
|
+
|
252
|
+
<p class="tag_title">Since:</p>
|
253
|
+
<ul class="since">
|
254
|
+
|
255
|
+
<li>
|
256
|
+
|
257
|
+
|
258
|
+
|
259
|
+
|
260
|
+
|
261
|
+
<div class='inline'>
|
262
|
+
<p>1.0.0</p>
|
263
|
+
</div>
|
264
|
+
|
265
|
+
</li>
|
266
|
+
|
267
|
+
</ul>
|
219
268
|
|
269
|
+
</div>
|
270
|
+
</dt>
|
271
|
+
<dd><pre class="code"><span class='lbrace'>{</span>
|
272
|
+
<span class='tstring'><span class='tstring_beg'>"</span><span class='tstring_content'>DOCUMENT</span><span class='tstring_end'>"</span></span> <span class='op'>=></span> <span class='symbol'>:document</span><span class='comma'>,</span>
|
273
|
+
<span class='tstring'><span class='tstring_beg'>"</span><span class='tstring_content'>SECTION</span><span class='tstring_end'>"</span></span> <span class='op'>=></span> <span class='symbol'>:section</span>
|
274
|
+
<span class='rbrace'>}</span><span class='period'>.</span><span class='id identifier rubyid_freeze'>freeze</span></pre></dd>
|
275
|
+
|
276
|
+
</dl>
|
220
277
|
|
221
278
|
|
222
279
|
|
223
|
-
|
224
|
-
<h2>
|
225
|
-
Class Method Summary
|
226
|
-
<small><a href="#" class="summary_toggle">collapse</a></small>
|
227
|
-
</h2>
|
228
280
|
|
229
|
-
|
230
|
-
|
231
|
-
|
281
|
+
<h2>Instance Attribute Summary <small><a href="#" class="summary_toggle">collapse</a></small></h2>
|
282
|
+
<ul class="summary">
|
283
|
+
|
284
|
+
<li class="public ">
|
232
285
|
<span class="summary_signature">
|
233
286
|
|
234
|
-
<a href="#
|
287
|
+
<a href="#target-instance_method" title="#target (instance method)">#<strong>target</strong> ⇒ Object </a>
|
235
288
|
|
236
289
|
|
237
290
|
|
@@ -239,24 +292,28 @@ user, and (3) how to convert the attribute to an RTF sequence.</p>
|
|
239
292
|
|
240
293
|
|
241
294
|
|
295
|
+
|
296
|
+
|
297
|
+
|
242
298
|
|
243
299
|
|
244
300
|
|
245
301
|
|
246
302
|
|
247
303
|
|
248
|
-
<span class="summary_desc"><div class='inline'>
|
249
|
-
<p>Generates attribute accessors for all page attributes when the module is
|
250
|
-
included in another module or class.</p>
|
251
|
-
</div></span>
|
304
|
+
<span class="summary_desc"><div class='inline'></div></span>
|
252
305
|
|
253
306
|
</li>
|
254
307
|
|
255
|
-
|
256
|
-
|
308
|
+
|
309
|
+
</ul>
|
310
|
+
|
311
|
+
|
312
|
+
|
313
|
+
|
257
314
|
|
258
315
|
<h2>
|
259
|
-
|
316
|
+
Class Method Summary
|
260
317
|
<small><a href="#" class="summary_toggle">collapse</a></small>
|
261
318
|
</h2>
|
262
319
|
|
@@ -265,7 +322,7 @@ included in another module or class.</p>
|
|
265
322
|
<li class="public ">
|
266
323
|
<span class="summary_signature">
|
267
324
|
|
268
|
-
<a href="#
|
325
|
+
<a href="#included-class_method" title="included (class method)">.<strong>included</strong>(base) ⇒ Object </a>
|
269
326
|
|
270
327
|
|
271
328
|
|
@@ -279,37 +336,27 @@ included in another module or class.</p>
|
|
279
336
|
|
280
337
|
|
281
338
|
|
282
|
-
<span class="summary_desc"><div class='inline'
|
339
|
+
<span class="summary_desc"><div class='inline'>
|
340
|
+
<p>Generates attribute accessors for all page attributes when the module is
|
341
|
+
included in another module or class.</p>
|
342
|
+
</div></span>
|
283
343
|
|
284
344
|
</li>
|
285
345
|
|
286
346
|
|
287
|
-
|
288
|
-
<span class="summary_signature">
|
289
|
-
|
290
|
-
<a href="#body_width-instance_method" title="#body_width (instance method)">#<strong>body_width</strong> ⇒ Object </a>
|
291
|
-
|
292
|
-
|
293
|
-
|
294
|
-
</span>
|
295
|
-
|
296
|
-
|
297
|
-
|
298
|
-
|
299
|
-
|
300
|
-
|
301
|
-
|
302
|
-
|
303
|
-
|
304
|
-
<span class="summary_desc"><div class='inline'></div></span>
|
347
|
+
</ul>
|
305
348
|
|
306
|
-
|
349
|
+
<h2>
|
350
|
+
Instance Method Summary
|
351
|
+
<small><a href="#" class="summary_toggle">collapse</a></small>
|
352
|
+
</h2>
|
307
353
|
|
354
|
+
<ul class="summary">
|
308
355
|
|
309
356
|
<li class="public ">
|
310
357
|
<span class="summary_signature">
|
311
358
|
|
312
|
-
<a href="#initialize_page_formatting-instance_method" title="#initialize_page_formatting (instance method)">#<strong>initialize_page_formatting</strong>(options = {}) ⇒ Object </a>
|
359
|
+
<a href="#initialize_page_formatting-instance_method" title="#initialize_page_formatting (instance method)">#<strong>initialize_page_formatting</strong>(options = {}, target = "DOCUMENT") ⇒ Object </a>
|
313
360
|
|
314
361
|
|
315
362
|
|
@@ -382,15 +429,15 @@ included in another module or class.</p>
|
|
382
429
|
|
383
430
|
|
384
431
|
|
385
|
-
|
386
|
-
|
387
|
-
<h2>Class Method Details</h2>
|
388
|
-
|
432
|
+
<div id="instance_attr_details" class="attr_details">
|
433
|
+
<h2>Instance Attribute Details</h2>
|
389
434
|
|
435
|
+
|
436
|
+
<span id="target=-instance_method"></span>
|
390
437
|
<div class="method_details first">
|
391
|
-
<h3 class="signature first" id="
|
438
|
+
<h3 class="signature first" id="target-instance_method">
|
392
439
|
|
393
|
-
|
440
|
+
#<strong>target</strong> ⇒ <tt>Object</tt>
|
394
441
|
|
395
442
|
|
396
443
|
|
@@ -399,9 +446,6 @@ included in another module or class.</p>
|
|
399
446
|
</h3><div class="docstring">
|
400
447
|
<div class="discussion">
|
401
448
|
|
402
|
-
<p>Generates attribute accessors for all page attributes when the module is
|
403
|
-
included in another module or class.</p>
|
404
|
-
|
405
449
|
|
406
450
|
</div>
|
407
451
|
</div>
|
@@ -430,26 +474,16 @@ included in another module or class.</p>
|
|
430
474
|
<pre class="lines">
|
431
475
|
|
432
476
|
|
433
|
-
|
434
|
-
|
435
|
-
|
436
|
-
915
|
437
|
-
916
|
438
|
-
917
|
439
|
-
918
|
440
|
-
919</pre>
|
477
|
+
1055
|
478
|
+
1056
|
479
|
+
1057</pre>
|
441
480
|
</td>
|
442
481
|
<td>
|
443
|
-
<pre class="code"><span class="info file"># File 'lib/rrtf/formatting.rb', line
|
482
|
+
<pre class="code"><span class="info file"># File 'lib/rrtf/formatting.rb', line 1055</span>
|
444
483
|
|
445
|
-
<span class='kw'>def</span> <span class='
|
446
|
-
<span class='
|
447
|
-
|
448
|
-
<span class='const'><span class='object_link'><a href="#PAGE_ATTRIBUTES-constant" title="RRTF::PageFormatting::PAGE_ATTRIBUTES (constant)">PAGE_ATTRIBUTES</a></span></span><span class='period'>.</span><span class='id identifier rubyid_each'>each</span> <span class='kw'>do</span> <span class='op'>|</span><span class='id identifier rubyid_key'>key</span><span class='comma'>,</span> <span class='id identifier rubyid_options'>options</span><span class='op'>|</span>
|
449
|
-
<span class='id identifier rubyid_attr_accessor'>attr_accessor</span> <span class='symbol'>:#{</span><span class='id identifier rubyid_key'>key</span><span class='embexpr_end'>}</span><span class='tstring_end'>"</span></span>
|
450
|
-
<span class='kw'>end</span> <span class='comment'># each
|
451
|
-
</span> <span class='kw'>end</span> <span class='comment'># class_eval
|
452
|
-
</span><span class='kw'>end</span></pre>
|
484
|
+
<span class='kw'>def</span> <span class='id identifier rubyid_target'>target</span>
|
485
|
+
<span class='ivar'>@target</span>
|
486
|
+
<span class='kw'>end</span></pre>
|
453
487
|
</td>
|
454
488
|
</tr>
|
455
489
|
</table>
|
@@ -457,14 +491,15 @@ included in another module or class.</p>
|
|
457
491
|
|
458
492
|
</div>
|
459
493
|
|
460
|
-
|
461
|
-
|
494
|
+
|
495
|
+
<div id="class_method_details" class="method_details_list">
|
496
|
+
<h2>Class Method Details</h2>
|
462
497
|
|
463
498
|
|
464
499
|
<div class="method_details first">
|
465
|
-
<h3 class="signature first" id="
|
500
|
+
<h3 class="signature first" id="included-class_method">
|
466
501
|
|
467
|
-
|
502
|
+
.<strong>included</strong>(base) ⇒ <tt>Object</tt>
|
468
503
|
|
469
504
|
|
470
505
|
|
@@ -473,6 +508,9 @@ included in another module or class.</p>
|
|
473
508
|
</h3><div class="docstring">
|
474
509
|
<div class="discussion">
|
475
510
|
|
511
|
+
<p>Generates attribute accessors for all page attributes when the module is
|
512
|
+
included in another module or class.</p>
|
513
|
+
|
476
514
|
|
477
515
|
</div>
|
478
516
|
</div>
|
@@ -501,96 +539,41 @@ included in another module or class.</p>
|
|
501
539
|
<pre class="lines">
|
502
540
|
|
503
541
|
|
504
|
-
|
505
|
-
|
506
|
-
|
507
|
-
|
508
|
-
|
509
|
-
|
510
|
-
|
542
|
+
1059
|
543
|
+
1060
|
544
|
+
1061
|
545
|
+
1062
|
546
|
+
1063
|
547
|
+
1064
|
548
|
+
1065
|
549
|
+
1066</pre>
|
511
550
|
</td>
|
512
551
|
<td>
|
513
|
-
<pre class="code"><span class="info file"># File 'lib/rrtf/formatting.rb', line
|
514
|
-
|
515
|
-
<span class='kw'>def</span> <span class='id identifier
|
516
|
-
|
517
|
-
|
518
|
-
|
519
|
-
<span class='id identifier
|
520
|
-
|
521
|
-
<span class='kw'>end</span
|
552
|
+
<pre class="code"><span class="info file"># File 'lib/rrtf/formatting.rb', line 1059</span>
|
553
|
+
|
554
|
+
<span class='kw'>def</span> <span class='kw'>self</span><span class='period'>.</span><span class='id identifier rubyid_included'>included</span><span class='lparen'>(</span><span class='id identifier rubyid_base'>base</span><span class='rparen'>)</span>
|
555
|
+
<span class='comment'># define accessors in base for document attributes
|
556
|
+
</span> <span class='id identifier rubyid_base'>base</span><span class='period'>.</span><span class='id identifier rubyid_class_eval'>class_eval</span> <span class='kw'>do</span>
|
557
|
+
<span class='const'><span class='object_link'><a href="#PAGE_ATTRIBUTES-constant" title="RRTF::PageFormatting::PAGE_ATTRIBUTES (constant)">PAGE_ATTRIBUTES</a></span></span><span class='period'>.</span><span class='id identifier rubyid_each'>each</span> <span class='kw'>do</span> <span class='op'>|</span><span class='id identifier rubyid_key'>key</span><span class='comma'>,</span> <span class='id identifier rubyid_options'>options</span><span class='op'>|</span>
|
558
|
+
<span class='id identifier rubyid_attr_accessor'>attr_accessor</span> <span class='symbol'>:#{</span><span class='id identifier rubyid_key'>key</span><span class='embexpr_end'>}</span><span class='tstring_end'>"</span></span>
|
559
|
+
<span class='kw'>end</span> <span class='comment'># each
|
560
|
+
</span> <span class='kw'>end</span> <span class='comment'># class_eval
|
561
|
+
</span><span class='kw'>end</span></pre>
|
522
562
|
</td>
|
523
563
|
</tr>
|
524
564
|
</table>
|
525
565
|
</div>
|
526
566
|
|
527
|
-
<div class="method_details ">
|
528
|
-
<h3 class="signature " id="body_width-instance_method">
|
529
|
-
|
530
|
-
#<strong>body_width</strong> ⇒ <tt>Object</tt>
|
531
|
-
|
532
|
-
|
533
|
-
|
534
|
-
|
535
|
-
|
536
|
-
</h3><div class="docstring">
|
537
|
-
<div class="discussion">
|
538
|
-
|
539
|
-
|
540
567
|
</div>
|
541
|
-
</div>
|
542
|
-
<div class="tags">
|
543
|
-
|
544
|
-
<p class="tag_title">Since:</p>
|
545
|
-
<ul class="since">
|
546
|
-
|
547
|
-
<li>
|
548
|
-
|
549
|
-
|
550
|
-
|
551
|
-
|
552
|
-
|
553
|
-
<div class='inline'>
|
554
|
-
<p>1.0.0</p>
|
555
|
-
</div>
|
556
|
-
|
557
|
-
</li>
|
558
|
-
|
559
|
-
</ul>
|
560
|
-
|
561
|
-
</div><table class="source_code">
|
562
|
-
<tr>
|
563
|
-
<td>
|
564
|
-
<pre class="lines">
|
565
568
|
|
569
|
+
<div id="instance_method_details" class="method_details_list">
|
570
|
+
<h2>Instance Method Details</h2>
|
566
571
|
|
567
|
-
973
|
568
|
-
974
|
569
|
-
975
|
570
|
-
976
|
571
|
-
977
|
572
|
-
978
|
573
|
-
979</pre>
|
574
|
-
</td>
|
575
|
-
<td>
|
576
|
-
<pre class="code"><span class="info file"># File 'lib/rrtf/formatting.rb', line 973</span>
|
577
|
-
|
578
|
-
<span class='kw'>def</span> <span class='id identifier rubyid_body_width'>body_width</span>
|
579
|
-
<span class='kw'>if</span> <span class='id identifier rubyid_orientation'>orientation</span> <span class='op'>==</span> <span class='symbol'>:portrait</span>
|
580
|
-
<span class='id identifier rubyid_size'>size</span><span class='period'>.</span><span class='id identifier rubyid_width'>width</span> <span class='op'>-</span> <span class='lparen'>(</span><span class='id identifier rubyid_margin'>margin</span><span class='period'>.</span><span class='id identifier rubyid_left'>left</span> <span class='op'>+</span> <span class='id identifier rubyid_margin'>margin</span><span class='period'>.</span><span class='id identifier rubyid_right'>right</span><span class='rparen'>)</span>
|
581
|
-
<span class='kw'>else</span>
|
582
|
-
<span class='id identifier rubyid_size'>size</span><span class='period'>.</span><span class='id identifier rubyid_height'>height</span> <span class='op'>-</span> <span class='lparen'>(</span><span class='id identifier rubyid_margin'>margin</span><span class='period'>.</span><span class='id identifier rubyid_top'>top</span> <span class='op'>+</span> <span class='id identifier rubyid_margin'>margin</span><span class='period'>.</span><span class='id identifier rubyid_bottom'>bottom</span><span class='rparen'>)</span>
|
583
|
-
<span class='kw'>end</span>
|
584
|
-
<span class='kw'>end</span></pre>
|
585
|
-
</td>
|
586
|
-
</tr>
|
587
|
-
</table>
|
588
|
-
</div>
|
589
572
|
|
590
|
-
<div class="method_details ">
|
591
|
-
<h3 class="signature " id="initialize_page_formatting-instance_method">
|
573
|
+
<div class="method_details first">
|
574
|
+
<h3 class="signature first" id="initialize_page_formatting-instance_method">
|
592
575
|
|
593
|
-
#<strong>initialize_page_formatting</strong>(options = {}) ⇒ <tt>Object</tt>
|
576
|
+
#<strong>initialize_page_formatting</strong>(options = {}, target = "DOCUMENT") ⇒ <tt>Object</tt>
|
594
577
|
|
595
578
|
|
596
579
|
|
@@ -709,6 +692,8 @@ included in another module or class.</p>
|
|
709
692
|
|
710
693
|
</ul>
|
711
694
|
|
695
|
+
|
696
|
+
|
712
697
|
|
713
698
|
<p class="tag_title">Since:</p>
|
714
699
|
<ul class="since">
|
@@ -733,19 +718,23 @@ included in another module or class.</p>
|
|
733
718
|
<pre class="lines">
|
734
719
|
|
735
720
|
|
736
|
-
|
737
|
-
|
738
|
-
|
739
|
-
|
740
|
-
|
741
|
-
|
742
|
-
|
743
|
-
|
721
|
+
1077
|
722
|
+
1078
|
723
|
+
1079
|
724
|
+
1080
|
725
|
+
1081
|
726
|
+
1082
|
727
|
+
1083
|
728
|
+
1084
|
729
|
+
1085
|
730
|
+
1086</pre>
|
744
731
|
</td>
|
745
732
|
<td>
|
746
|
-
<pre class="code"><span class="info file"># File 'lib/rrtf/formatting.rb', line
|
733
|
+
<pre class="code"><span class="info file"># File 'lib/rrtf/formatting.rb', line 1077</span>
|
734
|
+
|
735
|
+
<span class='kw'>def</span> <span class='id identifier rubyid_initialize_page_formatting'>initialize_page_formatting</span><span class='lparen'>(</span><span class='id identifier rubyid_options'>options</span> <span class='op'>=</span> <span class='lbrace'>{</span><span class='rbrace'>}</span><span class='comma'>,</span> <span class='id identifier rubyid_target'>target</span> <span class='op'>=</span> <span class='tstring'><span class='tstring_beg'>"</span><span class='tstring_content'>DOCUMENT</span><span class='tstring_end'>"</span></span><span class='rparen'>)</span>
|
736
|
+
<span class='ivar'>@target</span> <span class='op'>=</span> <span class='const'><span class='object_link'><a href="#PAGE_FORMATTING_TARGET_DICTIONARY-constant" title="RRTF::PageFormatting::PAGE_FORMATTING_TARGET_DICTIONARY (constant)">PAGE_FORMATTING_TARGET_DICTIONARY</a></span></span><span class='lbracket'>[</span><span class='id identifier rubyid_target'>target</span><span class='rbracket'>]</span>
|
747
737
|
|
748
|
-
<span class='kw'>def</span> <span class='id identifier rubyid_initialize_page_formatting'>initialize_page_formatting</span><span class='lparen'>(</span><span class='id identifier rubyid_options'>options</span> <span class='op'>=</span> <span class='lbrace'>{</span><span class='rbrace'>}</span><span class='rparen'>)</span>
|
749
738
|
<span class='comment'># load default attribute values
|
750
739
|
</span> <span class='const'><span class='object_link'><a href="#PAGE_ATTRIBUTES-constant" title="RRTF::PageFormatting::PAGE_ATTRIBUTES (constant)">PAGE_ATTRIBUTES</a></span></span><span class='period'>.</span><span class='id identifier rubyid_each'>each</span> <span class='kw'>do</span> <span class='op'>|</span><span class='id identifier rubyid_key'>key</span><span class='comma'>,</span> <span class='id identifier rubyid_options'>options</span><span class='op'>|</span>
|
751
740
|
<span class='id identifier rubyid_send'>send</span><span class='lparen'>(</span><span class='tstring'><span class='tstring_beg'>"</span><span class='embexpr_beg'>#{</span><span class='id identifier rubyid_key'>key</span><span class='embexpr_end'>}</span><span class='tstring_content'>=</span><span class='tstring_end'>"</span></span><span class='comma'>,</span> <span class='id identifier rubyid_options'>options</span><span class='lbracket'>[</span><span class='tstring'><span class='tstring_beg'>"</span><span class='tstring_content'>default</span><span class='tstring_end'>"</span></span><span class='rbracket'>]</span><span class='rparen'>)</span>
|
@@ -818,22 +807,22 @@ included in another module or class.</p>
|
|
818
807
|
<pre class="lines">
|
819
808
|
|
820
809
|
|
821
|
-
|
822
|
-
|
823
|
-
|
824
|
-
|
825
|
-
|
826
|
-
|
827
|
-
|
828
|
-
|
829
|
-
|
830
|
-
|
831
|
-
|
832
|
-
|
833
|
-
|
810
|
+
1108
|
811
|
+
1109
|
812
|
+
1110
|
813
|
+
1111
|
814
|
+
1112
|
815
|
+
1113
|
816
|
+
1114
|
817
|
+
1115
|
818
|
+
1116
|
819
|
+
1117
|
820
|
+
1118
|
821
|
+
1119
|
822
|
+
1120</pre>
|
834
823
|
</td>
|
835
824
|
<td>
|
836
|
-
<pre class="code"><span class="info file"># File 'lib/rrtf/formatting.rb', line
|
825
|
+
<pre class="code"><span class="info file"># File 'lib/rrtf/formatting.rb', line 1108</span>
|
837
826
|
|
838
827
|
<span class='kw'>def</span> <span class='id identifier rubyid_page_formatting_to_rtf'>page_formatting_to_rtf</span>
|
839
828
|
<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>
|
@@ -841,7 +830,7 @@ included in another module or class.</p>
|
|
841
830
|
<span class='comment'># accumulate RTF representations of page attributes
|
842
831
|
</span> <span class='const'><span class='object_link'><a href="#PAGE_ATTRIBUTES-constant" title="RRTF::PageFormatting::PAGE_ATTRIBUTES (constant)">PAGE_ATTRIBUTES</a></span></span><span class='period'>.</span><span class='id identifier rubyid_each'>each</span> <span class='kw'>do</span> <span class='op'>|</span><span class='id identifier rubyid_key'>key</span><span class='comma'>,</span> <span class='id identifier rubyid_options'>options</span><span class='op'>|</span>
|
843
832
|
<span class='kw'>if</span> <span class='id identifier rubyid_options'>options</span><span class='period'>.</span><span class='id identifier rubyid_has_key?'>has_key?</span><span class='lparen'>(</span><span class='tstring'><span class='tstring_beg'>"</span><span class='tstring_content'>to_rtf</span><span class='tstring_end'>"</span></span><span class='rparen'>)</span>
|
844
|
-
<span class='id identifier rubyid_rtf'>rtf</span> <span class='op'>=</span> <span class='id identifier rubyid_options'>options</span><span class='lbracket'>[</span><span class='tstring'><span class='tstring_beg'>"</span><span class='tstring_content'>to_rtf</span><span class='tstring_end'>"</span></span><span class='rbracket'>]</span><span class='period'>.</span><span class='id identifier rubyid_call'>call</span><span class='lparen'>(</span><span class='id identifier rubyid_send'>send</span><span class='lparen'>(</span><span class='id identifier rubyid_key'>key</span><span class='rparen'>)</span><span class='rparen'>)</span>
|
833
|
+
<span class='id identifier rubyid_rtf'>rtf</span> <span class='op'>=</span> <span class='id identifier rubyid_options'>options</span><span class='lbracket'>[</span><span class='tstring'><span class='tstring_beg'>"</span><span class='tstring_content'>to_rtf</span><span class='tstring_end'>"</span></span><span class='rbracket'>]</span><span class='period'>.</span><span class='id identifier rubyid_call'>call</span><span class='lparen'>(</span><span class='id identifier rubyid_send'>send</span><span class='lparen'>(</span><span class='id identifier rubyid_key'>key</span><span class='rparen'>)</span><span class='comma'>,</span> <span class='ivar'>@target</span><span class='rparen'>)</span>
|
845
834
|
<span class='id identifier rubyid_text'>text</span> <span class='op'><<</span> <span class='id identifier rubyid_rtf'>rtf</span> <span class='kw'>unless</span> <span class='id identifier rubyid_rtf'>rtf</span><span class='period'>.</span><span class='id identifier rubyid_nil?'>nil?</span>
|
846
835
|
<span class='kw'>end</span> <span class='comment'># if
|
847
836
|
</span> <span class='kw'>end</span> <span class='comment'># each
|
@@ -902,23 +891,23 @@ included in another module or class.</p>
|
|
902
891
|
<pre class="lines">
|
903
892
|
|
904
893
|
|
905
|
-
|
906
|
-
|
907
|
-
|
908
|
-
|
909
|
-
|
910
|
-
|
911
|
-
|
912
|
-
|
913
|
-
|
914
|
-
|
915
|
-
|
916
|
-
|
917
|
-
|
918
|
-
|
894
|
+
1090
|
895
|
+
1091
|
896
|
+
1092
|
897
|
+
1093
|
898
|
+
1094
|
899
|
+
1095
|
900
|
+
1096
|
901
|
+
1097
|
902
|
+
1098
|
903
|
+
1099
|
904
|
+
1100
|
905
|
+
1101
|
906
|
+
1102
|
907
|
+
1103</pre>
|
919
908
|
</td>
|
920
909
|
<td>
|
921
|
-
<pre class="code"><span class="info file"># File 'lib/rrtf/formatting.rb', line
|
910
|
+
<pre class="code"><span class="info file"># File 'lib/rrtf/formatting.rb', line 1090</span>
|
922
911
|
|
923
912
|
<span class='kw'>def</span> <span class='id identifier rubyid_set_page_formatting_from_hashmap'>set_page_formatting_from_hashmap</span><span class='lparen'>(</span><span class='id identifier rubyid_hash'>hash</span><span class='rparen'>)</span>
|
924
913
|
<span class='id identifier rubyid_hash'>hash</span><span class='period'>.</span><span class='id identifier rubyid_each'>each</span> <span class='kw'>do</span> <span class='op'>|</span><span class='id identifier rubyid_attribute'>attribute</span><span class='comma'>,</span> <span class='id identifier rubyid_value'>value</span><span class='op'>|</span>
|
@@ -944,7 +933,7 @@ included in another module or class.</p>
|
|
944
933
|
</div>
|
945
934
|
|
946
935
|
<div id="footer">
|
947
|
-
Generated on
|
936
|
+
Generated on Wed Aug 2 23:05:15 2017 by
|
948
937
|
<a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
|
949
938
|
0.9.9 (ruby-2.3.3).
|
950
939
|
</div>
|