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,3134 @@
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: Book
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#!Book.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 (B)</a> &raquo;
35
+
36
+
37
+ <span class="title">Book</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: Book
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="FileDetails.html" title="FileDetails (class)">FileDetails</a></span></span>
77
+
78
+ <ul class="fullTree">
79
+ <li>Object</li>
80
+
81
+ <li class="next"><span class='object_link'><a href="FileDetails.html" title="FileDetails (class)">FileDetails</a></span></li>
82
+
83
+ <li class="next">Book</li>
84
+
85
+ </ul>
86
+ <a href="#" class="inheritanceTree">show all</a>
87
+
88
+ </dd>
89
+
90
+
91
+
92
+
93
+
94
+
95
+ <dt class="r2">Includes:</dt>
96
+ <dd class="r2"><span class='object_link'><a href="Tester.html" title="Tester (module)">Tester</a></span></dd>
97
+
98
+
99
+
100
+
101
+
102
+ <dt class="r1 last">Defined in:</dt>
103
+ <dd class="r1 last">lib/cw/book.rb</dd>
104
+
105
+ </dl>
106
+ <div class="clear"></div>
107
+
108
+
109
+ <h2>Constant Summary</h2>
110
+
111
+
112
+
113
+
114
+ <h2>Constant Summary</h2>
115
+
116
+ <h3 class="inherited">Constants inherited
117
+ from <span class='object_link'><a href="FileDetails.html" title="FileDetails (class)">FileDetails</a></span></h3>
118
+ <p class="inherited"><span class='object_link'><a href="FileDetails.html#AUDIO-constant" title="FileDetails::AUDIO (constant)">FileDetails::AUDIO</a></span>, <span class='object_link'><a href="FileDetails.html#HERE-constant" title="FileDetails::HERE (constant)">FileDetails::HERE</a></span>, <span class='object_link'><a href="FileDetails.html#TEXT-constant" title="FileDetails::TEXT (constant)">FileDetails::TEXT</a></span></p>
119
+
120
+
121
+
122
+
123
+
124
+
125
+ <h2>
126
+ Instance Method Summary
127
+ <small>(<a href="#" class="summary_toggle">collapse</a>)</small>
128
+ </h2>
129
+
130
+ <ul class="summary">
131
+
132
+ <li class="public ">
133
+ <span class="summary_signature">
134
+
135
+ <a href="#add_space-instance_method" title="#add_space (instance method)">- (Object) <strong>add_space</strong>(sentence) </a>
136
+
137
+
138
+
139
+ </span>
140
+
141
+
142
+
143
+
144
+
145
+
146
+
147
+
148
+
149
+ <span class="summary_desc"><div class='inline'></div></span>
150
+
151
+ </li>
152
+
153
+
154
+ <li class="public ">
155
+ <span class="summary_signature">
156
+
157
+ <a href="#audio_play_repeat_tone_maybe-instance_method" title="#audio_play_repeat_tone_maybe (instance method)">- (Object) <strong>audio_play_repeat_tone_maybe</strong> </a>
158
+
159
+
160
+
161
+ </span>
162
+
163
+
164
+
165
+
166
+
167
+
168
+
169
+
170
+
171
+ <span class="summary_desc"><div class='inline'></div></span>
172
+
173
+ </li>
174
+
175
+
176
+ <li class="public ">
177
+ <span class="summary_signature">
178
+
179
+ <a href="#audio_play_sentence-instance_method" title="#audio_play_sentence (instance method)">- (Object) <strong>audio_play_sentence</strong> </a>
180
+
181
+
182
+
183
+ </span>
184
+
185
+
186
+
187
+
188
+
189
+
190
+
191
+
192
+
193
+ <span class="summary_desc"><div class='inline'></div></span>
194
+
195
+ </li>
196
+
197
+
198
+ <li class="public ">
199
+ <span class="summary_signature">
200
+
201
+ <a href="#audio_play_tone-instance_method" title="#audio_play_tone (instance method)">- (Object) <strong>audio_play_tone</strong>(t) </a>
202
+
203
+
204
+
205
+ </span>
206
+
207
+
208
+
209
+
210
+
211
+
212
+
213
+
214
+
215
+ <span class="summary_desc"><div class='inline'></div></span>
216
+
217
+ </li>
218
+
219
+
220
+ <li class="public ">
221
+ <span class="summary_signature">
222
+
223
+ <a href="#audio_stop-instance_method" title="#audio_stop (instance method)">- (Object) <strong>audio_stop</strong> </a>
224
+
225
+
226
+
227
+ </span>
228
+
229
+
230
+
231
+
232
+
233
+
234
+
235
+
236
+
237
+ <span class="summary_desc"><div class='inline'></div></span>
238
+
239
+ </li>
240
+
241
+
242
+ <li class="public ">
243
+ <span class="summary_signature">
244
+
245
+ <a href="#await_next_sentence_or_quit-instance_method" title="#await_next_sentence_or_quit (instance method)">- (Object) <strong>await_next_sentence_or_quit</strong> </a>
246
+
247
+
248
+
249
+ </span>
250
+
251
+
252
+
253
+
254
+
255
+
256
+
257
+
258
+
259
+ <span class="summary_desc"><div class='inline'></div></span>
260
+
261
+ </li>
262
+
263
+
264
+ <li class="public ">
265
+ <span class="summary_signature">
266
+
267
+ <a href="#book_location-instance_method" title="#book_location (instance method)">- (Object) <strong>book_location</strong> </a>
268
+
269
+
270
+
271
+ </span>
272
+
273
+
274
+
275
+
276
+
277
+
278
+
279
+
280
+
281
+ <span class="summary_desc"><div class='inline'></div></span>
282
+
283
+ </li>
284
+
285
+
286
+ <li class="public ">
287
+ <span class="summary_signature">
288
+
289
+ <a href="#build_word_maybe-instance_method" title="#build_word_maybe (instance method)">- (Object) <strong>build_word_maybe</strong> </a>
290
+
291
+
292
+
293
+ </span>
294
+
295
+
296
+
297
+
298
+
299
+
300
+
301
+
302
+
303
+ <span class="summary_desc"><div class='inline'></div></span>
304
+
305
+ </li>
306
+
307
+
308
+ <li class="public ">
309
+ <span class="summary_signature">
310
+
311
+ <a href="#change_and_kill_audio-instance_method" title="#change_and_kill_audio (instance method)">- (Object) <strong>change_and_kill_audio</strong> </a>
312
+
313
+
314
+
315
+ </span>
316
+
317
+
318
+
319
+
320
+
321
+
322
+
323
+
324
+
325
+ <span class="summary_desc"><div class='inline'></div></span>
326
+
327
+ </li>
328
+
329
+
330
+ <li class="public ">
331
+ <span class="summary_signature">
332
+
333
+ <a href="#change_or_repeat_sentence%3F-instance_method" title="#change_or_repeat_sentence? (instance method)">- (Boolean) <strong>change_or_repeat_sentence?</strong> </a>
334
+
335
+
336
+
337
+ </span>
338
+
339
+
340
+
341
+
342
+
343
+
344
+
345
+
346
+
347
+ <span class="summary_desc"><div class='inline'></div></span>
348
+
349
+ </li>
350
+
351
+
352
+ <li class="public ">
353
+ <span class="summary_signature">
354
+
355
+ <a href="#change_repeat_or_quit%3F-instance_method" title="#change_repeat_or_quit? (instance method)">- (Boolean) <strong>change_repeat_or_quit?</strong> </a>
356
+
357
+
358
+
359
+ </span>
360
+
361
+
362
+
363
+
364
+
365
+
366
+
367
+
368
+
369
+ <span class="summary_desc"><div class='inline'></div></span>
370
+
371
+ </li>
372
+
373
+
374
+ <li class="public ">
375
+ <span class="summary_signature">
376
+
377
+ <a href="#change_sentence-instance_method" title="#change_sentence (instance method)">- (Object) <strong>change_sentence</strong> </a>
378
+
379
+
380
+
381
+ </span>
382
+
383
+
384
+
385
+
386
+
387
+
388
+
389
+
390
+
391
+ <span class="summary_desc"><div class='inline'></div></span>
392
+
393
+ </li>
394
+
395
+
396
+ <li class="public ">
397
+ <span class="summary_signature">
398
+
399
+ <a href="#change_sentence%3F-instance_method" title="#change_sentence? (instance method)">- (Boolean) <strong>change_sentence?</strong> </a>
400
+
401
+
402
+
403
+ </span>
404
+
405
+
406
+
407
+
408
+
409
+
410
+
411
+
412
+
413
+ <span class="summary_desc"><div class='inline'></div></span>
414
+
415
+ </li>
416
+
417
+
418
+ <li class="public ">
419
+ <span class="summary_signature">
420
+
421
+ <a href="#check_sentence_count-instance_method" title="#check_sentence_count (instance method)">- (Object) <strong>check_sentence_count</strong>(source) </a>
422
+
423
+
424
+
425
+ </span>
426
+
427
+
428
+
429
+
430
+
431
+
432
+
433
+
434
+
435
+ <span class="summary_desc"><div class='inline'></div></span>
436
+
437
+ </li>
438
+
439
+
440
+ <li class="public ">
441
+ <span class="summary_signature">
442
+
443
+ <a href="#check_sentence_navigation-instance_method" title="#check_sentence_navigation (instance method)">- (Object) <strong>check_sentence_navigation</strong>(chr) </a>
444
+
445
+
446
+
447
+ </span>
448
+
449
+
450
+
451
+
452
+
453
+
454
+
455
+
456
+
457
+ <span class="summary_desc"><div class='inline'></div></span>
458
+
459
+ </li>
460
+
461
+
462
+ <li class="public ">
463
+ <span class="summary_signature">
464
+
465
+ <a href="#compile_and_play-instance_method" title="#compile_and_play (instance method)">- (Object) <strong>compile_and_play</strong> </a>
466
+
467
+
468
+
469
+ </span>
470
+
471
+
472
+
473
+
474
+
475
+
476
+
477
+
478
+
479
+ <span class="summary_desc"><div class='inline'></div></span>
480
+
481
+ </li>
482
+
483
+
484
+ <li class="public ">
485
+ <span class="summary_signature">
486
+
487
+ <a href="#compile_sentence-instance_method" title="#compile_sentence (instance method)">- (Object) <strong>compile_sentence</strong> </a>
488
+
489
+
490
+
491
+ </span>
492
+
493
+
494
+
495
+
496
+
497
+
498
+
499
+
500
+
501
+ <span class="summary_desc"><div class='inline'></div></span>
502
+
503
+ </li>
504
+
505
+
506
+ <li class="public ">
507
+ <span class="summary_signature">
508
+
509
+ <a href="#complete_word%3F-instance_method" title="#complete_word? (instance method)">- (Boolean) <strong>complete_word?</strong> </a>
510
+
511
+
512
+
513
+ </span>
514
+
515
+
516
+
517
+
518
+
519
+
520
+
521
+
522
+
523
+ <span class="summary_desc"><div class='inline'></div></span>
524
+
525
+ </li>
526
+
527
+
528
+ <li class="public ">
529
+ <span class="summary_signature">
530
+
531
+ <a href="#current_sentence-instance_method" title="#current_sentence (instance method)">- (Object) <strong>current_sentence</strong> </a>
532
+
533
+
534
+
535
+ </span>
536
+
537
+
538
+
539
+
540
+
541
+
542
+
543
+
544
+
545
+ <span class="summary_desc"><div class='inline'></div></span>
546
+
547
+ </li>
548
+
549
+
550
+ <li class="public ">
551
+ <span class="summary_signature">
552
+
553
+ <a href="#current_sentence_ary-instance_method" title="#current_sentence_ary (instance method)">- (Object) <strong>current_sentence_ary</strong> </a>
554
+
555
+
556
+
557
+ </span>
558
+
559
+
560
+
561
+
562
+
563
+
564
+
565
+
566
+
567
+ <span class="summary_desc"><div class='inline'></div></span>
568
+
569
+ </li>
570
+
571
+
572
+ <li class="public ">
573
+ <span class="summary_signature">
574
+
575
+ <a href="#find_sentences-instance_method" title="#find_sentences (instance method)">- (Object) <strong>find_sentences</strong> </a>
576
+
577
+
578
+
579
+ </span>
580
+
581
+
582
+
583
+
584
+
585
+
586
+
587
+
588
+
589
+ <span class="summary_desc"><div class='inline'></div></span>
590
+
591
+ </li>
592
+
593
+
594
+ <li class="public ">
595
+ <span class="summary_signature">
596
+
597
+ <a href="#get_book_progress-instance_method" title="#get_book_progress (instance method)">- (Object) <strong>get_book_progress</strong> </a>
598
+
599
+
600
+
601
+ </span>
602
+
603
+
604
+
605
+
606
+
607
+
608
+
609
+
610
+
611
+ <span class="summary_desc"><div class='inline'></div></span>
612
+
613
+ </li>
614
+
615
+
616
+ <li class="public ">
617
+ <span class="summary_signature">
618
+
619
+ <a href="#initialize-instance_method" title="#initialize (instance method)">- (Book) <strong>initialize</strong>(book_details) </a>
620
+
621
+
622
+
623
+ </span>
624
+
625
+
626
+ <span class="note title constructor">constructor</span>
627
+
628
+
629
+
630
+
631
+
632
+
633
+
634
+
635
+ <span class="summary_desc"><div class='inline'>
636
+ <p>A new instance of Book.</p>
637
+ </div></span>
638
+
639
+ </li>
640
+
641
+
642
+ <li class="public ">
643
+ <span class="summary_signature">
644
+
645
+ <a href="#make_sentence_index_current-instance_method" title="#make_sentence_index_current (instance method)">- (Object) <strong>make_sentence_index_current</strong> </a>
646
+
647
+
648
+
649
+ </span>
650
+
651
+
652
+
653
+
654
+
655
+
656
+
657
+
658
+
659
+ <span class="summary_desc"><div class='inline'></div></span>
660
+
661
+ </li>
662
+
663
+
664
+ <li class="public ">
665
+ <span class="summary_signature">
666
+
667
+ <a href="#monitor_keys-instance_method" title="#monitor_keys (instance method)">- (Object) <strong>monitor_keys</strong> </a>
668
+
669
+
670
+
671
+ </span>
672
+
673
+
674
+
675
+
676
+
677
+
678
+
679
+
680
+
681
+ <span class="summary_desc"><div class='inline'></div></span>
682
+
683
+ </li>
684
+
685
+
686
+ <li class="public ">
687
+ <span class="summary_signature">
688
+
689
+ <a href="#next_sentence-instance_method" title="#next_sentence (instance method)">- (Object) <strong>next_sentence</strong> </a>
690
+
691
+
692
+
693
+ </span>
694
+
695
+
696
+
697
+
698
+
699
+
700
+
701
+
702
+
703
+ <span class="summary_desc"><div class='inline'></div></span>
704
+
705
+ </li>
706
+
707
+
708
+ <li class="public ">
709
+ <span class="summary_signature">
710
+
711
+ <a href="#next_sentence_or_quit%3F-instance_method" title="#next_sentence_or_quit? (instance method)">- (Boolean) <strong>next_sentence_or_quit?</strong> </a>
712
+
713
+
714
+
715
+ </span>
716
+
717
+
718
+
719
+
720
+
721
+
722
+
723
+
724
+
725
+ <span class="summary_desc"><div class='inline'></div></span>
726
+
727
+ </li>
728
+
729
+
730
+ <li class="public ">
731
+ <span class="summary_signature">
732
+
733
+ <a href="#play_r_tone-instance_method" title="#play_r_tone (instance method)">- (Object) <strong>play_r_tone</strong> </a>
734
+
735
+
736
+
737
+ </span>
738
+
739
+
740
+
741
+
742
+
743
+
744
+
745
+
746
+
747
+ <span class="summary_desc"><div class='inline'></div></span>
748
+
749
+ </li>
750
+
751
+
752
+ <li class="public ">
753
+ <span class="summary_signature">
754
+
755
+ <a href="#play_repeat_tone-instance_method" title="#play_repeat_tone (instance method)">- (Object) <strong>play_repeat_tone</strong> </a>
756
+
757
+
758
+
759
+ </span>
760
+
761
+
762
+
763
+
764
+
765
+
766
+
767
+
768
+
769
+ <span class="summary_desc"><div class='inline'></div></span>
770
+
771
+ </li>
772
+
773
+
774
+ <li class="public ">
775
+ <span class="summary_signature">
776
+
777
+ <a href="#play_sentences_thread-instance_method" title="#play_sentences_thread (instance method)">- (Object) <strong>play_sentences_thread</strong> </a>
778
+
779
+
780
+
781
+ </span>
782
+
783
+
784
+
785
+
786
+
787
+
788
+
789
+
790
+
791
+ <span class="summary_desc"><div class='inline'></div></span>
792
+
793
+ </li>
794
+
795
+
796
+ <li class="public ">
797
+ <span class="summary_signature">
798
+
799
+ <a href="#play_sentences_until_quit-instance_method" title="#play_sentences_until_quit (instance method)">- (Object) <strong>play_sentences_until_quit</strong> </a>
800
+
801
+
802
+
803
+ </span>
804
+
805
+
806
+
807
+
808
+
809
+
810
+
811
+
812
+
813
+ <span class="summary_desc"><div class='inline'></div></span>
814
+
815
+ </li>
816
+
817
+
818
+ <li class="public ">
819
+ <span class="summary_signature">
820
+
821
+ <a href="#print_book_advice-instance_method" title="#print_book_advice (instance method)">- (Object) <strong>print_book_advice</strong> </a>
822
+
823
+
824
+
825
+ </span>
826
+
827
+
828
+
829
+
830
+
831
+
832
+
833
+
834
+
835
+ <span class="summary_desc"><div class='inline'></div></span>
836
+
837
+ </li>
838
+
839
+
840
+ <li class="public ">
841
+ <span class="summary_signature">
842
+
843
+ <a href="#print_letters%3F-instance_method" title="#print_letters? (instance method)">- (Boolean) <strong>print_letters?</strong> </a>
844
+
845
+
846
+
847
+ </span>
848
+
849
+
850
+
851
+
852
+
853
+
854
+
855
+
856
+
857
+ <span class="summary_desc"><div class='inline'></div></span>
858
+
859
+ </li>
860
+
861
+
862
+ <li class="public ">
863
+ <span class="summary_signature">
864
+
865
+ <a href="#print_marked_maybe-instance_method" title="#print_marked_maybe (instance method)">- (Object) <strong>print_marked_maybe</strong> </a>
866
+
867
+
868
+
869
+ </span>
870
+
871
+
872
+
873
+
874
+
875
+
876
+
877
+
878
+
879
+ <span class="summary_desc"><div class='inline'></div></span>
880
+
881
+ </li>
882
+
883
+
884
+ <li class="public ">
885
+ <span class="summary_signature">
886
+
887
+ <a href="#print_sentences_thread-instance_method" title="#print_sentences_thread (instance method)">- (Object) <strong>print_sentences_thread</strong> </a>
888
+
889
+
890
+
891
+ </span>
892
+
893
+
894
+
895
+
896
+
897
+
898
+
899
+
900
+
901
+ <span class="summary_desc"><div class='inline'></div></span>
902
+
903
+ </li>
904
+
905
+
906
+ <li class="public ">
907
+ <span class="summary_signature">
908
+
909
+ <a href="#print_sentences_until_quit-instance_method" title="#print_sentences_until_quit (instance method)">- (Object) <strong>print_sentences_until_quit</strong> </a>
910
+
911
+
912
+
913
+ </span>
914
+
915
+
916
+
917
+
918
+
919
+
920
+
921
+
922
+
923
+ <span class="summary_desc"><div class='inline'></div></span>
924
+
925
+ </li>
926
+
927
+
928
+ <li class="public ">
929
+ <span class="summary_signature">
930
+
931
+ <a href="#print_words-instance_method" title="#print_words (instance method)">- (Object) <strong>print_words</strong>(words) </a>
932
+
933
+
934
+
935
+ </span>
936
+
937
+
938
+
939
+
940
+
941
+
942
+
943
+
944
+
945
+ <span class="summary_desc"><div class='inline'></div></span>
946
+
947
+ </li>
948
+
949
+
950
+ <li class="public ">
951
+ <span class="summary_signature">
952
+
953
+ <a href="#print_words_for_current_sentence-instance_method" title="#print_words_for_current_sentence (instance method)">- (Object) <strong>print_words_for_current_sentence</strong> </a>
954
+
955
+
956
+
957
+ </span>
958
+
959
+
960
+
961
+
962
+
963
+
964
+
965
+
966
+
967
+ <span class="summary_desc"><div class='inline'></div></span>
968
+
969
+ </li>
970
+
971
+
972
+ <li class="public ">
973
+ <span class="summary_signature">
974
+
975
+ <a href="#process_input_word_maybe-instance_method" title="#process_input_word_maybe (instance method)">- (Object) <strong>process_input_word_maybe</strong> </a>
976
+
977
+
978
+
979
+ </span>
980
+
981
+
982
+
983
+
984
+
985
+
986
+
987
+
988
+
989
+ <span class="summary_desc"><div class='inline'></div></span>
990
+
991
+ </li>
992
+
993
+
994
+ <li class="public ">
995
+ <span class="summary_signature">
996
+
997
+ <a href="#process_letter-instance_method" title="#process_letter (instance method)">- (Object) <strong>process_letter</strong>(letr) </a>
998
+
999
+
1000
+
1001
+ </span>
1002
+
1003
+
1004
+
1005
+
1006
+
1007
+
1008
+
1009
+
1010
+
1011
+ <span class="summary_desc"><div class='inline'></div></span>
1012
+
1013
+ </li>
1014
+
1015
+
1016
+ <li class="public ">
1017
+ <span class="summary_signature">
1018
+
1019
+ <a href="#progress_file-instance_method" title="#progress_file (instance method)">- (Object) <strong>progress_file</strong> </a>
1020
+
1021
+
1022
+
1023
+ </span>
1024
+
1025
+
1026
+
1027
+
1028
+
1029
+
1030
+
1031
+
1032
+
1033
+ <span class="summary_desc"><div class='inline'></div></span>
1034
+
1035
+ </li>
1036
+
1037
+
1038
+ <li class="public ">
1039
+ <span class="summary_signature">
1040
+
1041
+ <a href="#quit_or_process_input%3F-instance_method" title="#quit_or_process_input? (instance method)">- (Boolean) <strong>quit_or_process_input?</strong> </a>
1042
+
1043
+
1044
+
1045
+ </span>
1046
+
1047
+
1048
+
1049
+
1050
+
1051
+
1052
+
1053
+
1054
+
1055
+ <span class="summary_desc"><div class='inline'></div></span>
1056
+
1057
+ </li>
1058
+
1059
+
1060
+ <li class="public ">
1061
+ <span class="summary_signature">
1062
+
1063
+ <a href="#raw_text-instance_method" title="#raw_text (instance method)">- (Object) <strong>raw_text</strong> </a>
1064
+
1065
+
1066
+
1067
+ </span>
1068
+
1069
+
1070
+
1071
+
1072
+
1073
+
1074
+
1075
+
1076
+
1077
+ <span class="summary_desc"><div class='inline'></div></span>
1078
+
1079
+ </li>
1080
+
1081
+
1082
+ <li class="public ">
1083
+ <span class="summary_signature">
1084
+
1085
+ <a href="#read_book-instance_method" title="#read_book (instance method)">- (Object) <strong>read_book</strong>(book) </a>
1086
+
1087
+
1088
+
1089
+ </span>
1090
+
1091
+
1092
+
1093
+
1094
+
1095
+
1096
+
1097
+
1098
+
1099
+ <span class="summary_desc"><div class='inline'></div></span>
1100
+
1101
+ </li>
1102
+
1103
+
1104
+ <li class="public ">
1105
+ <span class="summary_signature">
1106
+
1107
+ <a href="#repeat_sentence%3F-instance_method" title="#repeat_sentence? (instance method)">- (Boolean) <strong>repeat_sentence?</strong> </a>
1108
+
1109
+
1110
+
1111
+ </span>
1112
+
1113
+
1114
+
1115
+
1116
+
1117
+
1118
+
1119
+
1120
+
1121
+ <span class="summary_desc"><div class='inline'></div></span>
1122
+
1123
+ </li>
1124
+
1125
+
1126
+ <li class="public ">
1127
+ <span class="summary_signature">
1128
+
1129
+ <a href="#reset_sentence_flags-instance_method" title="#reset_sentence_flags (instance method)">- (Object) <strong>reset_sentence_flags</strong> </a>
1130
+
1131
+
1132
+
1133
+ </span>
1134
+
1135
+
1136
+
1137
+
1138
+
1139
+
1140
+
1141
+
1142
+
1143
+ <span class="summary_desc"><div class='inline'></div></span>
1144
+
1145
+ </li>
1146
+
1147
+
1148
+ <li class="public ">
1149
+ <span class="summary_signature">
1150
+
1151
+ <a href="#sentence-instance_method" title="#sentence (instance method)">- (Object) <strong>sentence</strong> </a>
1152
+
1153
+
1154
+
1155
+ </span>
1156
+
1157
+
1158
+
1159
+
1160
+
1161
+
1162
+
1163
+
1164
+
1165
+ <span class="summary_desc"><div class='inline'></div></span>
1166
+
1167
+ </li>
1168
+
1169
+
1170
+ <li class="public ">
1171
+ <span class="summary_signature">
1172
+
1173
+ <a href="#sentence_index-instance_method" title="#sentence_index (instance method)">- (Object) <strong>sentence_index</strong> </a>
1174
+
1175
+
1176
+
1177
+ </span>
1178
+
1179
+
1180
+
1181
+
1182
+
1183
+
1184
+
1185
+
1186
+
1187
+ <span class="summary_desc"><div class='inline'></div></span>
1188
+
1189
+ </li>
1190
+
1191
+
1192
+ <li class="public ">
1193
+ <span class="summary_signature">
1194
+
1195
+ <a href="#sentence_index_current%3F-instance_method" title="#sentence_index_current? (instance method)">- (Boolean) <strong>sentence_index_current?</strong> </a>
1196
+
1197
+
1198
+
1199
+ </span>
1200
+
1201
+
1202
+
1203
+
1204
+
1205
+
1206
+
1207
+
1208
+
1209
+ <span class="summary_desc"><div class='inline'></div></span>
1210
+
1211
+ </li>
1212
+
1213
+
1214
+ <li class="public ">
1215
+ <span class="summary_signature">
1216
+
1217
+ <a href="#thread_processes-instance_method" title="#thread_processes (instance method)">- (Object) <strong>thread_processes</strong> </a>
1218
+
1219
+
1220
+
1221
+ </span>
1222
+
1223
+
1224
+
1225
+
1226
+
1227
+
1228
+
1229
+
1230
+
1231
+ <span class="summary_desc"><div class='inline'></div></span>
1232
+
1233
+ </li>
1234
+
1235
+
1236
+ <li class="public ">
1237
+ <span class="summary_signature">
1238
+
1239
+ <a href="#write_book_progress-instance_method" title="#write_book_progress (instance method)">- (Object) <strong>write_book_progress</strong> </a>
1240
+
1241
+
1242
+
1243
+ </span>
1244
+
1245
+
1246
+
1247
+
1248
+
1249
+
1250
+
1251
+
1252
+
1253
+ <span class="summary_desc"><div class='inline'></div></span>
1254
+
1255
+ </li>
1256
+
1257
+
1258
+ </ul>
1259
+
1260
+
1261
+
1262
+
1263
+
1264
+
1265
+
1266
+
1267
+
1268
+
1269
+
1270
+ <h3 class="inherited">Methods included from <span class='object_link'><a href="Tester.html" title="Tester (module)">Tester</a></span></h3>
1271
+ <p class="inherited"><span class='object_link'><a href="Tester.html#audio-instance_method" title="Tester#audio (method)">#audio</a></span>, <span class='object_link'><a href="Tester.html#audio_play-instance_method" title="Tester#audio_play (method)">#audio_play</a></span>, <span class='object_link'><a href="Tester.html#audio_still_playing%3F-instance_method" title="Tester#audio_still_playing? (method)">#audio_still_playing?</a></span>, <span class='object_link'><a href="Tester.html#check_quit_key_input-instance_method" title="Tester#check_quit_key_input (method)">#check_quit_key_input</a></span>, <span class='object_link'><a href="Tester.html#current_word-instance_method" title="Tester#current_word (method)">#current_word</a></span>, <span class='object_link'><a href="Tester.html#empty_string-instance_method" title="Tester#empty_string (method)">#empty_string</a></span>, <span class='object_link'><a href="Tester.html#get_key_input-instance_method" title="Tester#get_key_input (method)">#get_key_input</a></span>, <span class='object_link'><a href="Tester.html#get_word_last_char-instance_method" title="Tester#get_word_last_char (method)">#get_word_last_char</a></span>, <span class='object_link'><a href="Tester.html#global_quit-instance_method" title="Tester#global_quit (method)">#global_quit</a></span>, <span class='object_link'><a href="Tester.html#global_quit%3F-instance_method" title="Tester#global_quit? (method)">#global_quit?</a></span>, <span class='object_link'><a href="Tester.html#init_char_timer-instance_method" title="Tester#init_char_timer (method)">#init_char_timer</a></span>, <span class='object_link'><a href="Tester.html#is_relevant_char%3F-instance_method" title="Tester#is_relevant_char? (method)">#is_relevant_char?</a></span>, <span class='object_link'><a href="Tester.html#key_chr-instance_method" title="Tester#key_chr (method)">#key_chr</a></span>, <span class='object_link'><a href="Tester.html#key_input-instance_method" title="Tester#key_input (method)">#key_input</a></span>, <span class='object_link'><a href="Tester.html#kill_threads-instance_method" title="Tester#kill_threads (method)">#kill_threads</a></span>, <span class='object_link'><a href="Tester.html#monitor_keys_thread-instance_method" title="Tester#monitor_keys_thread (method)">#monitor_keys_thread</a></span>, <span class='object_link'><a href="Tester.html#move_word_to_process-instance_method" title="Tester#move_word_to_process (method)">#move_word_to_process</a></span>, <span class='object_link'><a href="Tester.html#play_words_exit-instance_method" title="Tester#play_words_exit (method)">#play_words_exit</a></span>, <span class='object_link'><a href="Tester.html#play_words_thread-instance_method" title="Tester#play_words_thread (method)">#play_words_thread</a></span>, <span class='object_link'><a href="Tester.html#play_words_until_quit-instance_method" title="Tester#play_words_until_quit (method)">#play_words_until_quit</a></span>, <span class='object_link'><a href="Tester.html#print-instance_method" title="Tester#print (method)">#print</a></span>, <span class='object_link'><a href="Tester.html#print_failed_exit_words-instance_method" title="Tester#print_failed_exit_words (method)">#print_failed_exit_words</a></span>, <span class='object_link'><a href="Tester.html#print_words_exit-instance_method" title="Tester#print_words_exit (method)">#print_words_exit</a></span>, <span class='object_link'><a href="Tester.html#print_words_thread-instance_method" title="Tester#print_words_thread (method)">#print_words_thread</a></span>, <span class='object_link'><a href="Tester.html#print_words_until_quit-instance_method" title="Tester#print_words_until_quit (method)">#print_words_until_quit</a></span>, <span class='object_link'><a href="Tester.html#process_space_maybe-instance_method" title="Tester#process_space_maybe (method)">#process_space_maybe</a></span>, <span class='object_link'><a href="Tester.html#process_word_maybe-instance_method" title="Tester#process_word_maybe (method)">#process_word_maybe</a></span>, <span class='object_link'><a href="Tester.html#push_letter_to_current_word-instance_method" title="Tester#push_letter_to_current_word (method)">#push_letter_to_current_word</a></span>, <span class='object_link'><a href="Tester.html#quit-instance_method" title="Tester#quit (method)">#quit</a></span>, <span class='object_link'><a href="Tester.html#quit%3F-instance_method" title="Tester#quit? (method)">#quit?</a></span>, <span class='object_link'><a href="Tester.html#quit_key_input%3F-instance_method" title="Tester#quit_key_input? (method)">#quit_key_input?</a></span>, <span class='object_link'><a href="Tester.html#reset_stdin-instance_method" title="Tester#reset_stdin (method)">#reset_stdin</a></span>, <span class='object_link'><a href="Tester.html#run-instance_method" title="Tester#run (method)">#run</a></span>, <span class='object_link'><a href="Tester.html#sleep_char_delay-instance_method" title="Tester#sleep_char_delay (method)">#sleep_char_delay</a></span>, <span class='object_link'><a href="Tester.html#space-instance_method" title="Tester#space (method)">#space</a></span>, <span class='object_link'><a href="Tester.html#spawn_play-instance_method" title="Tester#spawn_play (method)">#spawn_play</a></span>, <span class='object_link'><a href="Tester.html#start_sync-instance_method" title="Tester#start_sync (method)">#start_sync</a></span>, <span class='object_link'><a href="Tester.html#start_sync%3F-instance_method" title="Tester#start_sync? (method)">#start_sync?</a></span>, <span class='object_link'><a href="Tester.html#stream-instance_method" title="Tester#stream (method)">#stream</a></span>, <span class='object_link'><a href="Tester.html#sync_with_audio_player-instance_method" title="Tester#sync_with_audio_player (method)">#sync_with_audio_player</a></span>, <span class='object_link'><a href="Tester.html#sync_with_play-instance_method" title="Tester#sync_with_play (method)">#sync_with_play</a></span>, <span class='object_link'><a href="Tester.html#sync_with_print-instance_method" title="Tester#sync_with_print (method)">#sync_with_print</a></span>, <span class='object_link'><a href="Tester.html#timing-instance_method" title="Tester#timing (method)">#timing</a></span>, <span class='object_link'><a href="Tester.html#wait_for_no_word_process-instance_method" title="Tester#wait_for_no_word_process (method)">#wait_for_no_word_process</a></span>, <span class='object_link'><a href="Tester.html#wait_for_start_sync-instance_method" title="Tester#wait_for_start_sync (method)">#wait_for_start_sync</a></span>, <span class='object_link'><a href="Tester.html#wait_player_startup_delay-instance_method" title="Tester#wait_player_startup_delay (method)">#wait_player_startup_delay</a></span></p>
1272
+
1273
+
1274
+
1275
+
1276
+
1277
+
1278
+ <div id="constructor_details" class="method_details_list">
1279
+ <h2>Constructor Details</h2>
1280
+
1281
+ <div class="method_details first">
1282
+ <h3 class="signature first" id="initialize-instance_method">
1283
+
1284
+ - (<tt><span class='object_link'><a href="" title="Book (class)">Book</a></span></tt>) <strong>initialize</strong>(book_details)
1285
+
1286
+
1287
+
1288
+
1289
+
1290
+ </h3><div class="docstring">
1291
+ <div class="discussion">
1292
+
1293
+ <p>Returns a new instance of Book</p>
1294
+
1295
+
1296
+ </div>
1297
+ </div>
1298
+ <div class="tags">
1299
+
1300
+
1301
+ </div><table class="source_code">
1302
+ <tr>
1303
+ <td>
1304
+ <pre class="lines">
1305
+
1306
+
1307
+ 7
1308
+ 8
1309
+ 9
1310
+ 10
1311
+ 11
1312
+ 12
1313
+ 13
1314
+ 14
1315
+ 15
1316
+ 16</pre>
1317
+ </td>
1318
+ <td>
1319
+ <pre class="code"><span class="info file"># File 'lib/cw/book.rb', line 7</span>
1320
+
1321
+ <span class='kw'>def</span> <span class='id identifier rubyid_initialize'>initialize</span> <span class='id identifier rubyid_book_details'>book_details</span>
1322
+ <span class='comment'># prn.print_advice(&#39;Test Words&#39;)
1323
+ </span> <span class='ivar'>@book_details</span> <span class='op'>=</span> <span class='id identifier rubyid_book_details'>book_details</span>
1324
+ <span class='ivar'>@print_letters</span> <span class='op'>=</span> <span class='const'>Params</span><span class='period'>.</span><span class='id identifier rubyid_print_letters'>print_letters</span>
1325
+ <span class='kw'>super</span><span class='lparen'>(</span><span class='rparen'>)</span>
1326
+ <span class='id identifier rubyid_read_book'>read_book</span> <span class='id identifier rubyid_book_location'>book_location</span>
1327
+ <span class='id identifier rubyid_find_sentences'>find_sentences</span>
1328
+
1329
+ <span class='comment'># print_book_advice
1330
+ </span><span class='kw'>end</span></pre>
1331
+ </td>
1332
+ </tr>
1333
+ </table>
1334
+ </div>
1335
+
1336
+ </div>
1337
+
1338
+
1339
+ <div id="instance_method_details" class="method_details_list">
1340
+ <h2>Instance Method Details</h2>
1341
+
1342
+
1343
+ <div class="method_details first">
1344
+ <h3 class="signature first" id="add_space-instance_method">
1345
+
1346
+ - (<tt>Object</tt>) <strong>add_space</strong>(sentence)
1347
+
1348
+
1349
+
1350
+
1351
+
1352
+ </h3><table class="source_code">
1353
+ <tr>
1354
+ <td>
1355
+ <pre class="lines">
1356
+
1357
+
1358
+ 100
1359
+ 101
1360
+ 102</pre>
1361
+ </td>
1362
+ <td>
1363
+ <pre class="code"><span class="info file"># File 'lib/cw/book.rb', line 100</span>
1364
+
1365
+ <span class='kw'>def</span> <span class='id identifier rubyid_add_space'>add_space</span> <span class='id identifier rubyid_sentence'>sentence</span>
1366
+ <span class='id identifier rubyid_sentence'>sentence</span> <span class='op'>+</span> <span class='id identifier rubyid_space'>space</span>
1367
+ <span class='kw'>end</span></pre>
1368
+ </td>
1369
+ </tr>
1370
+ </table>
1371
+ </div>
1372
+
1373
+ <div class="method_details ">
1374
+ <h3 class="signature " id="audio_play_repeat_tone_maybe-instance_method">
1375
+
1376
+ - (<tt>Object</tt>) <strong>audio_play_repeat_tone_maybe</strong>
1377
+
1378
+
1379
+
1380
+
1381
+
1382
+ </h3><table class="source_code">
1383
+ <tr>
1384
+ <td>
1385
+ <pre class="lines">
1386
+
1387
+
1388
+ 65
1389
+ 66
1390
+ 67</pre>
1391
+ </td>
1392
+ <td>
1393
+ <pre class="code"><span class="info file"># File 'lib/cw/book.rb', line 65</span>
1394
+
1395
+ <span class='kw'>def</span> <span class='id identifier rubyid_audio_play_repeat_tone_maybe'>audio_play_repeat_tone_maybe</span>
1396
+ <span class='id identifier rubyid_play_repeat_tone'>play_repeat_tone</span> <span class='kw'>if</span> <span class='id identifier rubyid_repeat_sentence?'>repeat_sentence?</span>
1397
+ <span class='kw'>end</span></pre>
1398
+ </td>
1399
+ </tr>
1400
+ </table>
1401
+ </div>
1402
+
1403
+ <div class="method_details ">
1404
+ <h3 class="signature " id="audio_play_sentence-instance_method">
1405
+
1406
+ - (<tt>Object</tt>) <strong>audio_play_sentence</strong>
1407
+
1408
+
1409
+
1410
+
1411
+
1412
+ </h3><table class="source_code">
1413
+ <tr>
1414
+ <td>
1415
+ <pre class="lines">
1416
+
1417
+
1418
+ 37</pre>
1419
+ </td>
1420
+ <td>
1421
+ <pre class="code"><span class="info file"># File 'lib/cw/book.rb', line 37</span>
1422
+
1423
+ <span class='kw'>def</span> <span class='id identifier rubyid_audio_play_sentence'>audio_play_sentence</span> <span class='semicolon'>;</span> <span class='id identifier rubyid_audio'>audio</span><span class='period'>.</span><span class='id identifier rubyid_play'>play</span> <span class='semicolon'>;</span> <span class='kw'>end</span></pre>
1424
+ </td>
1425
+ </tr>
1426
+ </table>
1427
+ </div>
1428
+
1429
+ <div class="method_details ">
1430
+ <h3 class="signature " id="audio_play_tone-instance_method">
1431
+
1432
+ - (<tt>Object</tt>) <strong>audio_play_tone</strong>(t)
1433
+
1434
+
1435
+
1436
+
1437
+
1438
+ </h3><table class="source_code">
1439
+ <tr>
1440
+ <td>
1441
+ <pre class="lines">
1442
+
1443
+
1444
+ 30</pre>
1445
+ </td>
1446
+ <td>
1447
+ <pre class="code"><span class="info file"># File 'lib/cw/book.rb', line 30</span>
1448
+
1449
+ <span class='kw'>def</span> <span class='id identifier rubyid_audio_play_tone'>audio_play_tone</span> <span class='id identifier rubyid_t'>t</span> <span class='semicolon'>;</span> <span class='id identifier rubyid_audio'>audio</span><span class='period'>.</span><span class='id identifier rubyid_play_tone'>play_tone</span><span class='lparen'>(</span><span class='id identifier rubyid_t'>t</span><span class='rparen'>)</span> <span class='semicolon'>;</span> <span class='kw'>end</span></pre>
1450
+ </td>
1451
+ </tr>
1452
+ </table>
1453
+ </div>
1454
+
1455
+ <div class="method_details ">
1456
+ <h3 class="signature " id="audio_stop-instance_method">
1457
+
1458
+ - (<tt>Object</tt>) <strong>audio_stop</strong>
1459
+
1460
+
1461
+
1462
+
1463
+
1464
+ </h3><table class="source_code">
1465
+ <tr>
1466
+ <td>
1467
+ <pre class="lines">
1468
+
1469
+
1470
+ 33</pre>
1471
+ </td>
1472
+ <td>
1473
+ <pre class="code"><span class="info file"># File 'lib/cw/book.rb', line 33</span>
1474
+
1475
+ <span class='kw'>def</span> <span class='id identifier rubyid_audio_stop'>audio_stop</span> <span class='semicolon'>;</span> <span class='id identifier rubyid_audio'>audio</span><span class='period'>.</span><span class='id identifier rubyid_stop'>stop</span> <span class='kw'>if</span> <span class='id identifier rubyid_audio_still_playing?'>audio_still_playing?</span><span class='semicolon'>;</span> <span class='kw'>end</span></pre>
1476
+ </td>
1477
+ </tr>
1478
+ </table>
1479
+ </div>
1480
+
1481
+ <div class="method_details ">
1482
+ <h3 class="signature " id="await_next_sentence_or_quit-instance_method">
1483
+
1484
+ - (<tt>Object</tt>) <strong>await_next_sentence_or_quit</strong>
1485
+
1486
+
1487
+
1488
+
1489
+
1490
+ </h3><table class="source_code">
1491
+ <tr>
1492
+ <td>
1493
+ <pre class="lines">
1494
+
1495
+
1496
+ 130
1497
+ 131
1498
+ 132
1499
+ 133
1500
+ 134</pre>
1501
+ </td>
1502
+ <td>
1503
+ <pre class="code"><span class="info file"># File 'lib/cw/book.rb', line 130</span>
1504
+
1505
+ <span class='kw'>def</span> <span class='id identifier rubyid_await_next_sentence_or_quit'>await_next_sentence_or_quit</span>
1506
+ <span class='id identifier rubyid_loop'>loop</span> <span class='kw'>do</span>
1507
+ <span class='kw'>break</span> <span class='kw'>if</span> <span class='id identifier rubyid_next_sentence_or_quit?'>next_sentence_or_quit?</span>
1508
+ <span class='kw'>end</span>
1509
+ <span class='kw'>end</span></pre>
1510
+ </td>
1511
+ </tr>
1512
+ </table>
1513
+ </div>
1514
+
1515
+ <div class="method_details ">
1516
+ <h3 class="signature " id="book_location-instance_method">
1517
+
1518
+ - (<tt>Object</tt>) <strong>book_location</strong>
1519
+
1520
+
1521
+
1522
+
1523
+
1524
+ </h3><table class="source_code">
1525
+ <tr>
1526
+ <td>
1527
+ <pre class="lines">
1528
+
1529
+
1530
+ 34</pre>
1531
+ </td>
1532
+ <td>
1533
+ <pre class="code"><span class="info file"># File 'lib/cw/book.rb', line 34</span>
1534
+
1535
+ <span class='kw'>def</span> <span class='id identifier rubyid_book_location'>book_location</span> <span class='semicolon'>;</span> <span class='ivar'>@book_details</span><span class='period'>.</span><span class='id identifier rubyid_book_location'>book_location</span> <span class='semicolon'>;</span> <span class='kw'>end</span></pre>
1536
+ </td>
1537
+ </tr>
1538
+ </table>
1539
+ </div>
1540
+
1541
+ <div class="method_details ">
1542
+ <h3 class="signature " id="build_word_maybe-instance_method">
1543
+
1544
+ - (<tt>Object</tt>) <strong>build_word_maybe</strong>
1545
+
1546
+
1547
+
1548
+
1549
+
1550
+ </h3><table class="source_code">
1551
+ <tr>
1552
+ <td>
1553
+ <pre class="lines">
1554
+
1555
+
1556
+ 90
1557
+ 91
1558
+ 92
1559
+ 93
1560
+ 94
1561
+ 95
1562
+ 96
1563
+ 97
1564
+ 98</pre>
1565
+ </td>
1566
+ <td>
1567
+ <pre class="code"><span class="info file"># File 'lib/cw/book.rb', line 90</span>
1568
+
1569
+ <span class='kw'>def</span> <span class='id identifier rubyid_build_word_maybe'>build_word_maybe</span>
1570
+ <span class='ivar'>@input_word</span> <span class='op'>||=</span> <span class='id identifier rubyid_empty_string'>empty_string</span>
1571
+ <span class='ivar'>@input_word</span> <span class='op'>&lt;&lt;</span> <span class='id identifier rubyid_key_chr'>key_chr</span> <span class='kw'>if</span> <span class='id identifier rubyid_is_relevant_char?'>is_relevant_char?</span>
1572
+ <span class='kw'>if</span> <span class='ivar'>@book_details</span><span class='period'>.</span><span class='id identifier rubyid_args'>args</span><span class='lbracket'>[</span><span class='symbol'>:output</span><span class='rbracket'>]</span> <span class='op'>==</span> <span class='symbol'>:letter</span>
1573
+ <span class='id identifier rubyid_move_word_to_process'>move_word_to_process</span> <span class='kw'>if</span> <span class='id identifier rubyid_is_relevant_char?'>is_relevant_char?</span> <span class='comment'>#todo
1574
+ </span> <span class='kw'>else</span>
1575
+ <span class='id identifier rubyid_move_word_to_process'>move_word_to_process</span> <span class='kw'>if</span> <span class='id identifier rubyid_complete_word?'>complete_word?</span>
1576
+ <span class='kw'>end</span>
1577
+ <span class='kw'>end</span></pre>
1578
+ </td>
1579
+ </tr>
1580
+ </table>
1581
+ </div>
1582
+
1583
+ <div class="method_details ">
1584
+ <h3 class="signature " id="change_and_kill_audio-instance_method">
1585
+
1586
+ - (<tt>Object</tt>) <strong>change_and_kill_audio</strong>
1587
+
1588
+
1589
+
1590
+
1591
+
1592
+ </h3><table class="source_code">
1593
+ <tr>
1594
+ <td>
1595
+ <pre class="lines">
1596
+
1597
+
1598
+ 114
1599
+ 115
1600
+ 116
1601
+ 117</pre>
1602
+ </td>
1603
+ <td>
1604
+ <pre class="code"><span class="info file"># File 'lib/cw/book.rb', line 114</span>
1605
+
1606
+ <span class='kw'>def</span> <span class='id identifier rubyid_change_and_kill_audio'>change_and_kill_audio</span>
1607
+ <span class='id identifier rubyid_change_sentence'>change_sentence</span>
1608
+ <span class='id identifier rubyid_audio_stop'>audio_stop</span>
1609
+ <span class='kw'>end</span></pre>
1610
+ </td>
1611
+ </tr>
1612
+ </table>
1613
+ </div>
1614
+
1615
+ <div class="method_details ">
1616
+ <h3 class="signature " id="change_or_repeat_sentence?-instance_method">
1617
+
1618
+ - (<tt>Boolean</tt>) <strong>change_or_repeat_sentence?</strong>
1619
+
1620
+
1621
+
1622
+
1623
+
1624
+ </h3><div class="docstring">
1625
+ <div class="discussion">
1626
+
1627
+
1628
+ </div>
1629
+ </div>
1630
+ <div class="tags">
1631
+
1632
+ <p class="tag_title">Returns:</p>
1633
+ <ul class="return">
1634
+
1635
+ <li>
1636
+
1637
+
1638
+ <span class='type'>(<tt>Boolean</tt>)</span>
1639
+
1640
+
1641
+
1642
+ </li>
1643
+
1644
+ </ul>
1645
+
1646
+ </div><table class="source_code">
1647
+ <tr>
1648
+ <td>
1649
+ <pre class="lines">
1650
+
1651
+
1652
+ 40
1653
+ 41
1654
+ 42</pre>
1655
+ </td>
1656
+ <td>
1657
+ <pre class="code"><span class="info file"># File 'lib/cw/book.rb', line 40</span>
1658
+
1659
+ <span class='kw'>def</span> <span class='id identifier rubyid_change_or_repeat_sentence?'>change_or_repeat_sentence?</span>
1660
+ <span class='id identifier rubyid_sentence'>sentence</span><span class='period'>.</span><span class='id identifier rubyid_change_or_repeat?'>change_or_repeat?</span>
1661
+ <span class='kw'>end</span></pre>
1662
+ </td>
1663
+ </tr>
1664
+ </table>
1665
+ </div>
1666
+
1667
+ <div class="method_details ">
1668
+ <h3 class="signature " id="change_repeat_or_quit?-instance_method">
1669
+
1670
+ - (<tt>Boolean</tt>) <strong>change_repeat_or_quit?</strong>
1671
+
1672
+
1673
+
1674
+
1675
+
1676
+ </h3><div class="docstring">
1677
+ <div class="discussion">
1678
+
1679
+
1680
+ </div>
1681
+ </div>
1682
+ <div class="tags">
1683
+
1684
+ <p class="tag_title">Returns:</p>
1685
+ <ul class="return">
1686
+
1687
+ <li>
1688
+
1689
+
1690
+ <span class='type'>(<tt>Boolean</tt>)</span>
1691
+
1692
+
1693
+
1694
+ </li>
1695
+
1696
+ </ul>
1697
+
1698
+ </div><table class="source_code">
1699
+ <tr>
1700
+ <td>
1701
+ <pre class="lines">
1702
+
1703
+
1704
+ 44
1705
+ 45
1706
+ 46</pre>
1707
+ </td>
1708
+ <td>
1709
+ <pre class="code"><span class="info file"># File 'lib/cw/book.rb', line 44</span>
1710
+
1711
+ <span class='kw'>def</span> <span class='id identifier rubyid_change_repeat_or_quit?'>change_repeat_or_quit?</span>
1712
+ <span class='id identifier rubyid_change_or_repeat_sentence?'>change_or_repeat_sentence?</span> <span class='op'>||</span> <span class='id identifier rubyid_quit?'>quit?</span>
1713
+ <span class='kw'>end</span></pre>
1714
+ </td>
1715
+ </tr>
1716
+ </table>
1717
+ </div>
1718
+
1719
+ <div class="method_details ">
1720
+ <h3 class="signature " id="change_sentence-instance_method">
1721
+
1722
+ - (<tt>Object</tt>) <strong>change_sentence</strong>
1723
+
1724
+
1725
+
1726
+
1727
+
1728
+ </h3><table class="source_code">
1729
+ <tr>
1730
+ <td>
1731
+ <pre class="lines">
1732
+
1733
+
1734
+ 23</pre>
1735
+ </td>
1736
+ <td>
1737
+ <pre class="code"><span class="info file"># File 'lib/cw/book.rb', line 23</span>
1738
+
1739
+ <span class='kw'>def</span> <span class='id identifier rubyid_change_sentence'>change_sentence</span> <span class='semicolon'>;</span> <span class='id identifier rubyid_sentence'>sentence</span><span class='period'>.</span><span class='id identifier rubyid_change'>change</span> <span class='semicolon'>;</span> <span class='kw'>end</span></pre>
1740
+ </td>
1741
+ </tr>
1742
+ </table>
1743
+ </div>
1744
+
1745
+ <div class="method_details ">
1746
+ <h3 class="signature " id="change_sentence?-instance_method">
1747
+
1748
+ - (<tt>Boolean</tt>) <strong>change_sentence?</strong>
1749
+
1750
+
1751
+
1752
+
1753
+
1754
+ </h3><div class="docstring">
1755
+ <div class="discussion">
1756
+
1757
+
1758
+ </div>
1759
+ </div>
1760
+ <div class="tags">
1761
+
1762
+ <p class="tag_title">Returns:</p>
1763
+ <ul class="return">
1764
+
1765
+ <li>
1766
+
1767
+
1768
+ <span class='type'>(<tt>Boolean</tt>)</span>
1769
+
1770
+
1771
+
1772
+ </li>
1773
+
1774
+ </ul>
1775
+
1776
+ </div><table class="source_code">
1777
+ <tr>
1778
+ <td>
1779
+ <pre class="lines">
1780
+
1781
+
1782
+ 24</pre>
1783
+ </td>
1784
+ <td>
1785
+ <pre class="code"><span class="info file"># File 'lib/cw/book.rb', line 24</span>
1786
+
1787
+ <span class='kw'>def</span> <span class='id identifier rubyid_change_sentence?'>change_sentence?</span> <span class='semicolon'>;</span> <span class='id identifier rubyid_sentence'>sentence</span><span class='period'>.</span><span class='id identifier rubyid_change?'>change?</span> <span class='semicolon'>;</span> <span class='kw'>end</span></pre>
1788
+ </td>
1789
+ </tr>
1790
+ </table>
1791
+ </div>
1792
+
1793
+ <div class="method_details ">
1794
+ <h3 class="signature " id="check_sentence_count-instance_method">
1795
+
1796
+ - (<tt>Object</tt>) <strong>check_sentence_count</strong>(source)
1797
+
1798
+
1799
+
1800
+
1801
+
1802
+ </h3><table class="source_code">
1803
+ <tr>
1804
+ <td>
1805
+ <pre class="lines">
1806
+
1807
+
1808
+ 199
1809
+ 200
1810
+ 201
1811
+ 202
1812
+ 203
1813
+ 204
1814
+ 205
1815
+ 206</pre>
1816
+ </td>
1817
+ <td>
1818
+ <pre class="code"><span class="info file"># File 'lib/cw/book.rb', line 199</span>
1819
+
1820
+ <span class='kw'>def</span> <span class='id identifier rubyid_check_sentence_count'>check_sentence_count</span> <span class='id identifier rubyid_source'>source</span>
1821
+ <span class='kw'>if</span> <span class='ivar'>@book_details</span><span class='period'>.</span><span class='id identifier rubyid_session_finished?'>session_finished?</span> <span class='id identifier rubyid_source'>source</span>
1822
+ <span class='id identifier rubyid_audio_stop'>audio_stop</span>
1823
+ <span class='id identifier rubyid_quit'>quit</span>
1824
+ <span class='id identifier rubyid_reset_stdin'>reset_stdin</span>
1825
+ <span class='id identifier rubyid_kill_threads'>kill_threads</span>
1826
+ <span class='kw'>end</span>
1827
+ <span class='kw'>end</span></pre>
1828
+ </td>
1829
+ </tr>
1830
+ </table>
1831
+ </div>
1832
+
1833
+ <div class="method_details ">
1834
+ <h3 class="signature " id="check_sentence_navigation-instance_method">
1835
+
1836
+ - (<tt>Object</tt>) <strong>check_sentence_navigation</strong>(chr)
1837
+
1838
+
1839
+
1840
+
1841
+
1842
+ </h3><table class="source_code">
1843
+ <tr>
1844
+ <td>
1845
+ <pre class="lines">
1846
+
1847
+
1848
+ 48
1849
+ 49
1850
+ 50</pre>
1851
+ </td>
1852
+ <td>
1853
+ <pre class="code"><span class="info file"># File 'lib/cw/book.rb', line 48</span>
1854
+
1855
+ <span class='kw'>def</span> <span class='id identifier rubyid_check_sentence_navigation'>check_sentence_navigation</span> <span class='id identifier rubyid_chr'>chr</span>
1856
+ <span class='id identifier rubyid_sentence'>sentence</span><span class='period'>.</span><span class='id identifier rubyid_check_sentence_navigation'>check_sentence_navigation</span> <span class='id identifier rubyid_chr'>chr</span>
1857
+ <span class='kw'>end</span></pre>
1858
+ </td>
1859
+ </tr>
1860
+ </table>
1861
+ </div>
1862
+
1863
+ <div class="method_details ">
1864
+ <h3 class="signature " id="compile_and_play-instance_method">
1865
+
1866
+ - (<tt>Object</tt>) <strong>compile_and_play</strong>
1867
+
1868
+
1869
+
1870
+
1871
+
1872
+ </h3><table class="source_code">
1873
+ <tr>
1874
+ <td>
1875
+ <pre class="lines">
1876
+
1877
+
1878
+ 108
1879
+ 109
1880
+ 110
1881
+ 111
1882
+ 112</pre>
1883
+ </td>
1884
+ <td>
1885
+ <pre class="code"><span class="info file"># File 'lib/cw/book.rb', line 108</span>
1886
+
1887
+ <span class='kw'>def</span> <span class='id identifier rubyid_compile_and_play'>compile_and_play</span>
1888
+ <span class='id identifier rubyid_compile_sentence'>compile_sentence</span>
1889
+ <span class='id identifier rubyid_audio_play_sentence'>audio_play_sentence</span>
1890
+ <span class='id identifier rubyid_start_sync'>start_sync</span>
1891
+ <span class='kw'>end</span></pre>
1892
+ </td>
1893
+ </tr>
1894
+ </table>
1895
+ </div>
1896
+
1897
+ <div class="method_details ">
1898
+ <h3 class="signature " id="compile_sentence-instance_method">
1899
+
1900
+ - (<tt>Object</tt>) <strong>compile_sentence</strong>
1901
+
1902
+
1903
+
1904
+
1905
+
1906
+ </h3><table class="source_code">
1907
+ <tr>
1908
+ <td>
1909
+ <pre class="lines">
1910
+
1911
+
1912
+ 104
1913
+ 105
1914
+ 106</pre>
1915
+ </td>
1916
+ <td>
1917
+ <pre class="code"><span class="info file"># File 'lib/cw/book.rb', line 104</span>
1918
+
1919
+ <span class='kw'>def</span> <span class='id identifier rubyid_compile_sentence'>compile_sentence</span>
1920
+ <span class='id identifier rubyid_audio'>audio</span><span class='period'>.</span><span class='id identifier rubyid_convert_words'>convert_words</span> <span class='id identifier rubyid_add_space'>add_space</span> <span class='id identifier rubyid_current_sentence'>current_sentence</span>
1921
+ <span class='kw'>end</span></pre>
1922
+ </td>
1923
+ </tr>
1924
+ </table>
1925
+ </div>
1926
+
1927
+ <div class="method_details ">
1928
+ <h3 class="signature " id="complete_word?-instance_method">
1929
+
1930
+ - (<tt>Boolean</tt>) <strong>complete_word?</strong>
1931
+
1932
+
1933
+
1934
+
1935
+
1936
+ </h3><div class="docstring">
1937
+ <div class="discussion">
1938
+
1939
+
1940
+ </div>
1941
+ </div>
1942
+ <div class="tags">
1943
+
1944
+ <p class="tag_title">Returns:</p>
1945
+ <ul class="return">
1946
+
1947
+ <li>
1948
+
1949
+
1950
+ <span class='type'>(<tt>Boolean</tt>)</span>
1951
+
1952
+
1953
+
1954
+ </li>
1955
+
1956
+ </ul>
1957
+
1958
+ </div><table class="source_code">
1959
+ <tr>
1960
+ <td>
1961
+ <pre class="lines">
1962
+
1963
+
1964
+ 32</pre>
1965
+ </td>
1966
+ <td>
1967
+ <pre class="code"><span class="info file"># File 'lib/cw/book.rb', line 32</span>
1968
+
1969
+ <span class='kw'>def</span> <span class='id identifier rubyid_complete_word?'>complete_word?</span> <span class='semicolon'>;</span> <span class='id identifier rubyid_get_word_last_char'>get_word_last_char</span> <span class='op'>==</span> <span class='id identifier rubyid_space'>space</span> <span class='semicolon'>;</span> <span class='kw'>end</span></pre>
1970
+ </td>
1971
+ </tr>
1972
+ </table>
1973
+ </div>
1974
+
1975
+ <div class="method_details ">
1976
+ <h3 class="signature " id="current_sentence-instance_method">
1977
+
1978
+ - (<tt>Object</tt>) <strong>current_sentence</strong>
1979
+
1980
+
1981
+
1982
+
1983
+
1984
+ </h3><table class="source_code">
1985
+ <tr>
1986
+ <td>
1987
+ <pre class="lines">
1988
+
1989
+
1990
+ 26</pre>
1991
+ </td>
1992
+ <td>
1993
+ <pre class="code"><span class="info file"># File 'lib/cw/book.rb', line 26</span>
1994
+
1995
+ <span class='kw'>def</span> <span class='id identifier rubyid_current_sentence'>current_sentence</span> <span class='semicolon'>;</span> <span class='id identifier rubyid_sentence'>sentence</span><span class='period'>.</span><span class='id identifier rubyid_current'>current</span> <span class='semicolon'>;</span> <span class='kw'>end</span></pre>
1996
+ </td>
1997
+ </tr>
1998
+ </table>
1999
+ </div>
2000
+
2001
+ <div class="method_details ">
2002
+ <h3 class="signature " id="current_sentence_ary-instance_method">
2003
+
2004
+ - (<tt>Object</tt>) <strong>current_sentence_ary</strong>
2005
+
2006
+
2007
+
2008
+
2009
+
2010
+ </h3><table class="source_code">
2011
+ <tr>
2012
+ <td>
2013
+ <pre class="lines">
2014
+
2015
+
2016
+ 27</pre>
2017
+ </td>
2018
+ <td>
2019
+ <pre class="code"><span class="info file"># File 'lib/cw/book.rb', line 27</span>
2020
+
2021
+ <span class='kw'>def</span> <span class='id identifier rubyid_current_sentence_ary'>current_sentence_ary</span> <span class='semicolon'>;</span> <span class='id identifier rubyid_sentence'>sentence</span><span class='period'>.</span><span class='id identifier rubyid_current_to_array'>current_to_array</span> <span class='semicolon'>;</span> <span class='kw'>end</span></pre>
2022
+ </td>
2023
+ </tr>
2024
+ </table>
2025
+ </div>
2026
+
2027
+ <div class="method_details ">
2028
+ <h3 class="signature " id="find_sentences-instance_method">
2029
+
2030
+ - (<tt>Object</tt>) <strong>find_sentences</strong>
2031
+
2032
+
2033
+
2034
+
2035
+
2036
+ </h3><table class="source_code">
2037
+ <tr>
2038
+ <td>
2039
+ <pre class="lines">
2040
+
2041
+
2042
+ 19</pre>
2043
+ </td>
2044
+ <td>
2045
+ <pre class="code"><span class="info file"># File 'lib/cw/book.rb', line 19</span>
2046
+
2047
+ <span class='kw'>def</span> <span class='id identifier rubyid_find_sentences'>find_sentences</span> <span class='semicolon'>;</span> <span class='id identifier rubyid_sentence'>sentence</span><span class='period'>.</span><span class='id identifier rubyid_find_all'>find_all</span> <span class='semicolon'>;</span> <span class='kw'>end</span></pre>
2048
+ </td>
2049
+ </tr>
2050
+ </table>
2051
+ </div>
2052
+
2053
+ <div class="method_details ">
2054
+ <h3 class="signature " id="get_book_progress-instance_method">
2055
+
2056
+ - (<tt>Object</tt>) <strong>get_book_progress</strong>
2057
+
2058
+
2059
+
2060
+
2061
+
2062
+ </h3><table class="source_code">
2063
+ <tr>
2064
+ <td>
2065
+ <pre class="lines">
2066
+
2067
+
2068
+ 56
2069
+ 57
2070
+ 58
2071
+ 59</pre>
2072
+ </td>
2073
+ <td>
2074
+ <pre class="code"><span class="info file"># File 'lib/cw/book.rb', line 56</span>
2075
+
2076
+ <span class='kw'>def</span> <span class='id identifier rubyid_get_book_progress'>get_book_progress</span>
2077
+ <span class='id identifier rubyid_sentence'>sentence</span><span class='period'>.</span><span class='id identifier rubyid_read_progress'>read_progress</span> <span class='id identifier rubyid_progress_file'>progress_file</span>
2078
+ <span class='ivar'>@current_sentence_index</span> <span class='op'>=</span> <span class='id identifier rubyid_sentence_index'>sentence_index</span>
2079
+ <span class='kw'>end</span></pre>
2080
+ </td>
2081
+ </tr>
2082
+ </table>
2083
+ </div>
2084
+
2085
+ <div class="method_details ">
2086
+ <h3 class="signature " id="make_sentence_index_current-instance_method">
2087
+
2088
+ - (<tt>Object</tt>) <strong>make_sentence_index_current</strong>
2089
+
2090
+
2091
+
2092
+
2093
+
2094
+ </h3><table class="source_code">
2095
+ <tr>
2096
+ <td>
2097
+ <pre class="lines">
2098
+
2099
+
2100
+ 177
2101
+ 178
2102
+ 179</pre>
2103
+ </td>
2104
+ <td>
2105
+ <pre class="code"><span class="info file"># File 'lib/cw/book.rb', line 177</span>
2106
+
2107
+ <span class='kw'>def</span> <span class='id identifier rubyid_make_sentence_index_current'>make_sentence_index_current</span>
2108
+ <span class='ivar'>@current_sentence_index</span> <span class='op'>=</span> <span class='id identifier rubyid_sentence_index'>sentence_index</span>
2109
+ <span class='kw'>end</span></pre>
2110
+ </td>
2111
+ </tr>
2112
+ </table>
2113
+ </div>
2114
+
2115
+ <div class="method_details ">
2116
+ <h3 class="signature " id="monitor_keys-instance_method">
2117
+
2118
+ - (<tt>Object</tt>) <strong>monitor_keys</strong>
2119
+
2120
+
2121
+
2122
+
2123
+
2124
+ </h3><table class="source_code">
2125
+ <tr>
2126
+ <td>
2127
+ <pre class="lines">
2128
+
2129
+
2130
+ 69
2131
+ 70
2132
+ 71
2133
+ 72
2134
+ 73
2135
+ 74
2136
+ 75
2137
+ 76
2138
+ 77</pre>
2139
+ </td>
2140
+ <td>
2141
+ <pre class="code"><span class="info file"># File 'lib/cw/book.rb', line 69</span>
2142
+
2143
+ <span class='kw'>def</span> <span class='id identifier rubyid_monitor_keys'>monitor_keys</span>
2144
+ <span class='id identifier rubyid_loop'>loop</span> <span class='kw'>do</span>
2145
+ <span class='id identifier rubyid_get_key_input'>get_key_input</span>
2146
+ <span class='id identifier rubyid_check_quit_key_input'>check_quit_key_input</span>
2147
+ <span class='kw'>break</span> <span class='kw'>if</span> <span class='id identifier rubyid_quit?'>quit?</span>
2148
+ <span class='id identifier rubyid_check_sentence_navigation'>check_sentence_navigation</span> <span class='id identifier rubyid_key_chr'>key_chr</span>
2149
+ <span class='id identifier rubyid_build_word_maybe'>build_word_maybe</span>
2150
+ <span class='kw'>end</span>
2151
+ <span class='kw'>end</span></pre>
2152
+ </td>
2153
+ </tr>
2154
+ </table>
2155
+ </div>
2156
+
2157
+ <div class="method_details ">
2158
+ <h3 class="signature " id="next_sentence-instance_method">
2159
+
2160
+ - (<tt>Object</tt>) <strong>next_sentence</strong>
2161
+
2162
+
2163
+
2164
+
2165
+
2166
+ </h3><table class="source_code">
2167
+ <tr>
2168
+ <td>
2169
+ <pre class="lines">
2170
+
2171
+
2172
+ 22</pre>
2173
+ </td>
2174
+ <td>
2175
+ <pre class="code"><span class="info file"># File 'lib/cw/book.rb', line 22</span>
2176
+
2177
+ <span class='kw'>def</span> <span class='id identifier rubyid_next_sentence'>next_sentence</span> <span class='semicolon'>;</span> <span class='id identifier rubyid_sentence'>sentence</span><span class='period'>.</span><span class='id identifier rubyid_next'>next</span> <span class='semicolon'>;</span> <span class='kw'>end</span></pre>
2178
+ </td>
2179
+ </tr>
2180
+ </table>
2181
+ </div>
2182
+
2183
+ <div class="method_details ">
2184
+ <h3 class="signature " id="next_sentence_or_quit?-instance_method">
2185
+
2186
+ - (<tt>Boolean</tt>) <strong>next_sentence_or_quit?</strong>
2187
+
2188
+
2189
+
2190
+
2191
+
2192
+ </h3><div class="docstring">
2193
+ <div class="discussion">
2194
+
2195
+
2196
+ </div>
2197
+ </div>
2198
+ <div class="tags">
2199
+
2200
+ <p class="tag_title">Returns:</p>
2201
+ <ul class="return">
2202
+
2203
+ <li>
2204
+
2205
+
2206
+ <span class='type'>(<tt>Boolean</tt>)</span>
2207
+
2208
+
2209
+
2210
+ </li>
2211
+
2212
+ </ul>
2213
+
2214
+ </div><table class="source_code">
2215
+ <tr>
2216
+ <td>
2217
+ <pre class="lines">
2218
+
2219
+
2220
+ 119
2221
+ 120
2222
+ 121
2223
+ 122
2224
+ 123
2225
+ 124
2226
+ 125
2227
+ 126
2228
+ 127
2229
+ 128</pre>
2230
+ </td>
2231
+ <td>
2232
+ <pre class="code"><span class="info file"># File 'lib/cw/book.rb', line 119</span>
2233
+
2234
+ <span class='kw'>def</span> <span class='id identifier rubyid_next_sentence_or_quit?'>next_sentence_or_quit?</span>
2235
+ <span class='id identifier rubyid_playing'>playing</span> <span class='op'>=</span> <span class='id identifier rubyid_audio_still_playing?'>audio_still_playing?</span>
2236
+ <span class='id identifier rubyid_next_sentence'>next_sentence</span> <span class='kw'>unless</span> <span class='id identifier rubyid_playing'>playing</span>
2237
+ <span class='id identifier rubyid_sleep'>sleep</span> <span class='float'>0.01</span> <span class='kw'>if</span> <span class='id identifier rubyid_playing'>playing</span>
2238
+ <span class='kw'>if</span> <span class='id identifier rubyid_change_repeat_or_quit?'>change_repeat_or_quit?</span>
2239
+ <span class='id identifier rubyid_change_and_kill_audio'>change_and_kill_audio</span>
2240
+ <span class='comment'>#todo prn.newline unless quit?
2241
+ </span> <span class='kw'>true</span>
2242
+ <span class='kw'>end</span>
2243
+ <span class='kw'>end</span></pre>
2244
+ </td>
2245
+ </tr>
2246
+ </table>
2247
+ </div>
2248
+
2249
+ <div class="method_details ">
2250
+ <h3 class="signature " id="play_r_tone-instance_method">
2251
+
2252
+ - (<tt>Object</tt>) <strong>play_r_tone</strong>
2253
+
2254
+
2255
+
2256
+
2257
+
2258
+ </h3><table class="source_code">
2259
+ <tr>
2260
+ <td>
2261
+ <pre class="lines">
2262
+
2263
+
2264
+ 31</pre>
2265
+ </td>
2266
+ <td>
2267
+ <pre class="code"><span class="info file"># File 'lib/cw/book.rb', line 31</span>
2268
+
2269
+ <span class='kw'>def</span> <span class='id identifier rubyid_play_r_tone'>play_r_tone</span> <span class='semicolon'>;</span> <span class='id identifier rubyid_audio_play_tone'>audio_play_tone</span> <span class='ivar'>@r_tone</span> <span class='semicolon'>;</span> <span class='kw'>end</span></pre>
2270
+ </td>
2271
+ </tr>
2272
+ </table>
2273
+ </div>
2274
+
2275
+ <div class="method_details ">
2276
+ <h3 class="signature " id="play_repeat_tone-instance_method">
2277
+
2278
+ - (<tt>Object</tt>) <strong>play_repeat_tone</strong>
2279
+
2280
+
2281
+
2282
+
2283
+
2284
+ </h3><table class="source_code">
2285
+ <tr>
2286
+ <td>
2287
+ <pre class="lines">
2288
+
2289
+
2290
+ 29</pre>
2291
+ </td>
2292
+ <td>
2293
+ <pre class="code"><span class="info file"># File 'lib/cw/book.rb', line 29</span>
2294
+
2295
+ <span class='kw'>def</span> <span class='id identifier rubyid_play_repeat_tone'>play_repeat_tone</span> <span class='semicolon'>;</span> <span class='id identifier rubyid_audio_play_tone'>audio_play_tone</span> <span class='ivar'>@repeat_tone</span> <span class='semicolon'>;</span> <span class='kw'>end</span></pre>
2296
+ </td>
2297
+ </tr>
2298
+ </table>
2299
+ </div>
2300
+
2301
+ <div class="method_details ">
2302
+ <h3 class="signature " id="play_sentences_thread-instance_method">
2303
+
2304
+ - (<tt>Object</tt>) <strong>play_sentences_thread</strong>
2305
+
2306
+
2307
+
2308
+
2309
+
2310
+ </h3><table class="source_code">
2311
+ <tr>
2312
+ <td>
2313
+ <pre class="lines">
2314
+
2315
+
2316
+ 220
2317
+ 221
2318
+ 222
2319
+ 223
2320
+ 224
2321
+ 225</pre>
2322
+ </td>
2323
+ <td>
2324
+ <pre class="code"><span class="info file"># File 'lib/cw/book.rb', line 220</span>
2325
+
2326
+ <span class='kw'>def</span> <span class='id identifier rubyid_play_sentences_thread'>play_sentences_thread</span>
2327
+ <span class='id identifier rubyid_play_sentences_until_quit'>play_sentences_until_quit</span>
2328
+ <span class='id identifier rubyid_write_book_progress'>write_book_progress</span>
2329
+ <span class='comment'># kill_threads
2330
+ </span> <span class='id identifier rubyid_print'>print</span> <span class='tstring'><span class='tstring_beg'>&quot;</span><span class='tstring_content'>\n\rplay has quit </span><span class='tstring_end'>&quot;</span></span> <span class='kw'>if</span> <span class='ivar'>@debug</span>
2331
+ <span class='kw'>end</span></pre>
2332
+ </td>
2333
+ </tr>
2334
+ </table>
2335
+ </div>
2336
+
2337
+ <div class="method_details ">
2338
+ <h3 class="signature " id="play_sentences_until_quit-instance_method">
2339
+
2340
+ - (<tt>Object</tt>) <strong>play_sentences_until_quit</strong>
2341
+
2342
+
2343
+
2344
+
2345
+
2346
+ </h3><table class="source_code">
2347
+ <tr>
2348
+ <td>
2349
+ <pre class="lines">
2350
+
2351
+
2352
+ 185
2353
+ 186
2354
+ 187
2355
+ 188
2356
+ 189
2357
+ 190
2358
+ 191
2359
+ 192
2360
+ 193
2361
+ 194
2362
+ 195
2363
+ 196
2364
+ 197</pre>
2365
+ </td>
2366
+ <td>
2367
+ <pre class="code"><span class="info file"># File 'lib/cw/book.rb', line 185</span>
2368
+
2369
+ <span class='kw'>def</span> <span class='id identifier rubyid_play_sentences_until_quit'>play_sentences_until_quit</span>
2370
+ <span class='id identifier rubyid_get_book_progress'>get_book_progress</span>
2371
+ <span class='id identifier rubyid_loop'>loop</span> <span class='kw'>do</span>
2372
+ <span class='id identifier rubyid_check_sentence_count'>check_sentence_count</span> <span class='symbol'>:play</span>
2373
+ <span class='id identifier rubyid_sync_with_print'>sync_with_print</span>
2374
+ <span class='id identifier rubyid_audio_play_repeat_tone_maybe'>audio_play_repeat_tone_maybe</span>
2375
+ <span class='id identifier rubyid_reset_sentence_flags'>reset_sentence_flags</span>
2376
+ <span class='id identifier rubyid_compile_and_play'>compile_and_play</span>
2377
+ <span class='id identifier rubyid_await_next_sentence_or_quit'>await_next_sentence_or_quit</span>
2378
+ <span class='kw'>break</span> <span class='kw'>if</span> <span class='id identifier rubyid_quit?'>quit?</span>
2379
+ <span class='kw'>end</span>
2380
+ <span class='id identifier rubyid_print_words_exit'>print_words_exit</span> <span class='kw'>unless</span> <span class='ivar'>@print_letters</span>
2381
+ <span class='kw'>end</span></pre>
2382
+ </td>
2383
+ </tr>
2384
+ </table>
2385
+ </div>
2386
+
2387
+ <div class="method_details ">
2388
+ <h3 class="signature " id="print_book_advice-instance_method">
2389
+
2390
+ - (<tt>Object</tt>) <strong>print_book_advice</strong>
2391
+
2392
+
2393
+
2394
+
2395
+
2396
+ </h3><table class="source_code">
2397
+ <tr>
2398
+ <td>
2399
+ <pre class="lines">
2400
+
2401
+
2402
+ 38</pre>
2403
+ </td>
2404
+ <td>
2405
+ <pre class="code"><span class="info file"># File 'lib/cw/book.rb', line 38</span>
2406
+
2407
+ <span class='kw'>def</span> <span class='id identifier rubyid_print_book_advice'>print_book_advice</span> <span class='semicolon'>;</span> <span class='id identifier rubyid_print'>print</span><span class='period'>.</span><span class='id identifier rubyid_print_advice'>print_advice</span><span class='lparen'>(</span><span class='tstring'><span class='tstring_beg'>&#39;</span><span class='tstring_content'>Play Book</span><span class='tstring_end'>&#39;</span></span><span class='rparen'>)</span> <span class='semicolon'>;</span> <span class='kw'>end</span></pre>
2408
+ </td>
2409
+ </tr>
2410
+ </table>
2411
+ </div>
2412
+
2413
+ <div class="method_details ">
2414
+ <h3 class="signature " id="print_letters?-instance_method">
2415
+
2416
+ - (<tt>Boolean</tt>) <strong>print_letters?</strong>
2417
+
2418
+
2419
+
2420
+
2421
+
2422
+ </h3><div class="docstring">
2423
+ <div class="discussion">
2424
+
2425
+
2426
+ </div>
2427
+ </div>
2428
+ <div class="tags">
2429
+
2430
+ <p class="tag_title">Returns:</p>
2431
+ <ul class="return">
2432
+
2433
+ <li>
2434
+
2435
+
2436
+ <span class='type'>(<tt>Boolean</tt>)</span>
2437
+
2438
+
2439
+
2440
+ </li>
2441
+
2442
+ </ul>
2443
+
2444
+ </div><table class="source_code">
2445
+ <tr>
2446
+ <td>
2447
+ <pre class="lines">
2448
+
2449
+
2450
+ 35</pre>
2451
+ </td>
2452
+ <td>
2453
+ <pre class="code"><span class="info file"># File 'lib/cw/book.rb', line 35</span>
2454
+
2455
+ <span class='kw'>def</span> <span class='id identifier rubyid_print_letters?'>print_letters?</span> <span class='semicolon'>;</span> <span class='ivar'>@print_letters</span> <span class='op'>&amp;&amp;</span> <span class='op'>!</span> <span class='id identifier rubyid_quit?'>quit?</span> <span class='semicolon'>;</span> <span class='kw'>end</span></pre>
2456
+ </td>
2457
+ </tr>
2458
+ </table>
2459
+ </div>
2460
+
2461
+ <div class="method_details ">
2462
+ <h3 class="signature " id="print_marked_maybe-instance_method">
2463
+
2464
+ - (<tt>Object</tt>) <strong>print_marked_maybe</strong>
2465
+
2466
+
2467
+
2468
+
2469
+
2470
+ </h3><table class="source_code">
2471
+ <tr>
2472
+ <td>
2473
+ <pre class="lines">
2474
+
2475
+
2476
+ 145
2477
+ 146
2478
+ 147
2479
+ 148
2480
+ 149
2481
+ 150
2482
+ 151
2483
+ 152</pre>
2484
+ </td>
2485
+ <td>
2486
+ <pre class="code"><span class="info file"># File 'lib/cw/book.rb', line 145</span>
2487
+
2488
+ <span class='kw'>def</span> <span class='id identifier rubyid_print_marked_maybe'>print_marked_maybe</span>
2489
+ <span class='ivar'>@popped</span> <span class='op'>=</span> <span class='id identifier rubyid_stream'>stream</span><span class='period'>.</span><span class='id identifier rubyid_pop_next_marked'>pop_next_marked</span>
2490
+ <span class='kw'>if</span> <span class='ivar'>@book_details</span><span class='period'>.</span><span class='id identifier rubyid_args'>args</span><span class='lbracket'>[</span><span class='symbol'>:output</span><span class='rbracket'>]</span> <span class='op'>==</span> <span class='symbol'>:letter</span>
2491
+ <span class='id identifier rubyid_print'>print</span><span class='period'>.</span><span class='id identifier rubyid_char_result'>char_result</span><span class='lparen'>(</span><span class='ivar'>@popped</span><span class='rparen'>)</span> <span class='kw'>if</span><span class='lparen'>(</span><span class='ivar'>@popped</span> <span class='op'>&amp;&amp;</span> <span class='op'>!</span> <span class='id identifier rubyid_print_letters?'>print_letters?</span><span class='rparen'>)</span> <span class='comment'>#todo
2492
+ </span> <span class='kw'>else</span>
2493
+ <span class='id identifier rubyid_print'>print</span><span class='period'>.</span><span class='id identifier rubyid_results'>results</span><span class='lparen'>(</span><span class='ivar'>@popped</span><span class='rparen'>)</span> <span class='kw'>if</span><span class='lparen'>(</span><span class='ivar'>@popped</span> <span class='op'>&amp;&amp;</span> <span class='op'>!</span> <span class='id identifier rubyid_print_letters?'>print_letters?</span><span class='rparen'>)</span>
2494
+ <span class='kw'>end</span>
2495
+ <span class='kw'>end</span></pre>
2496
+ </td>
2497
+ </tr>
2498
+ </table>
2499
+ </div>
2500
+
2501
+ <div class="method_details ">
2502
+ <h3 class="signature " id="print_sentences_thread-instance_method">
2503
+
2504
+ - (<tt>Object</tt>) <strong>print_sentences_thread</strong>
2505
+
2506
+
2507
+
2508
+
2509
+
2510
+ </h3><table class="source_code">
2511
+ <tr>
2512
+ <td>
2513
+ <pre class="lines">
2514
+
2515
+
2516
+ 227
2517
+ 228
2518
+ 229
2519
+ 230
2520
+ 231</pre>
2521
+ </td>
2522
+ <td>
2523
+ <pre class="code"><span class="info file"># File 'lib/cw/book.rb', line 227</span>
2524
+
2525
+ <span class='kw'>def</span> <span class='id identifier rubyid_print_sentences_thread'>print_sentences_thread</span>
2526
+ <span class='id identifier rubyid_print_sentences_until_quit'>print_sentences_until_quit</span>
2527
+ <span class='id identifier rubyid_kill_threads'>kill_threads</span>
2528
+ <span class='id identifier rubyid_print'>print</span> <span class='tstring'><span class='tstring_beg'>&quot;</span><span class='tstring_content'>\n\rprint has quit </span><span class='tstring_end'>&quot;</span></span> <span class='kw'>if</span> <span class='ivar'>@debug</span>
2529
+ <span class='kw'>end</span></pre>
2530
+ </td>
2531
+ </tr>
2532
+ </table>
2533
+ </div>
2534
+
2535
+ <div class="method_details ">
2536
+ <h3 class="signature " id="print_sentences_until_quit-instance_method">
2537
+
2538
+ - (<tt>Object</tt>) <strong>print_sentences_until_quit</strong>
2539
+
2540
+
2541
+
2542
+
2543
+
2544
+ </h3><table class="source_code">
2545
+ <tr>
2546
+ <td>
2547
+ <pre class="lines">
2548
+
2549
+
2550
+ 208
2551
+ 209
2552
+ 210
2553
+ 211
2554
+ 212
2555
+ 213
2556
+ 214
2557
+ 215
2558
+ 216
2559
+ 217
2560
+ 218</pre>
2561
+ </td>
2562
+ <td>
2563
+ <pre class="code"><span class="info file"># File 'lib/cw/book.rb', line 208</span>
2564
+
2565
+ <span class='kw'>def</span> <span class='id identifier rubyid_print_sentences_until_quit'>print_sentences_until_quit</span>
2566
+ <span class='id identifier rubyid_loop'>loop</span> <span class='kw'>do</span>
2567
+ <span class='id identifier rubyid_check_sentence_count'>check_sentence_count</span> <span class='symbol'>:print</span>
2568
+ <span class='id identifier rubyid_sync_with_play'>sync_with_play</span>
2569
+ <span class='kw'>break</span> <span class='kw'>if</span> <span class='id identifier rubyid_quit?'>quit?</span>
2570
+ <span class='id identifier rubyid_sync_with_audio_player'>sync_with_audio_player</span>
2571
+ <span class='id identifier rubyid_print_words_for_current_sentence'>print_words_for_current_sentence</span>
2572
+ <span class='id identifier rubyid_print'>print</span><span class='period'>.</span><span class='id identifier rubyid_reset'>reset</span>
2573
+ <span class='id identifier rubyid_puts'>puts</span>
2574
+ <span class='kw'>end</span>
2575
+ <span class='kw'>end</span></pre>
2576
+ </td>
2577
+ </tr>
2578
+ </table>
2579
+ </div>
2580
+
2581
+ <div class="method_details ">
2582
+ <h3 class="signature " id="print_words-instance_method">
2583
+
2584
+ - (<tt>Object</tt>) <strong>print_words</strong>(words)
2585
+
2586
+
2587
+
2588
+
2589
+
2590
+ </h3><table class="source_code">
2591
+ <tr>
2592
+ <td>
2593
+ <pre class="lines">
2594
+
2595
+
2596
+ 154
2597
+ 155
2598
+ 156
2599
+ 157
2600
+ 158
2601
+ 159
2602
+ 160
2603
+ 161
2604
+ 162
2605
+ 163
2606
+ 164
2607
+ 165
2608
+ 166
2609
+ 167
2610
+ 168
2611
+ 169
2612
+ 170</pre>
2613
+ </td>
2614
+ <td>
2615
+ <pre class="code"><span class="info file"># File 'lib/cw/book.rb', line 154</span>
2616
+
2617
+ <span class='kw'>def</span> <span class='id identifier rubyid_print_words'>print_words</span> <span class='id identifier rubyid_words'>words</span>
2618
+ <span class='id identifier rubyid_timing'>timing</span><span class='period'>.</span><span class='id identifier rubyid_init_char_timer'>init_char_timer</span>
2619
+ <span class='lparen'>(</span><span class='id identifier rubyid_words'>words</span> <span class='op'>+</span> <span class='id identifier rubyid_space'>space</span><span class='rparen'>)</span><span class='period'>.</span><span class='id identifier rubyid_each_char'>each_char</span> <span class='kw'>do</span> <span class='op'>|</span><span class='id identifier rubyid_letr'>letr</span><span class='op'>|</span>
2620
+ <span class='id identifier rubyid_process_letter'>process_letter</span> <span class='id identifier rubyid_letr'>letr</span>
2621
+ <span class='id identifier rubyid_stream'>stream</span><span class='period'>.</span><span class='id identifier rubyid_add_char'>add_char</span><span class='lparen'>(</span><span class='id identifier rubyid_letr'>letr</span><span class='rparen'>)</span> <span class='kw'>if</span> <span class='ivar'>@book_details</span><span class='period'>.</span><span class='id identifier rubyid_args'>args</span><span class='lbracket'>[</span><span class='symbol'>:output</span><span class='rbracket'>]</span> <span class='op'>==</span> <span class='symbol'>:letter</span>
2622
+ <span class='id identifier rubyid_loop'>loop</span> <span class='kw'>do</span>
2623
+ <span class='id identifier rubyid_process_space_maybe'>process_space_maybe</span><span class='lparen'>(</span><span class='id identifier rubyid_letr'>letr</span><span class='rparen'>)</span> <span class='kw'>unless</span> <span class='ivar'>@book_details</span><span class='period'>.</span><span class='id identifier rubyid_args'>args</span><span class='lbracket'>[</span><span class='symbol'>:output</span><span class='rbracket'>]</span> <span class='op'>==</span> <span class='symbol'>:letter</span>
2624
+ <span class='id identifier rubyid_process_word_maybe'>process_word_maybe</span>
2625
+ <span class='kw'>if</span> <span class='id identifier rubyid_change_repeat_or_quit?'>change_repeat_or_quit?</span>
2626
+ <span class='kw'>break</span>
2627
+ <span class='kw'>end</span>
2628
+ <span class='kw'>break</span> <span class='kw'>if</span> <span class='id identifier rubyid_timing'>timing</span><span class='period'>.</span><span class='id identifier rubyid_char_delay_timeout?'>char_delay_timeout?</span>
2629
+ <span class='kw'>end</span>
2630
+ <span class='id identifier rubyid_print'>print</span><span class='period'>.</span><span class='id identifier rubyid_prn'>prn</span> <span class='id identifier rubyid_letr'>letr</span> <span class='kw'>if</span> <span class='id identifier rubyid_print_letters?'>print_letters?</span>
2631
+ <span class='kw'>break</span> <span class='kw'>if</span> <span class='id identifier rubyid_change_repeat_or_quit?'>change_repeat_or_quit?</span>
2632
+ <span class='kw'>end</span>
2633
+ <span class='kw'>end</span></pre>
2634
+ </td>
2635
+ </tr>
2636
+ </table>
2637
+ </div>
2638
+
2639
+ <div class="method_details ">
2640
+ <h3 class="signature " id="print_words_for_current_sentence-instance_method">
2641
+
2642
+ - (<tt>Object</tt>) <strong>print_words_for_current_sentence</strong>
2643
+
2644
+
2645
+
2646
+
2647
+
2648
+ </h3><table class="source_code">
2649
+ <tr>
2650
+ <td>
2651
+ <pre class="lines">
2652
+
2653
+
2654
+ 172
2655
+ 173
2656
+ 174
2657
+ 175</pre>
2658
+ </td>
2659
+ <td>
2660
+ <pre class="code"><span class="info file"># File 'lib/cw/book.rb', line 172</span>
2661
+
2662
+ <span class='kw'>def</span> <span class='id identifier rubyid_print_words_for_current_sentence'>print_words_for_current_sentence</span>
2663
+ <span class='comment'># puts current_sentence
2664
+ </span> <span class='id identifier rubyid_print_words'>print_words</span> <span class='id identifier rubyid_current_sentence'>current_sentence</span>
2665
+ <span class='kw'>end</span></pre>
2666
+ </td>
2667
+ </tr>
2668
+ </table>
2669
+ </div>
2670
+
2671
+ <div class="method_details ">
2672
+ <h3 class="signature " id="process_input_word_maybe-instance_method">
2673
+
2674
+ - (<tt>Object</tt>) <strong>process_input_word_maybe</strong>
2675
+
2676
+
2677
+
2678
+
2679
+
2680
+ </h3><table class="source_code">
2681
+ <tr>
2682
+ <td>
2683
+ <pre class="lines">
2684
+
2685
+
2686
+ 79
2687
+ 80
2688
+ 81
2689
+ 82
2690
+ 83
2691
+ 84
2692
+ 85
2693
+ 86
2694
+ 87
2695
+ 88</pre>
2696
+ </td>
2697
+ <td>
2698
+ <pre class="code"><span class="info file"># File 'lib/cw/book.rb', line 79</span>
2699
+
2700
+ <span class='kw'>def</span> <span class='id identifier rubyid_process_input_word_maybe'>process_input_word_maybe</span>
2701
+ <span class='kw'>if</span> <span class='ivar'>@word_to_process</span>
2702
+ <span class='kw'>if</span> <span class='ivar'>@book_details</span><span class='period'>.</span><span class='id identifier rubyid_args'>args</span><span class='lbracket'>[</span><span class='symbol'>:output</span><span class='rbracket'>]</span> <span class='op'>==</span> <span class='symbol'>:letter</span>
2703
+ <span class='id identifier rubyid_stream'>stream</span><span class='period'>.</span><span class='id identifier rubyid_match_first_active_element'>match_first_active_element</span> <span class='ivar'>@process_input_word</span> <span class='comment'># .strip #todo
2704
+ </span> <span class='kw'>else</span>
2705
+ <span class='id identifier rubyid_stream'>stream</span><span class='period'>.</span><span class='id identifier rubyid_match_last_active_element'>match_last_active_element</span> <span class='ivar'>@process_input_word</span><span class='period'>.</span><span class='id identifier rubyid_strip'>strip</span> <span class='comment'>#todo
2706
+ </span> <span class='kw'>end</span>
2707
+ <span class='ivar'>@process_input_word</span> <span class='op'>=</span> <span class='ivar'>@word_to_process</span> <span class='op'>=</span> <span class='kw'>nil</span>
2708
+ <span class='kw'>end</span>
2709
+ <span class='kw'>end</span></pre>
2710
+ </td>
2711
+ </tr>
2712
+ </table>
2713
+ </div>
2714
+
2715
+ <div class="method_details ">
2716
+ <h3 class="signature " id="process_letter-instance_method">
2717
+
2718
+ - (<tt>Object</tt>) <strong>process_letter</strong>(letr)
2719
+
2720
+
2721
+
2722
+
2723
+
2724
+ </h3><table class="source_code">
2725
+ <tr>
2726
+ <td>
2727
+ <pre class="lines">
2728
+
2729
+
2730
+ 140
2731
+ 141
2732
+ 142
2733
+ 143</pre>
2734
+ </td>
2735
+ <td>
2736
+ <pre class="code"><span class="info file"># File 'lib/cw/book.rb', line 140</span>
2737
+
2738
+ <span class='kw'>def</span> <span class='id identifier rubyid_process_letter'>process_letter</span> <span class='id identifier rubyid_letr'>letr</span>
2739
+ <span class='id identifier rubyid_current_word'>current_word</span><span class='period'>.</span><span class='id identifier rubyid_process_letter'>process_letter</span> <span class='id identifier rubyid_letr'>letr</span>
2740
+ <span class='id identifier rubyid_sleep_char_delay'>sleep_char_delay</span> <span class='id identifier rubyid_letr'>letr</span>
2741
+ <span class='kw'>end</span></pre>
2742
+ </td>
2743
+ </tr>
2744
+ </table>
2745
+ </div>
2746
+
2747
+ <div class="method_details ">
2748
+ <h3 class="signature " id="progress_file-instance_method">
2749
+
2750
+ - (<tt>Object</tt>) <strong>progress_file</strong>
2751
+
2752
+
2753
+
2754
+
2755
+
2756
+ </h3><table class="source_code">
2757
+ <tr>
2758
+ <td>
2759
+ <pre class="lines">
2760
+
2761
+
2762
+ 52
2763
+ 53
2764
+ 54</pre>
2765
+ </td>
2766
+ <td>
2767
+ <pre class="code"><span class="info file"># File 'lib/cw/book.rb', line 52</span>
2768
+
2769
+ <span class='kw'>def</span> <span class='id identifier rubyid_progress_file'>progress_file</span>
2770
+ <span class='const'>File</span><span class='period'>.</span><span class='id identifier rubyid_expand_path'>expand_path</span><span class='lparen'>(</span><span class='ivar'>@progress_file</span><span class='comma'>,</span> <span class='ivar'>@text_folder</span><span class='rparen'>)</span>
2771
+ <span class='kw'>end</span></pre>
2772
+ </td>
2773
+ </tr>
2774
+ </table>
2775
+ </div>
2776
+
2777
+ <div class="method_details ">
2778
+ <h3 class="signature " id="quit_or_process_input?-instance_method">
2779
+
2780
+ - (<tt>Boolean</tt>) <strong>quit_or_process_input?</strong>
2781
+
2782
+
2783
+
2784
+
2785
+
2786
+ </h3><div class="docstring">
2787
+ <div class="discussion">
2788
+
2789
+
2790
+ </div>
2791
+ </div>
2792
+ <div class="tags">
2793
+
2794
+ <p class="tag_title">Returns:</p>
2795
+ <ul class="return">
2796
+
2797
+ <li>
2798
+
2799
+
2800
+ <span class='type'>(<tt>Boolean</tt>)</span>
2801
+
2802
+
2803
+
2804
+ </li>
2805
+
2806
+ </ul>
2807
+
2808
+ </div><table class="source_code">
2809
+ <tr>
2810
+ <td>
2811
+ <pre class="lines">
2812
+
2813
+
2814
+ 136
2815
+ 137
2816
+ 138</pre>
2817
+ </td>
2818
+ <td>
2819
+ <pre class="code"><span class="info file"># File 'lib/cw/book.rb', line 136</span>
2820
+
2821
+ <span class='kw'>def</span> <span class='id identifier rubyid_quit_or_process_input?'>quit_or_process_input?</span>
2822
+ <span class='id identifier rubyid_quit?'>quit?</span> <span class='op'>||</span> <span class='ivar'>@word_to_process</span>
2823
+ <span class='kw'>end</span></pre>
2824
+ </td>
2825
+ </tr>
2826
+ </table>
2827
+ </div>
2828
+
2829
+ <div class="method_details ">
2830
+ <h3 class="signature " id="raw_text-instance_method">
2831
+
2832
+ - (<tt>Object</tt>) <strong>raw_text</strong>
2833
+
2834
+
2835
+
2836
+
2837
+
2838
+ </h3><table class="source_code">
2839
+ <tr>
2840
+ <td>
2841
+ <pre class="lines">
2842
+
2843
+
2844
+ 20</pre>
2845
+ </td>
2846
+ <td>
2847
+ <pre class="code"><span class="info file"># File 'lib/cw/book.rb', line 20</span>
2848
+
2849
+ <span class='kw'>def</span> <span class='id identifier rubyid_raw_text'>raw_text</span> <span class='semicolon'>;</span> <span class='id identifier rubyid_sentence'>sentence</span><span class='period'>.</span><span class='id identifier rubyid_text'>text</span> <span class='semicolon'>;</span> <span class='kw'>end</span></pre>
2850
+ </td>
2851
+ </tr>
2852
+ </table>
2853
+ </div>
2854
+
2855
+ <div class="method_details ">
2856
+ <h3 class="signature " id="read_book-instance_method">
2857
+
2858
+ - (<tt>Object</tt>) <strong>read_book</strong>(book)
2859
+
2860
+
2861
+
2862
+
2863
+
2864
+ </h3><table class="source_code">
2865
+ <tr>
2866
+ <td>
2867
+ <pre class="lines">
2868
+
2869
+
2870
+ 21</pre>
2871
+ </td>
2872
+ <td>
2873
+ <pre class="code"><span class="info file"># File 'lib/cw/book.rb', line 21</span>
2874
+
2875
+ <span class='kw'>def</span> <span class='id identifier rubyid_read_book'>read_book</span><span class='lparen'>(</span><span class='id identifier rubyid_book'>book</span><span class='rparen'>)</span> <span class='semicolon'>;</span> <span class='id identifier rubyid_sentence'>sentence</span><span class='period'>.</span><span class='id identifier rubyid_read_book'>read_book</span><span class='lparen'>(</span><span class='id identifier rubyid_book'>book</span><span class='rparen'>)</span> <span class='semicolon'>;</span> <span class='kw'>end</span></pre>
2876
+ </td>
2877
+ </tr>
2878
+ </table>
2879
+ </div>
2880
+
2881
+ <div class="method_details ">
2882
+ <h3 class="signature " id="repeat_sentence?-instance_method">
2883
+
2884
+ - (<tt>Boolean</tt>) <strong>repeat_sentence?</strong>
2885
+
2886
+
2887
+
2888
+
2889
+
2890
+ </h3><div class="docstring">
2891
+ <div class="discussion">
2892
+
2893
+
2894
+ </div>
2895
+ </div>
2896
+ <div class="tags">
2897
+
2898
+ <p class="tag_title">Returns:</p>
2899
+ <ul class="return">
2900
+
2901
+ <li>
2902
+
2903
+
2904
+ <span class='type'>(<tt>Boolean</tt>)</span>
2905
+
2906
+
2907
+
2908
+ </li>
2909
+
2910
+ </ul>
2911
+
2912
+ </div><table class="source_code">
2913
+ <tr>
2914
+ <td>
2915
+ <pre class="lines">
2916
+
2917
+
2918
+ 25</pre>
2919
+ </td>
2920
+ <td>
2921
+ <pre class="code"><span class="info file"># File 'lib/cw/book.rb', line 25</span>
2922
+
2923
+ <span class='kw'>def</span> <span class='id identifier rubyid_repeat_sentence?'>repeat_sentence?</span> <span class='semicolon'>;</span> <span class='id identifier rubyid_sentence'>sentence</span><span class='period'>.</span><span class='id identifier rubyid_repeat?'>repeat?</span> <span class='semicolon'>;</span> <span class='kw'>end</span></pre>
2924
+ </td>
2925
+ </tr>
2926
+ </table>
2927
+ </div>
2928
+
2929
+ <div class="method_details ">
2930
+ <h3 class="signature " id="reset_sentence_flags-instance_method">
2931
+
2932
+ - (<tt>Object</tt>) <strong>reset_sentence_flags</strong>
2933
+
2934
+
2935
+
2936
+
2937
+
2938
+ </h3><table class="source_code">
2939
+ <tr>
2940
+ <td>
2941
+ <pre class="lines">
2942
+
2943
+
2944
+ 36</pre>
2945
+ </td>
2946
+ <td>
2947
+ <pre class="code"><span class="info file"># File 'lib/cw/book.rb', line 36</span>
2948
+
2949
+ <span class='kw'>def</span> <span class='id identifier rubyid_reset_sentence_flags'>reset_sentence_flags</span> <span class='semicolon'>;</span> <span class='id identifier rubyid_sentence'>sentence</span><span class='period'>.</span><span class='id identifier rubyid_reset_flags'>reset_flags</span> <span class='semicolon'>;</span> <span class='kw'>end</span></pre>
2950
+ </td>
2951
+ </tr>
2952
+ </table>
2953
+ </div>
2954
+
2955
+ <div class="method_details ">
2956
+ <h3 class="signature " id="sentence-instance_method">
2957
+
2958
+ - (<tt>Object</tt>) <strong>sentence</strong>
2959
+
2960
+
2961
+
2962
+
2963
+
2964
+ </h3><table class="source_code">
2965
+ <tr>
2966
+ <td>
2967
+ <pre class="lines">
2968
+
2969
+
2970
+ 18</pre>
2971
+ </td>
2972
+ <td>
2973
+ <pre class="code"><span class="info file"># File 'lib/cw/book.rb', line 18</span>
2974
+
2975
+ <span class='kw'>def</span> <span class='id identifier rubyid_sentence'>sentence</span> <span class='semicolon'>;</span> <span class='ivar'>@sentence</span> <span class='op'>||=</span> <span class='const'>Sentence</span><span class='period'>.</span><span class='id identifier rubyid_new'>new</span> <span class='semicolon'>;</span> <span class='kw'>end</span></pre>
2976
+ </td>
2977
+ </tr>
2978
+ </table>
2979
+ </div>
2980
+
2981
+ <div class="method_details ">
2982
+ <h3 class="signature " id="sentence_index-instance_method">
2983
+
2984
+ - (<tt>Object</tt>) <strong>sentence_index</strong>
2985
+
2986
+
2987
+
2988
+
2989
+
2990
+ </h3><table class="source_code">
2991
+ <tr>
2992
+ <td>
2993
+ <pre class="lines">
2994
+
2995
+
2996
+ 28</pre>
2997
+ </td>
2998
+ <td>
2999
+ <pre class="code"><span class="info file"># File 'lib/cw/book.rb', line 28</span>
3000
+
3001
+ <span class='kw'>def</span> <span class='id identifier rubyid_sentence_index'>sentence_index</span> <span class='semicolon'>;</span> <span class='id identifier rubyid_sentence'>sentence</span><span class='period'>.</span><span class='id identifier rubyid_index'>index</span> <span class='semicolon'>;</span> <span class='kw'>end</span></pre>
3002
+ </td>
3003
+ </tr>
3004
+ </table>
3005
+ </div>
3006
+
3007
+ <div class="method_details ">
3008
+ <h3 class="signature " id="sentence_index_current?-instance_method">
3009
+
3010
+ - (<tt>Boolean</tt>) <strong>sentence_index_current?</strong>
3011
+
3012
+
3013
+
3014
+
3015
+
3016
+ </h3><div class="docstring">
3017
+ <div class="discussion">
3018
+
3019
+
3020
+ </div>
3021
+ </div>
3022
+ <div class="tags">
3023
+
3024
+ <p class="tag_title">Returns:</p>
3025
+ <ul class="return">
3026
+
3027
+ <li>
3028
+
3029
+
3030
+ <span class='type'>(<tt>Boolean</tt>)</span>
3031
+
3032
+
3033
+
3034
+ </li>
3035
+
3036
+ </ul>
3037
+
3038
+ </div><table class="source_code">
3039
+ <tr>
3040
+ <td>
3041
+ <pre class="lines">
3042
+
3043
+
3044
+ 181
3045
+ 182
3046
+ 183</pre>
3047
+ </td>
3048
+ <td>
3049
+ <pre class="code"><span class="info file"># File 'lib/cw/book.rb', line 181</span>
3050
+
3051
+ <span class='kw'>def</span> <span class='id identifier rubyid_sentence_index_current?'>sentence_index_current?</span>
3052
+ <span class='ivar'>@current_sentence_index</span> <span class='op'>&amp;&amp;</span> <span class='lparen'>(</span><span class='ivar'>@current_sentence_index</span> <span class='op'>==</span> <span class='id identifier rubyid_sentence_index'>sentence_index</span><span class='rparen'>)</span>
3053
+ <span class='kw'>end</span></pre>
3054
+ </td>
3055
+ </tr>
3056
+ </table>
3057
+ </div>
3058
+
3059
+ <div class="method_details ">
3060
+ <h3 class="signature " id="thread_processes-instance_method">
3061
+
3062
+ - (<tt>Object</tt>) <strong>thread_processes</strong>
3063
+
3064
+
3065
+
3066
+
3067
+
3068
+ </h3><table class="source_code">
3069
+ <tr>
3070
+ <td>
3071
+ <pre class="lines">
3072
+
3073
+
3074
+ 233
3075
+ 234
3076
+ 235
3077
+ 236
3078
+ 237</pre>
3079
+ </td>
3080
+ <td>
3081
+ <pre class="code"><span class="info file"># File 'lib/cw/book.rb', line 233</span>
3082
+
3083
+ <span class='kw'>def</span> <span class='id identifier rubyid_thread_processes'>thread_processes</span>
3084
+ <span class='lbracket'>[</span><span class='symbol'>:monitor_keys_thread</span><span class='comma'>,</span>
3085
+ <span class='symbol'>:play_sentences_thread</span><span class='comma'>,</span>
3086
+ <span class='symbol'>:print_sentences_thread</span><span class='rbracket'>]</span>
3087
+ <span class='kw'>end</span></pre>
3088
+ </td>
3089
+ </tr>
3090
+ </table>
3091
+ </div>
3092
+
3093
+ <div class="method_details ">
3094
+ <h3 class="signature " id="write_book_progress-instance_method">
3095
+
3096
+ - (<tt>Object</tt>) <strong>write_book_progress</strong>
3097
+
3098
+
3099
+
3100
+
3101
+
3102
+ </h3><table class="source_code">
3103
+ <tr>
3104
+ <td>
3105
+ <pre class="lines">
3106
+
3107
+
3108
+ 61
3109
+ 62
3110
+ 63</pre>
3111
+ </td>
3112
+ <td>
3113
+ <pre class="code"><span class="info file"># File 'lib/cw/book.rb', line 61</span>
3114
+
3115
+ <span class='kw'>def</span> <span class='id identifier rubyid_write_book_progress'>write_book_progress</span>
3116
+ <span class='id identifier rubyid_sentence'>sentence</span><span class='period'>.</span><span class='id identifier rubyid_write_progress'>write_progress</span> <span class='id identifier rubyid_progress_file'>progress_file</span>
3117
+ <span class='kw'>end</span></pre>
3118
+ </td>
3119
+ </tr>
3120
+ </table>
3121
+ </div>
3122
+
3123
+ </div>
3124
+
3125
+ </div>
3126
+
3127
+ <div id="footer">
3128
+ Generated on Mon May 23 21:20:16 2016 by
3129
+ <a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
3130
+ 0.8.7.6 (ruby-2.2.0).
3131
+ </div>
3132
+
3133
+ </body>
3134
+ </html>