rich_text_renderer 0.2.2 → 0.2.3

Sign up to get free protection for your applications and to get access to all the features.
Files changed (138) hide show
  1. checksums.yaml +4 -4
  2. data/CHANGELOG.md +3 -0
  3. data/lib/rich_text_renderer/version.rb +1 -1
  4. metadata +6 -167
  5. data/.gitignore +0 -7
  6. data/.rspec +0 -1
  7. data/.rubocop.yml +0 -27
  8. data/.rubocop_todo.yml +0 -35
  9. data/.travis.yml +0 -13
  10. data/.yardopts +0 -4
  11. data/Gemfile +0 -3
  12. data/Gemfile.lock +0 -110
  13. data/Guardfile +0 -24
  14. data/Rakefile +0 -33
  15. data/coverage/.last_run.json +0 -5
  16. data/coverage/.resultset.json +0 -1372
  17. data/coverage/.resultset.json.lock +0 -0
  18. data/coverage/assets/0.10.2/application.css +0 -799
  19. data/coverage/assets/0.10.2/application.js +0 -1707
  20. data/coverage/assets/0.10.2/colorbox/border.png +0 -0
  21. data/coverage/assets/0.10.2/colorbox/controls.png +0 -0
  22. data/coverage/assets/0.10.2/colorbox/loading.gif +0 -0
  23. data/coverage/assets/0.10.2/colorbox/loading_background.png +0 -0
  24. data/coverage/assets/0.10.2/favicon_green.png +0 -0
  25. data/coverage/assets/0.10.2/favicon_red.png +0 -0
  26. data/coverage/assets/0.10.2/favicon_yellow.png +0 -0
  27. data/coverage/assets/0.10.2/loading.gif +0 -0
  28. data/coverage/assets/0.10.2/magnify.png +0 -0
  29. data/coverage/assets/0.10.2/smoothness/images/ui-bg_flat_0_aaaaaa_40x100.png +0 -0
  30. data/coverage/assets/0.10.2/smoothness/images/ui-bg_flat_75_ffffff_40x100.png +0 -0
  31. data/coverage/assets/0.10.2/smoothness/images/ui-bg_glass_55_fbf9ee_1x400.png +0 -0
  32. data/coverage/assets/0.10.2/smoothness/images/ui-bg_glass_65_ffffff_1x400.png +0 -0
  33. data/coverage/assets/0.10.2/smoothness/images/ui-bg_glass_75_dadada_1x400.png +0 -0
  34. data/coverage/assets/0.10.2/smoothness/images/ui-bg_glass_75_e6e6e6_1x400.png +0 -0
  35. data/coverage/assets/0.10.2/smoothness/images/ui-bg_glass_95_fef1ec_1x400.png +0 -0
  36. data/coverage/assets/0.10.2/smoothness/images/ui-bg_highlight-soft_75_cccccc_1x100.png +0 -0
  37. data/coverage/assets/0.10.2/smoothness/images/ui-icons_222222_256x240.png +0 -0
  38. data/coverage/assets/0.10.2/smoothness/images/ui-icons_2e83ff_256x240.png +0 -0
  39. data/coverage/assets/0.10.2/smoothness/images/ui-icons_454545_256x240.png +0 -0
  40. data/coverage/assets/0.10.2/smoothness/images/ui-icons_888888_256x240.png +0 -0
  41. data/coverage/assets/0.10.2/smoothness/images/ui-icons_cd0a0a_256x240.png +0 -0
  42. data/coverage/index.html +0 -9146
  43. data/doc/RichTextRenderer/BaseBlockRenderer.html +0 -242
  44. data/doc/RichTextRenderer/BaseInlineRenderer.html +0 -242
  45. data/doc/RichTextRenderer/BaseNodeRenderer.html +0 -300
  46. data/doc/RichTextRenderer/BlockQuoteRenderer.html +0 -169
  47. data/doc/RichTextRenderer/BoldRenderer.html +0 -169
  48. data/doc/RichTextRenderer/CodeRenderer.html +0 -169
  49. data/doc/RichTextRenderer/DocumentRenderer.html +0 -242
  50. data/doc/RichTextRenderer/EntryBlockRenderer.html +0 -239
  51. data/doc/RichTextRenderer/HeadingFiveRenderer.html +0 -169
  52. data/doc/RichTextRenderer/HeadingFourRenderer.html +0 -169
  53. data/doc/RichTextRenderer/HeadingOneRenderer.html +0 -169
  54. data/doc/RichTextRenderer/HeadingSixRenderer.html +0 -169
  55. data/doc/RichTextRenderer/HeadingThreeRenderer.html +0 -169
  56. data/doc/RichTextRenderer/HeadingTwoRenderer.html +0 -169
  57. data/doc/RichTextRenderer/HrRenderer.html +0 -238
  58. data/doc/RichTextRenderer/HyperlinkRenderer.html +0 -246
  59. data/doc/RichTextRenderer/ItalicRenderer.html +0 -169
  60. data/doc/RichTextRenderer/ListItemRenderer.html +0 -169
  61. data/doc/RichTextRenderer/NullRenderer.html +0 -238
  62. data/doc/RichTextRenderer/OrderedListRenderer.html +0 -169
  63. data/doc/RichTextRenderer/ParagraphRenderer.html +0 -169
  64. data/doc/RichTextRenderer/Renderer.html +0 -349
  65. data/doc/RichTextRenderer/TextRenderer.html +0 -254
  66. data/doc/RichTextRenderer/UnderlineRenderer.html +0 -169
  67. data/doc/RichTextRenderer/UnorderedListRenderer.html +0 -169
  68. data/doc/RichTextRenderer.html +0 -155
  69. data/doc/StructuredTextRenderer/BaseBlockRenderer.html +0 -242
  70. data/doc/StructuredTextRenderer/BaseInlineRenderer.html +0 -242
  71. data/doc/StructuredTextRenderer/BaseNodeRenderer.html +0 -300
  72. data/doc/StructuredTextRenderer/BoldRenderer.html +0 -169
  73. data/doc/StructuredTextRenderer/CodeRenderer.html +0 -169
  74. data/doc/StructuredTextRenderer/DocumentRenderer.html +0 -242
  75. data/doc/StructuredTextRenderer/EntryBlockRenderer.html +0 -239
  76. data/doc/StructuredTextRenderer/HeadingFiveRenderer.html +0 -169
  77. data/doc/StructuredTextRenderer/HeadingFourRenderer.html +0 -169
  78. data/doc/StructuredTextRenderer/HeadingOneRenderer.html +0 -169
  79. data/doc/StructuredTextRenderer/HeadingSixRenderer.html +0 -169
  80. data/doc/StructuredTextRenderer/HeadingThreeRenderer.html +0 -169
  81. data/doc/StructuredTextRenderer/HeadingTwoRenderer.html +0 -169
  82. data/doc/StructuredTextRenderer/HrRenderer.html +0 -238
  83. data/doc/StructuredTextRenderer/HyperlinkRenderer.html +0 -246
  84. data/doc/StructuredTextRenderer/ItalicRenderer.html +0 -169
  85. data/doc/StructuredTextRenderer/ListItemRenderer.html +0 -169
  86. data/doc/StructuredTextRenderer/NullRenderer.html +0 -238
  87. data/doc/StructuredTextRenderer/OrderedListRenderer.html +0 -169
  88. data/doc/StructuredTextRenderer/ParagraphRenderer.html +0 -169
  89. data/doc/StructuredTextRenderer/QuoteRenderer.html +0 -169
  90. data/doc/StructuredTextRenderer/Renderer.html +0 -349
  91. data/doc/StructuredTextRenderer/TextRenderer.html +0 -254
  92. data/doc/StructuredTextRenderer/UnderlineRenderer.html +0 -169
  93. data/doc/StructuredTextRenderer/UnorderedListRenderer.html +0 -169
  94. data/doc/StructuredTextRenderer.html +0 -155
  95. data/doc/_index.html +0 -387
  96. data/doc/class_list.html +0 -51
  97. data/doc/css/common.css +0 -1
  98. data/doc/css/full_list.css +0 -58
  99. data/doc/css/style.css +0 -496
  100. data/doc/file.CHANGELOG.html +0 -91
  101. data/doc/file.LICENSE.html +0 -70
  102. data/doc/file.README.html +0 -170
  103. data/doc/file_list.html +0 -66
  104. data/doc/frames.html +0 -17
  105. data/doc/index.html +0 -170
  106. data/doc/js/app.js +0 -292
  107. data/doc/js/full_list.js +0 -216
  108. data/doc/js/jquery.js +0 -4
  109. data/doc/method_list.html +0 -147
  110. data/doc/top-level-namespace.html +0 -110
  111. data/rich_text_renderer.gemspec +0 -30
  112. data/spec/lib/rich_text_renderer/block_renderers/asset_block_renderer_spec.rb +0 -101
  113. data/spec/lib/rich_text_renderer/block_renderers/asset_hyperlink_renderer_spec.rb +0 -32
  114. data/spec/lib/rich_text_renderer/block_renderers/base_block_renderer_spec.rb +0 -26
  115. data/spec/lib/rich_text_renderer/block_renderers/blockquote_renderer_spec.rb +0 -25
  116. data/spec/lib/rich_text_renderer/block_renderers/entry_block_renderer_spec.rb +0 -15
  117. data/spec/lib/rich_text_renderer/block_renderers/heading_five_renderer_spec.rb +0 -24
  118. data/spec/lib/rich_text_renderer/block_renderers/heading_four_renderer_spec.rb +0 -24
  119. data/spec/lib/rich_text_renderer/block_renderers/heading_one_renderer_spec.rb +0 -24
  120. data/spec/lib/rich_text_renderer/block_renderers/heading_six_renderer_spec.rb +0 -24
  121. data/spec/lib/rich_text_renderer/block_renderers/heading_three_renderer_spec.rb +0 -24
  122. data/spec/lib/rich_text_renderer/block_renderers/heading_two_renderer_spec.rb +0 -24
  123. data/spec/lib/rich_text_renderer/block_renderers/hr_renderer_spec.rb +0 -13
  124. data/spec/lib/rich_text_renderer/block_renderers/hyperlink_renderer_spec.rb +0 -24
  125. data/spec/lib/rich_text_renderer/block_renderers/list_item_renderer_spec.rb +0 -24
  126. data/spec/lib/rich_text_renderer/block_renderers/ordered_list_renderer_spec.rb +0 -56
  127. data/spec/lib/rich_text_renderer/block_renderers/paragraph_renderer_spec.rb +0 -30
  128. data/spec/lib/rich_text_renderer/block_renderers/unordered_list_renderer_spec.rb +0 -56
  129. data/spec/lib/rich_text_renderer/document_renderers/document_renderer_spec.rb +0 -42
  130. data/spec/lib/rich_text_renderer/null_renderer_spec.rb +0 -19
  131. data/spec/lib/rich_text_renderer/renderer_spec.rb +0 -308
  132. data/spec/lib/rich_text_renderer/text_renderers/base_inline_renderer_spec.rb +0 -11
  133. data/spec/lib/rich_text_renderer/text_renderers/bold_renderer_spec.rb +0 -11
  134. data/spec/lib/rich_text_renderer/text_renderers/code_renderer_spec.rb +0 -11
  135. data/spec/lib/rich_text_renderer/text_renderers/italic_renderer_spec.rb +0 -11
  136. data/spec/lib/rich_text_renderer/text_renderers/text_renderer_spec.rb +0 -65
  137. data/spec/lib/rich_text_renderer/text_renderers/underline_renderer_spec.rb +0 -11
  138. data/spec/spec_helper.rb +0 -105
