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,1457 @@
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: Sentence
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#!Sentence.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 (S)</a> &raquo;
35
+
36
+
37
+ <span class="title">Sentence</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: Sentence
67
+
68
+
69
+
70
+ </h1>
71
+
72
+ <dl class="box">
73
+
74
+ <dt class="r1">Inherits:</dt>
75
+ <dd class="r1">
76
+ <span class="inheritName">Object</span>
77
+
78
+ <ul class="fullTree">
79
+ <li>Object</li>
80
+
81
+ <li class="next">Sentence</li>
82
+
83
+ </ul>
84
+ <a href="#" class="inheritanceTree">show all</a>
85
+
86
+ </dd>
87
+
88
+
89
+
90
+
91
+
92
+
93
+
94
+
95
+
96
+ <dt class="r2 last">Defined in:</dt>
97
+ <dd class="r2 last">lib/cw/sentence.rb</dd>
98
+
99
+ </dl>
100
+ <div class="clear"></div>
101
+
102
+
103
+
104
+
105
+
106
+ <h2>Instance Attribute Summary <small>(<a href="#" class="summary_toggle">collapse</a>)</small></h2>
107
+ <ul class="summary">
108
+
109
+ <li class="public ">
110
+ <span class="summary_signature">
111
+
112
+ <a href="#index-instance_method" title="#index (instance method)">- (Object) <strong>index</strong> </a>
113
+
114
+
115
+
116
+ </span>
117
+
118
+
119
+
120
+
121
+
122
+
123
+
124
+
125
+
126
+
127
+
128
+
129
+ <span class="summary_desc"><div class='inline'>
130
+ <p>todo.</p>
131
+ </div></span>
132
+
133
+ </li>
134
+
135
+
136
+ </ul>
137
+
138
+
139
+
140
+
141
+
142
+ <h2>
143
+ Instance Method Summary
144
+ <small>(<a href="#" class="summary_toggle">collapse</a>)</small>
145
+ </h2>
146
+
147
+ <ul class="summary">
148
+
149
+ <li class="public ">
150
+ <span class="summary_signature">
151
+
152
+ <a href="#all-instance_method" title="#all (instance method)">- (Object) <strong>all</strong> </a>
153
+
154
+
155
+
156
+ </span>
157
+
158
+
159
+
160
+
161
+
162
+
163
+
164
+
165
+
166
+ <span class="summary_desc"><div class='inline'></div></span>
167
+
168
+ </li>
169
+
170
+
171
+ <li class="public ">
172
+ <span class="summary_signature">
173
+
174
+ <a href="#change-instance_method" title="#change (instance method)">- (Object) <strong>change</strong> </a>
175
+
176
+
177
+
178
+ </span>
179
+
180
+
181
+
182
+
183
+
184
+
185
+
186
+
187
+
188
+ <span class="summary_desc"><div class='inline'></div></span>
189
+
190
+ </li>
191
+
192
+
193
+ <li class="public ">
194
+ <span class="summary_signature">
195
+
196
+ <a href="#change%3F-instance_method" title="#change? (instance method)">- (Boolean) <strong>change?</strong> </a>
197
+
198
+
199
+
200
+ </span>
201
+
202
+
203
+
204
+
205
+
206
+
207
+
208
+
209
+
210
+ <span class="summary_desc"><div class='inline'></div></span>
211
+
212
+ </li>
213
+
214
+
215
+ <li class="public ">
216
+ <span class="summary_signature">
217
+
218
+ <a href="#change_or_repeat%3F-instance_method" title="#change_or_repeat? (instance method)">- (Boolean) <strong>change_or_repeat?</strong> </a>
219
+
220
+
221
+
222
+ </span>
223
+
224
+
225
+
226
+
227
+
228
+
229
+
230
+
231
+
232
+ <span class="summary_desc"><div class='inline'></div></span>
233
+
234
+ </li>
235
+
236
+
237
+ <li class="public ">
238
+ <span class="summary_signature">
239
+
240
+ <a href="#check_sentence_navigation-instance_method" title="#check_sentence_navigation (instance method)">- (Object) <strong>check_sentence_navigation</strong>(chr) </a>
241
+
242
+
243
+
244
+ </span>
245
+
246
+
247
+
248
+
249
+
250
+
251
+
252
+
253
+
254
+ <span class="summary_desc"><div class='inline'></div></span>
255
+
256
+ </li>
257
+
258
+
259
+ <li class="public ">
260
+ <span class="summary_signature">
261
+
262
+ <a href="#current-instance_method" title="#current (instance method)">- (Object) <strong>current</strong> </a>
263
+
264
+
265
+
266
+ </span>
267
+
268
+
269
+
270
+
271
+
272
+
273
+
274
+
275
+
276
+ <span class="summary_desc"><div class='inline'></div></span>
277
+
278
+ </li>
279
+
280
+
281
+ <li class="public ">
282
+ <span class="summary_signature">
283
+
284
+ <a href="#cw_chars-instance_method" title="#cw_chars (instance method)">- (Object) <strong>cw_chars</strong>(chr) </a>
285
+
286
+
287
+
288
+ </span>
289
+
290
+
291
+
292
+
293
+
294
+
295
+
296
+
297
+
298
+ <span class="summary_desc"><div class='inline'></div></span>
299
+
300
+ </li>
301
+
302
+
303
+ <li class="public ">
304
+ <span class="summary_signature">
305
+
306
+ <a href="#exclude_non_cw_chars-instance_method" title="#exclude_non_cw_chars (instance method)">- (Object) <strong>exclude_non_cw_chars</strong>(word) </a>
307
+
308
+
309
+
310
+ </span>
311
+
312
+
313
+
314
+
315
+
316
+
317
+
318
+
319
+
320
+ <span class="summary_desc"><div class='inline'></div></span>
321
+
322
+ </li>
323
+
324
+
325
+ <li class="public ">
326
+ <span class="summary_signature">
327
+
328
+ <a href="#find_all-instance_method" title="#find_all (instance method)">- (Object) <strong>find_all</strong> </a>
329
+
330
+
331
+
332
+ </span>
333
+
334
+
335
+
336
+
337
+
338
+
339
+
340
+
341
+
342
+ <span class="summary_desc"><div class='inline'></div></span>
343
+
344
+ </li>
345
+
346
+
347
+ <li class="public ">
348
+ <span class="summary_signature">
349
+
350
+ <a href="#forward-instance_method" title="#forward (instance method)">- (Object) <strong>forward</strong> </a>
351
+
352
+
353
+
354
+ </span>
355
+
356
+
357
+
358
+
359
+
360
+
361
+
362
+
363
+
364
+ <span class="summary_desc"><div class='inline'></div></span>
365
+
366
+ </li>
367
+
368
+
369
+ <li class="public ">
370
+ <span class="summary_signature">
371
+
372
+ <a href="#next-instance_method" title="#next (instance method)">- (Object) <strong>next</strong> </a>
373
+
374
+
375
+
376
+ </span>
377
+
378
+
379
+
380
+
381
+
382
+
383
+
384
+
385
+
386
+ <span class="summary_desc"><div class='inline'></div></span>
387
+
388
+ </li>
389
+
390
+
391
+ <li class="public ">
392
+ <span class="summary_signature">
393
+
394
+ <a href="#next%3F-instance_method" title="#next? (instance method)">- (Boolean) <strong>next?</strong> </a>
395
+
396
+
397
+
398
+ </span>
399
+
400
+
401
+
402
+
403
+
404
+
405
+
406
+
407
+
408
+ <span class="summary_desc"><div class='inline'></div></span>
409
+
410
+ </li>
411
+
412
+
413
+ <li class="public ">
414
+ <span class="summary_signature">
415
+
416
+ <a href="#next_sentence-instance_method" title="#next_sentence (instance method)">- (Object) <strong>next_sentence</strong> </a>
417
+
418
+
419
+
420
+ </span>
421
+
422
+
423
+
424
+
425
+
426
+
427
+
428
+
429
+
430
+ <span class="summary_desc"><div class='inline'></div></span>
431
+
432
+ </li>
433
+
434
+
435
+ <li class="public ">
436
+ <span class="summary_signature">
437
+
438
+ <a href="#previous%3F-instance_method" title="#previous? (instance method)">- (Boolean) <strong>previous?</strong> </a>
439
+
440
+
441
+
442
+ </span>
443
+
444
+
445
+
446
+
447
+
448
+
449
+
450
+
451
+
452
+ <span class="summary_desc"><div class='inline'></div></span>
453
+
454
+ </li>
455
+
456
+
457
+ <li class="public ">
458
+ <span class="summary_signature">
459
+
460
+ <a href="#read_book-instance_method" title="#read_book (instance method)">- (Object) <strong>read_book</strong>(book) </a>
461
+
462
+
463
+
464
+ </span>
465
+
466
+
467
+
468
+
469
+
470
+
471
+
472
+
473
+
474
+ <span class="summary_desc"><div class='inline'></div></span>
475
+
476
+ </li>
477
+
478
+
479
+ <li class="public ">
480
+ <span class="summary_signature">
481
+
482
+ <a href="#read_progress-instance_method" title="#read_progress (instance method)">- (Object) <strong>read_progress</strong>(progress_file) </a>
483
+
484
+
485
+
486
+ </span>
487
+
488
+
489
+
490
+
491
+
492
+
493
+
494
+
495
+
496
+ <span class="summary_desc"><div class='inline'></div></span>
497
+
498
+ </li>
499
+
500
+
501
+ <li class="public ">
502
+ <span class="summary_signature">
503
+
504
+ <a href="#repeat%3F-instance_method" title="#repeat? (instance method)">- (Boolean) <strong>repeat?</strong> </a>
505
+
506
+
507
+
508
+ </span>
509
+
510
+
511
+
512
+
513
+
514
+
515
+
516
+
517
+
518
+ <span class="summary_desc"><div class='inline'></div></span>
519
+
520
+ </li>
521
+
522
+
523
+ <li class="public ">
524
+ <span class="summary_signature">
525
+
526
+ <a href="#reset_flags-instance_method" title="#reset_flags (instance method)">- (Object) <strong>reset_flags</strong> </a>
527
+
528
+
529
+
530
+ </span>
531
+
532
+
533
+
534
+
535
+
536
+
537
+
538
+
539
+
540
+ <span class="summary_desc"><div class='inline'></div></span>
541
+
542
+ </li>
543
+
544
+
545
+ <li class="public ">
546
+ <span class="summary_signature">
547
+
548
+ <a href="#rewind-instance_method" title="#rewind (instance method)">- (Object) <strong>rewind</strong> </a>
549
+
550
+
551
+
552
+ </span>
553
+
554
+
555
+
556
+
557
+
558
+
559
+
560
+
561
+
562
+ <span class="summary_desc"><div class='inline'></div></span>
563
+
564
+ </li>
565
+
566
+
567
+ <li class="public ">
568
+ <span class="summary_signature">
569
+
570
+ <a href="#text-instance_method" title="#text (instance method)">- (Object) <strong>text</strong> </a>
571
+
572
+
573
+
574
+ </span>
575
+
576
+
577
+
578
+
579
+
580
+
581
+
582
+
583
+
584
+ <span class="summary_desc"><div class='inline'></div></span>
585
+
586
+ </li>
587
+
588
+
589
+ <li class="public ">
590
+ <span class="summary_signature">
591
+
592
+ <a href="#to_array-instance_method" title="#to_array (instance method)">- (Object) <strong>to_array</strong> </a>
593
+
594
+
595
+
596
+ </span>
597
+
598
+
599
+
600
+
601
+
602
+
603
+
604
+
605
+
606
+ <span class="summary_desc"><div class='inline'></div></span>
607
+
608
+ </li>
609
+
610
+
611
+ <li class="public ">
612
+ <span class="summary_signature">
613
+
614
+ <a href="#write_progress-instance_method" title="#write_progress (instance method)">- (Object) <strong>write_progress</strong>(progress_file) </a>
615
+
616
+
617
+
618
+ </span>
619
+
620
+
621
+
622
+
623
+
624
+
625
+
626
+
627
+
628
+ <span class="summary_desc"><div class='inline'></div></span>
629
+
630
+ </li>
631
+
632
+
633
+ </ul>
634
+
635
+
636
+
637
+ <div id="instance_attr_details" class="attr_details">
638
+ <h2>Instance Attribute Details</h2>
639
+
640
+
641
+ <span id="index=-instance_method"></span>
642
+ <div class="method_details first">
643
+ <h3 class="signature first" id="index-instance_method">
644
+
645
+ - (<tt>Object</tt>) <strong>index</strong>
646
+
647
+
648
+
649
+
650
+
651
+ </h3><div class="docstring">
652
+ <div class="discussion">
653
+
654
+ <p>todo</p>
655
+
656
+
657
+ </div>
658
+ </div>
659
+ <div class="tags">
660
+
661
+
662
+ </div><table class="source_code">
663
+ <tr>
664
+ <td>
665
+ <pre class="lines">
666
+
667
+
668
+ 5
669
+ 6
670
+ 7</pre>
671
+ </td>
672
+ <td>
673
+ <pre class="code"><span class="info file"># File 'lib/cw/sentence.rb', line 5</span>
674
+
675
+ <span class='kw'>def</span> <span class='id identifier rubyid_index'>index</span>
676
+ <span class='ivar'>@index</span>
677
+ <span class='kw'>end</span></pre>
678
+ </td>
679
+ </tr>
680
+ </table>
681
+ </div>
682
+
683
+ </div>
684
+
685
+
686
+ <div id="instance_method_details" class="method_details_list">
687
+ <h2>Instance Method Details</h2>
688
+
689
+
690
+ <div class="method_details first">
691
+ <h3 class="signature first" id="all-instance_method">
692
+
693
+ - (<tt>Object</tt>) <strong>all</strong>
694
+
695
+
696
+
697
+
698
+
699
+ </h3><table class="source_code">
700
+ <tr>
701
+ <td>
702
+ <pre class="lines">
703
+
704
+
705
+ 8</pre>
706
+ </td>
707
+ <td>
708
+ <pre class="code"><span class="info file"># File 'lib/cw/sentence.rb', line 8</span>
709
+
710
+ <span class='kw'>def</span> <span class='id identifier rubyid_all'>all</span> <span class='semicolon'>;</span> <span class='ivar'>@sentences</span> <span class='semicolon'>;</span> <span class='kw'>end</span></pre>
711
+ </td>
712
+ </tr>
713
+ </table>
714
+ </div>
715
+
716
+ <div class="method_details ">
717
+ <h3 class="signature " id="change-instance_method">
718
+
719
+ - (<tt>Object</tt>) <strong>change</strong>
720
+
721
+
722
+
723
+
724
+
725
+ </h3><table class="source_code">
726
+ <tr>
727
+ <td>
728
+ <pre class="lines">
729
+
730
+
731
+ 19
732
+ 20
733
+ 21
734
+ 22</pre>
735
+ </td>
736
+ <td>
737
+ <pre class="code"><span class="info file"># File 'lib/cw/sentence.rb', line 19</span>
738
+
739
+ <span class='kw'>def</span> <span class='id identifier rubyid_change'>change</span>
740
+ <span class='id identifier rubyid_forward'>forward</span> <span class='kw'>if</span> <span class='id identifier rubyid_next?'>next?</span>
741
+ <span class='id identifier rubyid_rewind'>rewind</span> <span class='kw'>if</span> <span class='id identifier rubyid_previous?'>previous?</span>
742
+ <span class='kw'>end</span></pre>
743
+ </td>
744
+ </tr>
745
+ </table>
746
+ </div>
747
+
748
+ <div class="method_details ">
749
+ <h3 class="signature " id="change?-instance_method">
750
+
751
+ - (<tt>Boolean</tt>) <strong>change?</strong>
752
+
753
+
754
+
755
+
756
+
757
+ </h3><div class="docstring">
758
+ <div class="discussion">
759
+
760
+
761
+ </div>
762
+ </div>
763
+ <div class="tags">
764
+
765
+ <p class="tag_title">Returns:</p>
766
+ <ul class="return">
767
+
768
+ <li>
769
+
770
+
771
+ <span class='type'>(<tt>Boolean</tt>)</span>
772
+
773
+
774
+
775
+ </li>
776
+
777
+ </ul>
778
+
779
+ </div><table class="source_code">
780
+ <tr>
781
+ <td>
782
+ <pre class="lines">
783
+
784
+
785
+ 14</pre>
786
+ </td>
787
+ <td>
788
+ <pre class="code"><span class="info file"># File 'lib/cw/sentence.rb', line 14</span>
789
+
790
+ <span class='kw'>def</span> <span class='id identifier rubyid_change?'>change?</span> <span class='semicolon'>;</span> <span class='id identifier rubyid_next?'>next?</span> <span class='op'>||</span> <span class='id identifier rubyid_previous?'>previous?</span> <span class='semicolon'>;</span> <span class='kw'>end</span></pre>
791
+ </td>
792
+ </tr>
793
+ </table>
794
+ </div>
795
+
796
+ <div class="method_details ">
797
+ <h3 class="signature " id="change_or_repeat?-instance_method">
798
+
799
+ - (<tt>Boolean</tt>) <strong>change_or_repeat?</strong>
800
+
801
+
802
+
803
+
804
+
805
+ </h3><div class="docstring">
806
+ <div class="discussion">
807
+
808
+
809
+ </div>
810
+ </div>
811
+ <div class="tags">
812
+
813
+ <p class="tag_title">Returns:</p>
814
+ <ul class="return">
815
+
816
+ <li>
817
+
818
+
819
+ <span class='type'>(<tt>Boolean</tt>)</span>
820
+
821
+
822
+
823
+ </li>
824
+
825
+ </ul>
826
+
827
+ </div><table class="source_code">
828
+ <tr>
829
+ <td>
830
+ <pre class="lines">
831
+
832
+
833
+ 15</pre>
834
+ </td>
835
+ <td>
836
+ <pre class="code"><span class="info file"># File 'lib/cw/sentence.rb', line 15</span>
837
+
838
+ <span class='kw'>def</span> <span class='id identifier rubyid_change_or_repeat?'>change_or_repeat?</span> <span class='semicolon'>;</span> <span class='id identifier rubyid_change?'>change?</span> <span class='op'>||</span> <span class='id identifier rubyid_repeat?'>repeat?</span> <span class='semicolon'>;</span> <span class='kw'>end</span></pre>
839
+ </td>
840
+ </tr>
841
+ </table>
842
+ </div>
843
+
844
+ <div class="method_details ">
845
+ <h3 class="signature " id="check_sentence_navigation-instance_method">
846
+
847
+ - (<tt>Object</tt>) <strong>check_sentence_navigation</strong>(chr)
848
+
849
+
850
+
851
+
852
+
853
+ </h3><table class="source_code">
854
+ <tr>
855
+ <td>
856
+ <pre class="lines">
857
+
858
+
859
+ 63
860
+ 64
861
+ 65
862
+ 66
863
+ 67</pre>
864
+ </td>
865
+ <td>
866
+ <pre class="code"><span class="info file"># File 'lib/cw/sentence.rb', line 63</span>
867
+
868
+ <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>
869
+ <span class='ivar'>@next</span> <span class='op'>=</span> <span class='kw'>true</span> <span class='kw'>if</span><span class='lparen'>(</span><span class='id identifier rubyid_chr'>chr</span> <span class='op'>==</span> <span class='tstring'><span class='tstring_beg'>&#39;</span><span class='tstring_content'>]</span><span class='tstring_end'>&#39;</span></span><span class='rparen'>)</span>
870
+ <span class='ivar'>@previous</span> <span class='op'>=</span> <span class='kw'>true</span> <span class='kw'>if</span><span class='lparen'>(</span><span class='id identifier rubyid_chr'>chr</span> <span class='op'>==</span> <span class='tstring'><span class='tstring_beg'>&#39;</span><span class='tstring_content'>[</span><span class='tstring_end'>&#39;</span></span><span class='rparen'>)</span>
871
+ <span class='ivar'>@repeat</span> <span class='op'>=</span> <span class='kw'>true</span> <span class='kw'>if</span><span class='lparen'>(</span><span class='id identifier rubyid_chr'>chr</span> <span class='op'>==</span> <span class='tstring'><span class='tstring_beg'>&#39;</span><span class='tstring_content'>-</span><span class='tstring_end'>&#39;</span></span><span class='rparen'>)</span>
872
+ <span class='kw'>end</span></pre>
873
+ </td>
874
+ </tr>
875
+ </table>
876
+ </div>
877
+
878
+ <div class="method_details ">
879
+ <h3 class="signature " id="current-instance_method">
880
+
881
+ - (<tt>Object</tt>) <strong>current</strong>
882
+
883
+
884
+
885
+
886
+
887
+ </h3><table class="source_code">
888
+ <tr>
889
+ <td>
890
+ <pre class="lines">
891
+
892
+
893
+ 16</pre>
894
+ </td>
895
+ <td>
896
+ <pre class="code"><span class="info file"># File 'lib/cw/sentence.rb', line 16</span>
897
+
898
+ <span class='kw'>def</span> <span class='id identifier rubyid_current'>current</span> <span class='semicolon'>;</span> <span class='ivar'>@sentences</span><span class='lbracket'>[</span><span class='ivar'>@index</span><span class='rbracket'>]</span> <span class='semicolon'>;</span> <span class='kw'>end</span></pre>
899
+ </td>
900
+ </tr>
901
+ </table>
902
+ </div>
903
+
904
+ <div class="method_details ">
905
+ <h3 class="signature " id="cw_chars-instance_method">
906
+
907
+ - (<tt>Object</tt>) <strong>cw_chars</strong>(chr)
908
+
909
+
910
+
911
+
912
+
913
+ </h3><table class="source_code">
914
+ <tr>
915
+ <td>
916
+ <pre class="lines">
917
+
918
+
919
+ 40
920
+ 41
921
+ 42</pre>
922
+ </td>
923
+ <td>
924
+ <pre class="code"><span class="info file"># File 'lib/cw/sentence.rb', line 40</span>
925
+
926
+ <span class='kw'>def</span> <span class='id identifier rubyid_cw_chars'>cw_chars</span> <span class='id identifier rubyid_chr'>chr</span>
927
+ <span class='id identifier rubyid_chr'>chr</span><span class='period'>.</span><span class='id identifier rubyid_tr'>tr</span><span class='lparen'>(</span><span class='tstring'><span class='tstring_beg'>&#39;</span><span class='tstring_content'>^a-z0-9\,\=\!\/\?\.</span><span class='tstring_end'>&#39;</span></span><span class='comma'>,</span> <span class='tstring'><span class='tstring_beg'>&#39;</span><span class='tstring_end'>&#39;</span></span><span class='rparen'>)</span>
928
+ <span class='kw'>end</span></pre>
929
+ </td>
930
+ </tr>
931
+ </table>
932
+ </div>
933
+
934
+ <div class="method_details ">
935
+ <h3 class="signature " id="exclude_non_cw_chars-instance_method">
936
+
937
+ - (<tt>Object</tt>) <strong>exclude_non_cw_chars</strong>(word)
938
+
939
+
940
+
941
+
942
+
943
+ </h3><table class="source_code">
944
+ <tr>
945
+ <td>
946
+ <pre class="lines">
947
+
948
+
949
+ 44
950
+ 45
951
+ 46</pre>
952
+ </td>
953
+ <td>
954
+ <pre class="code"><span class="info file"># File 'lib/cw/sentence.rb', line 44</span>
955
+
956
+ <span class='kw'>def</span> <span class='id identifier rubyid_exclude_non_cw_chars'>exclude_non_cw_chars</span> <span class='id identifier rubyid_word'>word</span>
957
+ <span class='id identifier rubyid_cw_chars'>cw_chars</span><span class='lparen'>(</span><span class='id identifier rubyid_word'>word</span><span class='rparen'>)</span>
958
+ <span class='kw'>end</span></pre>
959
+ </td>
960
+ </tr>
961
+ </table>
962
+ </div>
963
+
964
+ <div class="method_details ">
965
+ <h3 class="signature " id="find_all-instance_method">
966
+
967
+ - (<tt>Object</tt>) <strong>find_all</strong>
968
+
969
+
970
+
971
+
972
+
973
+ </h3><table class="source_code">
974
+ <tr>
975
+ <td>
976
+ <pre class="lines">
977
+
978
+
979
+ 48
980
+ 49
981
+ 50
982
+ 51
983
+ 52
984
+ 53
985
+ 54
986
+ 55
987
+ 56
988
+ 57
989
+ 58
990
+ 59
991
+ 60
992
+ 61</pre>
993
+ </td>
994
+ <td>
995
+ <pre class="code"><span class="info file"># File 'lib/cw/sentence.rb', line 48</span>
996
+
997
+ <span class='kw'>def</span> <span class='id identifier rubyid_find_all'>find_all</span>
998
+ <span class='ivar'>@sentences</span> <span class='op'>=</span> <span class='lbracket'>[</span><span class='rbracket'>]</span>
999
+ <span class='ivar'>@text</span><span class='period'>.</span><span class='id identifier rubyid_gsub!'>gsub!</span><span class='lparen'>(</span><span class='tstring'><span class='regexp_beg'>/</span><span class='tstring_content'>\s+</span><span class='regexp_end'>/</span></span><span class='comma'>,</span> <span class='tstring'><span class='tstring_beg'>&#39;</span><span class='tstring_content'> </span><span class='tstring_end'>&#39;</span></span><span class='rparen'>)</span><span class='period'>.</span><span class='id identifier rubyid_downcase!'>downcase!</span>
1000
+ <span class='id identifier rubyid_loop'>loop</span> <span class='kw'>do</span>
1001
+ <span class='id identifier rubyid_sentence_end'>sentence_end</span> <span class='op'>=</span> <span class='ivar'>@text</span><span class='period'>.</span><span class='id identifier rubyid_index'>index</span><span class='lparen'>(</span><span class='tstring'><span class='tstring_beg'>&#39;</span><span class='tstring_content'>. </span><span class='tstring_end'>&#39;</span></span><span class='rparen'>)</span>
1002
+ <span class='kw'>unless</span> <span class='id identifier rubyid_sentence_end'>sentence_end</span>
1003
+ <span class='kw'>break</span>
1004
+ <span class='kw'>end</span>
1005
+ <span class='id identifier rubyid_line'>line</span> <span class='op'>=</span> <span class='ivar'>@text</span><span class='lbracket'>[</span><span class='int'>0</span><span class='op'>..</span><span class='id identifier rubyid_sentence_end'>sentence_end</span><span class='rbracket'>]</span>
1006
+ <span class='id identifier rubyid_line'>line</span> <span class='op'>=</span> <span class='id identifier rubyid_line'>line</span><span class='period'>.</span><span class='id identifier rubyid_split'>split</span><span class='period'>.</span><span class='id identifier rubyid_collect'>collect</span><span class='lbrace'>{</span><span class='op'>|</span><span class='id identifier rubyid_word'>word</span><span class='op'>|</span> <span class='id identifier rubyid_exclude_non_cw_chars'>exclude_non_cw_chars</span> <span class='id identifier rubyid_word'>word</span><span class='rbrace'>}</span><span class='period'>.</span><span class='id identifier rubyid_join'>join</span><span class='lparen'>(</span><span class='tstring'><span class='tstring_beg'>&#39;</span><span class='tstring_content'> </span><span class='tstring_end'>&#39;</span></span><span class='rparen'>)</span>
1007
+ <span class='ivar'>@sentences</span> <span class='op'>&lt;&lt;</span> <span class='id identifier rubyid_line'>line</span>
1008
+ <span class='ivar'>@text</span><span class='period'>.</span><span class='id identifier rubyid_replace'>replace</span> <span class='ivar'>@text</span><span class='lbracket'>[</span><span class='id identifier rubyid_sentence_end'>sentence_end</span> <span class='op'>+</span> <span class='int'>2</span><span class='op'>..</span><span class='op'>-</span><span class='int'>1</span><span class='rbracket'>]</span>
1009
+ <span class='kw'>end</span>
1010
+ <span class='kw'>end</span></pre>
1011
+ </td>
1012
+ </tr>
1013
+ </table>
1014
+ </div>
1015
+
1016
+ <div class="method_details ">
1017
+ <h3 class="signature " id="forward-instance_method">
1018
+
1019
+ - (<tt>Object</tt>) <strong>forward</strong>
1020
+
1021
+
1022
+
1023
+
1024
+
1025
+ </h3><table class="source_code">
1026
+ <tr>
1027
+ <td>
1028
+ <pre class="lines">
1029
+
1030
+
1031
+ 11</pre>
1032
+ </td>
1033
+ <td>
1034
+ <pre class="code"><span class="info file"># File 'lib/cw/sentence.rb', line 11</span>
1035
+
1036
+ <span class='kw'>def</span> <span class='id identifier rubyid_forward'>forward</span> <span class='semicolon'>;</span> <span class='ivar'>@index</span> <span class='op'>+=</span> <span class='int'>1</span> <span class='semicolon'>;</span> <span class='kw'>end</span></pre>
1037
+ </td>
1038
+ </tr>
1039
+ </table>
1040
+ </div>
1041
+
1042
+ <div class="method_details ">
1043
+ <h3 class="signature " id="next-instance_method">
1044
+
1045
+ - (<tt>Object</tt>) <strong>next</strong>
1046
+
1047
+
1048
+
1049
+
1050
+
1051
+ </h3><table class="source_code">
1052
+ <tr>
1053
+ <td>
1054
+ <pre class="lines">
1055
+
1056
+
1057
+ 9</pre>
1058
+ </td>
1059
+ <td>
1060
+ <pre class="code"><span class="info file"># File 'lib/cw/sentence.rb', line 9</span>
1061
+
1062
+ <span class='kw'>def</span> <span class='kw'>next</span> <span class='semicolon'>;</span> <span class='ivar'>@next</span> <span class='op'>=</span> <span class='kw'>true</span> <span class='semicolon'>;</span> <span class='kw'>end</span></pre>
1063
+ </td>
1064
+ </tr>
1065
+ </table>
1066
+ </div>
1067
+
1068
+ <div class="method_details ">
1069
+ <h3 class="signature " id="next?-instance_method">
1070
+
1071
+ - (<tt>Boolean</tt>) <strong>next?</strong>
1072
+
1073
+
1074
+
1075
+
1076
+
1077
+ </h3><div class="docstring">
1078
+ <div class="discussion">
1079
+
1080
+
1081
+ </div>
1082
+ </div>
1083
+ <div class="tags">
1084
+
1085
+ <p class="tag_title">Returns:</p>
1086
+ <ul class="return">
1087
+
1088
+ <li>
1089
+
1090
+
1091
+ <span class='type'>(<tt>Boolean</tt>)</span>
1092
+
1093
+
1094
+
1095
+ </li>
1096
+
1097
+ </ul>
1098
+
1099
+ </div><table class="source_code">
1100
+ <tr>
1101
+ <td>
1102
+ <pre class="lines">
1103
+
1104
+
1105
+ 10</pre>
1106
+ </td>
1107
+ <td>
1108
+ <pre class="code"><span class="info file"># File 'lib/cw/sentence.rb', line 10</span>
1109
+
1110
+ <span class='kw'>def</span> <span class='id identifier rubyid_next?'>next?</span> <span class='semicolon'>;</span> <span class='ivar'>@next</span> <span class='semicolon'>;</span> <span class='kw'>end</span></pre>
1111
+ </td>
1112
+ </tr>
1113
+ </table>
1114
+ </div>
1115
+
1116
+ <div class="method_details ">
1117
+ <h3 class="signature " id="next_sentence-instance_method">
1118
+
1119
+ - (<tt>Object</tt>) <strong>next_sentence</strong>
1120
+
1121
+
1122
+
1123
+
1124
+
1125
+ </h3><table class="source_code">
1126
+ <tr>
1127
+ <td>
1128
+ <pre class="lines">
1129
+
1130
+
1131
+ 17</pre>
1132
+ </td>
1133
+ <td>
1134
+ <pre class="code"><span class="info file"># File 'lib/cw/sentence.rb', line 17</span>
1135
+
1136
+ <span class='kw'>def</span> <span class='id identifier rubyid_next_sentence'>next_sentence</span> <span class='semicolon'>;</span> <span class='ivar'>@sentences</span><span class='lbracket'>[</span><span class='ivar'>@index</span> <span class='op'>+</span> <span class='int'>1</span><span class='rbracket'>]</span> <span class='semicolon'>;</span> <span class='kw'>end</span></pre>
1137
+ </td>
1138
+ </tr>
1139
+ </table>
1140
+ </div>
1141
+
1142
+ <div class="method_details ">
1143
+ <h3 class="signature " id="previous?-instance_method">
1144
+
1145
+ - (<tt>Boolean</tt>) <strong>previous?</strong>
1146
+
1147
+
1148
+
1149
+
1150
+
1151
+ </h3><div class="docstring">
1152
+ <div class="discussion">
1153
+
1154
+
1155
+ </div>
1156
+ </div>
1157
+ <div class="tags">
1158
+
1159
+ <p class="tag_title">Returns:</p>
1160
+ <ul class="return">
1161
+
1162
+ <li>
1163
+
1164
+
1165
+ <span class='type'>(<tt>Boolean</tt>)</span>
1166
+
1167
+
1168
+
1169
+ </li>
1170
+
1171
+ </ul>
1172
+
1173
+ </div><table class="source_code">
1174
+ <tr>
1175
+ <td>
1176
+ <pre class="lines">
1177
+
1178
+
1179
+ 12</pre>
1180
+ </td>
1181
+ <td>
1182
+ <pre class="code"><span class="info file"># File 'lib/cw/sentence.rb', line 12</span>
1183
+
1184
+ <span class='kw'>def</span> <span class='id identifier rubyid_previous?'>previous?</span> <span class='semicolon'>;</span> <span class='ivar'>@previous</span> <span class='semicolon'>;</span> <span class='kw'>end</span></pre>
1185
+ </td>
1186
+ </tr>
1187
+ </table>
1188
+ </div>
1189
+
1190
+ <div class="method_details ">
1191
+ <h3 class="signature " id="read_book-instance_method">
1192
+
1193
+ - (<tt>Object</tt>) <strong>read_book</strong>(book)
1194
+
1195
+
1196
+
1197
+
1198
+
1199
+ </h3><table class="source_code">
1200
+ <tr>
1201
+ <td>
1202
+ <pre class="lines">
1203
+
1204
+
1205
+ 36
1206
+ 37
1207
+ 38</pre>
1208
+ </td>
1209
+ <td>
1210
+ <pre class="code"><span class="info file"># File 'lib/cw/sentence.rb', line 36</span>
1211
+
1212
+ <span class='kw'>def</span> <span class='id identifier rubyid_read_book'>read_book</span> <span class='id identifier rubyid_book'>book</span>
1213
+ <span class='const'>File</span><span class='period'>.</span><span class='id identifier rubyid_open'>open</span><span class='lparen'>(</span><span class='id identifier rubyid_book'>book</span><span class='comma'>,</span> <span class='tstring'><span class='tstring_beg'>&#39;</span><span class='tstring_content'>r</span><span class='tstring_end'>&#39;</span></span><span class='rparen'>)</span> <span class='lbrace'>{</span> <span class='op'>|</span><span class='id identifier rubyid_f'>f</span><span class='op'>|</span> <span class='id identifier rubyid_text'>text</span><span class='period'>.</span><span class='id identifier rubyid_replace'>replace</span> <span class='id identifier rubyid_f'>f</span><span class='period'>.</span><span class='id identifier rubyid_readlines'>readlines</span><span class='lparen'>(</span><span class='tstring'><span class='tstring_beg'>&#39;</span><span class='tstring_content'> </span><span class='tstring_end'>&#39;</span></span><span class='rparen'>)</span><span class='period'>.</span><span class='id identifier rubyid_join'>join</span><span class='rbrace'>}</span>
1214
+ <span class='kw'>end</span></pre>
1215
+ </td>
1216
+ </tr>
1217
+ </table>
1218
+ </div>
1219
+
1220
+ <div class="method_details ">
1221
+ <h3 class="signature " id="read_progress-instance_method">
1222
+
1223
+ - (<tt>Object</tt>) <strong>read_progress</strong>(progress_file)
1224
+
1225
+
1226
+
1227
+
1228
+
1229
+ </h3><table class="source_code">
1230
+ <tr>
1231
+ <td>
1232
+ <pre class="lines">
1233
+
1234
+
1235
+ 28
1236
+ 29
1237
+ 30</pre>
1238
+ </td>
1239
+ <td>
1240
+ <pre class="code"><span class="info file"># File 'lib/cw/sentence.rb', line 28</span>
1241
+
1242
+ <span class='kw'>def</span> <span class='id identifier rubyid_read_progress'>read_progress</span> <span class='id identifier rubyid_progress_file'>progress_file</span>
1243
+ <span class='const'>File</span><span class='period'>.</span><span class='id identifier rubyid_open'>open</span><span class='lparen'>(</span><span class='id identifier rubyid_progress_file'>progress_file</span><span class='comma'>,</span> <span class='tstring'><span class='tstring_beg'>&#39;</span><span class='tstring_content'>r</span><span class='tstring_end'>&#39;</span></span><span class='rparen'>)</span> <span class='lbrace'>{</span><span class='op'>|</span><span class='id identifier rubyid_f'>f</span><span class='op'>|</span> <span class='ivar'>@index</span> <span class='op'>=</span> <span class='id identifier rubyid_f'>f</span><span class='period'>.</span><span class='id identifier rubyid_readline'>readline</span><span class='period'>.</span><span class='id identifier rubyid_to_i'>to_i</span><span class='rbrace'>}</span>
1244
+ <span class='kw'>end</span></pre>
1245
+ </td>
1246
+ </tr>
1247
+ </table>
1248
+ </div>
1249
+
1250
+ <div class="method_details ">
1251
+ <h3 class="signature " id="repeat?-instance_method">
1252
+
1253
+ - (<tt>Boolean</tt>) <strong>repeat?</strong>
1254
+
1255
+
1256
+
1257
+
1258
+
1259
+ </h3><div class="docstring">
1260
+ <div class="discussion">
1261
+
1262
+
1263
+ </div>
1264
+ </div>
1265
+ <div class="tags">
1266
+
1267
+ <p class="tag_title">Returns:</p>
1268
+ <ul class="return">
1269
+
1270
+ <li>
1271
+
1272
+
1273
+ <span class='type'>(<tt>Boolean</tt>)</span>
1274
+
1275
+
1276
+
1277
+ </li>
1278
+
1279
+ </ul>
1280
+
1281
+ </div><table class="source_code">
1282
+ <tr>
1283
+ <td>
1284
+ <pre class="lines">
1285
+
1286
+
1287
+ 13</pre>
1288
+ </td>
1289
+ <td>
1290
+ <pre class="code"><span class="info file"># File 'lib/cw/sentence.rb', line 13</span>
1291
+
1292
+ <span class='kw'>def</span> <span class='id identifier rubyid_repeat?'>repeat?</span> <span class='semicolon'>;</span> <span class='ivar'>@repeat</span> <span class='semicolon'>;</span> <span class='kw'>end</span></pre>
1293
+ </td>
1294
+ </tr>
1295
+ </table>
1296
+ </div>
1297
+
1298
+ <div class="method_details ">
1299
+ <h3 class="signature " id="reset_flags-instance_method">
1300
+
1301
+ - (<tt>Object</tt>) <strong>reset_flags</strong>
1302
+
1303
+
1304
+
1305
+
1306
+
1307
+ </h3><table class="source_code">
1308
+ <tr>
1309
+ <td>
1310
+ <pre class="lines">
1311
+
1312
+
1313
+ 69
1314
+ 70
1315
+ 71</pre>
1316
+ </td>
1317
+ <td>
1318
+ <pre class="code"><span class="info file"># File 'lib/cw/sentence.rb', line 69</span>
1319
+
1320
+ <span class='kw'>def</span> <span class='id identifier rubyid_reset_flags'>reset_flags</span>
1321
+ <span class='ivar'>@next</span> <span class='op'>=</span> <span class='ivar'>@previous</span> <span class='op'>=</span> <span class='ivar'>@repeat</span> <span class='op'>=</span> <span class='kw'>nil</span>
1322
+ <span class='kw'>end</span></pre>
1323
+ </td>
1324
+ </tr>
1325
+ </table>
1326
+ </div>
1327
+
1328
+ <div class="method_details ">
1329
+ <h3 class="signature " id="rewind-instance_method">
1330
+
1331
+ - (<tt>Object</tt>) <strong>rewind</strong>
1332
+
1333
+
1334
+
1335
+
1336
+
1337
+ </h3><table class="source_code">
1338
+ <tr>
1339
+ <td>
1340
+ <pre class="lines">
1341
+
1342
+
1343
+ 24
1344
+ 25
1345
+ 26</pre>
1346
+ </td>
1347
+ <td>
1348
+ <pre class="code"><span class="info file"># File 'lib/cw/sentence.rb', line 24</span>
1349
+
1350
+ <span class='kw'>def</span> <span class='id identifier rubyid_rewind'>rewind</span>
1351
+ <span class='ivar'>@index</span> <span class='op'>=</span> <span class='ivar'>@index</span> <span class='op'>&lt;=</span> <span class='int'>1</span> <span class='op'>?</span> <span class='int'>0</span> <span class='op'>:</span> <span class='ivar'>@index</span> <span class='op'>-</span> <span class='int'>1</span>
1352
+ <span class='kw'>end</span></pre>
1353
+ </td>
1354
+ </tr>
1355
+ </table>
1356
+ </div>
1357
+
1358
+ <div class="method_details ">
1359
+ <h3 class="signature " id="text-instance_method">
1360
+
1361
+ - (<tt>Object</tt>) <strong>text</strong>
1362
+
1363
+
1364
+
1365
+
1366
+
1367
+ </h3><table class="source_code">
1368
+ <tr>
1369
+ <td>
1370
+ <pre class="lines">
1371
+
1372
+
1373
+ 7</pre>
1374
+ </td>
1375
+ <td>
1376
+ <pre class="code"><span class="info file"># File 'lib/cw/sentence.rb', line 7</span>
1377
+
1378
+ <span class='kw'>def</span> <span class='id identifier rubyid_text'>text</span> <span class='semicolon'>;</span> <span class='ivar'>@text</span> <span class='op'>||=</span> <span class='const'>String</span><span class='period'>.</span><span class='id identifier rubyid_new'>new</span> <span class='semicolon'>;</span> <span class='kw'>end</span></pre>
1379
+ </td>
1380
+ </tr>
1381
+ </table>
1382
+ </div>
1383
+
1384
+ <div class="method_details ">
1385
+ <h3 class="signature " id="to_array-instance_method">
1386
+
1387
+ - (<tt>Object</tt>) <strong>to_array</strong>
1388
+
1389
+
1390
+
1391
+
1392
+
1393
+ </h3><table class="source_code">
1394
+ <tr>
1395
+ <td>
1396
+ <pre class="lines">
1397
+
1398
+
1399
+ 73
1400
+ 74
1401
+ 75
1402
+ 76</pre>
1403
+ </td>
1404
+ <td>
1405
+ <pre class="code"><span class="info file"># File 'lib/cw/sentence.rb', line 73</span>
1406
+
1407
+ <span class='kw'>def</span> <span class='id identifier rubyid_to_array'>to_array</span>
1408
+ <span class='id identifier rubyid_array'>array</span> <span class='op'>=</span> <span class='ivar'>@sentences</span><span class='lbracket'>[</span><span class='ivar'>@index</span><span class='rbracket'>]</span><span class='period'>.</span><span class='id identifier rubyid_split'>split</span><span class='lparen'>(</span><span class='tstring'><span class='tstring_beg'>&#39;</span><span class='tstring_content'> </span><span class='tstring_end'>&#39;</span></span><span class='rparen'>)</span>
1409
+ <span class='id identifier rubyid_array'>array</span><span class='period'>.</span><span class='id identifier rubyid_collect'>collect</span> <span class='lbrace'>{</span><span class='op'>|</span><span class='id identifier rubyid_x'>x</span><span class='op'>|</span> <span class='id identifier rubyid_x'>x</span> <span class='op'>+</span> <span class='tstring'><span class='tstring_beg'>&#39;</span><span class='tstring_content'> </span><span class='tstring_end'>&#39;</span></span><span class='rbrace'>}</span>
1410
+ <span class='kw'>end</span></pre>
1411
+ </td>
1412
+ </tr>
1413
+ </table>
1414
+ </div>
1415
+
1416
+ <div class="method_details ">
1417
+ <h3 class="signature " id="write_progress-instance_method">
1418
+
1419
+ - (<tt>Object</tt>) <strong>write_progress</strong>(progress_file)
1420
+
1421
+
1422
+
1423
+
1424
+
1425
+ </h3><table class="source_code">
1426
+ <tr>
1427
+ <td>
1428
+ <pre class="lines">
1429
+
1430
+
1431
+ 32
1432
+ 33
1433
+ 34</pre>
1434
+ </td>
1435
+ <td>
1436
+ <pre class="code"><span class="info file"># File 'lib/cw/sentence.rb', line 32</span>
1437
+
1438
+ <span class='kw'>def</span> <span class='id identifier rubyid_write_progress'>write_progress</span> <span class='id identifier rubyid_progress_file'>progress_file</span>
1439
+ <span class='const'>File</span><span class='period'>.</span><span class='id identifier rubyid_open'>open</span><span class='lparen'>(</span><span class='id identifier rubyid_progress_file'>progress_file</span><span class='comma'>,</span> <span class='tstring'><span class='tstring_beg'>&#39;</span><span class='tstring_content'>w</span><span class='tstring_end'>&#39;</span></span><span class='rparen'>)</span> <span class='lbrace'>{</span><span class='op'>|</span><span class='id identifier rubyid_f'>f</span><span class='op'>|</span> <span class='id identifier rubyid_f'>f</span><span class='period'>.</span><span class='id identifier rubyid_puts'>puts</span> <span class='ivar'>@index</span><span class='period'>.</span><span class='id identifier rubyid_to_s'>to_s</span><span class='rbrace'>}</span>
1440
+ <span class='kw'>end</span></pre>
1441
+ </td>
1442
+ </tr>
1443
+ </table>
1444
+ </div>
1445
+
1446
+ </div>
1447
+
1448
+ </div>
1449
+
1450
+ <div id="footer">
1451
+ Generated on Mon May 23 21:20:17 2016 by
1452
+ <a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
1453
+ 0.8.7.6 (ruby-2.2.0).
1454
+ </div>
1455
+
1456
+ </body>
1457
+ </html>