cw 0.0.11 → 0.0.12

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/.gitignore +26 -3
  3. data/.yardoc/checksums +2 -2
  4. data/.yardoc/object_types +0 -0
  5. data/.yardoc/objects/root.dat +0 -0
  6. data/audio/dash.wav +0 -0
  7. data/audio/dot.wav +0 -0
  8. data/audio/e_space.wav +0 -0
  9. data/audio/space.wav +0 -0
  10. data/cw.gemspec +1 -1
  11. data/doc/Alphabet.html +1 -1
  12. data/doc/AudioPlayer.html +1 -1
  13. data/doc/Book.html +1 -1
  14. data/doc/BookDetails.html +1 -1
  15. data/doc/CW.html +299 -125
  16. data/doc/CWThreads.html +1 -1
  17. data/doc/Cl.html +1 -1
  18. data/doc/CurrentWord.html +1 -1
  19. data/doc/CwDsl.html +1 -1
  20. data/doc/CwEncoding.html +1 -1
  21. data/doc/FileDetails.html +1 -1
  22. data/doc/KeyInput.html +1 -1
  23. data/doc/MonitorKeys.html +1 -1
  24. data/doc/Numbers.html +1 -1
  25. data/doc/Params.html +1 -1
  26. data/doc/Print.html +1 -1
  27. data/doc/Print/ProgressPrint.html +1 -1
  28. data/doc/Process.html +1 -1
  29. data/doc/Progress.html +1 -1
  30. data/doc/Randomize.html +1 -1
  31. data/doc/RepeatWord.html +1 -1
  32. data/doc/Rss.html +28 -26
  33. data/doc/Sentence.html +1 -1
  34. data/doc/Spoken.html +1 -1
  35. data/doc/Str.html +1 -1
  36. data/doc/Stream.html +1 -1
  37. data/doc/TestLetters.html +1 -1
  38. data/doc/TestWords.html +1 -1
  39. data/doc/Tester.html +1 -1
  40. data/doc/Timing.html +1 -1
  41. data/doc/ToneGenerator.html +1 -1
  42. data/doc/Voice.html +1 -1
  43. data/doc/Words.html +1 -1
  44. data/doc/_index.html +1 -1
  45. data/doc/file.README.html +14 -5
  46. data/doc/index.html +14 -5
  47. data/doc/method_list.html +289 -295
  48. data/doc/monitor.html +1 -1
  49. data/doc/top-level-namespace.html +1 -1
  50. data/lib/cw.rb +38 -13
  51. data/lib/cw/cw_dsl.rb +2 -0
  52. data/lib/cw/rss.rb +7 -6
  53. data/lib/cw/str.rb +18 -17
  54. data/test/test_cw.rb +5 -3
  55. metadata +2 -1
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 989e1bb7fa13915779b903aaefd8167e0afda345
4
- data.tar.gz: 8e473d0a5adfec8808ba0d2fd4255dc4cbc22df1
3
+ metadata.gz: f96c63ebcba919ae57d460aae5e40a871af17ad1
4
+ data.tar.gz: 4df1a6780ff5ae0b2e1f0966171735156061f409
5
5
  SHA512:
6
- metadata.gz: fa0bbd224e8b08c6b67241df869fc41b3b8f857c8b9baf4d337007d56acfaacd31f73f7def2434f8f1b56acb922989aaebba7461814cb3fed3b97472ceea8407
7
- data.tar.gz: b2c18e86a87c71948a0d9aa0e416f7c935cbe0c0113374afe871c20034c1b5c4549f182ef8c9bd283f44679a2f98090bc4ca4c22cb3f5cf5b6b0db6e04a0b137
6
+ metadata.gz: 8d601393c438cb66221a8e427dbb0f723daea1a24db7084435f494903925b444efaaeeb972341f051b501fdb50a3c4ee2b30c55b3eca1269e8444a3cc9e94e77
7
+ data.tar.gz: 4ac510de739832dd440d8cbb94dd6937660bd5ed63a2bce83622d0c12bddf814b44973b395d7e75fbb902ac308657e28f68153b3da106a0b9f25e32ba8f402ef
data/.gitignore CHANGED
@@ -1,5 +1,28 @@
1
- /Gemfile.lock
2
- /test.rb
1
+ # Because this is a gem, ignore Gemfile.lock:
2
+
3
+ Gemfile.lock
4
+
5
+ # And because this is Ruby, ignore the following
6
+ # (source: https://github.com/github/gitignore/blob/master/Ruby.gitignore):
7
+
8
+ *.gem
9
+ *.rbc
10
+ .bundle
11
+ .config
12
+ coverage
13
+ InstalledFiles
14
+ lib/bundler/man
15
+ pkg
16
+ rdoc
17
+ spec/reports
18
+ test/tmp
19
+ test/version_tmp
20
+ tmp
21
+
22
+ # YARD artifacts
23
+ .yardoc
24
+ _yardoc
25
+ doc/
3
26
  /.ruby_version/
