html2rss 0.4.1 → 0.5.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (46) hide show
  1. checksums.yaml +4 -4
  2. data/.rubocop.yml +3 -0
  3. data/CHANGELOG.md +10 -1
  4. data/Gemfile.lock +3 -1
  5. data/README.md +35 -2
  6. data/html2rss.gemspec +1 -0
  7. data/lib/html2rss/attribute_post_processors/sanitize_html.rb +1 -3
  8. data/lib/html2rss/config.rb +4 -0
  9. data/lib/html2rss/item.rb +7 -4
  10. data/lib/html2rss/utils.rb +8 -0
  11. data/lib/html2rss/version.rb +1 -1
  12. metadata +15 -35
  13. data/docs/Html2rss.html +0 -353
  14. data/docs/Html2rss/AttributePostProcessors.html +0 -203
  15. data/docs/Html2rss/AttributePostProcessors/HtmlToMarkdown.html +0 -325
  16. data/docs/Html2rss/AttributePostProcessors/ParseTime.html +0 -326
  17. data/docs/Html2rss/AttributePostProcessors/ParseUri.html +0 -314
  18. data/docs/Html2rss/AttributePostProcessors/SanitizeHtml.html +0 -367
  19. data/docs/Html2rss/AttributePostProcessors/Substring.html +0 -321
  20. data/docs/Html2rss/AttributePostProcessors/Template.html +0 -336
  21. data/docs/Html2rss/Config.html +0 -847
  22. data/docs/Html2rss/FeedBuilder.html +0 -295
  23. data/docs/Html2rss/Item.html +0 -660
  24. data/docs/Html2rss/ItemExtractors.html +0 -297
  25. data/docs/Html2rss/ItemExtractors/Attribute.html +0 -317
  26. data/docs/Html2rss/ItemExtractors/CurrentTime.html +0 -297
  27. data/docs/Html2rss/ItemExtractors/Href.html +0 -319
  28. data/docs/Html2rss/ItemExtractors/Html.html +0 -314
  29. data/docs/Html2rss/ItemExtractors/Static.html +0 -301
  30. data/docs/Html2rss/ItemExtractors/Text.html +0 -312
  31. data/docs/Html2rss/Utils.html +0 -200
  32. data/docs/Html2rss/Utils/IndifferentAccessHash.html +0 -142
  33. data/docs/_index.html +0 -307
  34. data/docs/class_list.html +0 -51
  35. data/docs/css/common.css +0 -1
  36. data/docs/css/full_list.css +0 -58
  37. data/docs/css/style.css +0 -496
  38. data/docs/file.README.html +0 -135
  39. data/docs/file_list.html +0 -56
  40. data/docs/frames.html +0 -17
  41. data/docs/index.html +0 -135
  42. data/docs/js/app.js +0 -303
  43. data/docs/js/full_list.js +0 -216
  44. data/docs/js/jquery.js +0 -4
  45. data/docs/method_list.html +0 -467
  46. data/docs/top-level-namespace.html +0 -110
