cw 0.0.8 → 0.0.9

Sign up to get free protection for your applications and to get access to all the features.
Files changed (55) hide show
  1. checksums.yaml +4 -4
  2. data/.yardoc/checksums +33 -0
  3. data/.yardoc/object_types +0 -0
  4. data/.yardoc/objects/root.dat +0 -0
  5. data/.yardoc/proxy_types +0 -0
  6. data/cw.gemspec +1 -1
  7. data/doc/Alphabet.html +433 -0
  8. data/doc/AudioPlayer.html +805 -0
  9. data/doc/Book.html +3134 -0
  10. data/doc/BookDetails.html +664 -0
  11. data/doc/CW.html +849 -0
  12. data/doc/CWThreads.html +514 -0
  13. data/doc/Cl.html +1125 -0
  14. data/doc/CurrentWord.html +636 -0
  15. data/doc/CwDsl.html +1871 -0
  16. data/doc/CwEncoding.html +329 -0
  17. data/doc/FileDetails.html +236 -0
  18. data/doc/KeyInput.html +758 -0
  19. data/doc/MonitorKeys.html +482 -0
  20. data/doc/Numbers.html +433 -0
  21. data/doc/Params.html +352 -0
  22. data/doc/Print.html +1130 -0
  23. data/doc/Print/ProgressPrint.html +419 -0
  24. data/doc/Process.html +202 -0
  25. data/doc/Progress.html +337 -0
  26. data/doc/Randomize.html +959 -0
  27. data/doc/RepeatWord.html +816 -0
  28. data/doc/Rss.html +630 -0
  29. data/doc/Sentence.html +1457 -0
  30. data/doc/Spoken.html +215 -0
  31. data/doc/Str.html +771 -0
  32. data/doc/Stream.html +1401 -0
  33. data/doc/TestLetters.html +586 -0
  34. data/doc/TestWords.html +646 -0
  35. data/doc/Tester.html +3064 -0
  36. data/doc/Timing.html +1244 -0
  37. data/doc/ToneGenerator.html +2111 -0
  38. data/doc/Voice.html +273 -0
  39. data/doc/Words.html +1750 -0
  40. data/doc/_index.html +376 -0
  41. data/doc/class_list.html +58 -0
  42. data/doc/css/common.css +1 -0
  43. data/doc/css/full_list.css +57 -0
  44. data/doc/css/style.css +339 -0
  45. data/doc/file.README.html +148 -0
  46. data/doc/file_list.html +60 -0
  47. data/doc/frames.html +26 -0
  48. data/doc/index.html +148 -0
  49. data/doc/js/app.js +219 -0
  50. data/doc/js/full_list.js +181 -0
  51. data/doc/js/jquery.js +4 -0
  52. data/doc/method_list.html +2697 -0
  53. data/doc/monitor.html +435 -0
  54. data/doc/top-level-namespace.html +114 -0
  55. metadata +53 -1
