simple2ch 0.1.2 → 0.1.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/.gitignore +2 -4
- data/README.md +4 -6
- data/UPDATES.md +4 -0
- data/lib/simple2ch/dat.rb +1 -1
- data/lib/simple2ch/version.rb +1 -1
- metadata +2 -26
- data/doc/Simple2ch/Board.html +0 -711
- data/doc/Simple2ch/Dat.html +0 -506
- data/doc/Simple2ch/DatParseException.html +0 -131
- data/doc/Simple2ch/KakoLogException.html +0 -131
- data/doc/Simple2ch/NoThreGivenException.html +0 -131
- data/doc/Simple2ch/NotA2chUrlException.html +0 -131
- data/doc/Simple2ch/Res.html +0 -1293
- data/doc/Simple2ch/Simple2chException.html +0 -127
- data/doc/Simple2ch/Thre.html +0 -1090
- data/doc/Simple2ch.html +0 -314
- data/doc/_index.html +0 -221
- data/doc/class_list.html +0 -54
- data/doc/css/common.css +0 -1
- data/doc/css/full_list.css +0 -57
- data/doc/css/style.css +0 -339
- data/doc/file.README.html +0 -137
- data/doc/file_list.html +0 -56
- data/doc/frames.html +0 -26
- data/doc/index.html +0 -137
- data/doc/js/app.js +0 -219
- data/doc/js/full_list.js +0 -178
- data/doc/js/jquery.js +0 -4
- data/doc/method_list.html +0 -239
- data/doc/top-level-namespace.html +0 -112
data/doc/Simple2ch/Res.html
DELETED
|
@@ -1,1293 +0,0 @@
|
|
|
1
|
-
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
|
|
2
|
-
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
|
|
3
|
-
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
|
|
4
|
-
<head>
|
|
5
|
-
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
|
|
6
|
-
<title>
|
|
7
|
-
Class: Simple2ch::Res
|
|
8
|
-
|
|
9
|
-
— Documentation by YARD 0.8.7.4
|
|
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
|
-
hasFrames = window.top.frames.main ? true : false;
|
|
19
|
-
relpath = '../';
|
|
20
|
-
framesUrl = "../frames.html#!Simple2ch/Res.html";
|
|
21
|
-
</script>
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
<script type="text/javascript" charset="utf-8" src="../js/jquery.js"></script>
|
|
25
|
-
|
|
26
|
-
<script type="text/javascript" charset="utf-8" src="../js/app.js"></script>
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
</head>
|
|
30
|
-
<body>
|
|
31
|
-
<div id="header">
|
|
32
|
-
<div id="menu">
|
|
33
|
-
|
|
34
|
-
<a href="../_index.html">Index (R)</a> »
|
|
35
|
-
<span class='title'><span class='object_link'><a href="../Simple2ch.html" title="Simple2ch (module)">Simple2ch</a></span></span>
|
|
36
|
-
»
|
|
37
|
-
<span class="title">Res</span>
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
<div class="noframes"><span class="title">(</span><a href="." target="_top">no frames</a><span class="title">)</span></div>
|
|
41
|
-
</div>
|
|
42
|
-
|
|
43
|
-
<div id="search">
|
|
44
|
-
|
|
45
|
-
<a class="full_list_link" id="class_list_link"
|
|
46
|
-
href="../class_list.html">
|
|
47
|
-
Class List
|
|
48
|
-
</a>
|
|
49
|
-
|
|
50
|
-
<a class="full_list_link" id="method_list_link"
|
|
51
|
-
href="../method_list.html">
|
|
52
|
-
Method List
|
|
53
|
-
</a>
|
|
54
|
-
|
|
55
|
-
<a class="full_list_link" id="file_list_link"
|
|
56
|
-
href="../file_list.html">
|
|
57
|
-
File List
|
|
58
|
-
</a>
|
|
59
|
-
|
|
60
|
-
</div>
|
|
61
|
-
<div class="clear"></div>
|
|
62
|
-
</div>
|
|
63
|
-
|
|
64
|
-
<iframe id="search_frame"></iframe>
|
|
65
|
-
|
|
66
|
-
<div id="content"><h1>Class: Simple2ch::Res
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
</h1>
|
|
71
|
-
|
|
72
|
-
<dl class="box">
|
|
73
|
-
|
|
74
|
-
<dt class="r1">Inherits:</dt>
|
|
75
|
-
<dd class="r1">
|
|
76
|
-
<span class="inheritName">Object</span>
|
|
77
|
-
|
|
78
|
-
<ul class="fullTree">
|
|
79
|
-
<li>Object</li>
|
|
80
|
-
|
|
81
|
-
<li class="next">Simple2ch::Res</li>
|
|
82
|
-
|
|
83
|
-
</ul>
|
|
84
|
-
<a href="#" class="inheritanceTree">show all</a>
|
|
85
|
-
|
|
86
|
-
</dd>
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
<dt class="r2 last">Defined in:</dt>
|
|
97
|
-
<dd class="r2 last">lib/simple2ch/res.rb</dd>
|
|
98
|
-
|
|
99
|
-
</dl>
|
|
100
|
-
<div class="clear"></div>
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
<h2>Constant Summary</h2>
|
|
104
|
-
|
|
105
|
-
<dl class="constants">
|
|
106
|
-
|
|
107
|
-
<dt id="KAKO_LOG_INFO-constant" class="">KAKO_LOG_INFO =
|
|
108
|
-
|
|
109
|
-
</dt>
|
|
110
|
-
<dd><pre class="code"><span class='tstring'><span class='tstring_beg'>'</span><span class='tstring_content'>過去ログ ★<><>[過去ログ]<><em>■ このスレッドは過去ログ倉庫に格納されています</em><></span><span class='tstring_end'>'</span></span></pre></dd>
|
|
111
|
-
|
|
112
|
-
</dl>
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
<h2>Instance Attribute Summary <small>(<a href="#" class="summary_toggle">collapse</a>)</small></h2>
|
|
119
|
-
<ul class="summary">
|
|
120
|
-
|
|
121
|
-
<li class="public ">
|
|
122
|
-
<span class="summary_signature">
|
|
123
|
-
|
|
124
|
-
<a href="#author-instance_method" title="#author (instance method)">- (String) <strong>author</strong> </a>
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
</span>
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
<span class="note title readonly">readonly</span>
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
<span class="summary_desc"><div class='inline'>
|
|
144
|
-
<p>投稿者名.</p>
|
|
145
|
-
</div></span>
|
|
146
|
-
|
|
147
|
-
</li>
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
<li class="public ">
|
|
151
|
-
<span class="summary_signature">
|
|
152
|
-
|
|
153
|
-
<a href="#author_id-instance_method" title="#author_id (instance method)">- (String) <strong>author_id</strong> </a>
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
</span>
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
<span class="note title readonly">readonly</span>
|
|
163
|
-
|
|
164
|
-
|
|
165
|
-
|
|
166
|
-
|
|
167
|
-
|
|
168
|
-
|
|
169
|
-
|
|
170
|
-
|
|
171
|
-
|
|
172
|
-
<span class="summary_desc"><div class='inline'>
|
|
173
|
-
<p>ID.</p>
|
|
174
|
-
</div></span>
|
|
175
|
-
|
|
176
|
-
</li>
|
|
177
|
-
|
|
178
|
-
|
|
179
|
-
<li class="public ">
|
|
180
|
-
<span class="summary_signature">
|
|
181
|
-
|
|
182
|
-
<a href="#contents-instance_method" title="#contents (instance method)">- (String) <strong>contents</strong> </a>
|
|
183
|
-
|
|
184
|
-
|
|
185
|
-
|
|
186
|
-
</span>
|
|
187
|
-
|
|
188
|
-
|
|
189
|
-
|
|
190
|
-
|
|
191
|
-
<span class="note title readonly">readonly</span>
|
|
192
|
-
|
|
193
|
-
|
|
194
|
-
|
|
195
|
-
|
|
196
|
-
|
|
197
|
-
|
|
198
|
-
|
|
199
|
-
|
|
200
|
-
|
|
201
|
-
<span class="summary_desc"><div class='inline'>
|
|
202
|
-
<p>内容.</p>
|
|
203
|
-
</div></span>
|
|
204
|
-
|
|
205
|
-
</li>
|
|
206
|
-
|
|
207
|
-
|
|
208
|
-
<li class="public ">
|
|
209
|
-
<span class="summary_signature">
|
|
210
|
-
|
|
211
|
-
<a href="#date-instance_method" title="#date (instance method)">- (Time) <strong>date</strong> </a>
|
|
212
|
-
|
|
213
|
-
|
|
214
|
-
|
|
215
|
-
</span>
|
|
216
|
-
|
|
217
|
-
|
|
218
|
-
|
|
219
|
-
|
|
220
|
-
<span class="note title readonly">readonly</span>
|
|
221
|
-
|
|
222
|
-
|
|
223
|
-
|
|
224
|
-
|
|
225
|
-
|
|
226
|
-
|
|
227
|
-
|
|
228
|
-
|
|
229
|
-
|
|
230
|
-
<span class="summary_desc"><div class='inline'>
|
|
231
|
-
<p>書き込み日時.</p>
|
|
232
|
-
</div></span>
|
|
233
|
-
|
|
234
|
-
</li>
|
|
235
|
-
|
|
236
|
-
|
|
237
|
-
<li class="public ">
|
|
238
|
-
<span class="summary_signature">
|
|
239
|
-
|
|
240
|
-
<a href="#mail-instance_method" title="#mail (instance method)">- (String) <strong>mail</strong> </a>
|
|
241
|
-
|
|
242
|
-
|
|
243
|
-
|
|
244
|
-
</span>
|
|
245
|
-
|
|
246
|
-
|
|
247
|
-
|
|
248
|
-
|
|
249
|
-
<span class="note title readonly">readonly</span>
|
|
250
|
-
|
|
251
|
-
|
|
252
|
-
|
|
253
|
-
|
|
254
|
-
|
|
255
|
-
|
|
256
|
-
|
|
257
|
-
|
|
258
|
-
|
|
259
|
-
<span class="summary_desc"><div class='inline'>
|
|
260
|
-
<p>メール欄.</p>
|
|
261
|
-
</div></span>
|
|
262
|
-
|
|
263
|
-
</li>
|
|
264
|
-
|
|
265
|
-
|
|
266
|
-
<li class="public ">
|
|
267
|
-
<span class="summary_signature">
|
|
268
|
-
|
|
269
|
-
<a href="#res_num-instance_method" title="#res_num (instance method)">- (Fixnum) <strong>res_num</strong> </a>
|
|
270
|
-
|
|
271
|
-
|
|
272
|
-
|
|
273
|
-
</span>
|
|
274
|
-
|
|
275
|
-
|
|
276
|
-
|
|
277
|
-
|
|
278
|
-
<span class="note title readonly">readonly</span>
|
|
279
|
-
|
|
280
|
-
|
|
281
|
-
|
|
282
|
-
|
|
283
|
-
|
|
284
|
-
|
|
285
|
-
|
|
286
|
-
|
|
287
|
-
|
|
288
|
-
<span class="summary_desc"><div class='inline'>
|
|
289
|
-
<p>レス番号.</p>
|
|
290
|
-
</div></span>
|
|
291
|
-
|
|
292
|
-
</li>
|
|
293
|
-
|
|
294
|
-
|
|
295
|
-
<li class="public ">
|
|
296
|
-
<span class="summary_signature">
|
|
297
|
-
|
|
298
|
-
<a href="#thre%3D-instance_method" title="#thre= (instance method)">- (Object) <strong>thre</strong> </a>
|
|
299
|
-
|
|
300
|
-
|
|
301
|
-
|
|
302
|
-
</span>
|
|
303
|
-
|
|
304
|
-
|
|
305
|
-
|
|
306
|
-
|
|
307
|
-
|
|
308
|
-
<span class="note title writeonly">writeonly</span>
|
|
309
|
-
|
|
310
|
-
|
|
311
|
-
|
|
312
|
-
|
|
313
|
-
|
|
314
|
-
|
|
315
|
-
|
|
316
|
-
|
|
317
|
-
<span class="summary_desc"><div class='inline'></div></span>
|
|
318
|
-
|
|
319
|
-
</li>
|
|
320
|
-
|
|
321
|
-
|
|
322
|
-
</ul>
|
|
323
|
-
|
|
324
|
-
|
|
325
|
-
|
|
326
|
-
|
|
327
|
-
|
|
328
|
-
<h2>
|
|
329
|
-
Class Method Summary
|
|
330
|
-
<small>(<a href="#" class="summary_toggle">collapse</a>)</small>
|
|
331
|
-
</h2>
|
|
332
|
-
|
|
333
|
-
<ul class="summary">
|
|
334
|
-
|
|
335
|
-
<li class="public ">
|
|
336
|
-
<span class="summary_signature">
|
|
337
|
-
|
|
338
|
-
<a href="#parse-class_method" title="parse (class method)">+ (Res) <strong>parse</strong>(res_num, contents, thre = nil) </a>
|
|
339
|
-
|
|
340
|
-
|
|
341
|
-
|
|
342
|
-
</span>
|
|
343
|
-
|
|
344
|
-
|
|
345
|
-
|
|
346
|
-
|
|
347
|
-
|
|
348
|
-
|
|
349
|
-
|
|
350
|
-
|
|
351
|
-
|
|
352
|
-
<span class="summary_desc"><div class='inline'>
|
|
353
|
-
<p>Datの1行から各項目を分離して、Resオブジェクトを返す.</p>
|
|
354
|
-
</div></span>
|
|
355
|
-
|
|
356
|
-
</li>
|
|
357
|
-
|
|
358
|
-
|
|
359
|
-
</ul>
|
|
360
|
-
|
|
361
|
-
<h2>
|
|
362
|
-
Instance Method Summary
|
|
363
|
-
<small>(<a href="#" class="summary_toggle">collapse</a>)</small>
|
|
364
|
-
</h2>
|
|
365
|
-
|
|
366
|
-
<ul class="summary">
|
|
367
|
-
|
|
368
|
-
<li class="public ">
|
|
369
|
-
<span class="summary_signature">
|
|
370
|
-
|
|
371
|
-
<a href="#anchors-instance_method" title="#anchors (instance method)">- (Array<Fixnum>) <strong>anchors</strong> </a>
|
|
372
|
-
|
|
373
|
-
|
|
374
|
-
|
|
375
|
-
</span>
|
|
376
|
-
|
|
377
|
-
|
|
378
|
-
|
|
379
|
-
|
|
380
|
-
|
|
381
|
-
|
|
382
|
-
|
|
383
|
-
|
|
384
|
-
|
|
385
|
-
<span class="summary_desc"><div class='inline'>
|
|
386
|
-
<p>アンカーを抽出する 荒らしの場合は空配列を返す.</p>
|
|
387
|
-
</div></span>
|
|
388
|
-
|
|
389
|
-
</li>
|
|
390
|
-
|
|
391
|
-
|
|
392
|
-
<li class="public ">
|
|
393
|
-
<span class="summary_signature">
|
|
394
|
-
|
|
395
|
-
<a href="#initialize-instance_method" title="#initialize (instance method)">- (Res) <strong>initialize</strong>(res_num, author: '', author_id: '', date: nil, mail: '', contents: '', thre: nil) </a>
|
|
396
|
-
|
|
397
|
-
|
|
398
|
-
|
|
399
|
-
</span>
|
|
400
|
-
|
|
401
|
-
|
|
402
|
-
<span class="note title constructor">constructor</span>
|
|
403
|
-
|
|
404
|
-
|
|
405
|
-
|
|
406
|
-
|
|
407
|
-
|
|
408
|
-
|
|
409
|
-
|
|
410
|
-
|
|
411
|
-
<span class="summary_desc"><div class='inline'>
|
|
412
|
-
<p>A new instance of Res.</p>
|
|
413
|
-
</div></span>
|
|
414
|
-
|
|
415
|
-
</li>
|
|
416
|
-
|
|
417
|
-
|
|
418
|
-
<li class="public ">
|
|
419
|
-
<span class="summary_signature">
|
|
420
|
-
|
|
421
|
-
<a href="#received_anchors-instance_method" title="#received_anchors (instance method)">- (Object) <strong>received_anchors</strong> </a>
|
|
422
|
-
|
|
423
|
-
|
|
424
|
-
|
|
425
|
-
</span>
|
|
426
|
-
|
|
427
|
-
|
|
428
|
-
|
|
429
|
-
|
|
430
|
-
|
|
431
|
-
|
|
432
|
-
|
|
433
|
-
|
|
434
|
-
|
|
435
|
-
<span class="summary_desc"><div class='inline'>
|
|
436
|
-
<p>自レスへのアンカーが書き込まれているレス番号を返す.</p>
|
|
437
|
-
</div></span>
|
|
438
|
-
|
|
439
|
-
</li>
|
|
440
|
-
|
|
441
|
-
|
|
442
|
-
</ul>
|
|
443
|
-
|
|
444
|
-
|
|
445
|
-
<div id="constructor_details" class="method_details_list">
|
|
446
|
-
<h2>Constructor Details</h2>
|
|
447
|
-
|
|
448
|
-
<div class="method_details first">
|
|
449
|
-
<h3 class="signature first" id="initialize-instance_method">
|
|
450
|
-
|
|
451
|
-
- (<tt><span class='object_link'><a href="" title="Simple2ch::Res (class)">Res</a></span></tt>) <strong>initialize</strong>(res_num, author: '', author_id: '', date: nil, mail: '', contents: '', thre: nil)
|
|
452
|
-
|
|
453
|
-
|
|
454
|
-
|
|
455
|
-
|
|
456
|
-
|
|
457
|
-
</h3><div class="docstring">
|
|
458
|
-
<div class="discussion">
|
|
459
|
-
|
|
460
|
-
<p>Returns a new instance of Res</p>
|
|
461
|
-
|
|
462
|
-
|
|
463
|
-
</div>
|
|
464
|
-
</div>
|
|
465
|
-
<div class="tags">
|
|
466
|
-
<p class="tag_title">Parameters:</p>
|
|
467
|
-
<ul class="param">
|
|
468
|
-
|
|
469
|
-
<li>
|
|
470
|
-
|
|
471
|
-
<span class='name'>res_num</span>
|
|
472
|
-
|
|
473
|
-
|
|
474
|
-
<span class='type'>(<tt>Fixnum</tt>)</span>
|
|
475
|
-
|
|
476
|
-
|
|
477
|
-
|
|
478
|
-
—
|
|
479
|
-
<div class='inline'>
|
|
480
|
-
<p>レス番号</p>
|
|
481
|
-
</div>
|
|
482
|
-
|
|
483
|
-
</li>
|
|
484
|
-
|
|
485
|
-
<li>
|
|
486
|
-
|
|
487
|
-
<span class='name'>author</span>
|
|
488
|
-
|
|
489
|
-
|
|
490
|
-
<span class='type'>(<tt>String</tt>)</span>
|
|
491
|
-
|
|
492
|
-
|
|
493
|
-
|
|
494
|
-
—
|
|
495
|
-
<div class='inline'>
|
|
496
|
-
<p>投稿者名</p>
|
|
497
|
-
</div>
|
|
498
|
-
|
|
499
|
-
</li>
|
|
500
|
-
|
|
501
|
-
<li>
|
|
502
|
-
|
|
503
|
-
<span class='name'>author_id</span>
|
|
504
|
-
|
|
505
|
-
|
|
506
|
-
<span class='type'>(<tt>String</tt>)</span>
|
|
507
|
-
|
|
508
|
-
|
|
509
|
-
|
|
510
|
-
—
|
|
511
|
-
<div class='inline'>
|
|
512
|
-
<p>ID</p>
|
|
513
|
-
</div>
|
|
514
|
-
|
|
515
|
-
</li>
|
|
516
|
-
|
|
517
|
-
<li>
|
|
518
|
-
|
|
519
|
-
<span class='name'>date</span>
|
|
520
|
-
|
|
521
|
-
|
|
522
|
-
<span class='type'>(<tt>Time</tt>)</span>
|
|
523
|
-
|
|
524
|
-
|
|
525
|
-
|
|
526
|
-
—
|
|
527
|
-
<div class='inline'>
|
|
528
|
-
<p>書き込み日時</p>
|
|
529
|
-
</div>
|
|
530
|
-
|
|
531
|
-
</li>
|
|
532
|
-
|
|
533
|
-
<li>
|
|
534
|
-
|
|
535
|
-
<span class='name'>mail</span>
|
|
536
|
-
|
|
537
|
-
|
|
538
|
-
<span class='type'>(<tt>String</tt>)</span>
|
|
539
|
-
|
|
540
|
-
|
|
541
|
-
|
|
542
|
-
—
|
|
543
|
-
<div class='inline'>
|
|
544
|
-
<p>メール欄</p>
|
|
545
|
-
</div>
|
|
546
|
-
|
|
547
|
-
</li>
|
|
548
|
-
|
|
549
|
-
<li>
|
|
550
|
-
|
|
551
|
-
<span class='name'>contents</span>
|
|
552
|
-
|
|
553
|
-
|
|
554
|
-
<span class='type'>(<tt>String</tt>)</span>
|
|
555
|
-
|
|
556
|
-
|
|
557
|
-
|
|
558
|
-
—
|
|
559
|
-
<div class='inline'>
|
|
560
|
-
<p>内容</p>
|
|
561
|
-
</div>
|
|
562
|
-
|
|
563
|
-
</li>
|
|
564
|
-
|
|
565
|
-
</ul>
|
|
566
|
-
|
|
567
|
-
|
|
568
|
-
</div><table class="source_code">
|
|
569
|
-
<tr>
|
|
570
|
-
<td>
|
|
571
|
-
<pre class="lines">
|
|
572
|
-
|
|
573
|
-
|
|
574
|
-
27
|
|
575
|
-
28
|
|
576
|
-
29
|
|
577
|
-
30
|
|
578
|
-
31
|
|
579
|
-
32
|
|
580
|
-
33
|
|
581
|
-
34
|
|
582
|
-
35</pre>
|
|
583
|
-
</td>
|
|
584
|
-
<td>
|
|
585
|
-
<pre class="code"><span class="info file"># File 'lib/simple2ch/res.rb', line 27</span>
|
|
586
|
-
|
|
587
|
-
<span class='kw'>def</span> <span class='id identifier rubyid_initialize'>initialize</span><span class='lparen'>(</span><span class='id identifier rubyid_res_num'>res_num</span><span class='comma'>,</span> <span class='label'>author:</span> <span class='tstring'><span class='tstring_beg'>'</span><span class='tstring_end'>'</span></span><span class='comma'>,</span> <span class='label'>author_id:</span> <span class='tstring'><span class='tstring_beg'>'</span><span class='tstring_end'>'</span></span><span class='comma'>,</span> <span class='label'>date:</span> <span class='kw'>nil</span><span class='comma'>,</span> <span class='label'>mail:</span> <span class='tstring'><span class='tstring_beg'>'</span><span class='tstring_end'>'</span></span><span class='comma'>,</span> <span class='label'>contents:</span> <span class='tstring'><span class='tstring_beg'>'</span><span class='tstring_end'>'</span></span><span class='comma'>,</span> <span class='label'>thre:</span> <span class='kw'>nil</span><span class='rparen'>)</span>
|
|
588
|
-
<span class='ivar'>@res_num</span> <span class='op'>=</span> <span class='id identifier rubyid_res_num'>res_num</span>
|
|
589
|
-
<span class='ivar'>@author</span> <span class='op'>=</span> <span class='id identifier rubyid_author'>author</span>
|
|
590
|
-
<span class='ivar'>@author_id</span> <span class='op'>=</span> <span class='id identifier rubyid_author_id'>author_id</span>
|
|
591
|
-
<span class='ivar'>@date</span> <span class='op'>=</span> <span class='id identifier rubyid_date'>date</span>
|
|
592
|
-
<span class='ivar'>@mail</span> <span class='op'>=</span> <span class='id identifier rubyid_mail'>mail</span>
|
|
593
|
-
<span class='ivar'>@contents</span> <span class='op'>=</span> <span class='id identifier rubyid_contents'>contents</span>
|
|
594
|
-
<span class='ivar'>@thre</span> <span class='op'>=</span> <span class='id identifier rubyid_thre'>thre</span>
|
|
595
|
-
<span class='kw'>end</span></pre>
|
|
596
|
-
</td>
|
|
597
|
-
</tr>
|
|
598
|
-
</table>
|
|
599
|
-
</div>
|
|
600
|
-
|
|
601
|
-
</div>
|
|
602
|
-
|
|
603
|
-
<div id="instance_attr_details" class="attr_details">
|
|
604
|
-
<h2>Instance Attribute Details</h2>
|
|
605
|
-
|
|
606
|
-
|
|
607
|
-
<span id=""></span>
|
|
608
|
-
<div class="method_details first">
|
|
609
|
-
<h3 class="signature first" id="author-instance_method">
|
|
610
|
-
|
|
611
|
-
- (<tt>String</tt>) <strong>author</strong> <span class="extras">(readonly)</span>
|
|
612
|
-
|
|
613
|
-
|
|
614
|
-
|
|
615
|
-
|
|
616
|
-
|
|
617
|
-
</h3><div class="docstring">
|
|
618
|
-
<div class="discussion">
|
|
619
|
-
|
|
620
|
-
<p>Returns 投稿者名</p>
|
|
621
|
-
|
|
622
|
-
|
|
623
|
-
</div>
|
|
624
|
-
</div>
|
|
625
|
-
<div class="tags">
|
|
626
|
-
|
|
627
|
-
<p class="tag_title">Returns:</p>
|
|
628
|
-
<ul class="return">
|
|
629
|
-
|
|
630
|
-
<li>
|
|
631
|
-
|
|
632
|
-
|
|
633
|
-
<span class='type'>(<tt>String</tt>)</span>
|
|
634
|
-
|
|
635
|
-
|
|
636
|
-
|
|
637
|
-
—
|
|
638
|
-
<div class='inline'>
|
|
639
|
-
<p>投稿者名</p>
|
|
640
|
-
</div>
|
|
641
|
-
|
|
642
|
-
</li>
|
|
643
|
-
|
|
644
|
-
</ul>
|
|
645
|
-
|
|
646
|
-
</div><table class="source_code">
|
|
647
|
-
<tr>
|
|
648
|
-
<td>
|
|
649
|
-
<pre class="lines">
|
|
650
|
-
|
|
651
|
-
|
|
652
|
-
6
|
|
653
|
-
7
|
|
654
|
-
8</pre>
|
|
655
|
-
</td>
|
|
656
|
-
<td>
|
|
657
|
-
<pre class="code"><span class="info file"># File 'lib/simple2ch/res.rb', line 6</span>
|
|
658
|
-
|
|
659
|
-
<span class='kw'>def</span> <span class='id identifier rubyid_author'>author</span>
|
|
660
|
-
<span class='ivar'>@author</span>
|
|
661
|
-
<span class='kw'>end</span></pre>
|
|
662
|
-
</td>
|
|
663
|
-
</tr>
|
|
664
|
-
</table>
|
|
665
|
-
</div>
|
|
666
|
-
|
|
667
|
-
|
|
668
|
-
<span id=""></span>
|
|
669
|
-
<div class="method_details ">
|
|
670
|
-
<h3 class="signature " id="author_id-instance_method">
|
|
671
|
-
|
|
672
|
-
- (<tt>String</tt>) <strong>author_id</strong> <span class="extras">(readonly)</span>
|
|
673
|
-
|
|
674
|
-
|
|
675
|
-
|
|
676
|
-
|
|
677
|
-
|
|
678
|
-
</h3><div class="docstring">
|
|
679
|
-
<div class="discussion">
|
|
680
|
-
|
|
681
|
-
<p>Returns ID</p>
|
|
682
|
-
|
|
683
|
-
|
|
684
|
-
</div>
|
|
685
|
-
</div>
|
|
686
|
-
<div class="tags">
|
|
687
|
-
|
|
688
|
-
<p class="tag_title">Returns:</p>
|
|
689
|
-
<ul class="return">
|
|
690
|
-
|
|
691
|
-
<li>
|
|
692
|
-
|
|
693
|
-
|
|
694
|
-
<span class='type'>(<tt>String</tt>)</span>
|
|
695
|
-
|
|
696
|
-
|
|
697
|
-
|
|
698
|
-
—
|
|
699
|
-
<div class='inline'>
|
|
700
|
-
<p>ID</p>
|
|
701
|
-
</div>
|
|
702
|
-
|
|
703
|
-
</li>
|
|
704
|
-
|
|
705
|
-
</ul>
|
|
706
|
-
|
|
707
|
-
</div><table class="source_code">
|
|
708
|
-
<tr>
|
|
709
|
-
<td>
|
|
710
|
-
<pre class="lines">
|
|
711
|
-
|
|
712
|
-
|
|
713
|
-
8
|
|
714
|
-
9
|
|
715
|
-
10</pre>
|
|
716
|
-
</td>
|
|
717
|
-
<td>
|
|
718
|
-
<pre class="code"><span class="info file"># File 'lib/simple2ch/res.rb', line 8</span>
|
|
719
|
-
|
|
720
|
-
<span class='kw'>def</span> <span class='id identifier rubyid_author_id'>author_id</span>
|
|
721
|
-
<span class='ivar'>@author_id</span>
|
|
722
|
-
<span class='kw'>end</span></pre>
|
|
723
|
-
</td>
|
|
724
|
-
</tr>
|
|
725
|
-
</table>
|
|
726
|
-
</div>
|
|
727
|
-
|
|
728
|
-
|
|
729
|
-
<span id=""></span>
|
|
730
|
-
<div class="method_details ">
|
|
731
|
-
<h3 class="signature " id="contents-instance_method">
|
|
732
|
-
|
|
733
|
-
- (<tt>String</tt>) <strong>contents</strong> <span class="extras">(readonly)</span>
|
|
734
|
-
|
|
735
|
-
|
|
736
|
-
|
|
737
|
-
|
|
738
|
-
|
|
739
|
-
</h3><div class="docstring">
|
|
740
|
-
<div class="discussion">
|
|
741
|
-
|
|
742
|
-
<p>Returns 内容</p>
|
|
743
|
-
|
|
744
|
-
|
|
745
|
-
</div>
|
|
746
|
-
</div>
|
|
747
|
-
<div class="tags">
|
|
748
|
-
|
|
749
|
-
<p class="tag_title">Returns:</p>
|
|
750
|
-
<ul class="return">
|
|
751
|
-
|
|
752
|
-
<li>
|
|
753
|
-
|
|
754
|
-
|
|
755
|
-
<span class='type'>(<tt>String</tt>)</span>
|
|
756
|
-
|
|
757
|
-
|
|
758
|
-
|
|
759
|
-
—
|
|
760
|
-
<div class='inline'>
|
|
761
|
-
<p>内容</p>
|
|
762
|
-
</div>
|
|
763
|
-
|
|
764
|
-
</li>
|
|
765
|
-
|
|
766
|
-
</ul>
|
|
767
|
-
|
|
768
|
-
</div><table class="source_code">
|
|
769
|
-
<tr>
|
|
770
|
-
<td>
|
|
771
|
-
<pre class="lines">
|
|
772
|
-
|
|
773
|
-
|
|
774
|
-
14
|
|
775
|
-
15
|
|
776
|
-
16</pre>
|
|
777
|
-
</td>
|
|
778
|
-
<td>
|
|
779
|
-
<pre class="code"><span class="info file"># File 'lib/simple2ch/res.rb', line 14</span>
|
|
780
|
-
|
|
781
|
-
<span class='kw'>def</span> <span class='id identifier rubyid_contents'>contents</span>
|
|
782
|
-
<span class='ivar'>@contents</span>
|
|
783
|
-
<span class='kw'>end</span></pre>
|
|
784
|
-
</td>
|
|
785
|
-
</tr>
|
|
786
|
-
</table>
|
|
787
|
-
</div>
|
|
788
|
-
|
|
789
|
-
|
|
790
|
-
<span id=""></span>
|
|
791
|
-
<div class="method_details ">
|
|
792
|
-
<h3 class="signature " id="date-instance_method">
|
|
793
|
-
|
|
794
|
-
- (<tt>Time</tt>) <strong>date</strong> <span class="extras">(readonly)</span>
|
|
795
|
-
|
|
796
|
-
|
|
797
|
-
|
|
798
|
-
|
|
799
|
-
|
|
800
|
-
</h3><div class="docstring">
|
|
801
|
-
<div class="discussion">
|
|
802
|
-
|
|
803
|
-
<p>Returns 書き込み日時</p>
|
|
804
|
-
|
|
805
|
-
|
|
806
|
-
</div>
|
|
807
|
-
</div>
|
|
808
|
-
<div class="tags">
|
|
809
|
-
|
|
810
|
-
<p class="tag_title">Returns:</p>
|
|
811
|
-
<ul class="return">
|
|
812
|
-
|
|
813
|
-
<li>
|
|
814
|
-
|
|
815
|
-
|
|
816
|
-
<span class='type'>(<tt>Time</tt>)</span>
|
|
817
|
-
|
|
818
|
-
|
|
819
|
-
|
|
820
|
-
—
|
|
821
|
-
<div class='inline'>
|
|
822
|
-
<p>書き込み日時</p>
|
|
823
|
-
</div>
|
|
824
|
-
|
|
825
|
-
</li>
|
|
826
|
-
|
|
827
|
-
</ul>
|
|
828
|
-
|
|
829
|
-
</div><table class="source_code">
|
|
830
|
-
<tr>
|
|
831
|
-
<td>
|
|
832
|
-
<pre class="lines">
|
|
833
|
-
|
|
834
|
-
|
|
835
|
-
10
|
|
836
|
-
11
|
|
837
|
-
12</pre>
|
|
838
|
-
</td>
|
|
839
|
-
<td>
|
|
840
|
-
<pre class="code"><span class="info file"># File 'lib/simple2ch/res.rb', line 10</span>
|
|
841
|
-
|
|
842
|
-
<span class='kw'>def</span> <span class='id identifier rubyid_date'>date</span>
|
|
843
|
-
<span class='ivar'>@date</span>
|
|
844
|
-
<span class='kw'>end</span></pre>
|
|
845
|
-
</td>
|
|
846
|
-
</tr>
|
|
847
|
-
</table>
|
|
848
|
-
</div>
|
|
849
|
-
|
|
850
|
-
|
|
851
|
-
<span id=""></span>
|
|
852
|
-
<div class="method_details ">
|
|
853
|
-
<h3 class="signature " id="mail-instance_method">
|
|
854
|
-
|
|
855
|
-
- (<tt>String</tt>) <strong>mail</strong> <span class="extras">(readonly)</span>
|
|
856
|
-
|
|
857
|
-
|
|
858
|
-
|
|
859
|
-
|
|
860
|
-
|
|
861
|
-
</h3><div class="docstring">
|
|
862
|
-
<div class="discussion">
|
|
863
|
-
|
|
864
|
-
<p>Returns メール欄</p>
|
|
865
|
-
|
|
866
|
-
|
|
867
|
-
</div>
|
|
868
|
-
</div>
|
|
869
|
-
<div class="tags">
|
|
870
|
-
|
|
871
|
-
<p class="tag_title">Returns:</p>
|
|
872
|
-
<ul class="return">
|
|
873
|
-
|
|
874
|
-
<li>
|
|
875
|
-
|
|
876
|
-
|
|
877
|
-
<span class='type'>(<tt>String</tt>)</span>
|
|
878
|
-
|
|
879
|
-
|
|
880
|
-
|
|
881
|
-
—
|
|
882
|
-
<div class='inline'>
|
|
883
|
-
<p>メール欄</p>
|
|
884
|
-
</div>
|
|
885
|
-
|
|
886
|
-
</li>
|
|
887
|
-
|
|
888
|
-
</ul>
|
|
889
|
-
|
|
890
|
-
</div><table class="source_code">
|
|
891
|
-
<tr>
|
|
892
|
-
<td>
|
|
893
|
-
<pre class="lines">
|
|
894
|
-
|
|
895
|
-
|
|
896
|
-
12
|
|
897
|
-
13
|
|
898
|
-
14</pre>
|
|
899
|
-
</td>
|
|
900
|
-
<td>
|
|
901
|
-
<pre class="code"><span class="info file"># File 'lib/simple2ch/res.rb', line 12</span>
|
|
902
|
-
|
|
903
|
-
<span class='kw'>def</span> <span class='id identifier rubyid_mail'>mail</span>
|
|
904
|
-
<span class='ivar'>@mail</span>
|
|
905
|
-
<span class='kw'>end</span></pre>
|
|
906
|
-
</td>
|
|
907
|
-
</tr>
|
|
908
|
-
</table>
|
|
909
|
-
</div>
|
|
910
|
-
|
|
911
|
-
|
|
912
|
-
<span id=""></span>
|
|
913
|
-
<div class="method_details ">
|
|
914
|
-
<h3 class="signature " id="res_num-instance_method">
|
|
915
|
-
|
|
916
|
-
- (<tt>Fixnum</tt>) <strong>res_num</strong> <span class="extras">(readonly)</span>
|
|
917
|
-
|
|
918
|
-
|
|
919
|
-
|
|
920
|
-
|
|
921
|
-
|
|
922
|
-
</h3><div class="docstring">
|
|
923
|
-
<div class="discussion">
|
|
924
|
-
|
|
925
|
-
<p>Returns レス番号</p>
|
|
926
|
-
|
|
927
|
-
|
|
928
|
-
</div>
|
|
929
|
-
</div>
|
|
930
|
-
<div class="tags">
|
|
931
|
-
|
|
932
|
-
<p class="tag_title">Returns:</p>
|
|
933
|
-
<ul class="return">
|
|
934
|
-
|
|
935
|
-
<li>
|
|
936
|
-
|
|
937
|
-
|
|
938
|
-
<span class='type'>(<tt>Fixnum</tt>)</span>
|
|
939
|
-
|
|
940
|
-
|
|
941
|
-
|
|
942
|
-
—
|
|
943
|
-
<div class='inline'>
|
|
944
|
-
<p>レス番号</p>
|
|
945
|
-
</div>
|
|
946
|
-
|
|
947
|
-
</li>
|
|
948
|
-
|
|
949
|
-
</ul>
|
|
950
|
-
|
|
951
|
-
</div><table class="source_code">
|
|
952
|
-
<tr>
|
|
953
|
-
<td>
|
|
954
|
-
<pre class="lines">
|
|
955
|
-
|
|
956
|
-
|
|
957
|
-
4
|
|
958
|
-
5
|
|
959
|
-
6</pre>
|
|
960
|
-
</td>
|
|
961
|
-
<td>
|
|
962
|
-
<pre class="code"><span class="info file"># File 'lib/simple2ch/res.rb', line 4</span>
|
|
963
|
-
|
|
964
|
-
<span class='kw'>def</span> <span class='id identifier rubyid_res_num'>res_num</span>
|
|
965
|
-
<span class='ivar'>@res_num</span>
|
|
966
|
-
<span class='kw'>end</span></pre>
|
|
967
|
-
</td>
|
|
968
|
-
</tr>
|
|
969
|
-
</table>
|
|
970
|
-
</div>
|
|
971
|
-
|
|
972
|
-
|
|
973
|
-
<span id=""></span>
|
|
974
|
-
<div class="method_details ">
|
|
975
|
-
<h3 class="signature " id="thre=-instance_method">
|
|
976
|
-
|
|
977
|
-
- (<tt>Object</tt>) <strong>thre=</strong>(value) <span class="extras">(writeonly)</span>
|
|
978
|
-
|
|
979
|
-
|
|
980
|
-
|
|
981
|
-
|
|
982
|
-
|
|
983
|
-
</h3><table class="source_code">
|
|
984
|
-
<tr>
|
|
985
|
-
<td>
|
|
986
|
-
<pre class="lines">
|
|
987
|
-
|
|
988
|
-
|
|
989
|
-
16
|
|
990
|
-
17
|
|
991
|
-
18</pre>
|
|
992
|
-
</td>
|
|
993
|
-
<td>
|
|
994
|
-
<pre class="code"><span class="info file"># File 'lib/simple2ch/res.rb', line 16</span>
|
|
995
|
-
|
|
996
|
-
<span class='kw'>def</span> <span class='id identifier rubyid_thre='>thre=</span><span class='lparen'>(</span><span class='id identifier rubyid_value'>value</span><span class='rparen'>)</span>
|
|
997
|
-
<span class='ivar'>@thre</span> <span class='op'>=</span> <span class='id identifier rubyid_value'>value</span>
|
|
998
|
-
<span class='kw'>end</span></pre>
|
|
999
|
-
</td>
|
|
1000
|
-
</tr>
|
|
1001
|
-
</table>
|
|
1002
|
-
</div>
|
|
1003
|
-
|
|
1004
|
-
</div>
|
|
1005
|
-
|
|
1006
|
-
|
|
1007
|
-
<div id="class_method_details" class="method_details_list">
|
|
1008
|
-
<h2>Class Method Details</h2>
|
|
1009
|
-
|
|
1010
|
-
|
|
1011
|
-
<div class="method_details first">
|
|
1012
|
-
<h3 class="signature first" id="parse-class_method">
|
|
1013
|
-
|
|
1014
|
-
+ (<tt><span class='object_link'><a href="" title="Simple2ch::Res (class)">Res</a></span></tt>) <strong>parse</strong>(res_num, contents, thre = nil)
|
|
1015
|
-
|
|
1016
|
-
|
|
1017
|
-
|
|
1018
|
-
|
|
1019
|
-
|
|
1020
|
-
</h3><div class="docstring">
|
|
1021
|
-
<div class="discussion">
|
|
1022
|
-
|
|
1023
|
-
<p>Datの1行から各項目を分離して、Resオブジェクトを返す</p>
|
|
1024
|
-
|
|
1025
|
-
|
|
1026
|
-
</div>
|
|
1027
|
-
</div>
|
|
1028
|
-
<div class="tags">
|
|
1029
|
-
<p class="tag_title">Parameters:</p>
|
|
1030
|
-
<ul class="param">
|
|
1031
|
-
|
|
1032
|
-
<li>
|
|
1033
|
-
|
|
1034
|
-
<span class='name'>res_num</span>
|
|
1035
|
-
|
|
1036
|
-
|
|
1037
|
-
<span class='type'>(<tt>Fixnum</tt>)</span>
|
|
1038
|
-
|
|
1039
|
-
|
|
1040
|
-
|
|
1041
|
-
—
|
|
1042
|
-
<div class='inline'>
|
|
1043
|
-
<p>レス番号</p>
|
|
1044
|
-
</div>
|
|
1045
|
-
|
|
1046
|
-
</li>
|
|
1047
|
-
|
|
1048
|
-
<li>
|
|
1049
|
-
|
|
1050
|
-
<span class='name'>contents</span>
|
|
1051
|
-
|
|
1052
|
-
|
|
1053
|
-
<span class='type'>(<tt>String</tt>)</span>
|
|
1054
|
-
|
|
1055
|
-
|
|
1056
|
-
|
|
1057
|
-
—
|
|
1058
|
-
<div class='inline'>
|
|
1059
|
-
<p>datのデータ1行</p>
|
|
1060
|
-
</div>
|
|
1061
|
-
|
|
1062
|
-
</li>
|
|
1063
|
-
|
|
1064
|
-
</ul>
|
|
1065
|
-
|
|
1066
|
-
<p class="tag_title">Returns:</p>
|
|
1067
|
-
<ul class="return">
|
|
1068
|
-
|
|
1069
|
-
<li>
|
|
1070
|
-
|
|
1071
|
-
|
|
1072
|
-
<span class='type'>(<tt><span class='object_link'><a href="" title="Simple2ch::Res (class)">Res</a></span></tt>)</span>
|
|
1073
|
-
|
|
1074
|
-
|
|
1075
|
-
|
|
1076
|
-
—
|
|
1077
|
-
<div class='inline'>
|
|
1078
|
-
<p>新規Resオブジェクト</p>
|
|
1079
|
-
</div>
|
|
1080
|
-
|
|
1081
|
-
</li>
|
|
1082
|
-
|
|
1083
|
-
</ul>
|
|
1084
|
-
<p class="tag_title">Raises:</p>
|
|
1085
|
-
<ul class="raise">
|
|
1086
|
-
|
|
1087
|
-
<li>
|
|
1088
|
-
|
|
1089
|
-
|
|
1090
|
-
<span class='type'>(<tt><span class='object_link'><a href="KakoLogException.html" title="Simple2ch::KakoLogException (class)">KakoLogException</a></span></tt>)</span>
|
|
1091
|
-
|
|
1092
|
-
|
|
1093
|
-
|
|
1094
|
-
—
|
|
1095
|
-
<div class='inline'>
|
|
1096
|
-
<p>過去ログ情報をパースしようとした際に発生</p>
|
|
1097
|
-
</div>
|
|
1098
|
-
|
|
1099
|
-
</li>
|
|
1100
|
-
|
|
1101
|
-
</ul>
|
|
1102
|
-
|
|
1103
|
-
</div><table class="source_code">
|
|
1104
|
-
<tr>
|
|
1105
|
-
<td>
|
|
1106
|
-
<pre class="lines">
|
|
1107
|
-
|
|
1108
|
-
|
|
1109
|
-
42
|
|
1110
|
-
43
|
|
1111
|
-
44
|
|
1112
|
-
45
|
|
1113
|
-
46
|
|
1114
|
-
47
|
|
1115
|
-
48
|
|
1116
|
-
49
|
|
1117
|
-
50</pre>
|
|
1118
|
-
</td>
|
|
1119
|
-
<td>
|
|
1120
|
-
<pre class="code"><span class="info file"># File 'lib/simple2ch/res.rb', line 42</span>
|
|
1121
|
-
|
|
1122
|
-
<span class='kw'>def</span> <span class='kw'>self</span><span class='period'>.</span><span class='id identifier rubyid_parse'>parse</span><span class='lparen'>(</span><span class='id identifier rubyid_res_num'>res_num</span><span class='comma'>,</span> <span class='id identifier rubyid_contents'>contents</span><span class='comma'>,</span> <span class='id identifier rubyid_thre'>thre</span><span class='op'>=</span><span class='kw'>nil</span><span class='rparen'>)</span>
|
|
1123
|
-
<span class='kw'>unless</span> <span class='id identifier rubyid_contents'>contents</span><span class='period'>.</span><span class='id identifier rubyid_strip'>strip</span> <span class='op'>==</span> <span class='const'>KAKO_LOG_INFO</span>
|
|
1124
|
-
<span class='id identifier rubyid_hash'>hash</span> <span class='op'>=</span> <span class='id identifier rubyid_parse_dat'>parse_dat</span><span class='lparen'>(</span><span class='id identifier rubyid_contents'>contents</span><span class='rparen'>)</span>
|
|
1125
|
-
<span class='id identifier rubyid_hash'>hash</span><span class='lbracket'>[</span><span class='symbol'>:thre</span><span class='rbracket'>]</span> <span class='op'>=</span> <span class='id identifier rubyid_thre'>thre</span> <span class='kw'>if</span> <span class='id identifier rubyid_thre'>thre</span>
|
|
1126
|
-
<span class='kw'>return</span> <span class='kw'>self</span><span class='period'>.</span><span class='id identifier rubyid_new'>new</span><span class='lparen'>(</span><span class='id identifier rubyid_res_num'>res_num</span><span class='comma'>,</span> <span class='id identifier rubyid_hash'>hash</span><span class='rparen'>)</span>
|
|
1127
|
-
<span class='kw'>else</span>
|
|
1128
|
-
<span class='id identifier rubyid_raise'>raise</span> <span class='const'>KakoLogException</span>
|
|
1129
|
-
<span class='kw'>end</span>
|
|
1130
|
-
<span class='kw'>end</span></pre>
|
|
1131
|
-
</td>
|
|
1132
|
-
</tr>
|
|
1133
|
-
</table>
|
|
1134
|
-
</div>
|
|
1135
|
-
|
|
1136
|
-
</div>
|
|
1137
|
-
|
|
1138
|
-
<div id="instance_method_details" class="method_details_list">
|
|
1139
|
-
<h2>Instance Method Details</h2>
|
|
1140
|
-
|
|
1141
|
-
|
|
1142
|
-
<div class="method_details first">
|
|
1143
|
-
<h3 class="signature first" id="anchors-instance_method">
|
|
1144
|
-
|
|
1145
|
-
- (<tt>Array<Fixnum></tt>) <strong>anchors</strong>
|
|
1146
|
-
|
|
1147
|
-
|
|
1148
|
-
|
|
1149
|
-
|
|
1150
|
-
|
|
1151
|
-
</h3><div class="docstring">
|
|
1152
|
-
<div class="discussion">
|
|
1153
|
-
|
|
1154
|
-
<p>アンカーを抽出する 荒らしの場合は空配列を返す</p>
|
|
1155
|
-
|
|
1156
|
-
|
|
1157
|
-
</div>
|
|
1158
|
-
</div>
|
|
1159
|
-
<div class="tags">
|
|
1160
|
-
|
|
1161
|
-
<p class="tag_title">Returns:</p>
|
|
1162
|
-
<ul class="return">
|
|
1163
|
-
|
|
1164
|
-
<li>
|
|
1165
|
-
|
|
1166
|
-
|
|
1167
|
-
<span class='type'>(<tt>Array<Fixnum></tt>)</span>
|
|
1168
|
-
|
|
1169
|
-
|
|
1170
|
-
|
|
1171
|
-
—
|
|
1172
|
-
<div class='inline'>
|
|
1173
|
-
<p>昇順ソート済みアンカー、荒らしの場合は空配列</p>
|
|
1174
|
-
</div>
|
|
1175
|
-
|
|
1176
|
-
</li>
|
|
1177
|
-
|
|
1178
|
-
</ul>
|
|
1179
|
-
|
|
1180
|
-
</div><table class="source_code">
|
|
1181
|
-
<tr>
|
|
1182
|
-
<td>
|
|
1183
|
-
<pre class="lines">
|
|
1184
|
-
|
|
1185
|
-
|
|
1186
|
-
54
|
|
1187
|
-
55
|
|
1188
|
-
56
|
|
1189
|
-
57
|
|
1190
|
-
58
|
|
1191
|
-
59
|
|
1192
|
-
60
|
|
1193
|
-
61
|
|
1194
|
-
62
|
|
1195
|
-
63
|
|
1196
|
-
64
|
|
1197
|
-
65
|
|
1198
|
-
66
|
|
1199
|
-
67
|
|
1200
|
-
68
|
|
1201
|
-
69
|
|
1202
|
-
70
|
|
1203
|
-
71
|
|
1204
|
-
72
|
|
1205
|
-
73
|
|
1206
|
-
74</pre>
|
|
1207
|
-
</td>
|
|
1208
|
-
<td>
|
|
1209
|
-
<pre class="code"><span class="info file"># File 'lib/simple2ch/res.rb', line 54</span>
|
|
1210
|
-
|
|
1211
|
-
<span class='kw'>def</span> <span class='id identifier rubyid_anchors'>anchors</span>
|
|
1212
|
-
<span class='id identifier rubyid_arashi_removal_regex'>arashi_removal_regex</span> <span class='op'>=</span> <span class='tstring'><span class='regexp_beg'>/</span><span class='tstring_content'>(?:\d{1,4}(?:\]*>)?(?:>|\[>,+-\]){1,2}){9}</span><span class='regexp_end'>/</span></span>
|
|
1213
|
-
<span class='kw'>unless</span> <span class='kw'>self</span><span class='period'>.</span><span class='id identifier rubyid_contents'>contents</span> <span class='op'>=~</span> <span class='id identifier rubyid_arashi_removal_regex'>arashi_removal_regex</span>
|
|
1214
|
-
<span class='id identifier rubyid_splitter_regex'>splitter_regex</span> <span class='op'>=</span> <span class='tstring'><span class='tstring_beg'>'</span><span class='tstring_content'>[,、, ]</span><span class='tstring_end'>'</span></span>
|
|
1215
|
-
<span class='id identifier rubyid_digit_regex'>digit_regex</span> <span class='op'>=</span> <span class='tstring'><span class='tstring_beg'>'</span><span class='tstring_content'>(?:\d|[0-9])+</span><span class='tstring_end'>'</span></span>
|
|
1216
|
-
<span class='id identifier rubyid_hyphen_regex'>hyphen_regex</span> <span class='op'>=</span> <span class='tstring'><span class='tstring_beg'>'</span><span class='tstring_content'>[−ーー\-〜~〜]</span><span class='tstring_end'>'</span></span>
|
|
1217
|
-
<span class='id identifier rubyid_extracted'>extracted</span> <span class='op'>=</span> <span class='kw'>self</span><span class='period'>.</span><span class='id identifier rubyid_contents'>contents</span><span class='period'>.</span><span class='id identifier rubyid_scan'>scan</span> <span class='tstring'><span class='regexp_beg'>/</span><span class='tstring_content'>&gt;((?:</span><span class='embexpr_beg'>#{</span><span class='id identifier rubyid_digit_regex'>digit_regex</span><span class='embexpr_end'>}</span><span class='tstring_content'>(?:</span><span class='embexpr_beg'>#{</span><span class='id identifier rubyid_splitter_regex'>splitter_regex</span><span class='embexpr_end'>}</span><span class='tstring_content'>|</span><span class='embexpr_beg'>#{</span><span class='id identifier rubyid_hyphen_regex'>hyphen_regex</span><span class='embexpr_end'>}</span><span class='tstring_content'>)*)+)</span><span class='regexp_end'>/</span></span>
|
|
1218
|
-
<span class='id identifier rubyid_anchors'>anchors</span> <span class='op'>=</span> <span class='id identifier rubyid_extracted'>extracted</span><span class='period'>.</span><span class='id identifier rubyid_flatten'>flatten</span><span class='period'>.</span><span class='id identifier rubyid_to_s'>to_s</span><span class='period'>.</span><span class='id identifier rubyid_gsub'>gsub</span><span class='lparen'>(</span><span class='tstring'><span class='regexp_beg'>/</span><span class='tstring_content'>[\"\[\]]</span><span class='regexp_end'>/</span></span><span class='comma'>,</span><span class='tstring'><span class='tstring_beg'>'</span><span class='tstring_end'>'</span></span><span class='rparen'>)</span><span class='period'>.</span><span class='id identifier rubyid_split'>split</span><span class='lparen'>(</span><span class='tstring'><span class='regexp_beg'>/</span><span class='embexpr_beg'>#{</span><span class='id identifier rubyid_splitter_regex'>splitter_regex</span><span class='embexpr_end'>}</span><span class='regexp_end'>/</span></span><span class='rparen'>)</span>
|
|
1219
|
-
<span class='id identifier rubyid_anchors'>anchors</span><span class='period'>.</span><span class='id identifier rubyid_delete'>delete</span><span class='lparen'>(</span><span class='tstring'><span class='tstring_beg'>'</span><span class='tstring_end'>'</span></span><span class='rparen'>)</span>
|
|
1220
|
-
<span class='id identifier rubyid_anchors'>anchors</span><span class='period'>.</span><span class='id identifier rubyid_map!'>map!</span> <span class='kw'>do</span> <span class='op'>|</span><span class='id identifier rubyid_a'>a</span><span class='op'>|</span>
|
|
1221
|
-
<span class='kw'>if</span> <span class='id identifier rubyid_a'>a</span> <span class='op'>=~</span> <span class='tstring'><span class='regexp_beg'>/</span><span class='tstring_content'>(</span><span class='embexpr_beg'>#{</span><span class='id identifier rubyid_digit_regex'>digit_regex</span><span class='embexpr_end'>}</span><span class='tstring_content'>)</span><span class='embexpr_beg'>#{</span><span class='id identifier rubyid_hyphen_regex'>hyphen_regex</span><span class='embexpr_end'>}</span><span class='tstring_content'>(</span><span class='embexpr_beg'>#{</span><span class='id identifier rubyid_digit_regex'>digit_regex</span><span class='embexpr_end'>}</span><span class='tstring_content'>)</span><span class='regexp_end'>/</span></span>
|
|
1222
|
-
<span class='lparen'>(</span><span class='const'>Range</span><span class='period'>.</span><span class='id identifier rubyid_new'>new</span> <span class='id identifier rubyid_parseInt'>parseInt</span><span class='lparen'>(</span><span class='backref'>$1</span><span class='rparen'>)</span><span class='comma'>,</span> <span class='id identifier rubyid_parseInt'>parseInt</span><span class='lparen'>(</span><span class='backref'>$2</span><span class='rparen'>)</span><span class='rparen'>)</span><span class='period'>.</span><span class='id identifier rubyid_to_a'>to_a</span>
|
|
1223
|
-
<span class='kw'>else</span>
|
|
1224
|
-
<span class='id identifier rubyid_parseInt'>parseInt</span><span class='lparen'>(</span><span class='id identifier rubyid_a'>a</span><span class='rparen'>)</span>
|
|
1225
|
-
<span class='kw'>end</span>
|
|
1226
|
-
<span class='kw'>end</span>
|
|
1227
|
-
<span class='id identifier rubyid_anchors'>anchors</span><span class='period'>.</span><span class='id identifier rubyid_flatten'>flatten</span><span class='period'>.</span><span class='id identifier rubyid_uniq'>uniq</span><span class='period'>.</span><span class='id identifier rubyid_sort'>sort</span>
|
|
1228
|
-
<span class='kw'>else</span>
|
|
1229
|
-
<span class='lbracket'>[</span><span class='rbracket'>]</span>
|
|
1230
|
-
<span class='kw'>end</span>
|
|
1231
|
-
<span class='kw'>end</span></pre>
|
|
1232
|
-
</td>
|
|
1233
|
-
</tr>
|
|
1234
|
-
</table>
|
|
1235
|
-
</div>
|
|
1236
|
-
|
|
1237
|
-
<div class="method_details ">
|
|
1238
|
-
<h3 class="signature " id="received_anchors-instance_method">
|
|
1239
|
-
|
|
1240
|
-
- (<tt>Object</tt>) <strong>received_anchors</strong>
|
|
1241
|
-
|
|
1242
|
-
|
|
1243
|
-
|
|
1244
|
-
|
|
1245
|
-
|
|
1246
|
-
</h3><div class="docstring">
|
|
1247
|
-
<div class="discussion">
|
|
1248
|
-
|
|
1249
|
-
<p>自レスへのアンカーが書き込まれているレス番号を返す</p>
|
|
1250
|
-
|
|
1251
|
-
|
|
1252
|
-
</div>
|
|
1253
|
-
</div>
|
|
1254
|
-
<div class="tags">
|
|
1255
|
-
|
|
1256
|
-
|
|
1257
|
-
</div><table class="source_code">
|
|
1258
|
-
<tr>
|
|
1259
|
-
<td>
|
|
1260
|
-
<pre class="lines">
|
|
1261
|
-
|
|
1262
|
-
|
|
1263
|
-
78
|
|
1264
|
-
79
|
|
1265
|
-
80
|
|
1266
|
-
81
|
|
1267
|
-
82</pre>
|
|
1268
|
-
</td>
|
|
1269
|
-
<td>
|
|
1270
|
-
<pre class="code"><span class="info file"># File 'lib/simple2ch/res.rb', line 78</span>
|
|
1271
|
-
|
|
1272
|
-
<span class='kw'>def</span> <span class='id identifier rubyid_received_anchors'>received_anchors</span>
|
|
1273
|
-
<span class='id identifier rubyid_thre'>thre</span> <span class='op'>=</span> <span class='id identifier rubyid_get_thre'>get_thre</span>
|
|
1274
|
-
<span class='id identifier rubyid_received_anchors'>received_anchors</span> <span class='op'>=</span> <span class='id identifier rubyid_thre'>thre</span><span class='period'>.</span><span class='id identifier rubyid_received_anchors'>received_anchors</span>
|
|
1275
|
-
<span class='id identifier rubyid_received_anchors'>received_anchors</span><span class='period'>.</span><span class='id identifier rubyid_fetch'>fetch</span><span class='lparen'>(</span><span class='ivar'>@res_num</span><span class='comma'>,</span> <span class='lbracket'>[</span><span class='rbracket'>]</span><span class='rparen'>)</span>
|
|
1276
|
-
<span class='kw'>end</span></pre>
|
|
1277
|
-
</td>
|
|
1278
|
-
</tr>
|
|
1279
|
-
</table>
|
|
1280
|
-
</div>
|
|
1281
|
-
|
|
1282
|
-
</div>
|
|
1283
|
-
|
|
1284
|
-
</div>
|
|
1285
|
-
|
|
1286
|
-
<div id="footer">
|
|
1287
|
-
Generated on Tue Sep 16 11:23:33 2014 by
|
|
1288
|
-
<a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
|
|
1289
|
-
0.8.7.4 (ruby-2.1.2).
|
|
1290
|
-
</div>
|
|
1291
|
-
|
|
1292
|
-
</body>
|
|
1293
|
-
</html>
|