simple2ch 0.0.1
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 +7 -0
- data/.gitignore +123 -0
- data/Gemfile +4 -0
- data/LICENSE.txt +22 -0
- data/README.md +29 -0
- data/Rakefile +2 -0
- data/doc/Simple2ch/Board.html +711 -0
- data/doc/Simple2ch/Dat.html +502 -0
- data/doc/Simple2ch/DatParseException.html +131 -0
- data/doc/Simple2ch/KakoLogException.html +131 -0
- data/doc/Simple2ch/NotA2chUrlException.html +131 -0
- data/doc/Simple2ch/Res.html +1034 -0
- data/doc/Simple2ch/Simple2chException.html +127 -0
- data/doc/Simple2ch/Thre.html +792 -0
- data/doc/Simple2ch.html +314 -0
- data/doc/_index.html +214 -0
- data/doc/class_list.html +54 -0
- data/doc/css/common.css +1 -0
- data/doc/css/full_list.css +57 -0
- data/doc/css/style.css +339 -0
- data/doc/file.README.html +111 -0
- data/doc/file_list.html +56 -0
- data/doc/frames.html +26 -0
- data/doc/index.html +111 -0
- data/doc/js/app.js +219 -0
- data/doc/js/full_list.js +178 -0
- data/doc/js/jquery.js +4 -0
- data/doc/method_list.html +215 -0
- data/doc/top-level-namespace.html +112 -0
- data/lib/simple2ch/board.rb +70 -0
- data/lib/simple2ch/dat.rb +57 -0
- data/lib/simple2ch/res.rb +70 -0
- data/lib/simple2ch/simple2ch_exception.rb +6 -0
- data/lib/simple2ch/thre.rb +49 -0
- data/lib/simple2ch/version.rb +3 -0
- data/lib/simple2ch.rb +31 -0
- data/simple2ch.gemspec +33 -0
- data/spec/board_spec.rb +45 -0
- data/spec/dat_spec.rb +27 -0
- data/spec/res_spec.rb +42 -0
- data/spec/simple2ch_spec.rb +33 -0
- data/spec/spec_helper.rb +48 -0
- data/spec/thre_spec.rb +37 -0
- metadata +176 -0
@@ -0,0 +1,1034 @@
|
|
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/ruby2ch/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
|
+
</ul>
|
296
|
+
|
297
|
+
|
298
|
+
|
299
|
+
|
300
|
+
|
301
|
+
<h2>
|
302
|
+
Class Method Summary
|
303
|
+
<small>(<a href="#" class="summary_toggle">collapse</a>)</small>
|
304
|
+
</h2>
|
305
|
+
|
306
|
+
<ul class="summary">
|
307
|
+
|
308
|
+
<li class="public ">
|
309
|
+
<span class="summary_signature">
|
310
|
+
|
311
|
+
<a href="#parse-class_method" title="parse (class method)">+ (Res) <strong>parse</strong>(res_num, contents) </a>
|
312
|
+
|
313
|
+
|
314
|
+
|
315
|
+
</span>
|
316
|
+
|
317
|
+
|
318
|
+
|
319
|
+
|
320
|
+
|
321
|
+
|
322
|
+
|
323
|
+
|
324
|
+
|
325
|
+
<span class="summary_desc"><div class='inline'>
|
326
|
+
<p>Datの1行から各項目を分離して、Resオブジェクトを返す.</p>
|
327
|
+
</div></span>
|
328
|
+
|
329
|
+
</li>
|
330
|
+
|
331
|
+
|
332
|
+
</ul>
|
333
|
+
|
334
|
+
<h2>
|
335
|
+
Instance Method Summary
|
336
|
+
<small>(<a href="#" class="summary_toggle">collapse</a>)</small>
|
337
|
+
</h2>
|
338
|
+
|
339
|
+
<ul class="summary">
|
340
|
+
|
341
|
+
<li class="public ">
|
342
|
+
<span class="summary_signature">
|
343
|
+
|
344
|
+
<a href="#initialize-instance_method" title="#initialize (instance method)">- (Res) <strong>initialize</strong>(res_num, author: '', author_id: '', date: nil, mail: '', contents: '') </a>
|
345
|
+
|
346
|
+
|
347
|
+
|
348
|
+
</span>
|
349
|
+
|
350
|
+
|
351
|
+
<span class="note title constructor">constructor</span>
|
352
|
+
|
353
|
+
|
354
|
+
|
355
|
+
|
356
|
+
|
357
|
+
|
358
|
+
|
359
|
+
|
360
|
+
<span class="summary_desc"><div class='inline'>
|
361
|
+
<p>A new instance of Res.</p>
|
362
|
+
</div></span>
|
363
|
+
|
364
|
+
</li>
|
365
|
+
|
366
|
+
|
367
|
+
</ul>
|
368
|
+
|
369
|
+
|
370
|
+
<div id="constructor_details" class="method_details_list">
|
371
|
+
<h2>Constructor Details</h2>
|
372
|
+
|
373
|
+
<div class="method_details first">
|
374
|
+
<h3 class="signature first" id="initialize-instance_method">
|
375
|
+
|
376
|
+
- (<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: '')
|
377
|
+
|
378
|
+
|
379
|
+
|
380
|
+
|
381
|
+
|
382
|
+
</h3><div class="docstring">
|
383
|
+
<div class="discussion">
|
384
|
+
|
385
|
+
<p>Returns a new instance of Res</p>
|
386
|
+
|
387
|
+
|
388
|
+
</div>
|
389
|
+
</div>
|
390
|
+
<div class="tags">
|
391
|
+
<p class="tag_title">Parameters:</p>
|
392
|
+
<ul class="param">
|
393
|
+
|
394
|
+
<li>
|
395
|
+
|
396
|
+
<span class='name'>res_num</span>
|
397
|
+
|
398
|
+
|
399
|
+
<span class='type'>(<tt>Fixnum</tt>)</span>
|
400
|
+
|
401
|
+
|
402
|
+
|
403
|
+
—
|
404
|
+
<div class='inline'>
|
405
|
+
<p>レス番号</p>
|
406
|
+
</div>
|
407
|
+
|
408
|
+
</li>
|
409
|
+
|
410
|
+
<li>
|
411
|
+
|
412
|
+
<span class='name'>author</span>
|
413
|
+
|
414
|
+
|
415
|
+
<span class='type'>(<tt>String</tt>)</span>
|
416
|
+
|
417
|
+
|
418
|
+
|
419
|
+
—
|
420
|
+
<div class='inline'>
|
421
|
+
<p>投稿者名</p>
|
422
|
+
</div>
|
423
|
+
|
424
|
+
</li>
|
425
|
+
|
426
|
+
<li>
|
427
|
+
|
428
|
+
<span class='name'>author_id</span>
|
429
|
+
|
430
|
+
|
431
|
+
<span class='type'>(<tt>String</tt>)</span>
|
432
|
+
|
433
|
+
|
434
|
+
|
435
|
+
—
|
436
|
+
<div class='inline'>
|
437
|
+
<p>ID</p>
|
438
|
+
</div>
|
439
|
+
|
440
|
+
</li>
|
441
|
+
|
442
|
+
<li>
|
443
|
+
|
444
|
+
<span class='name'>date</span>
|
445
|
+
|
446
|
+
|
447
|
+
<span class='type'>(<tt>Time</tt>)</span>
|
448
|
+
|
449
|
+
|
450
|
+
|
451
|
+
—
|
452
|
+
<div class='inline'>
|
453
|
+
<p>書き込み日時</p>
|
454
|
+
</div>
|
455
|
+
|
456
|
+
</li>
|
457
|
+
|
458
|
+
<li>
|
459
|
+
|
460
|
+
<span class='name'>mail</span>
|
461
|
+
|
462
|
+
|
463
|
+
<span class='type'>(<tt>String</tt>)</span>
|
464
|
+
|
465
|
+
|
466
|
+
|
467
|
+
—
|
468
|
+
<div class='inline'>
|
469
|
+
<p>メール欄</p>
|
470
|
+
</div>
|
471
|
+
|
472
|
+
</li>
|
473
|
+
|
474
|
+
<li>
|
475
|
+
|
476
|
+
<span class='name'>contents</span>
|
477
|
+
|
478
|
+
|
479
|
+
<span class='type'>(<tt>String</tt>)</span>
|
480
|
+
|
481
|
+
|
482
|
+
|
483
|
+
—
|
484
|
+
<div class='inline'>
|
485
|
+
<p>内容</p>
|
486
|
+
</div>
|
487
|
+
|
488
|
+
</li>
|
489
|
+
|
490
|
+
</ul>
|
491
|
+
|
492
|
+
|
493
|
+
</div><table class="source_code">
|
494
|
+
<tr>
|
495
|
+
<td>
|
496
|
+
<pre class="lines">
|
497
|
+
|
498
|
+
|
499
|
+
25
|
500
|
+
26
|
501
|
+
27
|
502
|
+
28
|
503
|
+
29
|
504
|
+
30
|
505
|
+
31
|
506
|
+
32</pre>
|
507
|
+
</td>
|
508
|
+
<td>
|
509
|
+
<pre class="code"><span class="info file"># File 'lib/ruby2ch/res.rb', line 25</span>
|
510
|
+
|
511
|
+
<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>
|
512
|
+
<span class='ivar'>@res_num</span> <span class='op'>=</span> <span class='id identifier rubyid_res_num'>res_num</span>
|
513
|
+
<span class='ivar'>@author</span> <span class='op'>=</span> <span class='id identifier rubyid_author'>author</span>
|
514
|
+
<span class='ivar'>@author_id</span> <span class='op'>=</span> <span class='id identifier rubyid_author_id'>author_id</span>
|
515
|
+
<span class='ivar'>@date</span> <span class='op'>=</span> <span class='id identifier rubyid_date'>date</span>
|
516
|
+
<span class='ivar'>@mail</span> <span class='op'>=</span> <span class='id identifier rubyid_mail'>mail</span>
|
517
|
+
<span class='ivar'>@contents</span> <span class='op'>=</span> <span class='id identifier rubyid_contents'>contents</span>
|
518
|
+
<span class='kw'>end</span></pre>
|
519
|
+
</td>
|
520
|
+
</tr>
|
521
|
+
</table>
|
522
|
+
</div>
|
523
|
+
|
524
|
+
</div>
|
525
|
+
|
526
|
+
<div id="instance_attr_details" class="attr_details">
|
527
|
+
<h2>Instance Attribute Details</h2>
|
528
|
+
|
529
|
+
|
530
|
+
<span id=""></span>
|
531
|
+
<div class="method_details first">
|
532
|
+
<h3 class="signature first" id="author-instance_method">
|
533
|
+
|
534
|
+
- (<tt>String</tt>) <strong>author</strong> <span class="extras">(readonly)</span>
|
535
|
+
|
536
|
+
|
537
|
+
|
538
|
+
|
539
|
+
|
540
|
+
</h3><div class="docstring">
|
541
|
+
<div class="discussion">
|
542
|
+
|
543
|
+
<p>Returns 投稿者名</p>
|
544
|
+
|
545
|
+
|
546
|
+
</div>
|
547
|
+
</div>
|
548
|
+
<div class="tags">
|
549
|
+
|
550
|
+
<p class="tag_title">Returns:</p>
|
551
|
+
<ul class="return">
|
552
|
+
|
553
|
+
<li>
|
554
|
+
|
555
|
+
|
556
|
+
<span class='type'>(<tt>String</tt>)</span>
|
557
|
+
|
558
|
+
|
559
|
+
|
560
|
+
—
|
561
|
+
<div class='inline'>
|
562
|
+
<p>投稿者名</p>
|
563
|
+
</div>
|
564
|
+
|
565
|
+
</li>
|
566
|
+
|
567
|
+
</ul>
|
568
|
+
|
569
|
+
</div><table class="source_code">
|
570
|
+
<tr>
|
571
|
+
<td>
|
572
|
+
<pre class="lines">
|
573
|
+
|
574
|
+
|
575
|
+
6
|
576
|
+
7
|
577
|
+
8</pre>
|
578
|
+
</td>
|
579
|
+
<td>
|
580
|
+
<pre class="code"><span class="info file"># File 'lib/ruby2ch/res.rb', line 6</span>
|
581
|
+
|
582
|
+
<span class='kw'>def</span> <span class='id identifier rubyid_author'>author</span>
|
583
|
+
<span class='ivar'>@author</span>
|
584
|
+
<span class='kw'>end</span></pre>
|
585
|
+
</td>
|
586
|
+
</tr>
|
587
|
+
</table>
|
588
|
+
</div>
|
589
|
+
|
590
|
+
|
591
|
+
<span id=""></span>
|
592
|
+
<div class="method_details ">
|
593
|
+
<h3 class="signature " id="author_id-instance_method">
|
594
|
+
|
595
|
+
- (<tt>String</tt>) <strong>author_id</strong> <span class="extras">(readonly)</span>
|
596
|
+
|
597
|
+
|
598
|
+
|
599
|
+
|
600
|
+
|
601
|
+
</h3><div class="docstring">
|
602
|
+
<div class="discussion">
|
603
|
+
|
604
|
+
<p>Returns ID</p>
|
605
|
+
|
606
|
+
|
607
|
+
</div>
|
608
|
+
</div>
|
609
|
+
<div class="tags">
|
610
|
+
|
611
|
+
<p class="tag_title">Returns:</p>
|
612
|
+
<ul class="return">
|
613
|
+
|
614
|
+
<li>
|
615
|
+
|
616
|
+
|
617
|
+
<span class='type'>(<tt>String</tt>)</span>
|
618
|
+
|
619
|
+
|
620
|
+
|
621
|
+
—
|
622
|
+
<div class='inline'>
|
623
|
+
<p>ID</p>
|
624
|
+
</div>
|
625
|
+
|
626
|
+
</li>
|
627
|
+
|
628
|
+
</ul>
|
629
|
+
|
630
|
+
</div><table class="source_code">
|
631
|
+
<tr>
|
632
|
+
<td>
|
633
|
+
<pre class="lines">
|
634
|
+
|
635
|
+
|
636
|
+
8
|
637
|
+
9
|
638
|
+
10</pre>
|
639
|
+
</td>
|
640
|
+
<td>
|
641
|
+
<pre class="code"><span class="info file"># File 'lib/ruby2ch/res.rb', line 8</span>
|
642
|
+
|
643
|
+
<span class='kw'>def</span> <span class='id identifier rubyid_author_id'>author_id</span>
|
644
|
+
<span class='ivar'>@author_id</span>
|
645
|
+
<span class='kw'>end</span></pre>
|
646
|
+
</td>
|
647
|
+
</tr>
|
648
|
+
</table>
|
649
|
+
</div>
|
650
|
+
|
651
|
+
|
652
|
+
<span id=""></span>
|
653
|
+
<div class="method_details ">
|
654
|
+
<h3 class="signature " id="contents-instance_method">
|
655
|
+
|
656
|
+
- (<tt>String</tt>) <strong>contents</strong> <span class="extras">(readonly)</span>
|
657
|
+
|
658
|
+
|
659
|
+
|
660
|
+
|
661
|
+
|
662
|
+
</h3><div class="docstring">
|
663
|
+
<div class="discussion">
|
664
|
+
|
665
|
+
<p>Returns 内容</p>
|
666
|
+
|
667
|
+
|
668
|
+
</div>
|
669
|
+
</div>
|
670
|
+
<div class="tags">
|
671
|
+
|
672
|
+
<p class="tag_title">Returns:</p>
|
673
|
+
<ul class="return">
|
674
|
+
|
675
|
+
<li>
|
676
|
+
|
677
|
+
|
678
|
+
<span class='type'>(<tt>String</tt>)</span>
|
679
|
+
|
680
|
+
|
681
|
+
|
682
|
+
—
|
683
|
+
<div class='inline'>
|
684
|
+
<p>内容</p>
|
685
|
+
</div>
|
686
|
+
|
687
|
+
</li>
|
688
|
+
|
689
|
+
</ul>
|
690
|
+
|
691
|
+
</div><table class="source_code">
|
692
|
+
<tr>
|
693
|
+
<td>
|
694
|
+
<pre class="lines">
|
695
|
+
|
696
|
+
|
697
|
+
14
|
698
|
+
15
|
699
|
+
16</pre>
|
700
|
+
</td>
|
701
|
+
<td>
|
702
|
+
<pre class="code"><span class="info file"># File 'lib/ruby2ch/res.rb', line 14</span>
|
703
|
+
|
704
|
+
<span class='kw'>def</span> <span class='id identifier rubyid_contents'>contents</span>
|
705
|
+
<span class='ivar'>@contents</span>
|
706
|
+
<span class='kw'>end</span></pre>
|
707
|
+
</td>
|
708
|
+
</tr>
|
709
|
+
</table>
|
710
|
+
</div>
|
711
|
+
|
712
|
+
|
713
|
+
<span id=""></span>
|
714
|
+
<div class="method_details ">
|
715
|
+
<h3 class="signature " id="date-instance_method">
|
716
|
+
|
717
|
+
- (<tt>Time</tt>) <strong>date</strong> <span class="extras">(readonly)</span>
|
718
|
+
|
719
|
+
|
720
|
+
|
721
|
+
|
722
|
+
|
723
|
+
</h3><div class="docstring">
|
724
|
+
<div class="discussion">
|
725
|
+
|
726
|
+
<p>Returns 書き込み日時</p>
|
727
|
+
|
728
|
+
|
729
|
+
</div>
|
730
|
+
</div>
|
731
|
+
<div class="tags">
|
732
|
+
|
733
|
+
<p class="tag_title">Returns:</p>
|
734
|
+
<ul class="return">
|
735
|
+
|
736
|
+
<li>
|
737
|
+
|
738
|
+
|
739
|
+
<span class='type'>(<tt>Time</tt>)</span>
|
740
|
+
|
741
|
+
|
742
|
+
|
743
|
+
—
|
744
|
+
<div class='inline'>
|
745
|
+
<p>書き込み日時</p>
|
746
|
+
</div>
|
747
|
+
|
748
|
+
</li>
|
749
|
+
|
750
|
+
</ul>
|
751
|
+
|
752
|
+
</div><table class="source_code">
|
753
|
+
<tr>
|
754
|
+
<td>
|
755
|
+
<pre class="lines">
|
756
|
+
|
757
|
+
|
758
|
+
10
|
759
|
+
11
|
760
|
+
12</pre>
|
761
|
+
</td>
|
762
|
+
<td>
|
763
|
+
<pre class="code"><span class="info file"># File 'lib/ruby2ch/res.rb', line 10</span>
|
764
|
+
|
765
|
+
<span class='kw'>def</span> <span class='id identifier rubyid_date'>date</span>
|
766
|
+
<span class='ivar'>@date</span>
|
767
|
+
<span class='kw'>end</span></pre>
|
768
|
+
</td>
|
769
|
+
</tr>
|
770
|
+
</table>
|
771
|
+
</div>
|
772
|
+
|
773
|
+
|
774
|
+
<span id=""></span>
|
775
|
+
<div class="method_details ">
|
776
|
+
<h3 class="signature " id="mail-instance_method">
|
777
|
+
|
778
|
+
- (<tt>String</tt>) <strong>mail</strong> <span class="extras">(readonly)</span>
|
779
|
+
|
780
|
+
|
781
|
+
|
782
|
+
|
783
|
+
|
784
|
+
</h3><div class="docstring">
|
785
|
+
<div class="discussion">
|
786
|
+
|
787
|
+
<p>Returns メール欄</p>
|
788
|
+
|
789
|
+
|
790
|
+
</div>
|
791
|
+
</div>
|
792
|
+
<div class="tags">
|
793
|
+
|
794
|
+
<p class="tag_title">Returns:</p>
|
795
|
+
<ul class="return">
|
796
|
+
|
797
|
+
<li>
|
798
|
+
|
799
|
+
|
800
|
+
<span class='type'>(<tt>String</tt>)</span>
|
801
|
+
|
802
|
+
|
803
|
+
|
804
|
+
—
|
805
|
+
<div class='inline'>
|
806
|
+
<p>メール欄</p>
|
807
|
+
</div>
|
808
|
+
|
809
|
+
</li>
|
810
|
+
|
811
|
+
</ul>
|
812
|
+
|
813
|
+
</div><table class="source_code">
|
814
|
+
<tr>
|
815
|
+
<td>
|
816
|
+
<pre class="lines">
|
817
|
+
|
818
|
+
|
819
|
+
12
|
820
|
+
13
|
821
|
+
14</pre>
|
822
|
+
</td>
|
823
|
+
<td>
|
824
|
+
<pre class="code"><span class="info file"># File 'lib/ruby2ch/res.rb', line 12</span>
|
825
|
+
|
826
|
+
<span class='kw'>def</span> <span class='id identifier rubyid_mail'>mail</span>
|
827
|
+
<span class='ivar'>@mail</span>
|
828
|
+
<span class='kw'>end</span></pre>
|
829
|
+
</td>
|
830
|
+
</tr>
|
831
|
+
</table>
|
832
|
+
</div>
|
833
|
+
|
834
|
+
|
835
|
+
<span id=""></span>
|
836
|
+
<div class="method_details ">
|
837
|
+
<h3 class="signature " id="res_num-instance_method">
|
838
|
+
|
839
|
+
- (<tt>Fixnum</tt>) <strong>res_num</strong> <span class="extras">(readonly)</span>
|
840
|
+
|
841
|
+
|
842
|
+
|
843
|
+
|
844
|
+
|
845
|
+
</h3><div class="docstring">
|
846
|
+
<div class="discussion">
|
847
|
+
|
848
|
+
<p>Returns レス番号</p>
|
849
|
+
|
850
|
+
|
851
|
+
</div>
|
852
|
+
</div>
|
853
|
+
<div class="tags">
|
854
|
+
|
855
|
+
<p class="tag_title">Returns:</p>
|
856
|
+
<ul class="return">
|
857
|
+
|
858
|
+
<li>
|
859
|
+
|
860
|
+
|
861
|
+
<span class='type'>(<tt>Fixnum</tt>)</span>
|
862
|
+
|
863
|
+
|
864
|
+
|
865
|
+
—
|
866
|
+
<div class='inline'>
|
867
|
+
<p>レス番号</p>
|
868
|
+
</div>
|
869
|
+
|
870
|
+
</li>
|
871
|
+
|
872
|
+
</ul>
|
873
|
+
|
874
|
+
</div><table class="source_code">
|
875
|
+
<tr>
|
876
|
+
<td>
|
877
|
+
<pre class="lines">
|
878
|
+
|
879
|
+
|
880
|
+
4
|
881
|
+
5
|
882
|
+
6</pre>
|
883
|
+
</td>
|
884
|
+
<td>
|
885
|
+
<pre class="code"><span class="info file"># File 'lib/ruby2ch/res.rb', line 4</span>
|
886
|
+
|
887
|
+
<span class='kw'>def</span> <span class='id identifier rubyid_res_num'>res_num</span>
|
888
|
+
<span class='ivar'>@res_num</span>
|
889
|
+
<span class='kw'>end</span></pre>
|
890
|
+
</td>
|
891
|
+
</tr>
|
892
|
+
</table>
|
893
|
+
</div>
|
894
|
+
|
895
|
+
</div>
|
896
|
+
|
897
|
+
|
898
|
+
<div id="class_method_details" class="method_details_list">
|
899
|
+
<h2>Class Method Details</h2>
|
900
|
+
|
901
|
+
|
902
|
+
<div class="method_details first">
|
903
|
+
<h3 class="signature first" id="parse-class_method">
|
904
|
+
|
905
|
+
+ (<tt><span class='object_link'><a href="" title="Simple2ch::Res (class)">Res</a></span></tt>) <strong>parse</strong>(res_num, contents)
|
906
|
+
|
907
|
+
|
908
|
+
|
909
|
+
|
910
|
+
|
911
|
+
</h3><div class="docstring">
|
912
|
+
<div class="discussion">
|
913
|
+
|
914
|
+
<p>Datの1行から各項目を分離して、Resオブジェクトを返す</p>
|
915
|
+
|
916
|
+
|
917
|
+
</div>
|
918
|
+
</div>
|
919
|
+
<div class="tags">
|
920
|
+
<p class="tag_title">Parameters:</p>
|
921
|
+
<ul class="param">
|
922
|
+
|
923
|
+
<li>
|
924
|
+
|
925
|
+
<span class='name'>res_num</span>
|
926
|
+
|
927
|
+
|
928
|
+
<span class='type'>(<tt>Fixnum</tt>)</span>
|
929
|
+
|
930
|
+
|
931
|
+
|
932
|
+
—
|
933
|
+
<div class='inline'>
|
934
|
+
<p>レス番号</p>
|
935
|
+
</div>
|
936
|
+
|
937
|
+
</li>
|
938
|
+
|
939
|
+
<li>
|
940
|
+
|
941
|
+
<span class='name'>contents</span>
|
942
|
+
|
943
|
+
|
944
|
+
<span class='type'>(<tt>String</tt>)</span>
|
945
|
+
|
946
|
+
|
947
|
+
|
948
|
+
—
|
949
|
+
<div class='inline'>
|
950
|
+
<p>datのデータ1行</p>
|
951
|
+
</div>
|
952
|
+
|
953
|
+
</li>
|
954
|
+
|
955
|
+
</ul>
|
956
|
+
|
957
|
+
<p class="tag_title">Returns:</p>
|
958
|
+
<ul class="return">
|
959
|
+
|
960
|
+
<li>
|
961
|
+
|
962
|
+
|
963
|
+
<span class='type'>(<tt><span class='object_link'><a href="" title="Simple2ch::Res (class)">Res</a></span></tt>)</span>
|
964
|
+
|
965
|
+
|
966
|
+
|
967
|
+
—
|
968
|
+
<div class='inline'>
|
969
|
+
<p>新規Resオブジェクト</p>
|
970
|
+
</div>
|
971
|
+
|
972
|
+
</li>
|
973
|
+
|
974
|
+
</ul>
|
975
|
+
<p class="tag_title">Raises:</p>
|
976
|
+
<ul class="raise">
|
977
|
+
|
978
|
+
<li>
|
979
|
+
|
980
|
+
|
981
|
+
<span class='type'>(<tt><span class='object_link'><a href="KakoLogException.html" title="Simple2ch::KakoLogException (class)">KakoLogException</a></span></tt>)</span>
|
982
|
+
|
983
|
+
|
984
|
+
|
985
|
+
—
|
986
|
+
<div class='inline'>
|
987
|
+
<p>過去ログ情報をパースしようとした際に発生</p>
|
988
|
+
</div>
|
989
|
+
|
990
|
+
</li>
|
991
|
+
|
992
|
+
</ul>
|
993
|
+
|
994
|
+
</div><table class="source_code">
|
995
|
+
<tr>
|
996
|
+
<td>
|
997
|
+
<pre class="lines">
|
998
|
+
|
999
|
+
|
1000
|
+
39
|
1001
|
+
40
|
1002
|
+
41
|
1003
|
+
42
|
1004
|
+
43
|
1005
|
+
44
|
1006
|
+
45</pre>
|
1007
|
+
</td>
|
1008
|
+
<td>
|
1009
|
+
<pre class="code"><span class="info file"># File 'lib/ruby2ch/res.rb', line 39</span>
|
1010
|
+
|
1011
|
+
<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>
|
1012
|
+
<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>
|
1013
|
+
<span class='kw'>self</span><span class='period'>.</span><span class='id identifier rubyid_new'>new</span> <span class='id identifier rubyid_res_num'>res_num</span><span class='comma'>,</span> <span class='kw'>self</span><span class='period'>.</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>
|
1014
|
+
<span class='kw'>else</span>
|
1015
|
+
<span class='id identifier rubyid_raise'>raise</span> <span class='const'>KakoLogException</span>
|
1016
|
+
<span class='kw'>end</span>
|
1017
|
+
<span class='kw'>end</span></pre>
|
1018
|
+
</td>
|
1019
|
+
</tr>
|
1020
|
+
</table>
|
1021
|
+
</div>
|
1022
|
+
|
1023
|
+
</div>
|
1024
|
+
|
1025
|
+
</div>
|
1026
|
+
|
1027
|
+
<div id="footer">
|
1028
|
+
Generated on Sun Sep 7 11:29:29 2014 by
|
1029
|
+
<a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
|
1030
|
+
0.8.7.4 (ruby-2.1.2).
|
1031
|
+
</div>
|
1032
|
+
|
1033
|
+
</body>
|
1034
|
+
</html>
|