@@ -1,336 +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: Html2rss::AttributePostProcessors::Template
8
-
9
- &mdash; Documentation by YARD 0.9.20
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 = "Html2rss::AttributePostProcessors::Template";
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="../../Html2rss.html" title="Html2rss (module)">Html2rss</a></span></span> &raquo; <span class='title'><span class='object_link'><a href="../AttributePostProcessors.html" title="Html2rss::AttributePostProcessors (module)">AttributePostProcessors</a></span></span>
41
- &raquo;
42
- <span class="title">Template</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: Html2rss::AttributePostProcessors::Template
63
-
64
-
65
-
66
- </h1>
67
- <div class="box_info">
68
-
69
- <dl>
70
- <dt>Inherits:</dt>
71
- <dd>
72
- <span class="inheritName">Object</span>
73
-
74
- <ul class="fullTree">
75
- <li>Object</li>
76
-
77
- <li class="next">Html2rss::AttributePostProcessors::Template</li>
78
-
79
- </ul>
80
- <a href="#" class="inheritanceTree">show all</a>
81
-
82
- </dd>
83
- </dl>
84
-
85
-
86
-
87
-
88
-
89
-
90
-
91
-
92
-
93
-
94
-
95
- <dl>
96
- <dt>Defined in:</dt>
97
- <dd>lib/html2rss/attribute_post_processors/template.rb</dd>
98
- </dl>
99
-
100
- </div>
101
-
102
- <h2>Overview</h2><div class="docstring">
103
- <div class="discussion">
104
-
105
- <p>Returns a formatted String according to the string pattern.</p>
106
-
107
- <p>If <code>self</code> is given as a method, the extracted value will be used.</p>
108
-
109
- <p>Imagine this HTML:</p>
110
-
111
- <pre class="code ruby"><code class="ruby">&lt;li&gt;
112
- &lt;h1&gt;Product&lt;/h1&gt;
113
- &lt;span class=&quot;price&quot;&gt;23,42€&lt;/span&gt;
114
- &lt;/li&gt;
115
- </code></pre>
116
-
117
- <p>YAML usage example:</p>
118
-
119
- <pre class="code ruby"><code class="ruby">selectors:
120
- items:
121
- selector: &#39;li&#39;
122
- price:
123
- selector: &#39;.price&#39;
124
- title:
125
- selector: h1
126
- post_process:
127
- name: template
128
- string: &#39;%s (%s)&#39;
129
- methods:
130
- - self
131
- - price
132
- </code></pre>
133
-
134
- <p>Would return:</p>
135
-
136
- <pre class="code ruby"><code class="ruby"><span class='tstring'><span class='tstring_beg'>&#39;</span><span class='tstring_content'>Product (23,42€)</span><span class='tstring_end'>&#39;</span></span>
137
- </code></pre>
138
-
139
-
140
- </div>
141
- </div>
142
- <div class="tags">
143
-
144
-
145
- </div>
146
-
147
-
148
-
149
-
150
-
151
-
152
-
153
- <h2>
154
- Instance Method Summary
155
- <small><a href="#" class="summary_toggle">collapse</a></small>
156
- </h2>
157
-
158
- <ul class="summary">
159
-
160
- <li class="public ">
161
- <span class="summary_signature">
162
-
163
- <a href="#get-instance_method" title="#get (instance method)">#<strong>get</strong> &#x21d2; String </a>
164
-
165
-
166
-
167
- </span>
168
-
169
-
170
-
171
-
172
-
173
-
174
-
175
-
176
-
177
- <span class="summary_desc"><div class='inline'><ul><li>
178
- <p>uses <a href="http://ruby-doc.org/core-2.6.3/String.html#method-i-25" target="_parent" title="String#%">String#%</a>.</p>
179
- </li></ul>
180
- </div></span>
181
-
182
- </li>
183
-
184
-
185
- <li class="public ">
186
- <span class="summary_signature">
187
-
188
- <a href="#initialize-instance_method" title="#initialize (instance method)">#<strong>initialize</strong>(value, env) &#x21d2; Template </a>
189
-
190
-
191
-
192
- </span>
193
-
194
-
195
- <span class="note title constructor">constructor</span>
196
-
197
-
198
-
199
-
200
-
201
-
202
-
203
-
204
- <span class="summary_desc"><div class='inline'>
205
- <p>A new instance of Template.</p>
206
- </div></span>
207
-
208
- </li>
209
-
210
-
211
- </ul>
212
-
213
-
214
- <div id="constructor_details" class="method_details_list">
215
- <h2>Constructor Details</h2>
216
-
217
- <div class="method_details first">
218
- <h3 class="signature first" id="initialize-instance_method">
219
-
220
- #<strong>initialize</strong>(value, env) &#x21d2; <tt><span class='object_link'><a href="" title="Html2rss::AttributePostProcessors::Template (class)">Template</a></span></tt>
221
-
222
-
223
-
224
-
225
-
226
- </h3><div class="docstring">
227
- <div class="discussion">
228
-
229
- <p>Returns a new instance of Template</p>
230
-
231
-
232
- </div>
233
- </div>
234
- <div class="tags">
235
-
236
-
237
- </div><table class="source_code">
238
- <tr>
239
- <td>
240
- <pre class="lines">
241
-
242
-
243
- 34
244
- 35
245
- 36
246
- 37
247
- 38</pre>
248
- </td>
249
- <td>
250
- <pre class="code"><span class="info file"># File 'lib/html2rss/attribute_post_processors/template.rb', line 34</span>
251
-
252
- <span class='kw'>def</span> <span class='id identifier rubyid_initialize'>initialize</span><span class='lparen'>(</span><span class='id identifier rubyid_value'>value</span><span class='comma'>,</span> <span class='id identifier rubyid_env'>env</span><span class='rparen'>)</span>
253
- <span class='ivar'>@value</span> <span class='op'>=</span> <span class='id identifier rubyid_value'>value</span>
254
- <span class='ivar'>@options</span> <span class='op'>=</span> <span class='id identifier rubyid_env'>env</span><span class='lbracket'>[</span><span class='symbol'>:options</span><span class='rbracket'>]</span>
255
- <span class='ivar'>@item</span> <span class='op'>=</span> <span class='id identifier rubyid_env'>env</span><span class='lbracket'>[</span><span class='symbol'>:item</span><span class='rbracket'>]</span>
256
- <span class='kw'>end</span></pre>
257
- </td>
258
- </tr>
259
- </table>
260
- </div>
261
-
262
- </div>
263
-
264
-
265
- <div id="instance_method_details" class="method_details_list">
266
- <h2>Instance Method Details</h2>
267
-
268
-
269
- <div class="method_details first">
270
- <h3 class="signature first" id="get-instance_method">
271
-
272
- #<strong>get</strong> &#x21d2; <tt>String</tt>
273
-
274
-
275
-
276
-
277
-
278
- </h3><div class="docstring">
279
- <div class="discussion">
280
- <ul><li>
281
- <p>uses <a href="http://ruby-doc.org/core-2.6.3/String.html#method-i-25" target="_parent" title="String#%">String#%</a></p>
282
- </li></ul>
283
-
284
-
285
- </div>
286
- </div>
287
- <div class="tags">
288
-
289
- <p class="tag_title">Returns:</p>
290
- <ul class="return">
291
-
292
- <li>
293
-
294
-
295
- <span class='type'>(<tt>String</tt>)</span>
296
-
297
-
298
-
299
- </li>
300
-
301
- </ul>
302
-
303
- </div><table class="source_code">
304
- <tr>
305
- <td>
306
- <pre class="lines">
307
-
308
-
309
- 43
310
- 44
311
- 45</pre>
312
- </td>
313
- <td>
314
- <pre class="code"><span class="info file"># File 'lib/html2rss/attribute_post_processors/template.rb', line 43</span>
315
-
316
- <span class='kw'>def</span> <span class='id identifier rubyid_get'>get</span>
317
- <span class='id identifier rubyid_string'>string</span> <span class='op'>%</span> <span class='id identifier rubyid_methods'>methods</span>
318
- <span class='kw'>end</span></pre>
319
- </td>
320
- </tr>
321
- </table>
322
- </div>
323
-
324
- </div>
325
-
326
- </div>
327
-
328
- <div id="footer">
329
- Generated on Wed Sep 18 12:52:16 2019 by
330
- <a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
331
- 0.9.20 (ruby-2.6.3).
332
- </div>
333
-
334
- </div>
335
- </body>
336
- </html>
@@ -1,847 +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: Html2rss::Config
8
-
9
- &mdash; Documentation by YARD 0.9.20
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 = "Html2rss::Config";
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 (C)</a> &raquo;
40
- <span class='title'><span class='object_link'><a href="../Html2rss.html" title="Html2rss (module)">Html2rss</a></span></span>
41
- &raquo;
42
- <span class="title">Config</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: Html2rss::Config
63
-
64
-
65
-
66
- </h1>
67
- <div class="box_info">
68
-
69
- <dl>
70
- <dt>Inherits:</dt>
71
- <dd>
72
- <span class="inheritName">Object</span>
73
-
74
- <ul class="fullTree">
75
- <li>Object</li>
76
-
77
- <li class="next">Html2rss::Config</li>
78
-
79
- </ul>
80
- <a href="#" class="inheritanceTree">show all</a>
81
-
82
- </dd>
83
- </dl>
84
-
85
-
86
-
87
-
88
-
89
-
90
-
91
-
92
-
93
-
94
-
95
- <dl>
96
- <dt>Defined in:</dt>
97
- <dd>lib/html2rss/config.rb</dd>
98
- </dl>
99
-
100
- </div>
101
-
102
-
103
-
104
-
105
-
106
-
107
-
108
-
109
-
110
- <h2>
111
- Instance Method Summary
112
- <small><a href="#" class="summary_toggle">collapse</a></small>
113
- </h2>
114
-
115
- <ul class="summary">
116
-
117
- <li class="public ">
118
- <span class="summary_signature">
119
-
120
- <a href="#attribute_names-instance_method" title="#attribute_names (instance method)">#<strong>attribute_names</strong> &#x21d2; Object </a>
121
-
122
-
123
-
124
- </span>
125
-
126
-
127
-
128
-
129
-
130
-
131
-
132
-
133
-
134
- <span class="summary_desc"><div class='inline'></div></span>
135
-
136
- </li>
137
-
138
-
139
- <li class="public ">
140
- <span class="summary_signature">
141
-
142
- <a href="#author-instance_method" title="#author (instance method)">#<strong>author</strong> &#x21d2; Object </a>
143
-
144
-
145
-
146
- </span>
147
-
148
-
149
-
150
-
151
-
152
-
153
-
154
-
155
-
156
- <span class="summary_desc"><div class='inline'></div></span>
157
-
158
- </li>
159
-
160
-
161
- <li class="public ">
162
- <span class="summary_signature">
163
-
164
- <a href="#categories-instance_method" title="#categories (instance method)">#<strong>categories</strong> &#x21d2; Object </a>
165
-
166
-
167
-
168
- </span>
169
-
170
-
171
-
172
-
173
-
174
-
175
-
176
-
177
-
178
- <span class="summary_desc"><div class='inline'></div></span>
179
-
180
- </li>
181
-
182
-
183
- <li class="public ">
184
- <span class="summary_signature">
185
-
186
- <a href="#description-instance_method" title="#description (instance method)">#<strong>description</strong> &#x21d2; Object </a>
187
-
188
-
189
-
190
- </span>
191
-
192
-
193
-
194
-
195
-
196
-
197
-
198
-
199
-
200
- <span class="summary_desc"><div class='inline'></div></span>
201
-
202
- </li>
203
-
204
-
205
- <li class="public ">
206
- <span class="summary_signature">
207
-
208
- <a href="#headers-instance_method" title="#headers (instance method)">#<strong>headers</strong> &#x21d2; Object </a>
209
-
210
-
211
-
212
- </span>
213
-
214
-
215
-
216
-
217
-
218
-
219
-
220
-
221
-
222
- <span class="summary_desc"><div class='inline'></div></span>
223
-
224
- </li>
225
-
226
-
227
- <li class="public ">
228
- <span class="summary_signature">
229
-
230
- <a href="#initialize-instance_method" title="#initialize (instance method)">#<strong>initialize</strong>(feed_config, global_config = {}) &#x21d2; Config </a>
231
-
232
-
233
-
234
- </span>
235
-
236
-
237
- <span class="note title constructor">constructor</span>
238
-
239
-
240
-
241
-
242
-
243
-
244
-
245
-
246
- <span class="summary_desc"><div class='inline'>
247
- <p>A new instance of Config.</p>
248
- </div></span>
249
-
250
- </li>
251
-
252
-
253
- <li class="public ">
254
- <span class="summary_signature">
255
-
256
- <a href="#language-instance_method" title="#language (instance method)">#<strong>language</strong> &#x21d2; Object </a>
257
-
258
-
259
-
260
- </span>
261
-
262
-
263
-
264
-
265
-
266
-
267
-
268
-
269
-
270
- <span class="summary_desc"><div class='inline'></div></span>
271
-
272
- </li>
273
-
274
-
275
- <li class="public ">
276
- <span class="summary_signature">
277
-
278
- <a href="#options-instance_method" title="#options (instance method)">#<strong>options</strong>(name) &#x21d2; Object </a>
279
-
280
-
281
-
282
- </span>
283
-
284
-
285
-
286
-
287
-
288
-
289
-
290
-
291
-
292
- <span class="summary_desc"><div class='inline'></div></span>
293
-
294
- </li>
295
-
296
-
297
- <li class="public ">
298
- <span class="summary_signature">
299
-
300
- <a href="#selector-instance_method" title="#selector (instance method)">#<strong>selector</strong>(name) &#x21d2; Object </a>
301
-
302
-
303
-
304
- </span>
305
-
306
-
307
-
308
-
309
-
310
-
311
-
312
-
313
-
314
- <span class="summary_desc"><div class='inline'></div></span>
315
-
316
- </li>
317
-
318
-
319
- <li class="public ">
320
- <span class="summary_signature">
321
-
322
- <a href="#time_zone-instance_method" title="#time_zone (instance method)">#<strong>time_zone</strong> &#x21d2; Object </a>
323
-
324
-
325
-
326
- </span>
327
-
328
-
329
-
330
-
331
-
332
-
333
-
334
-
335
-
336
- <span class="summary_desc"><div class='inline'></div></span>
337
-
338
- </li>
339
-
340
-
341
- <li class="public ">
342
- <span class="summary_signature">
343
-
344
- <a href="#title-instance_method" title="#title (instance method)">#<strong>title</strong> &#x21d2; Object </a>
345
-
346
-
347
-
348
- </span>
349
-
350
-
351
-
352
-
353
-
354
-
355
-
356
-
357
-
358
- <span class="summary_desc"><div class='inline'></div></span>
359
-
360
- </li>
361
-
362
-
363
- <li class="public ">
364
- <span class="summary_signature">
365
-
366
- <a href="#ttl-instance_method" title="#ttl (instance method)">#<strong>ttl</strong> &#x21d2; Object </a>
367
-
368
-
369
-
370
- </span>
371
-
372
-
373
-
374
-
375
-
376
-
377
-
378
-
379
-
380
- <span class="summary_desc"><div class='inline'></div></span>
381
-
382
- </li>
383
-
384
-
385
- <li class="public ">
386
- <span class="summary_signature">
387
-
388
- <a href="#url-instance_method" title="#url (instance method)">#<strong>url</strong> &#x21d2; Object </a>
389
-
390
-
391
-
392
- (also: #link)
393
-
394
- </span>
395
-
396
-
397
-
398
-
399
-
400
-
401
-
402
-
403
-
404
- <span class="summary_desc"><div class='inline'></div></span>
405
-
406
- </li>
407
-
408
-
409
- </ul>
410
-
411
-
412
- <div id="constructor_details" class="method_details_list">
413
- <h2>Constructor Details</h2>
414
-
415
- <div class="method_details first">
416
- <h3 class="signature first" id="initialize-instance_method">
417
-
418
- #<strong>initialize</strong>(feed_config, global_config = {}) &#x21d2; <tt><span class='object_link'><a href="" title="Html2rss::Config (class)">Config</a></span></tt>
419
-
420
-
421
-
422
-
423
-
424
- </h3><div class="docstring">
425
- <div class="discussion">
426
-
427
- <p>Returns a new instance of Config</p>
428
-
429
-
430
- </div>
431
- </div>
432
- <div class="tags">
433
-
434
-
435
- </div><table class="source_code">
436
- <tr>
437
- <td>
438
- <pre class="lines">
439
-
440
-
441
- 3
442
- 4
443
- 5
444
- 6
445
- 7</pre>
446
- </td>
447
- <td>
448
- <pre class="code"><span class="info file"># File 'lib/html2rss/config.rb', line 3</span>
449
-
450
- <span class='kw'>def</span> <span class='id identifier rubyid_initialize'>initialize</span><span class='lparen'>(</span><span class='id identifier rubyid_feed_config'>feed_config</span><span class='comma'>,</span> <span class='id identifier rubyid_global_config'>global_config</span> <span class='op'>=</span> <span class='lbrace'>{</span><span class='rbrace'>}</span><span class='rparen'>)</span>
451
- <span class='ivar'>@global_config</span> <span class='op'>=</span> <span class='const'><span class='object_link'><a href="Utils.html" title="Html2rss::Utils (module)">Utils</a></span></span><span class='op'>::</span><span class='const'><span class='object_link'><a href="Utils/IndifferentAccessHash.html" title="Html2rss::Utils::IndifferentAccessHash (class)">IndifferentAccessHash</a></span></span><span class='period'>.</span><span class='id identifier rubyid_new'>new</span> <span class='id identifier rubyid_global_config'>global_config</span>
452
- <span class='ivar'>@feed_config</span> <span class='op'>=</span> <span class='const'><span class='object_link'><a href="Utils.html" title="Html2rss::Utils (module)">Utils</a></span></span><span class='op'>::</span><span class='const'><span class='object_link'><a href="Utils/IndifferentAccessHash.html" title="Html2rss::Utils::IndifferentAccessHash (class)">IndifferentAccessHash</a></span></span><span class='period'>.</span><span class='id identifier rubyid_new'>new</span> <span class='id identifier rubyid_feed_config'>feed_config</span>
453
- <span class='ivar'>@channel_config</span> <span class='op'>=</span> <span class='const'><span class='object_link'><a href="Utils.html" title="Html2rss::Utils (module)">Utils</a></span></span><span class='op'>::</span><span class='const'><span class='object_link'><a href="Utils/IndifferentAccessHash.html" title="Html2rss::Utils::IndifferentAccessHash (class)">IndifferentAccessHash</a></span></span><span class='period'>.</span><span class='id identifier rubyid_new'>new</span> <span class='ivar'>@feed_config</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'>channel</span><span class='tstring_end'>&#39;</span></span><span class='comma'>,</span> <span class='lbrace'>{</span><span class='rbrace'>}</span><span class='rparen'>)</span>
454
- <span class='kw'>end</span></pre>
455
- </td>
456
- </tr>
457
- </table>
458
- </div>
459
-
460
- </div>
461
-
462
-
463
- <div id="instance_method_details" class="method_details_list">
464
- <h2>Instance Method Details</h2>
465
-
466
-
467
- <div class="method_details first">
468
- <h3 class="signature first" id="attribute_names-instance_method">
469
-
470
- #<strong>attribute_names</strong> &#x21d2; <tt>Object</tt>
471
-
472
-
473
-
474
-
475
-
476
- </h3><table class="source_code">
477
- <tr>
478
- <td>
479
- <pre class="lines">
480
-
481
-
482
- 54
483
- 55
484
- 56
485
- 57
486
- 58</pre>
487
- </td>
488
- <td>
489
- <pre class="code"><span class="info file"># File 'lib/html2rss/config.rb', line 54</span>
490
-
491
- <span class='kw'>def</span> <span class='id identifier rubyid_attribute_names'>attribute_names</span>
492
- <span class='id identifier rubyid_attribute_names'>attribute_names</span> <span class='op'>=</span> <span class='id identifier rubyid_feed_config'>feed_config</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'>selectors</span><span class='tstring_end'>&#39;</span></span><span class='comma'>,</span> <span class='lbrace'>{</span><span class='rbrace'>}</span><span class='rparen'>)</span><span class='period'>.</span><span class='id identifier rubyid_keys'>keys</span><span class='period'>.</span><span class='id identifier rubyid_map'>map</span><span class='lparen'>(</span><span class='op'>&amp;</span><span class='symbol'>:to_s</span><span class='rparen'>)</span>
493
- <span class='id identifier rubyid_attribute_names'>attribute_names</span><span class='period'>.</span><span class='id identifier rubyid_delete'>delete</span><span class='lparen'>(</span><span class='tstring'><span class='tstring_beg'>&#39;</span><span class='tstring_content'>items</span><span class='tstring_end'>&#39;</span></span><span class='rparen'>)</span>
494
- <span class='id identifier rubyid_attribute_names'>attribute_names</span>
495
- <span class='kw'>end</span></pre>
496
- </td>
497
- </tr>
498
- </table>
499
- </div>
500
-
501
- <div class="method_details ">
502
- <h3 class="signature " id="author-instance_method">
503
-
504
- #<strong>author</strong> &#x21d2; <tt>Object</tt>
505
-
506
-
507
-
508
-
509
-
510
- </h3><table class="source_code">
511
- <tr>
512
- <td>
513
- <pre class="lines">
514
-
515
-
516
- 9
517
- 10
518
- 11</pre>
519
- </td>
520
- <td>
521
- <pre class="code"><span class="info file"># File 'lib/html2rss/config.rb', line 9</span>
522
-
523
- <span class='kw'>def</span> <span class='id identifier rubyid_author'>author</span>
524
- <span class='id identifier rubyid_channel_config'>channel_config</span><span class='period'>.</span><span class='id identifier rubyid_fetch'>fetch</span> <span class='tstring'><span class='tstring_beg'>&#39;</span><span class='tstring_content'>author</span><span class='tstring_end'>&#39;</span></span><span class='comma'>,</span> <span class='tstring'><span class='tstring_beg'>&#39;</span><span class='tstring_content'>html2rss</span><span class='tstring_end'>&#39;</span></span>
525
- <span class='kw'>end</span></pre>
526
- </td>
527
- </tr>
528
- </table>
529
- </div>
530
-
531
- <div class="method_details ">
532
- <h3 class="signature " id="categories-instance_method">
533
-
534
- #<strong>categories</strong> &#x21d2; <tt>Object</tt>
535
-
536
-
537
-
538
-
539
-
540
- </h3><table class="source_code">
541
- <tr>
542
- <td>
543
- <pre class="lines">
544
-
545
-
546
- 46
547
- 47
548
- 48</pre>
549
- </td>
550
- <td>
551
- <pre class="code"><span class="info file"># File 'lib/html2rss/config.rb', line 46</span>
552
-
553
- <span class='kw'>def</span> <span class='id identifier rubyid_categories'>categories</span>
554
- <span class='id identifier rubyid_feed_config'>feed_config</span><span class='period'>.</span><span class='id identifier rubyid_dig'>dig</span><span class='lparen'>(</span><span class='tstring'><span class='tstring_beg'>&#39;</span><span class='tstring_content'>selectors</span><span class='tstring_end'>&#39;</span></span><span class='rparen'>)</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'>categories</span><span class='tstring_end'>&#39;</span></span><span class='comma'>,</span> <span class='lbracket'>[</span><span class='rbracket'>]</span><span class='rparen'>)</span>
555
- <span class='kw'>end</span></pre>
556
- </td>
557
- </tr>
558
- </table>
559
- </div>
560
-
561
- <div class="method_details ">
562
- <h3 class="signature " id="description-instance_method">
563
-
564
- #<strong>description</strong> &#x21d2; <tt>Object</tt>
565
-
566
-
567
-
568
-
569
-
570
- </h3><table class="source_code">
571
- <tr>
572
- <td>
573
- <pre class="lines">
574
-
575
-
576
- 25
577
- 26
578
- 27</pre>
579
- </td>
580
- <td>
581
- <pre class="code"><span class="info file"># File 'lib/html2rss/config.rb', line 25</span>
582
-
583
- <span class='kw'>def</span> <span class='id identifier rubyid_description'>description</span>
584
- <span class='id identifier rubyid_channel_config'>channel_config</span><span class='period'>.</span><span class='id identifier rubyid_fetch'>fetch</span> <span class='tstring'><span class='tstring_beg'>&#39;</span><span class='tstring_content'>description</span><span class='tstring_end'>&#39;</span></span><span class='comma'>,</span> <span class='tstring'><span class='tstring_beg'>&#39;</span><span class='tstring_content'>A description of my html2rss feed.</span><span class='tstring_end'>&#39;</span></span>
585
- <span class='kw'>end</span></pre>
586
- </td>
587
- </tr>
588
- </table>
589
- </div>
590
-
591
- <div class="method_details ">
592
- <h3 class="signature " id="headers-instance_method">
593
-
594
- #<strong>headers</strong> &#x21d2; <tt>Object</tt>
595
-
596
-
597
-
598
-
599
-
600
- </h3><table class="source_code">
601
- <tr>
602
- <td>
603
- <pre class="lines">
604
-
605
-
606
- 38
607
- 39
608
- 40</pre>
609
- </td>
610
- <td>
611
- <pre class="code"><span class="info file"># File 'lib/html2rss/config.rb', line 38</span>
612
-
613
- <span class='kw'>def</span> <span class='id identifier rubyid_headers'>headers</span>
614
- <span class='id identifier rubyid_global_config'>global_config</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'>headers</span><span class='tstring_end'>&#39;</span></span><span class='comma'>,</span> <span class='lbrace'>{</span><span class='rbrace'>}</span><span class='rparen'>)</span>
615
- <span class='kw'>end</span></pre>
616
- </td>
617
- </tr>
618
- </table>
619
- </div>
620
-
621
- <div class="method_details ">
622
- <h3 class="signature " id="language-instance_method">
623
-
624
- #<strong>language</strong> &#x21d2; <tt>Object</tt>
625
-
626
-
627
-
628
-
629
-
630
- </h3><table class="source_code">
631
- <tr>
632
- <td>
633
- <pre class="lines">
634
-
635
-
636
- 21
637
- 22
638
- 23</pre>
639
- </td>
640
- <td>
641
- <pre class="code"><span class="info file"># File 'lib/html2rss/config.rb', line 21</span>
642
-
643
- <span class='kw'>def</span> <span class='id identifier rubyid_language'>language</span>
644
- <span class='id identifier rubyid_channel_config'>channel_config</span><span class='period'>.</span><span class='id identifier rubyid_fetch'>fetch</span> <span class='tstring'><span class='tstring_beg'>&#39;</span><span class='tstring_content'>language</span><span class='tstring_end'>&#39;</span></span><span class='comma'>,</span> <span class='tstring'><span class='tstring_beg'>&#39;</span><span class='tstring_content'>en</span><span class='tstring_end'>&#39;</span></span>
645
- <span class='kw'>end</span></pre>
646
- </td>
647
- </tr>
648
- </table>
649
- </div>
650
-
651
- <div class="method_details ">
652
- <h3 class="signature " id="options-instance_method">
653
-
654
- #<strong>options</strong>(name) &#x21d2; <tt>Object</tt>
655
-
656
-
657
-
658
-
659
-
660
- </h3><table class="source_code">
661
- <tr>
662
- <td>
663
- <pre class="lines">
664
-
665
-
666
- 42
667
- 43
668
- 44</pre>
669
- </td>
670
- <td>
671
- <pre class="code"><span class="info file"># File 'lib/html2rss/config.rb', line 42</span>
672
-
673
- <span class='kw'>def</span> <span class='id identifier rubyid_options'>options</span><span class='lparen'>(</span><span class='id identifier rubyid_name'>name</span><span class='rparen'>)</span>
674
- <span class='id identifier rubyid_feed_config'>feed_config</span><span class='period'>.</span><span class='id identifier rubyid_dig'>dig</span><span class='lparen'>(</span><span class='tstring'><span class='tstring_beg'>&#39;</span><span class='tstring_content'>selectors</span><span class='tstring_end'>&#39;</span></span><span class='rparen'>)</span><span class='period'>.</span><span class='id identifier rubyid_fetch'>fetch</span><span class='lparen'>(</span><span class='id identifier rubyid_name'>name</span><span class='comma'>,</span> <span class='lbrace'>{</span><span class='rbrace'>}</span><span class='rparen'>)</span><span class='period'>.</span><span class='id identifier rubyid_merge'>merge</span><span class='lparen'>(</span><span class='tstring'><span class='tstring_beg'>&#39;</span><span class='tstring_content'>channel</span><span class='tstring_end'>&#39;</span></span> <span class='op'>=&gt;</span> <span class='id identifier rubyid_channel_config'>channel_config</span><span class='rparen'>)</span>
675
- <span class='kw'>end</span></pre>
676
- </td>
677
- </tr>
678
- </table>
679
- </div>
680
-
681
- <div class="method_details ">
682
- <h3 class="signature " id="selector-instance_method">
683
-
684
- #<strong>selector</strong>(name) &#x21d2; <tt>Object</tt>
685
-
686
-
687
-
688
-
689
-
690
- </h3><table class="source_code">
691
- <tr>
692
- <td>
693
- <pre class="lines">
694
-
695
-
696
- 50
697
- 51
698
- 52</pre>
699
- </td>
700
- <td>
701
- <pre class="code"><span class="info file"># File 'lib/html2rss/config.rb', line 50</span>
702
-
703
- <span class='kw'>def</span> <span class='id identifier rubyid_selector'>selector</span><span class='lparen'>(</span><span class='id identifier rubyid_name'>name</span><span class='rparen'>)</span>
704
- <span class='id identifier rubyid_feed_config'>feed_config</span><span class='period'>.</span><span class='id identifier rubyid_dig'>dig</span><span class='lparen'>(</span><span class='tstring'><span class='tstring_beg'>&#39;</span><span class='tstring_content'>selectors</span><span class='tstring_end'>&#39;</span></span><span class='comma'>,</span> <span class='id identifier rubyid_name'>name</span><span class='comma'>,</span> <span class='tstring'><span class='tstring_beg'>&#39;</span><span class='tstring_content'>selector</span><span class='tstring_end'>&#39;</span></span><span class='rparen'>)</span>
705
- <span class='kw'>end</span></pre>
706
- </td>
707
- </tr>
708
- </table>
709
- </div>
710
-
711
- <div class="method_details ">
712
- <h3 class="signature " id="time_zone-instance_method">
713
-
714
- #<strong>time_zone</strong> &#x21d2; <tt>Object</tt>
715
-
716
-
717
-
718
-
719
-
720
- </h3><table class="source_code">
721
- <tr>
722
- <td>
723
- <pre class="lines">
724
-
725
-
726
- 34
727
- 35
728
- 36</pre>
729
- </td>
730
- <td>
731
- <pre class="code"><span class="info file"># File 'lib/html2rss/config.rb', line 34</span>
732
-
733
- <span class='kw'>def</span> <span class='id identifier rubyid_time_zone'>time_zone</span>
734
- <span class='id identifier rubyid_channel_config'>channel_config</span><span class='period'>.</span><span class='id identifier rubyid_fetch'>fetch</span> <span class='tstring'><span class='tstring_beg'>&#39;</span><span class='tstring_content'>time_zone</span><span class='tstring_end'>&#39;</span></span><span class='comma'>,</span> <span class='tstring'><span class='tstring_beg'>&#39;</span><span class='tstring_content'>UTC</span><span class='tstring_end'>&#39;</span></span>
735
- <span class='kw'>end</span></pre>
736
- </td>
737
- </tr>
738
- </table>
739
- </div>
740
-
741
- <div class="method_details ">
742
- <h3 class="signature " id="title-instance_method">
743
-
744
- #<strong>title</strong> &#x21d2; <tt>Object</tt>
745
-
746
-
747
-
748
-
749
-
750
- </h3><table class="source_code">
751
- <tr>
752
- <td>
753
- <pre class="lines">
754
-
755
-
756
- 17
757
- 18
758
- 19</pre>
759
- </td>
760
- <td>
761
- <pre class="code"><span class="info file"># File 'lib/html2rss/config.rb', line 17</span>
762
-
763
- <span class='kw'>def</span> <span class='id identifier rubyid_title'>title</span>
764
- <span class='id identifier rubyid_channel_config'>channel_config</span><span class='period'>.</span><span class='id identifier rubyid_fetch'>fetch</span> <span class='tstring'><span class='tstring_beg'>&#39;</span><span class='tstring_content'>title</span><span class='tstring_end'>&#39;</span></span><span class='comma'>,</span> <span class='tstring'><span class='tstring_beg'>&#39;</span><span class='tstring_content'>html2rss generated title</span><span class='tstring_end'>&#39;</span></span>
765
- <span class='kw'>end</span></pre>
766
- </td>
767
- </tr>
768
- </table>
769
- </div>
770
-
771
- <div class="method_details ">
772
- <h3 class="signature " id="ttl-instance_method">
773
-
774
- #<strong>ttl</strong> &#x21d2; <tt>Object</tt>
775
-
776
-
777
-
778
-
779
-
780
- </h3><table class="source_code">
781
- <tr>
782
- <td>
783
- <pre class="lines">
784
-
785
-
786
- 13
787
- 14
788
- 15</pre>
789
- </td>
790
- <td>
791
- <pre class="code"><span class="info file"># File 'lib/html2rss/config.rb', line 13</span>
792
-
793
- <span class='kw'>def</span> <span class='id identifier rubyid_ttl'>ttl</span>
794
- <span class='id identifier rubyid_channel_config'>channel_config</span><span class='period'>.</span><span class='id identifier rubyid_fetch'>fetch</span> <span class='tstring'><span class='tstring_beg'>&#39;</span><span class='tstring_content'>ttl</span><span class='tstring_end'>&#39;</span></span><span class='comma'>,</span> <span class='int'>3600</span>
795
- <span class='kw'>end</span></pre>
796
- </td>
797
- </tr>
798
- </table>
799
- </div>
800
-
801
- <div class="method_details ">
802
- <h3 class="signature " id="url-instance_method">
803
-
804
- #<strong>url</strong> &#x21d2; <tt>Object</tt>
805
-
806
-
807
-
808
- <span class="aliases">Also known as:
809
- <span class="names"><span id='link-instance_method'>link</span></span>
810
- </span>
811
-
812
-
813
-
814
- </h3><table class="source_code">
815
- <tr>
816
- <td>
817
- <pre class="lines">
818
-
819
-
820
- 29
821
- 30
822
- 31</pre>
823
- </td>
824
- <td>
825
- <pre class="code"><span class="info file"># File 'lib/html2rss/config.rb', line 29</span>
826
-
827
- <span class='kw'>def</span> <span class='id identifier rubyid_url'>url</span>
828
- <span class='id identifier rubyid_channel_config'>channel_config</span><span class='period'>.</span><span class='id identifier rubyid_dig'>dig</span> <span class='tstring'><span class='tstring_beg'>&#39;</span><span class='tstring_content'>url</span><span class='tstring_end'>&#39;</span></span>
829
- <span class='kw'>end</span></pre>
830
- </td>
831
- </tr>
832
- </table>
833
- </div>
834
-
835
- </div>
836
-
837
- </div>
838
-
839
- <div id="footer">
840
- Generated on Wed Sep 18 12:52:16 2019 by
841
- <a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
842
- 0.9.20 (ruby-2.6.3).
843
- </div>
844
-
845
- </div>
846
- </body>
847
- </html>