27
+
4
28
  audio/audio_output.wav
5
- working_example.rb
data/.yardoc/checksums CHANGED
@@ -1,7 +1,7 @@
1
- lib/cw.rb 30117a5cd8ca9e2d5281f8c08cb0a2de37491d0d
1
+ lib/cw.rb 028740926efd506dda72274477fed69cc51a001a
2
2
  lib/cw/cl.rb 5b8288fd93e577aa1251c13174a64066fcb23503
3
3
  lib/cw/str.rb bb5d3558c51cc754de6eab7a83a0dbff37285694
4
- lib/cw/rss.rb 2623f80cbf9b5a9e1ecb706915d7584815c80871
4
+ lib/cw/rss.rb 8c0e55d7d47aeaf6955483834cd79bbc47155cde
5
5
  lib/cw/book.rb da54e4f3df96fc45e9076464a8c9aa3a5e5a607c
6
6
  lib/cw/speak.rb fed0aaf5384d8dc0ebc4fd1c8cf07b227a168e86
7
7
  lib/cw/print.rb dda478b67c0517ac0ac885fb8029a3848803ab00
data/.yardoc/object_types CHANGED
Binary file
Binary file
data/audio/dash.wav CHANGED
Binary file
data/audio/dot.wav CHANGED
Binary file
data/audio/e_space.wav CHANGED
Binary file
data/audio/space.wav CHANGED
Binary file
data/cw.gemspec CHANGED
@@ -4,7 +4,7 @@ $LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
4
4
 
5
5
  Gem::Specification.new do |spec|
6
6
  spec.name = 'cw'
7
- spec.version = '0.0.11'
7
+ spec.version = '0.0.12'
8
8
  spec.date = '2016-05-21'
9
9
  spec.authors = ["Martyn Jago"]
10
10
  spec.email = ["martyn.jago@btinternet.com"]
data/doc/Alphabet.html CHANGED
@@ -424,7 +424,7 @@
424
424
  </div>
425
425
 
426
426
  <div id="footer">
427
- Generated on Mon May 23 21:20:17 2016 by
427
+ Generated on Wed May 25 15:00:25 2016 by
428
428
  <a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
429
429
  0.8.7.6 (ruby-2.2.0).
430
430
  </div>
data/doc/AudioPlayer.html CHANGED
@@ -796,7 +796,7 @@
796
796
  </div>
797
797
 
798
798
  <div id="footer">
799
- Generated on Mon May 23 21:20:17 2016 by
799
+ Generated on Wed May 25 15:00:26 2016 by
800
800
  <a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
801
801
  0.8.7.6 (ruby-2.2.0).
802
802
  </div>
data/doc/Book.html CHANGED
@@ -3125,7 +3125,7 @@
3125
3125
  </div>
3126
3126
 
3127
3127
  <div id="footer">
3128
- Generated on Mon May 23 21:20:16 2016 by
3128
+ Generated on Wed May 25 15:00:24 2016 by
3129
3129
  <a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
3130
3130
  0.8.7.6 (ruby-2.2.0).
3131
3131
  </div>
data/doc/BookDetails.html CHANGED
@@ -655,7 +655,7 @@
655
655
  </div>
656
656
 
657
657
  <div id="footer">
658
- Generated on Mon May 23 21:20:17 2016 by
658
+ Generated on Wed May 25 15:00:26 2016 by
659
659
  <a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
660
660
  0.8.7.6 (ruby-2.2.0).
661
661
  </div>
data/doc/CW.html CHANGED
@@ -238,7 +238,9 @@
238
238
 
239
239
 
240
240
 
241
- <span class="summary_desc"><div class='inline'></div></span>
241
+ <span class="summary_desc"><div class='inline'>
242
+ <p>Play book using provided arguments.</p>
243
+ </div></span>
242
244
 
