cw 0.0.8 → 0.0.9

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
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,586 @@
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: TestLetters
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#!TestLetters.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 (T)</a> &raquo;
35
+
36
+
37
+ <span class="title">TestLetters</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: TestLetters
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">TestLetters</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/test_letters.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="#build_word_maybe-instance_method" title="#build_word_maybe (instance method)">- (Object) <strong>build_word_maybe</strong> </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="#initialize-instance_method" title="#initialize (instance method)">- (TestLetters) <strong>initialize</strong> </a>
158
+
159
+
160
+
161
+ </span>
162
+
163
+
164
+ <span class="note title constructor">constructor</span>
165
+
166
+
167
+
168
+
169
+
170
+
171
+
172
+
173
+ <span class="summary_desc"><div class='inline'>
174
+ <p>A new instance of TestLetters.</p>
175
+ </div></span>
176
+
177
+ </li>
178
+
179
+
180
+ <li class="public ">
181
+ <span class="summary_signature">
182
+
183
+ <a href="#print_marked_maybe-instance_method" title="#print_marked_maybe (instance method)">- (Object) <strong>print_marked_maybe</strong> </a>
184
+
185
+
186
+
187
+ </span>
188
+
189
+
190
+
191
+
192
+
193
+
194
+
195
+
196
+
197
+ <span class="summary_desc"><div class='inline'></div></span>
198
+
199
+ </li>
200
+
201
+
202
+ <li class="public ">
203
+ <span class="summary_signature">
204
+
205
+ <a href="#print_test_advice-instance_method" title="#print_test_advice (instance method)">- (Object) <strong>print_test_advice</strong> </a>
206
+
207
+
208
+
209
+ </span>
210
+
211
+
212
+
213
+
214
+
215
+
216
+
217
+
218
+
219
+ <span class="summary_desc"><div class='inline'></div></span>
220
+
221
+ </li>
222
+
223
+
224
+ <li class="public ">
225
+ <span class="summary_signature">
226
+
227
+ <a href="#print_words-instance_method" title="#print_words (instance method)">- (Object) <strong>print_words</strong>(words) </a>
228
+
229
+
230
+
231
+ </span>
232
+
233
+
234
+
235
+
236
+
237
+
238
+
239
+
240
+
241
+ <span class="summary_desc"><div class='inline'></div></span>
242
+
243
+ </li>
244
+
245
+
246
+ <li class="public ">
247
+ <span class="summary_signature">
248
+
249
+ <a href="#process_input_word_maybe-instance_method" title="#process_input_word_maybe (instance method)">- (Object) <strong>process_input_word_maybe</strong> </a>
250
+
251
+
252
+
253
+ </span>
254
+
255
+
256
+
257
+
258
+
259
+
260
+
261
+
262
+
263
+ <span class="summary_desc"><div class='inline'></div></span>
264
+
265
+ </li>
266
+
267
+
268
+ <li class="public ">
269
+ <span class="summary_signature">
270
+
271
+ <a href="#process_letter-instance_method" title="#process_letter (instance method)">- (Object) <strong>process_letter</strong>(letr) </a>
272
+
273
+
274
+
275
+ </span>
276
+
277
+
278
+
279
+
280
+
281
+
282
+
283
+
284
+
285
+ <span class="summary_desc"><div class='inline'></div></span>
286
+
287
+ </li>
288
+
289
+
290
+ </ul>
291
+
292
+
293
+
294
+
295
+
296
+
297
+
298
+
299
+
300
+
301
+
302
+ <h3 class="inherited">Methods included from <span class='object_link'><a href="Tester.html" title="Tester (module)">Tester</a></span></h3>
303
+ <p class="inherited"><span class='object_link'><a href="Tester.html#add_space-instance_method" title="Tester#add_space (method)">#add_space</a></span>, <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#audio_stop-instance_method" title="Tester#audio_stop (method)">#audio_stop</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#complete_word%3F-instance_method" title="Tester#complete_word? (method)">#complete_word?</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-instance_method" title="Tester#monitor_keys (method)">#monitor_keys</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_letters%3F-instance_method" title="Tester#print_letters? (method)">#print_letters?</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#thread_processes-instance_method" title="Tester#thread_processes (method)">#thread_processes</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>
304
+
305
+
306
+
307
+
308
+
309
+
310
+ <div id="constructor_details" class="method_details_list">
311
+ <h2>Constructor Details</h2>
312
+
313
+ <div class="method_details first">
314
+ <h3 class="signature first" id="initialize-instance_method">
315
+
316
+ - (<tt><span class='object_link'><a href="" title="TestLetters (class)">TestLetters</a></span></tt>) <strong>initialize</strong>
317
+
318
+
319
+
320
+
321
+
322
+ </h3><div class="docstring">
323
+ <div class="discussion">
324
+
325
+ <p>Returns a new instance of TestLetters</p>
326
+
327
+
328
+ </div>
329
+ </div>
330
+ <div class="tags">
331
+
332
+
333
+ </div><table class="source_code">
334
+ <tr>
335
+ <td>
336
+ <pre class="lines">
337
+
338
+
339
+ 7
340
+ 8
341
+ 9
342
+ 10
343
+ 11</pre>
344
+ </td>
345
+ <td>
346
+ <pre class="code"><span class="info file"># File 'lib/cw/test_letters.rb', line 7</span>
347
+
348
+ <span class='kw'>def</span> <span class='id identifier rubyid_initialize'>initialize</span>
349
+ <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>
350
+ <span class='kw'>super</span><span class='lparen'>(</span><span class='rparen'>)</span>
351
+ <span class='comment'># print_test_advice
352
+ </span><span class='kw'>end</span></pre>
353
+ </td>
354
+ </tr>
355
+ </table>
356
+ </div>
357
+
358
+ </div>
359
+
360
+
361
+ <div id="instance_method_details" class="method_details_list">
362
+ <h2>Instance Method Details</h2>
363
+
364
+
365
+ <div class="method_details first">
366
+ <h3 class="signature first" id="build_word_maybe-instance_method">
367
+
368
+ - (<tt>Object</tt>) <strong>build_word_maybe</strong>
369
+
370
+
371
+
372
+
373
+
374
+ </h3><table class="source_code">
375
+ <tr>
376
+ <td>
377
+ <pre class="lines">
378
+
379
+
380
+ 36
381
+ 37
382
+ 38
383
+ 39
384
+ 40</pre>
385
+ </td>
386
+ <td>
387
+ <pre class="code"><span class="info file"># File 'lib/cw/test_letters.rb', line 36</span>
388
+
389
+ <span class='kw'>def</span> <span class='id identifier rubyid_build_word_maybe'>build_word_maybe</span>
390
+ <span class='ivar'>@input_word</span> <span class='op'>||=</span> <span class='id identifier rubyid_empty_string'>empty_string</span>
391
+ <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>
392
+ <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>
393
+ <span class='kw'>end</span></pre>
394
+ </td>
395
+ </tr>
396
+ </table>
397
+ </div>
398
+
399
+ <div class="method_details ">
400
+ <h3 class="signature " id="print_marked_maybe-instance_method">
401
+
402
+ - (<tt>Object</tt>) <strong>print_marked_maybe</strong>
403
+
404
+
405
+
406
+
407
+
408
+ </h3><table class="source_code">
409
+ <tr>
410
+ <td>
411
+ <pre class="lines">
412
+
413
+
414
+ 47
415
+ 48
416
+ 49
417
+ 50</pre>
418
+ </td>
419
+ <td>
420
+ <pre class="code"><span class="info file"># File 'lib/cw/test_letters.rb', line 47</span>
421
+
422
+ <span class='kw'>def</span> <span class='id identifier rubyid_print_marked_maybe'>print_marked_maybe</span>
423
+ <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>
424
+ <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>
425
+ <span class='kw'>end</span></pre>
426
+ </td>
427
+ </tr>
428
+ </table>
429
+ </div>
430
+
431
+ <div class="method_details ">
432
+ <h3 class="signature " id="print_test_advice-instance_method">
433
+
434
+ - (<tt>Object</tt>) <strong>print_test_advice</strong>
435
+
436
+
437
+
438
+
439
+
440
+ </h3><table class="source_code">
441
+ <tr>
442
+ <td>
443
+ <pre class="lines">
444
+
445
+
446
+ 13</pre>
447
+ </td>
448
+ <td>
449
+ <pre class="code"><span class="info file"># File 'lib/cw/test_letters.rb', line 13</span>
450
+
451
+ <span class='kw'>def</span> <span class='id identifier rubyid_print_test_advice'>print_test_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'>Test Letters</span><span class='tstring_end'>&#39;</span></span><span class='rparen'>)</span> <span class='semicolon'>;</span> <span class='kw'>end</span></pre>
452
+ </td>
453
+ </tr>
454
+ </table>
455
+ </div>
456
+
457
+ <div class="method_details ">
458
+ <h3 class="signature " id="print_words-instance_method">
459
+
460
+ - (<tt>Object</tt>) <strong>print_words</strong>(words)
461
+
462
+
463
+
464
+
465
+
466
+ </h3><table class="source_code">
467
+ <tr>
468
+ <td>
469
+ <pre class="lines">
470
+
471
+
472
+ 15
473
+ 16
474
+ 17
475
+ 18
476
+ 19
477
+ 20
478
+ 21
479
+ 22
480
+ 23
481
+ 24
482
+ 25
483
+ 26
484
+ 27</pre>
485
+ </td>
486
+ <td>
487
+ <pre class="code"><span class="info file"># File 'lib/cw/test_letters.rb', line 15</span>
488
+
489
+ <span class='kw'>def</span> <span class='id identifier rubyid_print_words'>print_words</span> <span class='id identifier rubyid_words'>words</span>
490
+ <span class='id identifier rubyid_timing'>timing</span><span class='period'>.</span><span class='id identifier rubyid_init_char_timer'>init_char_timer</span>
491
+ <span class='lparen'>(</span><span class='id identifier rubyid_words'>words</span><span class='period'>.</span><span class='id identifier rubyid_to_s'>to_s</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>
492
+ <span class='id identifier rubyid_process_letter'>process_letter</span> <span class='id identifier rubyid_letr'>letr</span>
493
+ <span class='id identifier rubyid_stream'>stream</span><span class='period'>.</span><span class='id identifier rubyid_add_char'>add_char</span> <span class='id identifier rubyid_letr'>letr</span>
494
+ <span class='id identifier rubyid_loop'>loop</span> <span class='kw'>do</span>
495
+ <span class='id identifier rubyid_process_word_maybe'>process_word_maybe</span>
496
+ <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>
497
+ <span class='kw'>end</span>
498
+ <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>
499
+ <span class='kw'>break</span> <span class='kw'>if</span> <span class='id identifier rubyid_quit?'>quit?</span>
500
+ <span class='kw'>end</span>
501
+ <span class='kw'>end</span></pre>
502
+ </td>
503
+ </tr>
504
+ </table>
505
+ </div>
506
+
507
+ <div class="method_details ">
508
+ <h3 class="signature " id="process_input_word_maybe-instance_method">
509
+
510
+ - (<tt>Object</tt>) <strong>process_input_word_maybe</strong>
511
+
512
+
513
+
514
+
515
+
516
+ </h3><table class="source_code">
517
+ <tr>
518
+ <td>
519
+ <pre class="lines">
520
+
521
+
522
+ 29
523
+ 30
524
+ 31
525
+ 32
526
+ 33
527
+ 34</pre>
528
+ </td>
529
+ <td>
530
+ <pre class="code"><span class="info file"># File 'lib/cw/test_letters.rb', line 29</span>
531
+
532
+ <span class='kw'>def</span> <span class='id identifier rubyid_process_input_word_maybe'>process_input_word_maybe</span>
533
+ <span class='kw'>if</span> <span class='ivar'>@word_to_process</span>
534
+ <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
535
+ </span> <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>
536
+ <span class='kw'>end</span>
537
+ <span class='kw'>end</span></pre>
538
+ </td>
539
+ </tr>
540
+ </table>
541
+ </div>
542
+
543
+ <div class="method_details ">
544
+ <h3 class="signature " id="process_letter-instance_method">
545
+
546
+ - (<tt>Object</tt>) <strong>process_letter</strong>(letr)
547
+
548
+
549
+
550
+
551
+
552
+ </h3><table class="source_code">
553
+ <tr>
554
+ <td>
555
+ <pre class="lines">
556
+
557
+
558
+ 42
559
+ 43
560
+ 44
561
+ 45</pre>
562
+ </td>
563
+ <td>
564
+ <pre class="code"><span class="info file"># File 'lib/cw/test_letters.rb', line 42</span>
565
+
566
+ <span class='kw'>def</span> <span class='id identifier rubyid_process_letter'>process_letter</span> <span class='id identifier rubyid_letr'>letr</span>
567
+ <span class='id identifier rubyid_letr'>letr</span><span class='period'>.</span><span class='id identifier rubyid_downcase!'>downcase!</span>
568
+ <span class='id identifier rubyid_sleep_char_delay'>sleep_char_delay</span> <span class='id identifier rubyid_letr'>letr</span>
569
+ <span class='kw'>end</span></pre>
570
+ </td>
571
+ </tr>
572
+ </table>
573
+ </div>
574
+
575
+ </div>
576
+
577
+ </div>
578
+
579
+ <div id="footer">
580
+ Generated on Mon May 23 21:20:17 2016 by
581
+ <a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
582
+ 0.8.7.6 (ruby-2.2.0).
583
+ </div>
584
+
585
+ </body>
586
+ </html>