@@ -0,0 +1,849 @@
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: CW
8
+
9
+ &mdash; Documentation by YARD 0.8.7.6
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#!CW.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 (C)</a> &raquo;
35
+
36
+
37
+ <span class="title">CW</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: CW
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="CwDsl.html" title="CwDsl (class)">CwDsl</a></span></span>
77
+
78
+ <ul class="fullTree">
79
+ <li>Object</li>
80
+
81
+ <li class="next"><span class='object_link'><a href="CwDsl.html" title="CwDsl (class)">CwDsl</a></span></li>
82
+
83
+ <li class="next">CW</li>
84
+
85
+ </ul>
86
+ <a href="#" class="inheritanceTree">show all</a>
87
+
88
+ </dd>
89
+
90
+
91
+
92
+
93
+
94
+
95
+
96
+
97
+
98
+ <dt class="r2 last">Defined in:</dt>
99
+ <dd class="r2 last">lib/cw.rb</dd>
100
+
101
+ </dl>
102
+ <div class="clear"></div>
103
+
104
+ <h2>Overview</h2><div class="docstring">
105
+ <div class="discussion">
106
+
107
+ <p>class CW provides Morse code generation functionality</p>
108
+
109
+
110
+ </div>
111
+ </div>
112
+ <div class="tags">
113
+
114
+
115
+ </div>
116
+ <h2>Constant Summary</h2>
117
+
118
+
119
+
120
+
121
+ <h2>Constant Summary</h2>
122
+
123
+ <h3 class="inherited">Constants inherited
124
+ from <span class='object_link'><a href="CwDsl.html" title="CwDsl (class)">CwDsl</a></span></h3>
125
+ <p class="inherited"><span class='object_link'><a href="CwDsl.html#ABBREVIATIONS-constant" title="CwDsl::ABBREVIATIONS (constant)">CwDsl::ABBREVIATIONS</a></span>, <span class='object_link'><a href="CwDsl.html#COMMON_WORDS-constant" title="CwDsl::COMMON_WORDS (constant)">CwDsl::COMMON_WORDS</a></span>, <span class='object_link'><a href="CwDsl.html#HERE-constant" title="CwDsl::HERE (constant)">CwDsl::HERE</a></span>, <span class='object_link'><a href="CwDsl.html#MOST_COMMON_WORDS-constant" title="CwDsl::MOST_COMMON_WORDS (constant)">CwDsl::MOST_COMMON_WORDS</a></span>, <span class='object_link'><a href="CwDsl.html#Q_CODES-constant" title="CwDsl::Q_CODES (constant)">CwDsl::Q_CODES</a></span>, <span class='object_link'><a href="CwDsl.html#TEXT-constant" title="CwDsl::TEXT (constant)">CwDsl::TEXT</a></span></p>
126
+
127
+
128
+ <h2>Instance Attribute Summary <small>(<a href="#" class="summary_toggle">collapse</a>)</small></h2>
129
+ <ul class="summary">
130
+
131
+ <li class="public ">
132
+ <span class="summary_signature">
133
+
134
+ <a href="#dry_run-instance_method" title="#dry_run (instance method)">- (Object) <strong>dry_run</strong> </a>
135
+
136
+
137
+
138
+ </span>
139
+
140
+
141
+
142
+
143
+
144
+
145
+
146
+
147
+
148
+
149
+
150
+
151
+ <span class="summary_desc"><div class='inline'>
152
+ <p>Returns the value of attribute dry_run.</p>
153
+ </div></span>
154
+
155
+ </li>
156
+
157
+
158
+ <li class="public ">
159
+ <span class="summary_signature">
160
+
161
+ <a href="#quit-instance_method" title="#quit (instance method)">- (Object) <strong>quit</strong> </a>
162
+
163
+
164
+
165
+ </span>
166
+
167
+
168
+
169
+
170
+
171
+
172
+
173
+
174
+
175
+
176
+
177
+
178
+ <span class="summary_desc"><div class='inline'>
179
+ <p>Returns the value of attribute quit.</p>
180
+ </div></span>
181
+
182
+ </li>
183
+
184
+
185
+ </ul>
186
+
187
+
188
+
189
+
190
+
191
+ <h2>
192
+ Instance Method Summary
193
+ <small>(<a href="#" class="summary_toggle">collapse</a>)</small>
194
+ </h2>
195
+
196
+ <ul class="summary">
197
+
198
+ <li class="public ">
199
+ <span class="summary_signature">
200
+
201
+ <a href="#initialize-instance_method" title="#initialize (instance method)">- (CW) <strong>initialize</strong>(&amp;block) </a>
202
+
203
+
204
+
205
+ </span>
206
+
207
+
208
+ <span class="note title constructor">constructor</span>
209
+
210
+
211
+
212
+
213
+
214
+
215
+
216
+
217
+ <span class="summary_desc"><div class='inline'>
218
+ <p>A new instance of CW.</p>
219
+ </div></span>
220
+
221
+ </li>
222
+
223
+
224
+ <li class="public ">
225
+ <span class="summary_signature">
226
+
227
+ <a href="#play_book-instance_method" title="#play_book (instance method)">- (Object) <strong>play_book</strong>(args = {}) </a>
228
+
229
+
230
+
231
+ </span>
232
+
233
+
234
+
235
+
236
+
237
+
238
+
239
+
240
+
241
+ <span class="summary_desc"><div class='inline'></div></span>
242
+
243
+ </li>
244
+
245
+
246
+ <li class="public ">
247
+ <span class="summary_signature">
248
+
249
+ <a href="#read_rss-instance_method" title="#read_rss (instance method)">- (Object) <strong>read_rss</strong>(source, show_count = 3) </a>
250
+
251
+
252
+
253
+ </span>
254
+
255
+
256
+
257
+
258
+
259
+
260
+
261
+
262
+
263
+ <span class="summary_desc"><div class='inline'></div></span>
264
+
265
+ </li>
266
+
267
+
268
+ <li class="public ">
269
+ <span class="summary_signature">
270
+
271
+ <a href="#repeat_word-instance_method" title="#repeat_word (instance method)">- (Object) <strong>repeat_word</strong> </a>
272
+
273
+
274
+
275
+ </span>
276
+
277
+
278
+
279
+
280
+
281
+
282
+
283
+
284
+
285
+ <span class="summary_desc"><div class='inline'></div></span>
286
+
287
+ </li>
288
+
289
+
290
+ <li class="public ">
291
+ <span class="summary_signature">
292
+
293
+ <a href="#run-instance_method" title="#run (instance method)">- (Object) <strong>run</strong> </a>
294
+
295
+
296
+
297
+ </span>
298
+
299
+
300
+
301
+
302
+
303
+
304
+
305
+
306
+
307
+ <span class="summary_desc"><div class='inline'></div></span>
308
+
309
+ </li>
310
+
311
+
312
+ <li class="public ">
313
+ <span class="summary_signature">
314
+
315
+ <a href="#run_word_test-instance_method" title="#run_word_test (instance method)">- (Object) <strong>run_word_test</strong> </a>
316
+
317
+
318
+
319
+ </span>
320
+
321
+
322
+
323
+
324
+
325
+
326
+
327
+
328
+
329
+ <span class="summary_desc"><div class='inline'></div></span>
330
+
331
+ </li>
332
+
333
+
334
+ <li class="public ">
335
+ <span class="summary_signature">
336
+
337
+ <a href="#test_letters-instance_method" title="#test_letters (instance method)">- (Object) <strong>test_letters</strong> </a>
338
+
339
+
340
+
341
+ </span>
342
+
343
+
344
+
345
+
346
+
347
+
348
+
349
+
350
+
351
+ <span class="summary_desc"><div class='inline'></div></span>
352
+
353
+ </li>
354
+
355
+
356
+ <li class="public ">
357
+ <span class="summary_signature">
358
+
359
+ <a href="#test_words-instance_method" title="#test_words (instance method)">- (Object) <strong>test_words</strong> </a>
360
+
361
+
362
+
363
+ </span>
364
+
365
+
366
+
367
+
368
+
369
+
370
+
371
+
372
+
373
+ <span class="summary_desc"><div class='inline'></div></span>
374
+
375
+ </li>
376
+
377
+
378
+ <li class="public ">
379
+ <span class="summary_signature">
380
+
381
+ <a href="#to_s-instance_method" title="#to_s (instance method)">- (Object) <strong>to_s</strong> </a>
382
+
383
+
384
+
385
+ </span>
386
+
387
+
388
+
389
+
390
+
391
+
392
+
393
+
394
+
395
+ <span class="summary_desc"><div class='inline'></div></span>
396
+
397
+ </li>
398
+
399
+
400
+ </ul>
401
+
402
+
403
+
404
+
405
+
406
+
407
+
408
+
409
+
410
+
411
+
412
+ <h3 class="inherited">Methods inherited from <span class='object_link'><a href="CwDsl.html" title="CwDsl (class)">CwDsl</a></span></h3>
413
+ <p class="inherited"><span class='object_link'><a href="CwDsl.html#alphabet-instance_method" title="CwDsl#alphabet (method)">#alphabet</a></span>, <span class='object_link'><a href="CwDsl.html#beginning_with-instance_method" title="CwDsl#beginning_with (method)">#beginning_with</a></span>, <span class='object_link'><a href="CwDsl.html#config_defaults-instance_method" title="CwDsl#config_defaults (method)">#config_defaults</a></span>, <span class='object_link'><a href="CwDsl.html#config_files-instance_method" title="CwDsl#config_files (method)">#config_files</a></span>, <span class='object_link'><a href="CwDsl.html#ending_with-instance_method" title="CwDsl#ending_with (method)">#ending_with</a></span>, <span class='object_link'><a href="CwDsl.html#including-instance_method" title="CwDsl#including (method)">#including</a></span>, <span class='object_link'><a href="CwDsl.html#init_config-instance_method" title="CwDsl#init_config (method)">#init_config</a></span>, <span class='object_link'><a href="CwDsl.html#letters_numbers-instance_method" title="CwDsl#letters_numbers (method)">#letters_numbers</a></span>, <span class='object_link'><a href="CwDsl.html#load_abbreviations-instance_method" title="CwDsl#load_abbreviations (method)">#load_abbreviations</a></span>, <span class='object_link'><a href="CwDsl.html#load_alphabet-instance_method" title="CwDsl#load_alphabet (method)">#load_alphabet</a></span>, <span class='object_link'><a href="CwDsl.html#load_common_words-instance_method" title="CwDsl#load_common_words (method)">#load_common_words</a></span>, <span class='object_link'><a href="CwDsl.html#load_most_common_words-instance_method" title="CwDsl#load_most_common_words (method)">#load_most_common_words</a></span>, <span class='object_link'><a href="CwDsl.html#load_numbers-instance_method" title="CwDsl#load_numbers (method)">#load_numbers</a></span>, <span class='object_link'><a href="CwDsl.html#load_q_codes-instance_method" title="CwDsl#load_q_codes (method)">#load_q_codes</a></span>, <span class='object_link'><a href="CwDsl.html#load_words-instance_method" title="CwDsl#load_words (method)">#load_words</a></span>, <span class='object_link'><a href="CwDsl.html#no_longer_than-instance_method" title="CwDsl#no_longer_than (method)">#no_longer_than</a></span>, <span class='object_link'><a href="CwDsl.html#no_shorter_than-instance_method" title="CwDsl#no_shorter_than (method)">#no_shorter_than</a></span>, <span class='object_link'><a href="CwDsl.html#numbers-instance_method" title="CwDsl#numbers (method)">#numbers</a></span>, <span class='object_link'><a href="CwDsl.html#numbers_spoken-instance_method" title="CwDsl#numbers_spoken (method)">#numbers_spoken</a></span>, <span class='object_link'><a href="CwDsl.html#random_letters-instance_method" title="CwDsl#random_letters (method)">#random_letters</a></span>, <span class='object_link'><a href="CwDsl.html#random_letters_numbers-instance_method" title="CwDsl#random_letters_numbers (method)">#random_letters_numbers</a></span>, <span class='object_link'><a href="CwDsl.html#random_numbers-instance_method" title="CwDsl#random_numbers (method)">#random_numbers</a></span>, <span class='object_link'><a href="CwDsl.html#reload-instance_method" title="CwDsl#reload (method)">#reload</a></span>, <span class='object_link'><a href="CwDsl.html#reverse-instance_method" title="CwDsl#reverse (method)">#reverse</a></span>, <span class='object_link'><a href="CwDsl.html#set_tone_type-instance_method" title="CwDsl#set_tone_type (method)">#set_tone_type</a></span>, <span class='object_link'><a href="CwDsl.html#word_count-instance_method" title="CwDsl#word_count (method)">#word_count</a></span>, <span class='object_link'><a href="CwDsl.html#word_size-instance_method" title="CwDsl#word_size (method)">#word_size</a></span>, <span class='object_link'><a href="CwDsl.html#words-instance_method" title="CwDsl#words (method)">#words</a></span>, <span class='object_link'><a href="CwDsl.html#words%3D-instance_method" title="CwDsl#words= (method)">#words=</a></span></p>
414
+ <div id="constructor_details" class="method_details_list">
415
+ <h2>Constructor Details</h2>
416
+
417
+ <div class="method_details first">
418
+ <h3 class="signature first" id="initialize-instance_method">
419
+
420
+ - (<tt><span class='object_link'><a href="" title="CW (class)">CW</a></span></tt>) <strong>initialize</strong>(&amp;block)
421
+
422
+
423
+
424
+
425
+
426
+ </h3><div class="docstring">
427
+ <div class="discussion">
428
+
429
+ <p>Returns a new instance of CW</p>
430
+
431
+
432
+ </div>
433
+ </div>
434
+ <div class="tags">
435
+
436
+
437
+ </div><table class="source_code">
438
+ <tr>
439
+ <td>
440
+ <pre class="lines">
441
+
442
+
443
+ 50
444
+ 51
445
+ 52
446
+ 53
447
+ 54
448
+ 55
449
+ 56
450
+ 57</pre>
451
+ </td>
452
+ <td>
453
+ <pre class="code"><span class="info file"># File 'lib/cw.rb', line 50</span>
454
+
455
+ <span class='kw'>def</span> <span class='id identifier rubyid_initialize'>initialize</span><span class='lparen'>(</span><span class='op'>&amp;</span><span class='id identifier rubyid_block'>block</span><span class='rparen'>)</span>
456
+
457
+ <span class='kw'>super</span>
458
+
459
+ <span class='id identifier rubyid_load_common_words'>load_common_words</span><span class='comment'># unless @words.exist?
460
+ </span> <span class='id identifier rubyid_instance_eval'>instance_eval</span><span class='lparen'>(</span><span class='op'>&amp;</span><span class='id identifier rubyid_block'>block</span><span class='rparen'>)</span> <span class='kw'>if</span> <span class='id identifier rubyid_block'>block</span>
461
+ <span class='id identifier rubyid_run'>run</span> <span class='kw'>unless</span> <span class='const'>Params</span><span class='period'>.</span><span class='id identifier rubyid_pause'>pause</span> <span class='kw'>if</span> <span class='lparen'>(</span><span class='id identifier rubyid_block'>block</span> <span class='op'>&amp;&amp;</span> <span class='op'>!</span> <span class='ivar'>@inhibit_block_run</span><span class='rparen'>)</span>
462
+ <span class='kw'>end</span></pre>
463
+ </td>
464
+ </tr>
465
+ </table>
466
+ </div>
467
+
468
+ </div>
469
+
470
+ <div id="instance_attr_details" class="attr_details">
471
+ <h2>Instance Attribute Details</h2>
472
+
473
+
474
+ <span id="dry_run=-instance_method"></span>
475
+ <div class="method_details first">
476
+ <h3 class="signature first" id="dry_run-instance_method">
477
+
478
+ - (<tt>Object</tt>) <strong>dry_run</strong>
479
+
480
+
481
+
482
+
483
+
484
+ </h3><div class="docstring">
485
+ <div class="discussion">
486
+
487
+ <p>Returns the value of attribute dry_run</p>
488
+
489
+
490
+ </div>
491
+ </div>
492
+ <div class="tags">
493
+
494
+
495
+ </div><table class="source_code">
496
+ <tr>
497
+ <td>
498
+ <pre class="lines">
499
+
500
+
501
+ 35
502
+ 36
503
+ 37</pre>
504
+ </td>
505
+ <td>
506
+ <pre class="code"><span class="info file"># File 'lib/cw.rb', line 35</span>
507
+
508
+ <span class='kw'>def</span> <span class='id identifier rubyid_dry_run'>dry_run</span>
509
+ <span class='ivar'>@dry_run</span>
510
+ <span class='kw'>end</span></pre>
511
+ </td>
512
+ </tr>
513
+ </table>
514
+ </div>
515
+
516
+
517
+ <span id="quit=-instance_method"></span>
518
+ <div class="method_details ">
519
+ <h3 class="signature " id="quit-instance_method">
520
+
521
+ - (<tt>Object</tt>) <strong>quit</strong>
522
+
523
+
524
+
525
+
526
+
527
+ </h3><div class="docstring">
528
+ <div class="discussion">
529
+
530
+ <p>Returns the value of attribute quit</p>
531
+
532
+
533
+ </div>
534
+ </div>
535
+ <div class="tags">
536
+
537
+
538
+ </div><table class="source_code">
539
+ <tr>
540
+ <td>
541
+ <pre class="lines">
542
+
543
+
544
+ 36
545
+ 37
546
+ 38</pre>
547
+ </td>
548
+ <td>
549
+ <pre class="code"><span class="info file"># File 'lib/cw.rb', line 36</span>
550
+
551
+ <span class='kw'>def</span> <span class='id identifier rubyid_quit'>quit</span>
552
+ <span class='ivar'>@quit</span>
553
+ <span class='kw'>end</span></pre>
554
+ </td>
555
+ </tr>
556
+ </table>
557
+ </div>
558
+
559
+ </div>
560
+
561
+
562
+ <div id="instance_method_details" class="method_details_list">
563
+ <h2>Instance Method Details</h2>
564
+
565
+
566
+ <div class="method_details first">
567
+ <h3 class="signature first" id="play_book-instance_method">
568
+
569
+ - (<tt>Object</tt>) <strong>play_book</strong>(args = {})
570
+
571
+
572
+
573
+
574
+
575
+ </h3><table class="source_code">
576
+ <tr>
577
+ <td>
578
+ <pre class="lines">
579
+
580
+
581
+ 72
582
+ 73
583
+ 74
584
+ 75
585
+ 76
586
+ 77
587
+ 78</pre>
588
+ </td>
589
+ <td>
590
+ <pre class="code"><span class="info file"># File 'lib/cw.rb', line 72</span>
591
+
592
+ <span class='kw'>def</span> <span class='id identifier rubyid_play_book'>play_book</span> <span class='id identifier rubyid_args'>args</span> <span class='op'>=</span> <span class='lbrace'>{</span><span class='rbrace'>}</span>
593
+ <span class='ivar'>@inhibit_block_run</span> <span class='op'>=</span> <span class='kw'>true</span>
594
+ <span class='id identifier rubyid_details'>details</span> <span class='op'>=</span> <span class='const'>BookDetails</span><span class='period'>.</span><span class='id identifier rubyid_new'>new</span>
595
+ <span class='id identifier rubyid_details'>details</span><span class='period'>.</span><span class='id identifier rubyid_arguments'>arguments</span><span class='lparen'>(</span><span class='id identifier rubyid_args'>args</span><span class='rparen'>)</span>
596
+ <span class='id identifier rubyid_book'>book</span> <span class='op'>=</span> <span class='const'>Book</span><span class='period'>.</span><span class='id identifier rubyid_new'>new</span> <span class='id identifier rubyid_details'>details</span>
597
+ <span class='id identifier rubyid_book'>book</span><span class='period'>.</span><span class='id identifier rubyid_run'>run</span> <span class='ivar'>@words</span>
598
+ <span class='kw'>end</span></pre>
599
+ </td>
600
+ </tr>
601
+ </table>
602
+ </div>
603
+
604
+ <div class="method_details ">
605
+ <h3 class="signature " id="read_rss-instance_method">
606
+
607
+ - (<tt>Object</tt>) <strong>read_rss</strong>(source, show_count = 3)
608
+
609
+
610
+
611
+
612
+
613
+ </h3><table class="source_code">
614
+ <tr>
615
+ <td>
616
+ <pre class="lines">
617
+
618
+
619
+ 80
620
+ 81
621
+ 82
622
+ 83
623
+ 84
624
+ 85
625
+ 86
626
+ 87
627
+ 88
628
+ 89
629
+ 90
630
+ 91</pre>
631
+ </td>
632
+ <td>
633
+ <pre class="code"><span class="info file"># File 'lib/cw.rb', line 80</span>
634
+
635
+ <span class='kw'>def</span> <span class='id identifier rubyid_read_rss'>read_rss</span><span class='lparen'>(</span><span class='id identifier rubyid_source'>source</span><span class='comma'>,</span> <span class='id identifier rubyid_show_count'>show_count</span> <span class='op'>=</span> <span class='int'>3</span><span class='rparen'>)</span>
636
+ <span class='ivar'>@inhibit_block_run</span> <span class='op'>=</span> <span class='kw'>true</span>
637
+ <span class='id identifier rubyid_rss'>rss</span><span class='comma'>,</span> <span class='op'>=</span> <span class='const'>Rss</span><span class='period'>.</span><span class='id identifier rubyid_new'>new</span>
638
+ <span class='id identifier rubyid_rss'>rss</span><span class='period'>.</span><span class='id identifier rubyid_read_rss'>read_rss</span><span class='lparen'>(</span><span class='id identifier rubyid_source'>source</span><span class='comma'>,</span> <span class='id identifier rubyid_show_count'>show_count</span><span class='rparen'>)</span>
639
+ <span class='id identifier rubyid_loop'>loop</span> <span class='kw'>do</span>
640
+ <span class='id identifier rubyid_article'>article</span> <span class='op'>=</span> <span class='id identifier rubyid_rss'>rss</span><span class='period'>.</span><span class='id identifier rubyid_next_article'>next_article</span>
641
+ <span class='kw'>return</span> <span class='kw'>unless</span> <span class='id identifier rubyid_article'>article</span>
642
+ <span class='id identifier rubyid_test_words'>test_words</span> <span class='op'>=</span> <span class='const'>TestWords</span><span class='period'>.</span><span class='id identifier rubyid_new'>new</span>
643
+ <span class='ivar'>@words</span><span class='period'>.</span><span class='id identifier rubyid_assign'>assign</span> <span class='id identifier rubyid_article'>article</span>
644
+ <span class='id identifier rubyid_test_words'>test_words</span><span class='period'>.</span><span class='id identifier rubyid_run'>run</span> <span class='ivar'>@words</span>
645
+ <span class='kw'>end</span>
646
+ <span class='kw'>end</span></pre>
647
+ </td>
648
+ </tr>
649
+ </table>
650
+ </div>
651
+
652
+ <div class="method_details ">
653
+ <h3 class="signature " id="repeat_word-instance_method">
654
+
655
+ - (<tt>Object</tt>) <strong>repeat_word</strong>
656
+
657
+
658
+
659
+
660
+
661
+ </h3><table class="source_code">
662
+ <tr>
663
+ <td>
664
+ <pre class="lines">
665
+
666
+
667
+ 44
668
+ 45
669
+ 46
670
+ 47
671
+ 48</pre>
672
+ </td>
673
+ <td>
674
+ <pre class="code"><span class="info file"># File 'lib/cw.rb', line 44</span>
675
+
676
+ <span class='kw'>def</span> <span class='id identifier rubyid_repeat_word'>repeat_word</span>
677
+ <span class='ivar'>@inhibit_block_run</span> <span class='op'>=</span> <span class='kw'>true</span>
678
+ <span class='id identifier rubyid_repeat_word'>repeat_word</span> <span class='op'>=</span> <span class='const'>RepeatWord</span><span class='period'>.</span><span class='id identifier rubyid_new'>new</span>
679
+ <span class='id identifier rubyid_repeat_word'>repeat_word</span><span class='period'>.</span><span class='id identifier rubyid_run'>run</span> <span class='ivar'>@words</span>
680
+ <span class='kw'>end</span></pre>
681
+ </td>
682
+ </tr>
683
+ </table>
684
+ </div>
685
+
686
+ <div class="method_details ">
687
+ <h3 class="signature " id="run-instance_method">
688
+
689
+ - (<tt>Object</tt>) <strong>run</strong>
690
+
691
+
692
+
693
+
694
+
695
+ </h3><table class="source_code">
696
+ <tr>
697
+ <td>
698
+ <pre class="lines">
699
+
700
+
701
+ 93</pre>
702
+ </td>
703
+ <td>
704
+ <pre class="code"><span class="info file"># File 'lib/cw.rb', line 93</span>
705
+
706
+ <span class='kw'>def</span> <span class='id identifier rubyid_run'>run</span> <span class='semicolon'>;</span> <span class='id identifier rubyid_test_words'>test_words</span> <span class='semicolon'>;</span> <span class='kw'>end</span></pre>
707
+ </td>
708
+ </tr>
709
+ </table>
710
+ </div>
711
+
712
+ <div class="method_details ">
713
+ <h3 class="signature " id="run_word_test-instance_method">
714
+
715
+ - (<tt>Object</tt>) <strong>run_word_test</strong>
716
+
717
+
718
+
719
+
720
+
721
+ </h3><table class="source_code">
722
+ <tr>
723
+ <td>
724
+ <pre class="lines">
725
+
726
+
727
+ 63
728
+ 64
729
+ 65
730
+ 66</pre>
731
+ </td>
732
+ <td>
733
+ <pre class="code"><span class="info file"># File 'lib/cw.rb', line 63</span>
734
+
735
+ <span class='kw'>def</span> <span class='id identifier rubyid_run_word_test'>run_word_test</span>
736
+ <span class='id identifier rubyid_test_words'>test_words</span> <span class='op'>=</span> <span class='const'>TestWords</span><span class='period'>.</span><span class='id identifier rubyid_new'>new</span>
737
+ <span class='id identifier rubyid_test_words'>test_words</span><span class='period'>.</span><span class='id identifier rubyid_run'>run</span> <span class='ivar'>@words</span>
738
+ <span class='kw'>end</span></pre>
739
+ </td>
740
+ </tr>
741
+ </table>
742
+ </div>
743
+
744
+ <div class="method_details ">
745
+ <h3 class="signature " id="test_letters-instance_method">
746
+
747
+ - (<tt>Object</tt>) <strong>test_letters</strong>
748
+
749
+
750
+
751
+
752
+
753
+ </h3><table class="source_code">
754
+ <tr>
755
+ <td>
756
+ <pre class="lines">
757
+
758
+
759
+ 38
760
+ 39
761
+ 40
762
+ 41
763
+ 42</pre>
764
+ </td>
765
+ <td>
766
+ <pre class="code"><span class="info file"># File 'lib/cw.rb', line 38</span>
767
+
768
+ <span class='kw'>def</span> <span class='id identifier rubyid_test_letters'>test_letters</span>
769
+ <span class='ivar'>@inhibit_block_run</span> <span class='op'>=</span> <span class='kw'>true</span>
770
+ <span class='id identifier rubyid_test_letters'>test_letters</span> <span class='op'>=</span> <span class='const'>TestLetters</span><span class='period'>.</span><span class='id identifier rubyid_new'>new</span>
771
+ <span class='id identifier rubyid_test_letters'>test_letters</span><span class='period'>.</span><span class='id identifier rubyid_run'>run</span> <span class='ivar'>@words</span>
772
+ <span class='kw'>end</span></pre>
773
+ </td>
774
+ </tr>
775
+ </table>
776
+ </div>
777
+
778
+ <div class="method_details ">
779
+ <h3 class="signature " id="test_words-instance_method">
780
+
781
+ - (<tt>Object</tt>) <strong>test_words</strong>
782
+
783
+
784
+
785
+
786
+
787
+ </h3><table class="source_code">
788
+ <tr>
789
+ <td>
790
+ <pre class="lines">
791
+
792
+
793
+ 68
794
+ 69
795
+ 70</pre>
796
+ </td>
797
+ <td>
798
+ <pre class="code"><span class="info file"># File 'lib/cw.rb', line 68</span>
799
+
800
+ <span class='kw'>def</span> <span class='id identifier rubyid_test_words'>test_words</span>
801
+ <span class='id identifier rubyid_run_word_test'>run_word_test</span>
802
+ <span class='kw'>end</span></pre>
803
+ </td>
804
+ </tr>
805
+ </table>
806
+ </div>
807
+
808
+ <div class="method_details ">
809
+ <h3 class="signature " id="to_s-instance_method">
810
+
811
+ - (<tt>Object</tt>) <strong>to_s</strong>
812
+
813
+
814
+
815
+
816
+
817
+ </h3><table class="source_code">
818
+ <tr>
819
+ <td>
820
+ <pre class="lines">
821
+
822
+
823
+ 59
824
+ 60
825
+ 61</pre>
826
+ </td>
827
+ <td>
828
+ <pre class="code"><span class="info file"># File 'lib/cw.rb', line 59</span>
829
+
830
+ <span class='kw'>def</span> <span class='id identifier rubyid_to_s'>to_s</span>
831
+ <span class='ivar'>@str</span><span class='period'>.</span><span class='id identifier rubyid_to_s'>to_s</span>
832
+ <span class='kw'>end</span></pre>
833
+ </td>
834
+ </tr>
835
+ </table>
836
+ </div>
837
+
838
+ </div>
839
+
840
+ </div>
841
+
842
+ <div id="footer">
843
+ Generated on Mon May 23 21:20:16 2016 by
844
+ <a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
845
+ 0.8.7.6 (ruby-2.2.0).
846
+ </div>
847
+
848
+ </body>
849
+ </html>