243
245
  </li>
244
246
 
@@ -246,7 +248,7 @@
246
248
  <li class="public ">
247
249
  <span class="summary_signature">
248
250
 
249
- <a href="#read_rss-instance_method" title="#read_rss (instance method)">- (Object) <strong>read_rss</strong>(source, show_count = 3) </a>
251
+ <a href="#read_rss-instance_method" title="#read_rss (instance method)">- (Object) <strong>read_rss</strong>(source, article_count = 3) </a>
250
252
 
251
253
 
252
254
 
@@ -260,7 +262,9 @@
260
262
 
261
263
 
262
264
 
263
- <span class="summary_desc"><div class='inline'></div></span>
265
+ <span class="summary_desc"><div class='inline'>
266
+ <p>Reads RSS feed (requires an internet connection).</p>
267
+ </div></span>
264
268
 
265
269
  </li>
266
270
 
@@ -282,7 +286,10 @@
282
286
 
283
287
 
284
288
 
285
- <span class="summary_desc"><div class='inline'></div></span>
289
+ <span class="summary_desc"><div class='inline'>
290
+ <p>Repeat word repeats the current word if the word is entered incorrectly (or
291
+ not entered at all).</p>
292
+ </div></span>
286
293
 
287
294
  </li>
288
295
 
@@ -304,29 +311,9 @@
304
311
 
305
312
 
306
313
 
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>
314
+ <span class="summary_desc"><div class='inline'>
315
+ <p>Run word test.</p>
316
+ </div></span>
330
317
 
331
318
  </li>
332
319
 
@@ -348,7 +335,9 @@
348
335
 
349
336
 
350
337
 
351
- <span class="summary_desc"><div class='inline'></div></span>
338
+ <span class="summary_desc"><div class='inline'>
339
+ <p>Test user against letters rather than words.</p>
340
+ </div></span>
352
341
 
353
342
  </li>
354
343
 
@@ -370,7 +359,9 @@
370
359
 
371
360
 
372
361
 
373
- <span class="summary_desc"><div class='inline'></div></span>
362
+ <span class="summary_desc"><div class='inline'>
363
+ <p>Test user against complete words rather than letters.</p>
364
+ </div></span>
374
365
 
375
366
  </li>
376
367
 
@@ -378,7 +369,7 @@
378
369
  <li class="public ">
379
370
  <span class="summary_signature">
380
371
 
381
- <a href="#to_s-instance_method" title="#to_s (instance method)">- (Object) <strong>to_s</strong> </a>
372
+ <a href="#to_s-instance_method" title="#to_s (instance method)">- (String) <strong>to_s</strong> </a>
382
373
 
383
374
 
384
375
 
@@ -392,7 +383,9 @@
392
383
 
393
384
 
394
385
 
395
- <span class="summary_desc"><div class='inline'></div></span>
386
+ <span class="summary_desc"><div class='inline'>
387
+ <p>Return string containing name or comment of test.</p>
388
+ </div></span>
396
389
 
397
390
  </li>
398
391
 
@@ -440,17 +433,17 @@
440
433
  <pre class="lines">
441
434
 
442
435
 
443
- 50
444
- 51
445
- 52
446
- 53
447
- 54
448
- 55
449
- 56
450
- 57</pre>
436
+ 67
437
+ 68
438
+ 69
439
+ 70
440
+ 71
441
+ 72
442
+ 73
443
+ 74</pre>
451
444
  </td>
452
445
  <td>
453
- <pre class="code"><span class="info file"># File 'lib/cw.rb', line 50</span>
446
+ <pre class="code"><span class="info file"># File 'lib/cw.rb', line 67</span>
454
447
 
455
448
  <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
449
 
@@ -572,22 +565,103 @@
572
565
 
573
566
 
574
567
 