@@ -1,349 +0,0 @@
1
- <!DOCTYPE html>
2
- <html>
3
- <head>
4
- <meta charset="utf-8">
5
- <meta name="viewport" content="width=device-width, initial-scale=1.0">
6
- <title>
7
- Class: RichTextRenderer::Renderer
8
-
9
- &mdash; Documentation by YARD 0.9.16
10
-
11
- </title>
12
-
13
- <link rel="stylesheet" href="../css/style.css" type="text/css" charset="utf-8" />
14
-
15
- <link rel="stylesheet" href="../css/common.css" type="text/css" charset="utf-8" />
16
-
17
- <script type="text/javascript" charset="utf-8">
18
- pathId = "RichTextRenderer::Renderer";
19
- relpath = '../';
20
- </script>
21
-
22
-
23
- <script type="text/javascript" charset="utf-8" src="../js/jquery.js"></script>
24
-
25
- <script type="text/javascript" charset="utf-8" src="../js/app.js"></script>
26
-
27
-
28
- </head>
29
- <body>
30
- <div class="nav_wrap">
31
- <iframe id="nav" src="../class_list.html?1"></iframe>
32
- <div id="resizer"></div>
33
- </div>
34
-
35
- <div id="main" tabindex="-1">
36
- <div id="header">
37
- <div id="menu">
38
-
39
- <a href="../_index.html">Index (R)</a> &raquo;
40
- <span class='title'><span class='object_link'><a href="../RichTextRenderer.html" title="RichTextRenderer (module)">RichTextRenderer</a></span></span>
41
- &raquo;
42
- <span class="title">Renderer</span>
43
-
44
- </div>
45
-
46
- <div id="search">
47
-
48
- <a class="full_list_link" id="class_list_link"
49
- href="../class_list.html">
50
-
51
- <svg width="24" height="24">
52
- <rect x="0" y="4" width="24" height="4" rx="1" ry="1"></rect>
53
- <rect x="0" y="12" width="24" height="4" rx="1" ry="1"></rect>
54
- <rect x="0" y="20" width="24" height="4" rx="1" ry="1"></rect>
55
- </svg>
56
- </a>
57
-
58
- </div>
59
- <div class="clear"></div>
60
- </div>
61
-
62
- <div id="content"><h1>Class: RichTextRenderer::Renderer
63
-
64
-
65
-
66
- </h1>
67
- <div class="box_info">
68
-
69
- <dl>
70
- <dt>Inherits:</dt>
71
- <dd>
72
- <span class="inheritName"><span class='object_link'><a href="BaseNodeRenderer.html" title="RichTextRenderer::BaseNodeRenderer (class)">BaseNodeRenderer</a></span></span>
73
-
74
- <ul class="fullTree">
75
- <li>Object</li>
76
-
77
- <li class="next"><span class='object_link'><a href="BaseNodeRenderer.html" title="RichTextRenderer::BaseNodeRenderer (class)">BaseNodeRenderer</a></span></li>
78
-
79
- <li class="next">RichTextRenderer::Renderer</li>
80
-
81
- </ul>
82
- <a href="#" class="inheritanceTree">show all</a>
83
-
84
- </dd>
85
- </dl>
86
-
87
-
88
-
89
-
90
-
91
-
92
-
93
-
94
-
95
-
96
-
97
- <dl>
98
- <dt>Defined in:</dt>
99
- <dd>lib/rich_text_renderer/renderer.rb</dd>
100
- </dl>
101
-
102
- </div>
103
-
104
- <h2>Overview</h2><div class="docstring">
105
- <div class="discussion">
106
-
107
- <p>Renderer for RichText field from Contentful</p>
108
-
109
-
110
- </div>
111
- </div>
112
- <div class="tags">
113
-
114
-
115
- </div>
116
-
117
- <h2>
118
- Constant Summary
119
- <small><a href="#" class="constants_summary_toggle">collapse</a></small>
120
- </h2>
121
-
122
- <dl class="constants">
123
-
124
- <dt id="DEFAULT_MAPPINGS-constant" class="">DEFAULT_MAPPINGS =
125
- <div class="docstring">
126
- <div class="discussion">
127
-
128
- <p>Default Renderers</p>
129
-
130
-
131
- </div>
132
- </div>
133
- <div class="tags">
134
-
135
-
136
- </div>
137
- </dt>
138
- <dd><pre class="code"><span class='lbrace'>{</span>
139
- <span class='kw'>nil</span> <span class='op'>=&gt;</span> <span class='const'><span class='object_link'><a href="NullRenderer.html" title="RichTextRenderer::NullRenderer (class)">NullRenderer</a></span></span><span class='comma'>,</span>
140
- <span class='tstring'><span class='tstring_beg'>&#39;</span><span class='tstring_content'>document</span><span class='tstring_end'>&#39;</span></span> <span class='op'>=&gt;</span> <span class='const'><span class='object_link'><a href="DocumentRenderer.html" title="RichTextRenderer::DocumentRenderer (class)">DocumentRenderer</a></span></span><span class='comma'>,</span>
141
- <span class='tstring'><span class='tstring_beg'>&#39;</span><span class='tstring_content'>heading-1</span><span class='tstring_end'>&#39;</span></span> <span class='op'>=&gt;</span> <span class='const'><span class='object_link'><a href="HeadingOneRenderer.html" title="RichTextRenderer::HeadingOneRenderer (class)">HeadingOneRenderer</a></span></span><span class='comma'>,</span>
142
- <span class='tstring'><span class='tstring_beg'>&#39;</span><span class='tstring_content'>heading-2</span><span class='tstring_end'>&#39;</span></span> <span class='op'>=&gt;</span> <span class='const'><span class='object_link'><a href="HeadingTwoRenderer.html" title="RichTextRenderer::HeadingTwoRenderer (class)">HeadingTwoRenderer</a></span></span><span class='comma'>,</span>
143
- <span class='tstring'><span class='tstring_beg'>&#39;</span><span class='tstring_content'>heading-3</span><span class='tstring_end'>&#39;</span></span> <span class='op'>=&gt;</span> <span class='const'><span class='object_link'><a href="HeadingThreeRenderer.html" title="RichTextRenderer::HeadingThreeRenderer (class)">HeadingThreeRenderer</a></span></span><span class='comma'>,</span>
144
- <span class='tstring'><span class='tstring_beg'>&#39;</span><span class='tstring_content'>heading-4</span><span class='tstring_end'>&#39;</span></span> <span class='op'>=&gt;</span> <span class='const'><span class='object_link'><a href="HeadingFourRenderer.html" title="RichTextRenderer::HeadingFourRenderer (class)">HeadingFourRenderer</a></span></span><span class='comma'>,</span>
145
- <span class='tstring'><span class='tstring_beg'>&#39;</span><span class='tstring_content'>heading-5</span><span class='tstring_end'>&#39;</span></span> <span class='op'>=&gt;</span> <span class='const'><span class='object_link'><a href="HeadingFiveRenderer.html" title="RichTextRenderer::HeadingFiveRenderer (class)">HeadingFiveRenderer</a></span></span><span class='comma'>,</span>
146
- <span class='tstring'><span class='tstring_beg'>&#39;</span><span class='tstring_content'>heading-6</span><span class='tstring_end'>&#39;</span></span> <span class='op'>=&gt;</span> <span class='const'><span class='object_link'><a href="HeadingSixRenderer.html" title="RichTextRenderer::HeadingSixRenderer (class)">HeadingSixRenderer</a></span></span><span class='comma'>,</span>
147
- <span class='tstring'><span class='tstring_beg'>&#39;</span><span class='tstring_content'>blockquote</span><span class='tstring_end'>&#39;</span></span> <span class='op'>=&gt;</span> <span class='const'><span class='object_link'><a href="BlockQuoteRenderer.html" title="RichTextRenderer::BlockQuoteRenderer (class)">BlockQuoteRenderer</a></span></span><span class='comma'>,</span>
148
- <span class='tstring'><span class='tstring_beg'>&#39;</span><span class='tstring_content'>hyperlink</span><span class='tstring_end'>&#39;</span></span> <span class='op'>=&gt;</span> <span class='const'><span class='object_link'><a href="HyperlinkRenderer.html" title="RichTextRenderer::HyperlinkRenderer (class)">HyperlinkRenderer</a></span></span><span class='comma'>,</span>
149
- <span class='tstring'><span class='tstring_beg'>&#39;</span><span class='tstring_content'>paragraph</span><span class='tstring_end'>&#39;</span></span> <span class='op'>=&gt;</span> <span class='const'><span class='object_link'><a href="ParagraphRenderer.html" title="RichTextRenderer::ParagraphRenderer (class)">ParagraphRenderer</a></span></span><span class='comma'>,</span>
150
- <span class='tstring'><span class='tstring_beg'>&#39;</span><span class='tstring_content'>list-item</span><span class='tstring_end'>&#39;</span></span> <span class='op'>=&gt;</span> <span class='const'><span class='object_link'><a href="ListItemRenderer.html" title="RichTextRenderer::ListItemRenderer (class)">ListItemRenderer</a></span></span><span class='comma'>,</span>
151
- <span class='tstring'><span class='tstring_beg'>&#39;</span><span class='tstring_content'>ordered-list</span><span class='tstring_end'>&#39;</span></span> <span class='op'>=&gt;</span> <span class='const'><span class='object_link'><a href="OrderedListRenderer.html" title="RichTextRenderer::OrderedListRenderer (class)">OrderedListRenderer</a></span></span><span class='comma'>,</span>
152
- <span class='tstring'><span class='tstring_beg'>&#39;</span><span class='tstring_content'>unordered-list</span><span class='tstring_end'>&#39;</span></span> <span class='op'>=&gt;</span> <span class='const'><span class='object_link'><a href="UnorderedListRenderer.html" title="RichTextRenderer::UnorderedListRenderer (class)">UnorderedListRenderer</a></span></span><span class='comma'>,</span>
153
- <span class='tstring'><span class='tstring_beg'>&#39;</span><span class='tstring_content'>embedded-entry-block</span><span class='tstring_end'>&#39;</span></span> <span class='op'>=&gt;</span> <span class='const'><span class='object_link'><a href="EntryBlockRenderer.html" title="RichTextRenderer::EntryBlockRenderer (class)">EntryBlockRenderer</a></span></span><span class='comma'>,</span>
154
- <span class='tstring'><span class='tstring_beg'>&#39;</span><span class='tstring_content'>hr</span><span class='tstring_end'>&#39;</span></span> <span class='op'>=&gt;</span> <span class='const'><span class='object_link'><a href="HrRenderer.html" title="RichTextRenderer::HrRenderer (class)">HrRenderer</a></span></span><span class='comma'>,</span>
155
- <span class='tstring'><span class='tstring_beg'>&#39;</span><span class='tstring_content'>text</span><span class='tstring_end'>&#39;</span></span> <span class='op'>=&gt;</span> <span class='const'><span class='object_link'><a href="TextRenderer.html" title="RichTextRenderer::TextRenderer (class)">TextRenderer</a></span></span><span class='comma'>,</span>
156
- <span class='tstring'><span class='tstring_beg'>&#39;</span><span class='tstring_content'>bold</span><span class='tstring_end'>&#39;</span></span> <span class='op'>=&gt;</span> <span class='const'><span class='object_link'><a href="BoldRenderer.html" title="RichTextRenderer::BoldRenderer (class)">BoldRenderer</a></span></span><span class='comma'>,</span>
157
- <span class='tstring'><span class='tstring_beg'>&#39;</span><span class='tstring_content'>code</span><span class='tstring_end'>&#39;</span></span> <span class='op'>=&gt;</span> <span class='const'><span class='object_link'><a href="CodeRenderer.html" title="RichTextRenderer::CodeRenderer (class)">CodeRenderer</a></span></span><span class='comma'>,</span>
158
- <span class='tstring'><span class='tstring_beg'>&#39;</span><span class='tstring_content'>italic</span><span class='tstring_end'>&#39;</span></span> <span class='op'>=&gt;</span> <span class='const'><span class='object_link'><a href="ItalicRenderer.html" title="RichTextRenderer::ItalicRenderer (class)">ItalicRenderer</a></span></span><span class='comma'>,</span>
159
- <span class='tstring'><span class='tstring_beg'>&#39;</span><span class='tstring_content'>underline</span><span class='tstring_end'>&#39;</span></span> <span class='op'>=&gt;</span> <span class='const'><span class='object_link'><a href="UnderlineRenderer.html" title="RichTextRenderer::UnderlineRenderer (class)">UnderlineRenderer</a></span></span>
160
- <span class='rbrace'>}</span></pre></dd>
161
-
162
- </dl>
163
-
164
-
165
-
166
-
167
-
168
-
169
-
170
- <h2>Instance Attribute Summary</h2>
171
-
172
- <h3 class="inherited">Attributes inherited from <span class='object_link'><a href="BaseNodeRenderer.html" title="RichTextRenderer::BaseNodeRenderer (class)">BaseNodeRenderer</a></span></h3>
173
- <p class="inherited"><span class='object_link'><a href="BaseNodeRenderer.html#mappings-instance_method" title="RichTextRenderer::BaseNodeRenderer#mappings (method)">#mappings</a></span></p>
174
-
175
-
176
-
177
- <h2>
178
- Instance Method Summary
179
- <small><a href="#" class="summary_toggle">collapse</a></small>
180
- </h2>
181
-
182
- <ul class="summary">
183
-
184
- <li class="public ">
185
- <span class="summary_signature">
186
-
187
- <a href="#initialize-instance_method" title="#initialize (instance method)">#<strong>initialize</strong>(mappings = {}) &#x21d2; Renderer </a>
188
-
189
-
190
-
191
- </span>
192
-
193
-
194
- <span class="note title constructor">constructor</span>
195
-
196
-
197
-
198
-
199
-
200
-
201
-
202
-
203
- <span class="summary_desc"><div class='inline'>
204
- <p>A new instance of Renderer.</p>
205
- </div></span>
206
-
207
- </li>
208
-
209
-
210
- <li class="public ">
211
- <span class="summary_signature">
212
-
213
- <a href="#render-instance_method" title="#render (instance method)">#<strong>render</strong>(document) &#x21d2; Object </a>
214
-
215
-
216
-
217
- </span>
218
-
219
-
220
-
221
-
222
-
223
-
224
-
225
-
226
-
227
- <span class="summary_desc"><div class='inline'>
228
- <p>Returns a rendered RichText document.</p>
229
- </div></span>
230
-
231
- </li>
232
-
233
-
234
- </ul>
235
-
236
-
237
-
238
-
239
-
240
-
241
-
242
-
243
- <div id="constructor_details" class="method_details_list">
244
- <h2>Constructor Details</h2>
245
-
246
- <div class="method_details first">
247
- <h3 class="signature first" id="initialize-instance_method">
248
-
249
- #<strong>initialize</strong>(mappings = {}) &#x21d2; <tt><span class='object_link'><a href="" title="RichTextRenderer::Renderer (class)">Renderer</a></span></tt>
250
-
251
-
252
-
253
-
254
-
255
- </h3><div class="docstring">
256
- <div class="discussion">
257
-
258
- <p>Returns a new instance of Renderer</p>
259
-
260
-
261
- </div>
262
- </div>
263
- <div class="tags">
264
-
265
-
266
- </div><table class="source_code">
267
- <tr>
268
- <td>
269
- <pre class="lines">
270
-
271
-
272
- 36
273
- 37
274
- 38</pre>
275
- </td>
276
- <td>
277
- <pre class="code"><span class="info file"># File 'lib/rich_text_renderer/renderer.rb', line 36</span>
278
-
279
- <span class='kw'>def</span> <span class='id identifier rubyid_initialize'>initialize</span><span class='lparen'>(</span><span class='id identifier rubyid_mappings'>mappings</span> <span class='op'>=</span> <span class='lbrace'>{</span><span class='rbrace'>}</span><span class='rparen'>)</span>
280
- <span class='ivar'>@mappings</span> <span class='op'>=</span> <span class='const'><span class='object_link'><a href="#DEFAULT_MAPPINGS-constant" title="RichTextRenderer::Renderer::DEFAULT_MAPPINGS (constant)">DEFAULT_MAPPINGS</a></span></span><span class='period'>.</span><span class='id identifier rubyid_merge'>merge</span><span class='lparen'>(</span><span class='id identifier rubyid_mappings'>mappings</span><span class='rparen'>)</span>
281
- <span class='kw'>end</span></pre>
282
- </td>
283
- </tr>
284
- </table>
285
- </div>
286
-
287
- </div>
288
-
289
-
290
- <div id="instance_method_details" class="method_details_list">
291
- <h2>Instance Method Details</h2>
292
-
293
-
294
- <div class="method_details first">
295
- <h3 class="signature first" id="render-instance_method">
296
-
297
- #<strong>render</strong>(document) &#x21d2; <tt>Object</tt>
298
-
299
-
300
-
301
-
302
-
303
- </h3><div class="docstring">
304
- <div class="discussion">
305
-
306
- <p>Returns a rendered RichText document</p>
307
-
308
-
309
- </div>
310
- </div>
311
- <div class="tags">
312
-
313
-
314
- </div><table class="source_code">
315
- <tr>
316
- <td>
317
- <pre class="lines">
318
-
319
-
320
- 41
321
- 42
322
- 43
323
- 44</pre>
324
- </td>
325
- <td>
326
- <pre class="code"><span class="info file"># File 'lib/rich_text_renderer/renderer.rb', line 41</span>
327
-
328
- <span class='kw'>def</span> <span class='id identifier rubyid_render'>render</span><span class='lparen'>(</span><span class='id identifier rubyid_document'>document</span><span class='rparen'>)</span>
329
- <span class='id identifier rubyid_renderer'>renderer</span> <span class='op'>=</span> <span class='id identifier rubyid_find_renderer'>find_renderer</span><span class='lparen'>(</span><span class='id identifier rubyid_document'>document</span><span class='rparen'>)</span>
330
- <span class='id identifier rubyid_renderer'>renderer</span><span class='period'>.</span><span class='id identifier rubyid_render'>render</span><span class='lparen'>(</span><span class='id identifier rubyid_document'>document</span><span class='rparen'>)</span> <span class='kw'>unless</span> <span class='id identifier rubyid_renderer'>renderer</span><span class='period'>.</span><span class='id identifier rubyid_nil?'>nil?</span>
331
- <span class='kw'>end</span></pre>
332
- </td>
333
- </tr>
334
- </table>
335
- </div>
336
-
337
- </div>
338
-
339
- </div>
340
-
341
- <div id="footer">
342
- Generated on Mon Oct 15 14:58:22 2018 by
343
- <a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
344
- 0.9.16 (ruby-2.5.1).
345
- </div>
346
-
347
- </div>
348
- </body>
349
- </html>
@@ -1,254 +0,0 @@
1
- <!DOCTYPE html>
2
- <html>
3
- <head>
4
- <meta charset="utf-8">
5
- <meta name="viewport" content="width=device-width, initial-scale=1.0">
6
- <title>
7
- Class: RichTextRenderer::TextRenderer
8
-
9
- &mdash; Documentation by YARD 0.9.16
10
-
11
- </title>
12
-
13
- <link rel="stylesheet" href="../css/style.css" type="text/css" charset="utf-8" />
14
-
15
- <link rel="stylesheet" href="../css/common.css" type="text/css" charset="utf-8" />
16
-
17
- <script type="text/javascript" charset="utf-8">
18
- pathId = "RichTextRenderer::TextRenderer";
19
- relpath = '../';
20
- </script>
21
-
22
-
23
- <script type="text/javascript" charset="utf-8" src="../js/jquery.js"></script>
24
-
25
- <script type="text/javascript" charset="utf-8" src="../js/app.js"></script>
26
-
27
-
28
- </head>
29
- <body>
30
- <div class="nav_wrap">
31
- <iframe id="nav" src="../class_list.html?1"></iframe>
32
- <div id="resizer"></div>
33
- </div>
34
-
35
- <div id="main" tabindex="-1">
36
- <div id="header">
37
- <div id="menu">
38
-
39
- <a href="../_index.html">Index (T)</a> &raquo;
40
- <span class='title'><span class='object_link'><a href="../RichTextRenderer.html" title="RichTextRenderer (module)">RichTextRenderer</a></span></span>
41
- &raquo;
42
- <span class="title">TextRenderer</span>
43
-
44
- </div>
45
-
46
- <div id="search">
47
-
48
- <a class="full_list_link" id="class_list_link"
49
- href="../class_list.html">
50
-
51
- <svg width="24" height="24">
52
- <rect x="0" y="4" width="24" height="4" rx="1" ry="1"></rect>
53
- <rect x="0" y="12" width="24" height="4" rx="1" ry="1"></rect>
54
- <rect x="0" y="20" width="24" height="4" rx="1" ry="1"></rect>
55
- </svg>
56
- </a>
57
-
58
- </div>
59
- <div class="clear"></div>
60
- </div>
61
-
62
- <div id="content"><h1>Class: RichTextRenderer::TextRenderer
63
-
64
-
65
-
66
- </h1>
67
- <div class="box_info">
68
-
69
- <dl>
70
- <dt>Inherits:</dt>
71
- <dd>
72
- <span class="inheritName"><span class='object_link'><a href="BaseNodeRenderer.html" title="RichTextRenderer::BaseNodeRenderer (class)">BaseNodeRenderer</a></span></span>
73
-
74
- <ul class="fullTree">
75
- <li>Object</li>
76
-
77
- <li class="next"><span class='object_link'><a href="BaseNodeRenderer.html" title="RichTextRenderer::BaseNodeRenderer (class)">BaseNodeRenderer</a></span></li>
78
-
79
- <li class="next">RichTextRenderer::TextRenderer</li>
80
-
81
- </ul>
82
- <a href="#" class="inheritanceTree">show all</a>
83
-
84
- </dd>
85
- </dl>
86
-
87
-
88
-
89
-
90
-
91
-
92
-
93
-
94
-
95
-
96
-
97
- <dl>
98
- <dt>Defined in:</dt>
99
- <dd>lib/rich_text_renderer/text_renderers/text_renderer.rb</dd>
100
- </dl>
101
-
102
- </div>
103
-
104
- <h2>Overview</h2><div class="docstring">
105
- <div class="discussion">
106
-
107
- <p>Renderer for Text nodes.</p>
108
-
109
-
110
- </div>
111
- </div>
112
- <div class="tags">
113
-
114
-
115
- </div>
116
-
117
-
118
-
119
-
120
-
121
- <h2>Instance Attribute Summary</h2>
122
-
123
- <h3 class="inherited">Attributes inherited from <span class='object_link'><a href="BaseNodeRenderer.html" title="RichTextRenderer::BaseNodeRenderer (class)">BaseNodeRenderer</a></span></h3>
124
- <p class="inherited"><span class='object_link'><a href="BaseNodeRenderer.html#mappings-instance_method" title="RichTextRenderer::BaseNodeRenderer#mappings (method)">#mappings</a></span></p>
125
-
126
-
127
-
128
- <h2>
129
- Instance Method Summary
130
- <small><a href="#" class="summary_toggle">collapse</a></small>
131
- </h2>
132
-
133
- <ul class="summary">
134
-
135
- <li class="public ">
136
- <span class="summary_signature">
137
-
138
- <a href="#render-instance_method" title="#render (instance method)">#<strong>render</strong>(node) &#x21d2; Object </a>
139
-
140
-
141
-
142
- </span>
143
-
144
-
145
-
146
-
147
-
148
-
149
-
150
-
151
-
152
- <span class="summary_desc"><div class='inline'>
153
- <p>Renders text nodes with all markings.</p>
154
- </div></span>
155
-
156
- </li>
157
-
158
-
159
- </ul>
160
-
161
-
162
-
163
-
164
-
165
-
166
-
167
-
168
-
169
-
170
-
171
- <h3 class="inherited">Methods inherited from <span class='object_link'><a href="BaseNodeRenderer.html" title="RichTextRenderer::BaseNodeRenderer (class)">BaseNodeRenderer</a></span></h3>
172
- <p class="inherited"><span class='object_link'><a href="BaseNodeRenderer.html#initialize-instance_method" title="RichTextRenderer::BaseNodeRenderer#initialize (method)">#initialize</a></span></p>
173
- <div id="constructor_details" class="method_details_list">
174
- <h2>Constructor Details</h2>
175
-
176
- <p class="notice">This class inherits a constructor from <span class='object_link'><a href="BaseNodeRenderer.html#initialize-instance_method" title="RichTextRenderer::BaseNodeRenderer#initialize (method)">RichTextRenderer::BaseNodeRenderer</a></span></p>
177
-
178
- </div>
179
-
180
-
181
- <div id="instance_method_details" class="method_details_list">
182
- <h2>Instance Method Details</h2>
183
-
184
-
185
- <div class="method_details first">
186
- <h3 class="signature first" id="render-instance_method">
187
-
188
- #<strong>render</strong>(node) &#x21d2; <tt>Object</tt>
189
-
190
-
191
-
192
-
193
-
194
- </h3><div class="docstring">
195
- <div class="discussion">
196
-
197
- <p>Renders text nodes with all markings.</p>
198
-
199
-
200
- </div>
201
- </div>
202
- <div class="tags">
203
-
204
-
205
- </div><table class="source_code">
206
- <tr>
207
- <td>
208
- <pre class="lines">
209
-
210
-
211
- 7
212
- 8
213
- 9
214
- 10
215
- 11
216
- 12
217
- 13
218
- 14
219
- 15
220
- 16
221
- 17</pre>
222
- </td>
223
- <td>
224
- <pre class="code"><span class="info file"># File 'lib/rich_text_renderer/text_renderers/text_renderer.rb', line 7</span>
225
-
226
- <span class='kw'>def</span> <span class='id identifier rubyid_render'>render</span><span class='lparen'>(</span><span class='id identifier rubyid_node'>node</span><span class='rparen'>)</span>
227
- <span class='id identifier rubyid_node'>node</span> <span class='op'>=</span> <span class='const'>Marshal</span><span class='period'>.</span><span class='id identifier rubyid_load'>load</span><span class='lparen'>(</span><span class='const'>Marshal</span><span class='period'>.</span><span class='id identifier rubyid_dump'>dump</span><span class='lparen'>(</span><span class='id identifier rubyid_node'>node</span><span class='rparen'>)</span><span class='rparen'>)</span> <span class='comment'># Clone the node
228
- </span>
229
- <span class='id identifier rubyid_node'>node</span><span class='period'>.</span><span class='id identifier rubyid_fetch'>fetch</span><span class='lparen'>(</span><span class='tstring'><span class='tstring_beg'>&#39;</span><span class='tstring_content'>marks</span><span class='tstring_end'>&#39;</span></span><span class='comma'>,</span> <span class='lbracket'>[</span><span class='rbracket'>]</span><span class='rparen'>)</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_mark'>mark</span><span class='op'>|</span>
230
- <span class='id identifier rubyid_renderer'>renderer</span> <span class='op'>=</span> <span class='id identifier rubyid_mappings'>mappings</span><span class='lbracket'>[</span><span class='id identifier rubyid_mark'>mark</span><span class='lbracket'>[</span><span class='tstring'><span class='tstring_beg'>&#39;</span><span class='tstring_content'>type</span><span class='tstring_end'>&#39;</span></span><span class='rbracket'>]</span><span class='rbracket'>]</span>
231
- <span class='kw'>return</span> <span class='id identifier rubyid_mappings'>mappings</span><span class='lbracket'>[</span><span class='kw'>nil</span><span class='rbracket'>]</span><span class='period'>.</span><span class='id identifier rubyid_new'>new</span><span class='lparen'>(</span><span class='id identifier rubyid_mappings'>mappings</span><span class='rparen'>)</span><span class='period'>.</span><span class='id identifier rubyid_render'>render</span><span class='lparen'>(</span><span class='id identifier rubyid_mark'>mark</span><span class='rparen'>)</span> <span class='kw'>if</span> <span class='id identifier rubyid_renderer'>renderer</span><span class='period'>.</span><span class='id identifier rubyid_nil?'>nil?</span> <span class='op'>&amp;&amp;</span> <span class='id identifier rubyid_mappings'>mappings</span><span class='period'>.</span><span class='id identifier rubyid_key?'>key?</span><span class='lparen'>(</span><span class='kw'>nil</span><span class='rparen'>)</span>
232
- <span class='id identifier rubyid_node'>node</span><span class='lbracket'>[</span><span class='tstring'><span class='tstring_beg'>&#39;</span><span class='tstring_content'>value</span><span class='tstring_end'>&#39;</span></span><span class='rbracket'>]</span> <span class='op'>=</span> <span class='id identifier rubyid_renderer'>renderer</span><span class='period'>.</span><span class='id identifier rubyid_new'>new</span><span class='lparen'>(</span><span class='id identifier rubyid_mappings'>mappings</span><span class='rparen'>)</span><span class='period'>.</span><span class='id identifier rubyid_render'>render</span><span class='lparen'>(</span><span class='id identifier rubyid_node'>node</span><span class='rparen'>)</span> <span class='kw'>unless</span> <span class='id identifier rubyid_renderer'>renderer</span><span class='period'>.</span><span class='id identifier rubyid_nil?'>nil?</span>
233
- <span class='kw'>end</span>
234
-
235
- <span class='id identifier rubyid_node'>node</span><span class='lbracket'>[</span><span class='tstring'><span class='tstring_beg'>&#39;</span><span class='tstring_content'>value</span><span class='tstring_end'>&#39;</span></span><span class='rbracket'>]</span>
236
- <span class='kw'>end</span></pre>
237
- </td>
238
- </tr>
239
- </table>
240
- </div>
241
-
242
- </div>
243
-
244
- </div>
245
-
246
- <div id="footer">
247
- Generated on Mon Oct 15 14:58:22 2018 by
248
- <a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
249
- 0.9.16 (ruby-2.5.1).
250
- </div>
251
-
252
- </div>
253
- </body>
254
- </html>