simple2ch 0.1.1 → 0.1.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +17 -20
- data/UPDATES.md +11 -0
- data/doc/Simple2ch/Board.html +1 -1
- data/doc/Simple2ch/Dat.html +11 -7
- data/doc/Simple2ch/DatParseException.html +1 -1
- data/doc/Simple2ch/KakoLogException.html +1 -1
- data/doc/Simple2ch/NoThreGivenException.html +131 -0
- data/doc/Simple2ch/NotA2chUrlException.html +1 -1
- data/doc/Simple2ch/Res.html +158 -24
- data/doc/Simple2ch/Simple2chException.html +2 -2
- data/doc/Simple2ch/Thre.html +143 -19
- data/doc/Simple2ch.html +3 -3
- data/doc/_index.html +8 -1
- data/doc/class_list.html +1 -1
- data/doc/file.README.html +5 -6
- data/doc/index.html +5 -6
- data/doc/method_list.html +20 -8
- data/doc/top-level-namespace.html +1 -1
- data/lib/simple2ch/dat.rb +9 -9
- data/lib/simple2ch/res.rb +27 -4
- data/lib/simple2ch/simple2ch_exception.rb +1 -0
- data/lib/simple2ch/thre.rb +33 -5
- data/lib/simple2ch/version.rb +1 -1
- data/spec/dat_spec.rb +2 -1
- data/spec/res_spec.rb +19 -4
- data/spec/thre_spec.rb +28 -5
- metadata +3 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 01c7daa2f8887e0510be98b68a902942087d1e9f
|
4
|
+
data.tar.gz: 8555a1e2218ca88cbed94c5067e7da6499503344
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: c9f48f056a4e3b166b14bcd1872f9fc08f5efdc02b405103b749ab21d15b7411bab75351f1b1c80c5439737aa88fa8456832eeb21a25fb88a793255eaf817ed9
|
7
|
+
data.tar.gz: 9b4b8b87b25b878d6ea2dc2cd1a36dc760fcd61b286658d7d4938f499eecc5eb1efba46167b6bcfde5f4138393b6a1ccf975a04f8e54de08344c2a535119f3a5
|
data/README.md
CHANGED
@@ -8,26 +8,23 @@ Ruby用の2chの簡易リーダーです。
|
|
8
8
|
[リファレンス](http://dogwood008.github.io/simple2ch/)
|
9
9
|
|
10
10
|
## 更新内容
|
11
|
-
[v0.1.
|
12
|
-
*
|
13
|
-
|
14
|
-
|
15
|
-
|
16
|
-
*
|
17
|
-
|
18
|
-
*
|
19
|
-
*
|
20
|
-
|
21
|
-
|
22
|
-
|
23
|
-
|
24
|
-
*
|
25
|
-
*
|
26
|
-
*
|
27
|
-
|
28
|
-
* yardの結果を追加
|
29
|
-
|
30
|
-
|
11
|
+
[v0.1.2]
|
12
|
+
* リファクタリングとデバッグ
|
13
|
+
* メソッド修正
|
14
|
+
* Thre#reses(Array<Fixnum>)で指定したレス番号のレスを取得
|
15
|
+
* Thre#resesは今まで通り使用可能
|
16
|
+
* メソッド追加
|
17
|
+
* Thre#received_anchors
|
18
|
+
* 全レスについて被レスを返す
|
19
|
+
* Res#received_anchors(Thre)
|
20
|
+
* 自レスへの被レスを返す
|
21
|
+
|
22
|
+
[v0.1.1]
|
23
|
+
* メソッド追加
|
24
|
+
* Res#anchorsの追加
|
25
|
+
* レス中のアンカーを抽出する
|
26
|
+
* 必要gemの追加
|
27
|
+
* Charwidthを追加
|
31
28
|
|
32
29
|
## Installation
|
33
30
|
|
data/UPDATES.md
CHANGED
@@ -1,3 +1,14 @@
|
|
1
|
+
[v0.1.2]
|
2
|
+
* リファクタリングとデバッグ
|
3
|
+
* メソッド修正
|
4
|
+
* Thre#reses(Array<Fixnum>)で指定したレス番号のレスを取得
|
5
|
+
* Thre#resesは今まで通り使用可能
|
6
|
+
* メソッド追加
|
7
|
+
* Thre#received_anchors
|
8
|
+
* 全レスについて被レスを返す
|
9
|
+
* Res#received_anchors(Thre)
|
10
|
+
* 自レスへの被レスを返す
|
11
|
+
|
1
12
|
[v0.1.1]
|
2
13
|
* メソッド追加
|
3
14
|
* Res#anchorsの追加
|
data/doc/Simple2ch/Board.html
CHANGED
@@ -702,7 +702,7 @@
|
|
702
702
|
</div>
|
703
703
|
|
704
704
|
<div id="footer">
|
705
|
-
Generated on
|
705
|
+
Generated on Tue Sep 16 11:23:33 2014 by
|
706
706
|
<a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
|
707
707
|
0.8.7.4 (ruby-2.1.2).
|
708
708
|
</div>
|
data/doc/Simple2ch/Dat.html
CHANGED
@@ -414,15 +414,17 @@
|
|
414
414
|
<pre class="lines">
|
415
415
|
|
416
416
|
|
417
|
-
23
|
418
417
|
24
|
419
|
-
25
|
418
|
+
25
|
419
|
+
26
|
420
|
+
27</pre>
|
420
421
|
</td>
|
421
422
|
<td>
|
422
|
-
<pre class="code"><span class="info file"># File 'lib/simple2ch/dat.rb', line
|
423
|
+
<pre class="code"><span class="info file"># File 'lib/simple2ch/dat.rb', line 24</span>
|
423
424
|
|
424
425
|
<span class='kw'>def</span> <span class='id identifier rubyid_kako_log?'>kako_log?</span>
|
425
|
-
<span class='
|
426
|
+
<span class='id identifier rubyid_parse_dat'>parse_dat</span> <span class='kw'>if</span> <span class='ivar'>@f_kako_log</span><span class='period'>.</span><span class='id identifier rubyid_nil?'>nil?</span>
|
427
|
+
<span class='ivar'>@f_kako_log</span>
|
426
428
|
<span class='kw'>end</span></pre>
|
427
429
|
</td>
|
428
430
|
</tr>
|
@@ -475,13 +477,15 @@
|
|
475
477
|
|
476
478
|
17
|
477
479
|
18
|
478
|
-
19
|
480
|
+
19
|
481
|
+
20</pre>
|
479
482
|
</td>
|
480
483
|
<td>
|
481
484
|
<pre class="code"><span class="info file"># File 'lib/simple2ch/dat.rb', line 17</span>
|
482
485
|
|
483
486
|
<span class='kw'>def</span> <span class='id identifier rubyid_reses'>reses</span>
|
484
|
-
<span class='
|
487
|
+
<span class='id identifier rubyid_parse_dat'>parse_dat</span> <span class='kw'>unless</span> <span class='ivar'>@reses</span>
|
488
|
+
<span class='ivar'>@reses</span>
|
485
489
|
<span class='kw'>end</span></pre>
|
486
490
|
</td>
|
487
491
|
</tr>
|
@@ -493,7 +497,7 @@
|
|
493
497
|
</div>
|
494
498
|
|
495
499
|
<div id="footer">
|
496
|
-
Generated on
|
500
|
+
Generated on Tue Sep 16 11:23:33 2014 by
|
497
501
|
<a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
|
498
502
|
0.8.7.4 (ruby-2.1.2).
|
499
503
|
</div>
|
@@ -122,7 +122,7 @@
|
|
122
122
|
</div>
|
123
123
|
|
124
124
|
<div id="footer">
|
125
|
-
Generated on
|
125
|
+
Generated on Tue Sep 16 11:23:33 2014 by
|
126
126
|
<a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
|
127
127
|
0.8.7.4 (ruby-2.1.2).
|
128
128
|
</div>
|
@@ -122,7 +122,7 @@
|
|
122
122
|
</div>
|
123
123
|
|
124
124
|
<div id="footer">
|
125
|
-
Generated on
|
125
|
+
Generated on Tue Sep 16 11:23:33 2014 by
|
126
126
|
<a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
|
127
127
|
0.8.7.4 (ruby-2.1.2).
|
128
128
|
</div>
|
@@ -0,0 +1,131 @@
|
|
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
|
+
Exception: Simple2ch::NoThreGivenException
|
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/NoThreGivenException.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 (N)</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">NoThreGivenException</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>Exception: Simple2ch::NoThreGivenException
|
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"><span class='object_link'><a href="Simple2chException.html" title="Simple2ch::Simple2chException (class)">Simple2chException</a></span></span>
|
77
|
+
|
78
|
+
<ul class="fullTree">
|
79
|
+
<li>Object</li>
|
80
|
+
|
81
|
+
<li class="next">Exception</li>
|
82
|
+
|
83
|
+
<li class="next"><span class='object_link'><a href="Simple2chException.html" title="Simple2ch::Simple2chException (class)">Simple2chException</a></span></li>
|
84
|
+
|
85
|
+
<li class="next">Simple2ch::NoThreGivenException</li>
|
86
|
+
|
87
|
+
</ul>
|
88
|
+
<a href="#" class="inheritanceTree">show all</a>
|
89
|
+
|
90
|
+
</dd>
|
91
|
+
|
92
|
+
|
93
|
+
|
94
|
+
|
95
|
+
|
96
|
+
|
97
|
+
|
98
|
+
|
99
|
+
|
100
|
+
<dt class="r2 last">Defined in:</dt>
|
101
|
+
<dd class="r2 last">lib/simple2ch/simple2ch_exception.rb</dd>
|
102
|
+
|
103
|
+
</dl>
|
104
|
+
<div class="clear"></div>
|
105
|
+
|
106
|
+
|
107
|
+
|
108
|
+
|
109
|
+
|
110
|
+
|
111
|
+
|
112
|
+
|
113
|
+
|
114
|
+
|
115
|
+
|
116
|
+
|
117
|
+
|
118
|
+
|
119
|
+
|
120
|
+
|
121
|
+
|
122
|
+
</div>
|
123
|
+
|
124
|
+
<div id="footer">
|
125
|
+
Generated on Tue Sep 16 11:23:33 2014 by
|
126
|
+
<a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
|
127
|
+
0.8.7.4 (ruby-2.1.2).
|
128
|
+
</div>
|
129
|
+
|
130
|
+
</body>
|
131
|
+
</html>
|
@@ -122,7 +122,7 @@
|
|
122
122
|
</div>
|
123
123
|
|
124
124
|
<div id="footer">
|
125
|
-
Generated on
|
125
|
+
Generated on Tue Sep 16 11:23:33 2014 by
|
126
126
|
<a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
|
127
127
|
0.8.7.4 (ruby-2.1.2).
|
128
128
|
</div>
|
data/doc/Simple2ch/Res.html
CHANGED
@@ -289,6 +289,33 @@
|
|
289
289
|
<p>レス番号.</p>
|
290
290
|
</div></span>
|
291
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
|
+
|
292
319
|
</li>
|
293
320
|
|
294
321
|
|
@@ -308,7 +335,7 @@
|
|
308
335
|
<li class="public ">
|
309
336
|
<span class="summary_signature">
|
310
337
|
|
311
|
-
<a href="#parse-class_method" title="parse (class method)">+ (Res) <strong>parse</strong>(res_num, contents) </a>
|
338
|
+
<a href="#parse-class_method" title="parse (class method)">+ (Res) <strong>parse</strong>(res_num, contents, thre = nil) </a>
|
312
339
|
|
313
340
|
|
314
341
|
|
@@ -365,7 +392,7 @@
|
|
365
392
|
<li class="public ">
|
366
393
|
<span class="summary_signature">
|
367
394
|
|
368
|
-
<a href="#initialize-instance_method" title="#initialize (instance method)">- (Res) <strong>initialize</strong>(res_num, author: '', author_id: '', date: nil, mail: '', contents: ''
|
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>
|
369
396
|
|
370
397
|
|
371
398
|
|
@@ -385,6 +412,30 @@
|
|
385
412
|
<p>A new instance of Res.</p>
|
386
413
|
</div></span>
|
387
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
|
+
|
388
439
|
</li>
|
389
440
|
|
390
441
|
|
@@ -397,7 +448,7 @@
|
|
397
448
|
<div class="method_details first">
|
398
449
|
<h3 class="signature first" id="initialize-instance_method">
|
399
450
|
|
400
|
-
- (<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: ''
|
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)
|
401
452
|
|
402
453
|
|
403
454
|
|
@@ -520,25 +571,27 @@
|
|
520
571
|
<pre class="lines">
|
521
572
|
|
522
573
|
|
523
|
-
25
|
524
|
-
26
|
525
574
|
27
|
526
575
|
28
|
527
576
|
29
|
528
577
|
30
|
529
578
|
31
|
530
|
-
32
|
579
|
+
32
|
580
|
+
33
|
581
|
+
34
|
582
|
+
35</pre>
|
531
583
|
</td>
|
532
584
|
<td>
|
533
|
-
<pre class="code"><span class="info file"># File 'lib/simple2ch/res.rb', line
|
585
|
+
<pre class="code"><span class="info file"># File 'lib/simple2ch/res.rb', line 27</span>
|
534
586
|
|
535
|
-
<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='rparen'>)</span>
|
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>
|
536
588
|
<span class='ivar'>@res_num</span> <span class='op'>=</span> <span class='id identifier rubyid_res_num'>res_num</span>
|
537
589
|
<span class='ivar'>@author</span> <span class='op'>=</span> <span class='id identifier rubyid_author'>author</span>
|
538
590
|
<span class='ivar'>@author_id</span> <span class='op'>=</span> <span class='id identifier rubyid_author_id'>author_id</span>
|
539
591
|
<span class='ivar'>@date</span> <span class='op'>=</span> <span class='id identifier rubyid_date'>date</span>
|
540
592
|
<span class='ivar'>@mail</span> <span class='op'>=</span> <span class='id identifier rubyid_mail'>mail</span>
|
541
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>
|
542
595
|
<span class='kw'>end</span></pre>
|
543
596
|
</td>
|
544
597
|
</tr>
|
@@ -916,6 +969,38 @@
|
|
916
969
|
</table>
|
917
970
|
</div>
|
918
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
|
+
|
919
1004
|
</div>
|
920
1005
|
|
921
1006
|
|
@@ -926,7 +1011,7 @@
|
|
926
1011
|
<div class="method_details first">
|
927
1012
|
<h3 class="signature first" id="parse-class_method">
|
928
1013
|
|
929
|
-
+ (<tt><span class='object_link'><a href="" title="Simple2ch::Res (class)">Res</a></span></tt>) <strong>parse</strong>(res_num, contents)
|
1014
|
+
+ (<tt><span class='object_link'><a href="" title="Simple2ch::Res (class)">Res</a></span></tt>) <strong>parse</strong>(res_num, contents, thre = nil)
|
930
1015
|
|
931
1016
|
|
932
1017
|
|
@@ -1021,20 +1106,24 @@
|
|
1021
1106
|
<pre class="lines">
|
1022
1107
|
|
1023
1108
|
|
1024
|
-
39
|
1025
|
-
40
|
1026
|
-
41
|
1027
1109
|
42
|
1028
1110
|
43
|
1029
1111
|
44
|
1030
|
-
45
|
1112
|
+
45
|
1113
|
+
46
|
1114
|
+
47
|
1115
|
+
48
|
1116
|
+
49
|
1117
|
+
50</pre>
|
1031
1118
|
</td>
|
1032
1119
|
<td>
|
1033
|
-
<pre class="code"><span class="info file"># File 'lib/simple2ch/res.rb', line
|
1120
|
+
<pre class="code"><span class="info file"># File 'lib/simple2ch/res.rb', line 42</span>
|
1034
1121
|
|
1035
|
-
<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='rparen'>)</span>
|
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>
|
1036
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>
|
1037
|
-
<span class='
|
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>
|
1038
1127
|
<span class='kw'>else</span>
|
1039
1128
|
<span class='id identifier rubyid_raise'>raise</span> <span class='const'>KakoLogException</span>
|
1040
1129
|
<span class='kw'>end</span>
|
@@ -1094,11 +1183,6 @@
|
|
1094
1183
|
<pre class="lines">
|
1095
1184
|
|
1096
1185
|
|
1097
|
-
49
|
1098
|
-
50
|
1099
|
-
51
|
1100
|
-
52
|
1101
|
-
53
|
1102
1186
|
54
|
1103
1187
|
55
|
1104
1188
|
56
|
@@ -1114,10 +1198,15 @@
|
|
1114
1198
|
66
|
1115
1199
|
67
|
1116
1200
|
68
|
1117
|
-
69
|
1201
|
+
69
|
1202
|
+
70
|
1203
|
+
71
|
1204
|
+
72
|
1205
|
+
73
|
1206
|
+
74</pre>
|
1118
1207
|
</td>
|
1119
1208
|
<td>
|
1120
|
-
<pre class="code"><span class="info file"># File 'lib/simple2ch/res.rb', line
|
1209
|
+
<pre class="code"><span class="info file"># File 'lib/simple2ch/res.rb', line 54</span>
|
1121
1210
|
|
1122
1211
|
<span class='kw'>def</span> <span class='id identifier rubyid_anchors'>anchors</span>
|
1123
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>
|
@@ -1143,6 +1232,51 @@
|
|
1143
1232
|
</td>
|
1144
1233
|
</tr>
|
1145
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>
|
1146
1280
|
</div>
|
1147
1281
|
|
1148
1282
|
</div>
|
@@ -1150,7 +1284,7 @@
|
|
1150
1284
|
</div>
|
1151
1285
|
|
1152
1286
|
<div id="footer">
|
1153
|
-
Generated on
|
1287
|
+
Generated on Tue Sep 16 11:23:33 2014 by
|
1154
1288
|
<a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
|
1155
1289
|
0.8.7.4 (ruby-2.1.2).
|
1156
1290
|
</div>
|
@@ -103,7 +103,7 @@
|
|
103
103
|
|
104
104
|
<div id="subclasses">
|
105
105
|
<h2>Direct Known Subclasses</h2>
|
106
|
-
<p class="children"><span class='object_link'><a href="DatParseException.html" title="Simple2ch::DatParseException (class)">DatParseException</a></span>, <span class='object_link'><a href="KakoLogException.html" title="Simple2ch::KakoLogException (class)">KakoLogException</a></span>, <span class='object_link'><a href="NotA2chUrlException.html" title="Simple2ch::NotA2chUrlException (class)">NotA2chUrlException</a></span></p>
|
106
|
+
<p class="children"><span class='object_link'><a href="DatParseException.html" title="Simple2ch::DatParseException (class)">DatParseException</a></span>, <span class='object_link'><a href="KakoLogException.html" title="Simple2ch::KakoLogException (class)">KakoLogException</a></span>, <span class='object_link'><a href="NoThreGivenException.html" title="Simple2ch::NoThreGivenException (class)">NoThreGivenException</a></span>, <span class='object_link'><a href="NotA2chUrlException.html" title="Simple2ch::NotA2chUrlException (class)">NotA2chUrlException</a></span></p>
|
107
107
|
</div>
|
108
108
|
|
109
109
|
|
@@ -118,7 +118,7 @@
|
|
118
118
|
</div>
|
119
119
|
|
120
120
|
<div id="footer">
|
121
|
-
Generated on
|
121
|
+
Generated on Tue Sep 16 11:23:33 2014 by
|
122
122
|
<a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
|
123
123
|
0.8.7.4 (ruby-2.1.2).
|
124
124
|
</div>
|