575
- </h3><table class="source_code">
568
+ </h3><div class="docstring">
569
+ <div class="discussion">
570
+
571
+ <p>Play book using provided arguments.</p>
572
+
573
+
574
+ </div>
575
+ </div>
576
+ <div class="tags">
577
+ <p class="tag_title">Parameters:</p>
578
+ <ul class="param">
579
+
580
+ <li>
581
+
582
+ <span class='name'>args</span>
583
+
584
+
585
+ <span class='type'>(<tt>Hash</tt>)</span>
586
+
587
+
588
+ <em class="default">(defaults to: <tt>{}</tt>)</em>
589
+
590
+
591
+ &mdash;
592
+ <div class='inline'>
593
+ <p>the options to play book with.</p>
594
+ </div>
595
+
596
+ </li>
597
+
598
+ </ul>
599
+
600
+
601
+
602
+
603
+ <p class="tag_title">Options Hash (<tt>args</tt>):</p>
604
+ <ul class="option">
605
+
606
+ <li>
607
+ <span class="name">:sentences</span>
608
+ <span class="type">(<tt>Integer</tt>)</span>
609
+ <span class="default">
610
+
611
+ </span>
612
+
613
+ &mdash; <div class='inline'>
614
+ <p>Number of sentences to play</p>
615
+ </div>
616
+
617
+ </li>
618
+
619
+ <li>
620
+ <span class="name">:duration</span>
621
+ <span class="type">(<tt>Integer</tt>)</span>
622
+ <span class="default">
623
+
624
+ </span>
625
+
626
+ &mdash; <div class='inline'>
627
+ <p>Number of minutes to play</p>
628
+ </div>
629
+
630
+ </li>
631
+
632
+ <li>
633
+ <span class="name">:letter</span>
634
+ <span class="type">(<tt>Boolean</tt>)</span>
635
+ <span class="default">
636
+
637
+ </span>
638
+
639
+ &mdash; <div class='inline'>
640
+ <p>Mark by letter if true else mark by word</p>
641
+ </div>
642
+
643
+ </li>
644
+
645
+ </ul>
646
+
647
+
648
+
649
+ </div><table class="source_code">
576
650
  <tr>
577
651
  <td>
578
652
  <pre class="lines">
579
653
 
580
654
 
581
- 72
582
- 73
583
- 74
584
- 75
585
- 76
586
- 77
587
- 78</pre>
655
+ 89
656
+ 90
657
+ 91
658
+ 92
659
+ 93
660
+ 94
661
+ 95</pre>
588
662
  </td>
589
663
  <td>
590
- <pre class="code"><span class="info file"># File 'lib/cw.rb', line 72</span>
664
+ <pre class="code"><span class="info file"># File 'lib/cw.rb', line 89</span>
591
665
 
592
666
  <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
667
  <span class='ivar'>@inhibit_block_run</span> <span class='op'>=</span> <span class='kw'>true</span>
@@ -604,44 +678,100 @@
604
678
  <div class="method_details ">
605
679
  <h3 class="signature " id="read_rss-instance_method">
606
680
 
607
- - (<tt>Object</tt>) <strong>read_rss</strong>(source, show_count = 3)
681
+ - (<tt>Object</tt>) <strong>read_rss</strong>(source, article_count = 3)
608
682
 
609
683
 
610
684
 
611
685
 
612
686
 
613
- </h3><table class="source_code">
687
+ </h3><div class="docstring">
688
+ <div class="discussion">
689
+
690
+ <p>Reads RSS feed (requires an internet connection). Feed can be one of:</p>
691
+ <ul><li>
692
+ <p>bbc:</p>
693
+ </li><li>
694
+ <p>reuters:</p>
695
+ </li><li>
696
+ <p>guardian:</p>
697
+ </li><li>
698
+ <p>quotation:</p>
699
+ </li></ul>
700
+
701
+
702
+ </div>
703
+ </div>
704
+ <div class="tags">
705
+ <p class="tag_title">Parameters:</p>
706
+ <ul class="param">
707
+
708
+ <li>
709
+
710
+ <span class='name'>source</span>
711
+
712
+
713
+ <span class='type'>(<tt>Symbol</tt>)</span>
714
+
715
+
716
+
717
+ &mdash;
718
+ <div class='inline'>
719
+ <p>The source of the feed.</p>
720
+ </div>
721
+
722
+ </li>
723
+
724
+ <li>
725
+
726
+ <span class='name'>article_count</span>
727
+
728
+
729
+ <span class='type'>(<tt>Integer</tt>)</span>
730
+
731
+
732
+ <em class="default">(defaults to: <tt>3</tt>)</em>
733
+
734
+
735
+ &mdash;
736
+ <div class='inline'>
737
+ <p>Number of articles to play.</p>
738
+ </div>
739
+
740
+ </li>
741
+
742
+ </ul>
743
+
744
+
745
+ </div><table class="source_code">
614
746
  <tr>
615
747
  <td>
616
748
  <pre class="lines">
617
749
 
618
750
 
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>
751
+ 105
752
+ 106
753
+ 107
754
+ 108
755
+ 109
756
+ 110
757
+ 111
758
+ 112
759
+ 113
760
+ 114
761
+ 115</pre>
631
762
  </td>
632
763
  <td>
633
- <pre class="code"><span class="info file"># File 'lib/cw.rb', line 80</span>
764
+ <pre class="code"><span class="info file"># File 'lib/cw.rb', line 105</span>
634
765
 
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>
766
+ <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_article_count'>article_count</span> <span class='op'>=</span> <span class='int'>3</span><span class='rparen'>)</span>
636
767
  <span class='ivar'>@inhibit_block_run</span> <span class='op'>=</span> <span class='kw'>true</span>
637
768
  <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>
769
+ <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_article_count'>article_count</span><span class='rparen'>)</span>
639
770
  <span class='id identifier rubyid_loop'>loop</span> <span class='kw'>do</span>
640
771
  <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
772
  <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
773
  <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>
774
+ <span class='id identifier rubyid_run'>run</span>
645
775
  <span class='kw'>end</span>
646
776
  <span class='kw'>end</span></pre>
647
777
  </td>
@@ -658,20 +788,32 @@
658
788
 
659
789
 
660
790
 
661
- </h3><table class="source_code">
791
+ </h3><div class="docstring">
792
+ <div class="discussion">
793
+
794
+ <p>Repeat word repeats the current word if the word is entered incorrectly (or
795
+ not entered at all).</p>
796
+
797
+
798
+ </div>
799
+ </div>
800
+ <div class="tags">
801
+
802
+
803
+ </div><table class="source_code">
662
804
  <tr>
663
805
  <td>
664
806
  <pre class="lines">
665
807
 
666
808
 
667
- 44
668
- 45
669
- 46
670
- 47
671
- 48</pre>
809
+ 58
810
+ 59
811
+ 60
812
+ 61
813
+ 62</pre>
672
814
  </td>
673
815
  <td>
674
- <pre class="code"><span class="info file"># File 'lib/cw.rb', line 44</span>
816
+ <pre class="code"><span class="info file"># File 'lib/cw.rb', line 58</span>
675
817
 
676
818
  <span class='kw'>def</span> <span class='id identifier rubyid_repeat_word'>repeat_word</span>
677
819
  <span class='ivar'>@inhibit_block_run</span> <span class='op'>=</span> <span class='kw'>true</span>
@@ -692,50 +834,29 @@
692
834
 
693
835
 
694
836
 
695
- </h3><table class="source_code">
696
- <tr>
697
- <td>
698
- <pre class="lines">
699
-
837
+ </h3><div class="docstring">
838
+ <div class="discussion">
839
+
840
+ <p>Run word test</p>
700
841
 
701
- 93</pre>
702
- </td>
703
- <td>
704
- <pre class="code"><span class="info file"># File 'lib/cw.rb', line 93</span>
705
842
 
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>
843
+ </div>
710
844
  </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
-
845
+ <div class="tags">
718
846
 
719
847
 
720
-
721
- </h3><table class="source_code">
848
+ </div><table class="source_code">
722
849
  <tr>
723
850
  <td>
724
851
  <pre class="lines">
725
852
 
726
853
 
727
- 63
728
- 64
729
- 65
730
- 66</pre>
854
+ 118</pre>
731
855
  </td>
732
856
  <td>
733
- <pre class="code"><span class="info file"># File 'lib/cw.rb', line 63</span>
857
+ <pre class="code"><span class="info file"># File 'lib/cw.rb', line 118</span>
734
858
 
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>
859
+ <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>
739
860
  </td>
740
861
  </tr>
741
862
  </table>
@@ -750,20 +871,31 @@
750
871
 
751
872
 
752
873
 
753
- </h3><table class="source_code">
874
+ </h3><div class="docstring">
875
+ <div class="discussion">
876
+
877
+ <p>Test user against letters rather than words.</p>
878
+
879
+
880
+ </div>
881
+ </div>
882
+ <div class="tags">
883
+
884
+
885
+ </div><table class="source_code">
754
886
  <tr>
755
887
  <td>
756
888
  <pre class="lines">
757
889
 
758
890
 
759
- 38
760
- 39
761
- 40
762
891
  41
763
- 42</pre>
892
+ 42
893
+ 43
894
+ 44
895
+ 45</pre>
764
896
  </td>
765
897
  <td>
766
- <pre class="code"><span class="info file"># File 'lib/cw.rb', line 38</span>
898
+ <pre class="code"><span class="info file"># File 'lib/cw.rb', line 41</span>
767
899
 
768
900
  <span class='kw'>def</span> <span class='id identifier rubyid_test_letters'>test_letters</span>
769
901
  <span class='ivar'>@inhibit_block_run</span> <span class='op'>=</span> <span class='kw'>true</span>
@@ -784,21 +916,34 @@
784
916
 
785
917
 
786
918
 
787
- </h3><table class="source_code">
919
+ </h3><div class="docstring">
920
+ <div class="discussion">
921
+
922
+ <p>Test user against complete words rather than letters.</p>
923
+
924
+
925
+ </div>
926
+ </div>
927
+ <div class="tags">
928
+
929
+
930
+ </div><table class="source_code">
788
931
  <tr>
789
932
  <td>
790
933
  <pre class="lines">
791
934
 
792
935
 
793
- 68
794
- 69
795
- 70</pre>
936
+ 50
937
+ 51
938
+ 52
939
+ 53</pre>
796
940
  </td>
797
941
  <td>
798
- <pre class="code"><span class="info file"># File 'lib/cw.rb', line 68</span>
942
+ <pre class="code"><span class="info file"># File 'lib/cw.rb', line 50</span>
799
943
 
800
944
  <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>
945
+ <span class='id identifier rubyid_tw'>tw</span> <span class='op'>=</span> <span class='const'>TestWords</span><span class='period'>.</span><span class='id identifier rubyid_new'>new</span>
946
+ <span class='id identifier rubyid_tw'>tw</span><span class='period'>.</span><span class='id identifier rubyid_run'>run</span> <span class='ivar'>@words</span>
802
947
  <span class='kw'>end</span></pre>
803
948
  </td>
804
949
  </tr>
@@ -808,24 +953,53 @@
808
953
  <div class="method_details ">
809
954
  <h3 class="signature " id="to_s-instance_method">
810
955
 
811
- - (<tt>Object</tt>) <strong>to_s</strong>
956
+ - (<tt>String</tt>) <strong>to_s</strong>
812
957
 
813
958
 
814
959
 
815
960
 
816
961
 
817
- </h3><table class="source_code">
962
+ </h3><div class="docstring">
963
+ <div class="discussion">
964
+
965
+ <p>Return string containing name or comment of test.</p>
966
+
967
+
968
+ </div>
969
+ </div>
970
+ <div class="tags">
971
+
972
+ <p class="tag_title">Returns:</p>
973
+ <ul class="return">
974
+
975
+ <li>
976
+
977
+
978
+ <span class='type'>(<tt>String</tt>)</span>
979
+
980
+
981
+
982
+ &mdash;
983
+ <div class='inline'>
984
+ <p>comment / name</p>
985
+ </div>
986
+
987
+ </li>
988
+
989
+ </ul>
990
+
991
+ </div><table class="source_code">
818
992
  <tr>
819
993
  <td>
820
994
  <pre class="lines">
821
995
 
822
996
 
823
- 59
824
- 60
825
- 61</pre>
997
+ 79
998
+ 80
999
+ 81</pre>
826
1000
  </td>
827
1001
  <td>
828
- <pre class="code"><span class="info file"># File 'lib/cw.rb', line 59</span>
1002
+ <pre class="code"><span class="info file"># File 'lib/cw.rb', line 79</span>
829
1003
 
830
1004
  <span class='kw'>def</span> <span class='id identifier rubyid_to_s'>to_s</span>
831
1005
  <span class='ivar'>@str</span><span class='period'>.</span><span class='id identifier rubyid_to_s'>to_s</span>
@@ -840,7 +1014,7 @@
840
1014
  </div>
841
1015
 
842
1016
  <div id="footer">
843
- Generated on Mon May 23 21:20:16 2016 by
1017
+ Generated on Wed May 25 15:00:24 2016 by
844
1018
  <a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
845
1019
  0.8.7.6 (ruby-2.2.0).
846
1020
  </div>