cw 0.0.8 → 0.0.9
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.yardoc/checksums +33 -0
- data/.yardoc/object_types +0 -0
- data/.yardoc/objects/root.dat +0 -0
- data/.yardoc/proxy_types +0 -0
- data/cw.gemspec +1 -1
- data/doc/Alphabet.html +433 -0
- data/doc/AudioPlayer.html +805 -0
- data/doc/Book.html +3134 -0
- data/doc/BookDetails.html +664 -0
- data/doc/CW.html +849 -0
- data/doc/CWThreads.html +514 -0
- data/doc/Cl.html +1125 -0
- data/doc/CurrentWord.html +636 -0
- data/doc/CwDsl.html +1871 -0
- data/doc/CwEncoding.html +329 -0
- data/doc/FileDetails.html +236 -0
- data/doc/KeyInput.html +758 -0
- data/doc/MonitorKeys.html +482 -0
- data/doc/Numbers.html +433 -0
- data/doc/Params.html +352 -0
- data/doc/Print.html +1130 -0
- data/doc/Print/ProgressPrint.html +419 -0
- data/doc/Process.html +202 -0
- data/doc/Progress.html +337 -0
- data/doc/Randomize.html +959 -0
- data/doc/RepeatWord.html +816 -0
- data/doc/Rss.html +630 -0
- data/doc/Sentence.html +1457 -0
- data/doc/Spoken.html +215 -0
- data/doc/Str.html +771 -0
- data/doc/Stream.html +1401 -0
- data/doc/TestLetters.html +586 -0
- data/doc/TestWords.html +646 -0
- data/doc/Tester.html +3064 -0
- data/doc/Timing.html +1244 -0
- data/doc/ToneGenerator.html +2111 -0
- data/doc/Voice.html +273 -0
- data/doc/Words.html +1750 -0
- data/doc/_index.html +376 -0
- data/doc/class_list.html +58 -0
- data/doc/css/common.css +1 -0
- data/doc/css/full_list.css +57 -0
- data/doc/css/style.css +339 -0
- data/doc/file.README.html +148 -0
- data/doc/file_list.html +60 -0
- data/doc/frames.html +26 -0
- data/doc/index.html +148 -0
- data/doc/js/app.js +219 -0
- data/doc/js/full_list.js +181 -0
- data/doc/js/jquery.js +4 -0
- data/doc/method_list.html +2697 -0
- data/doc/monitor.html +435 -0
- data/doc/top-level-namespace.html +114 -0
- metadata +53 -1
data/doc/RepeatWord.html
ADDED
@@ -0,0 +1,816 @@
|
|
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: RepeatWord
|
8
|
+
|
9
|
+
— 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#!RepeatWord.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 (R)</a> »
|
35
|
+
|
36
|
+
|
37
|
+
<span class="title">RepeatWord</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: RepeatWord
|
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">RepeatWord</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/repeat_word.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="#double_words-instance_method" title="#double_words (instance method)">- (Object) <strong>double_words</strong>(words) </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="#initialize-instance_method" title="#initialize (instance method)">- (RepeatWord) <strong>initialize</strong> </a>
|
180
|
+
|
181
|
+
|
182
|
+
|
183
|
+
</span>
|
184
|
+
|
185
|
+
|
186
|
+
<span class="note title constructor">constructor</span>
|
187
|
+
|
188
|
+
|
189
|
+
|
190
|
+
|
191
|
+
|
192
|
+
|
193
|
+
|
194
|
+
|
195
|
+
<span class="summary_desc"><div class='inline'>
|
196
|
+
<p>A new instance of RepeatWord.</p>
|
197
|
+
</div></span>
|
198
|
+
|
199
|
+
</li>
|
200
|
+
|
201
|
+
|
202
|
+
<li class="public ">
|
203
|
+
<span class="summary_signature">
|
204
|
+
|
205
|
+
<a href="#play_words_thread-instance_method" title="#play_words_thread (instance method)">- (Object) <strong>play_words_thread</strong> </a>
|
206
|
+
|
207
|
+
|
208
|
+
|
209
|
+
</span>
|
210
|
+
|
211
|
+
|
212
|
+
|
213
|
+
|
214
|
+
|
215
|
+
|
216
|
+
|
217
|
+
|
218
|
+
|
219
|
+
<span class="summary_desc"><div class='inline'>
|
220
|
+
<p>overloaded #todo.</p>
|
221
|
+
</div></span>
|
222
|
+
|
223
|
+
</li>
|
224
|
+
|
225
|
+
|
226
|
+
<li class="public ">
|
227
|
+
<span class="summary_signature">
|
228
|
+
|
229
|
+
<a href="#print_failed_exit_words-instance_method" title="#print_failed_exit_words (instance method)">- (Object) <strong>print_failed_exit_words</strong> </a>
|
230
|
+
|
231
|
+
|
232
|
+
|
233
|
+
</span>
|
234
|
+
|
235
|
+
|
236
|
+
|
237
|
+
|
238
|
+
|
239
|
+
|
240
|
+
|
241
|
+
|
242
|
+
|
243
|
+
<span class="summary_desc"><div class='inline'>
|
244
|
+
<p>overloaded #todo.</p>
|
245
|
+
</div></span>
|
246
|
+
|
247
|
+
</li>
|
248
|
+
|
249
|
+
|
250
|
+
<li class="public ">
|
251
|
+
<span class="summary_signature">
|
252
|
+
|
253
|
+
<a href="#print_marked_maybe-instance_method" title="#print_marked_maybe (instance method)">- (Object) <strong>print_marked_maybe</strong> </a>
|
254
|
+
|
255
|
+
|
256
|
+
|
257
|
+
</span>
|
258
|
+
|
259
|
+
|
260
|
+
|
261
|
+
|
262
|
+
|
263
|
+
|
264
|
+
|
265
|
+
|
266
|
+
|
267
|
+
<span class="summary_desc"><div class='inline'></div></span>
|
268
|
+
|
269
|
+
</li>
|
270
|
+
|
271
|
+
|
272
|
+
<li class="public ">
|
273
|
+
<span class="summary_signature">
|
274
|
+
|
275
|
+
<a href="#print_words-instance_method" title="#print_words (instance method)">- (Object) <strong>print_words</strong>(words) </a>
|
276
|
+
|
277
|
+
|
278
|
+
|
279
|
+
</span>
|
280
|
+
|
281
|
+
|
282
|
+
|
283
|
+
|
284
|
+
|
285
|
+
|
286
|
+
|
287
|
+
|
288
|
+
|
289
|
+
<span class="summary_desc"><div class='inline'></div></span>
|
290
|
+
|
291
|
+
</li>
|
292
|
+
|
293
|
+
|
294
|
+
<li class="public ">
|
295
|
+
<span class="summary_signature">
|
296
|
+
|
297
|
+
<a href="#process_input_word_maybe-instance_method" title="#process_input_word_maybe (instance method)">- (Object) <strong>process_input_word_maybe</strong> </a>
|
298
|
+
|
299
|
+
|
300
|
+
|
301
|
+
</span>
|
302
|
+
|
303
|
+
|
304
|
+
|
305
|
+
|
306
|
+
|
307
|
+
|
308
|
+
|
309
|
+
|
310
|
+
|
311
|
+
<span class="summary_desc"><div class='inline'></div></span>
|
312
|
+
|
313
|
+
</li>
|
314
|
+
|
315
|
+
|
316
|
+
<li class="public ">
|
317
|
+
<span class="summary_signature">
|
318
|
+
|
319
|
+
<a href="#process_letter-instance_method" title="#process_letter (instance method)">- (Object) <strong>process_letter</strong>(letr) </a>
|
320
|
+
|
321
|
+
|
322
|
+
|
323
|
+
</span>
|
324
|
+
|
325
|
+
|
326
|
+
|
327
|
+
|
328
|
+
|
329
|
+
|
330
|
+
|
331
|
+
|
332
|
+
|
333
|
+
<span class="summary_desc"><div class='inline'></div></span>
|
334
|
+
|
335
|
+
</li>
|
336
|
+
|
337
|
+
|
338
|
+
<li class="public ">
|
339
|
+
<span class="summary_signature">
|
340
|
+
|
341
|
+
<a href="#run-instance_method" title="#run (instance method)">- (Object) <strong>run</strong>(words) </a>
|
342
|
+
|
343
|
+
|
344
|
+
|
345
|
+
</span>
|
346
|
+
|
347
|
+
|
348
|
+
|
349
|
+
|
350
|
+
|
351
|
+
|
352
|
+
|
353
|
+
|
354
|
+
|
355
|
+
<span class="summary_desc"><div class='inline'></div></span>
|
356
|
+
|
357
|
+
</li>
|
358
|
+
|
359
|
+
|
360
|
+
</ul>
|
361
|
+
|
362
|
+
|
363
|
+
|
364
|
+
|
365
|
+
|
366
|
+
|
367
|
+
|
368
|
+
|
369
|
+
|
370
|
+
|
371
|
+
|
372
|
+
<h3 class="inherited">Methods included from <span class='object_link'><a href="Tester.html" title="Tester (module)">Tester</a></span></h3>
|
373
|
+
<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_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_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#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>
|
374
|
+
|
375
|
+
|
376
|
+
|
377
|
+
|
378
|
+
|
379
|
+
|
380
|
+
<div id="constructor_details" class="method_details_list">
|
381
|
+
<h2>Constructor Details</h2>
|
382
|
+
|
383
|
+
<div class="method_details first">
|
384
|
+
<h3 class="signature first" id="initialize-instance_method">
|
385
|
+
|
386
|
+
- (<tt><span class='object_link'><a href="" title="RepeatWord (class)">RepeatWord</a></span></tt>) <strong>initialize</strong>
|
387
|
+
|
388
|
+
|
389
|
+
|
390
|
+
|
391
|
+
|
392
|
+
</h3><div class="docstring">
|
393
|
+
<div class="discussion">
|
394
|
+
|
395
|
+
<p>Returns a new instance of RepeatWord</p>
|
396
|
+
|
397
|
+
|
398
|
+
</div>
|
399
|
+
</div>
|
400
|
+
<div class="tags">
|
401
|
+
|
402
|
+
|
403
|
+
</div><table class="source_code">
|
404
|
+
<tr>
|
405
|
+
<td>
|
406
|
+
<pre class="lines">
|
407
|
+
|
408
|
+
|
409
|
+
7
|
410
|
+
8
|
411
|
+
9
|
412
|
+
10</pre>
|
413
|
+
</td>
|
414
|
+
<td>
|
415
|
+
<pre class="code"><span class="info file"># File 'lib/cw/repeat_word.rb', line 7</span>
|
416
|
+
|
417
|
+
<span class='kw'>def</span> <span class='id identifier rubyid_initialize'>initialize</span>
|
418
|
+
<span class='kw'>super</span>
|
419
|
+
<span class='ivar'>@repeat_word</span> <span class='op'>=</span> <span class='kw'>true</span>
|
420
|
+
<span class='kw'>end</span></pre>
|
421
|
+
</td>
|
422
|
+
</tr>
|
423
|
+
</table>
|
424
|
+
</div>
|
425
|
+
|
426
|
+
</div>
|
427
|
+
|
428
|
+
|
429
|
+
<div id="instance_method_details" class="method_details_list">
|
430
|
+
<h2>Instance Method Details</h2>
|
431
|
+
|
432
|
+
|
433
|
+
<div class="method_details first">
|
434
|
+
<h3 class="signature first" id="build_word_maybe-instance_method">
|
435
|
+
|
436
|
+
- (<tt>Object</tt>) <strong>build_word_maybe</strong>
|
437
|
+
|
438
|
+
|
439
|
+
|
440
|
+
|
441
|
+
|
442
|
+
</h3><table class="source_code">
|
443
|
+
<tr>
|
444
|
+
<td>
|
445
|
+
<pre class="lines">
|
446
|
+
|
447
|
+
|
448
|
+
42
|
449
|
+
43
|
450
|
+
44
|
451
|
+
45
|
452
|
+
46</pre>
|
453
|
+
</td>
|
454
|
+
<td>
|
455
|
+
<pre class="code"><span class="info file"># File 'lib/cw/repeat_word.rb', line 42</span>
|
456
|
+
|
457
|
+
<span class='kw'>def</span> <span class='id identifier rubyid_build_word_maybe'>build_word_maybe</span>
|
458
|
+
<span class='ivar'>@input_word</span> <span class='op'>||=</span> <span class='id identifier rubyid_empty_string'>empty_string</span>
|
459
|
+
<span class='ivar'>@input_word</span> <span class='op'><<</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>
|
460
|
+
<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>
|
461
|
+
<span class='kw'>end</span></pre>
|
462
|
+
</td>
|
463
|
+
</tr>
|
464
|
+
</table>
|
465
|
+
</div>
|
466
|
+
|
467
|
+
<div class="method_details ">
|
468
|
+
<h3 class="signature " id="double_words-instance_method">
|
469
|
+
|
470
|
+
- (<tt>Object</tt>) <strong>double_words</strong>(words)
|
471
|
+
|
472
|
+
|
473
|
+
|
474
|
+
|
475
|
+
|
476
|
+
</h3><table class="source_code">
|
477
|
+
<tr>
|
478
|
+
<td>
|
479
|
+
<pre class="lines">
|
480
|
+
|
481
|
+
|
482
|
+
65
|
483
|
+
66
|
484
|
+
67
|
485
|
+
68
|
486
|
+
69
|
487
|
+
70
|
488
|
+
71</pre>
|
489
|
+
</td>
|
490
|
+
<td>
|
491
|
+
<pre class="code"><span class="info file"># File 'lib/cw/repeat_word.rb', line 65</span>
|
492
|
+
|
493
|
+
<span class='kw'>def</span> <span class='id identifier rubyid_double_words'>double_words</span> <span class='id identifier rubyid_words'>words</span>
|
494
|
+
<span class='id identifier rubyid_temp'>temp</span> <span class='op'>=</span> <span class='lbracket'>[</span><span class='rbracket'>]</span>
|
495
|
+
<span class='id identifier rubyid_words'>words</span><span class='period'>.</span><span class='id identifier rubyid_each'>each</span> <span class='kw'>do</span> <span class='op'>|</span><span class='id identifier rubyid_wrd'>wrd</span><span class='op'>|</span>
|
496
|
+
<span class='int'>2</span><span class='period'>.</span><span class='id identifier rubyid_times'>times</span> <span class='lbrace'>{</span> <span class='id identifier rubyid_temp'>temp</span><span class='period'>.</span><span class='id identifier rubyid_push'>push</span> <span class='id identifier rubyid_wrd'>wrd</span> <span class='rbrace'>}</span>
|
497
|
+
<span class='kw'>end</span>
|
498
|
+
<span class='id identifier rubyid_words'>words</span> <span class='op'>=</span> <span class='id identifier rubyid_temp'>temp</span>
|
499
|
+
<span class='kw'>end</span></pre>
|
500
|
+
</td>
|
501
|
+
</tr>
|
502
|
+
</table>
|
503
|
+
</div>
|
504
|
+
|
505
|
+
<div class="method_details ">
|
506
|
+
<h3 class="signature " id="play_words_thread-instance_method">
|
507
|
+
|
508
|
+
- (<tt>Object</tt>) <strong>play_words_thread</strong>
|
509
|
+
|
510
|
+
|
511
|
+
|
512
|
+
|
513
|
+
|
514
|
+
</h3><div class="docstring">
|
515
|
+
<div class="discussion">
|
516
|
+
|
517
|
+
<p>overloaded #todo</p>
|
518
|
+
|
519
|
+
|
520
|
+
</div>
|
521
|
+
</div>
|
522
|
+
<div class="tags">
|
523
|
+
|
524
|
+
|
525
|
+
</div><table class="source_code">
|
526
|
+
<tr>
|
527
|
+
<td>
|
528
|
+
<pre class="lines">
|
529
|
+
|
530
|
+
|
531
|
+
60
|
532
|
+
61
|
533
|
+
62
|
534
|
+
63</pre>
|
535
|
+
</td>
|
536
|
+
<td>
|
537
|
+
<pre class="code"><span class="info file"># File 'lib/cw/repeat_word.rb', line 60</span>
|
538
|
+
|
539
|
+
<span class='kw'>def</span> <span class='id identifier rubyid_play_words_thread'>play_words_thread</span>
|
540
|
+
<span class='id identifier rubyid_play_words_until_quit'>play_words_until_quit</span>
|
541
|
+
<span class='id identifier rubyid_print'>print</span> <span class='tstring'><span class='tstring_beg'>"</span><span class='tstring_content'>\n\rplay has quit </span><span class='tstring_end'>"</span></span> <span class='kw'>if</span> <span class='ivar'>@debug</span>
|
542
|
+
<span class='kw'>end</span></pre>
|
543
|
+
</td>
|
544
|
+
</tr>
|
545
|
+
</table>
|
546
|
+
</div>
|
547
|
+
|
548
|
+
<div class="method_details ">
|
549
|
+
<h3 class="signature " id="print_failed_exit_words-instance_method">
|
550
|
+
|
551
|
+
- (<tt>Object</tt>) <strong>print_failed_exit_words</strong>
|
552
|
+
|
553
|
+
|
554
|
+
|
555
|
+
|
556
|
+
|
557
|
+
</h3><div class="docstring">
|
558
|
+
<div class="discussion">
|
559
|
+
|
560
|
+
<p>overloaded #todo</p>
|
561
|
+
|
562
|
+
|
563
|
+
</div>
|
564
|
+
</div>
|
565
|
+
<div class="tags">
|
566
|
+
|
567
|
+
|
568
|
+
</div><table class="source_code">
|
569
|
+
<tr>
|
570
|
+
<td>
|
571
|
+
<pre class="lines">
|
572
|
+
|
573
|
+
|
574
|
+
14
|
575
|
+
15
|
576
|
+
16
|
577
|
+
17
|
578
|
+
18
|
579
|
+
19</pre>
|
580
|
+
</td>
|
581
|
+
<td>
|
582
|
+
<pre class="code"><span class="info file"># File 'lib/cw/repeat_word.rb', line 14</span>
|
583
|
+
|
584
|
+
<span class='kw'>def</span> <span class='id identifier rubyid_print_failed_exit_words'>print_failed_exit_words</span>
|
585
|
+
<span class='kw'>until</span> <span class='id identifier rubyid_stream'>stream</span><span class='period'>.</span><span class='id identifier rubyid_stream_empty?'>stream_empty?</span>
|
586
|
+
<span class='id identifier rubyid_word'>word</span> <span class='op'>=</span> <span class='id identifier rubyid_stream'>stream</span><span class='period'>.</span><span class='id identifier rubyid_pop'>pop</span><span class='lbracket'>[</span><span class='symbol'>:value</span><span class='rbracket'>]</span>
|
587
|
+
<span class='id identifier rubyid_print'>print</span><span class='period'>.</span><span class='id identifier rubyid_prn_red'>prn_red</span> <span class='id identifier rubyid_word'>word</span> <span class='op'>+</span> <span class='tstring'><span class='tstring_beg'>'</span><span class='tstring_content'> </span><span class='tstring_end'>'</span></span> <span class='kw'>unless</span> <span class='ivar'>@repeat_word</span>
|
588
|
+
<span class='kw'>end</span>
|
589
|
+
<span class='kw'>end</span></pre>
|
590
|
+
</td>
|
591
|
+
</tr>
|
592
|
+
</table>
|
593
|
+
</div>
|
594
|
+
|
595
|
+
<div class="method_details ">
|
596
|
+
<h3 class="signature " id="print_marked_maybe-instance_method">
|
597
|
+
|
598
|
+
- (<tt>Object</tt>) <strong>print_marked_maybe</strong>
|
599
|
+
|
600
|
+
|
601
|
+
|
602
|
+
|
603
|
+
|
604
|
+
</h3><table class="source_code">
|
605
|
+
<tr>
|
606
|
+
<td>
|
607
|
+
<pre class="lines">
|
608
|
+
|
609
|
+
|
610
|
+
53
|
611
|
+
54
|
612
|
+
55
|
613
|
+
56</pre>
|
614
|
+
</td>
|
615
|
+
<td>
|
616
|
+
<pre class="code"><span class="info file"># File 'lib/cw/repeat_word.rb', line 53</span>
|
617
|
+
|
618
|
+
<span class='kw'>def</span> <span class='id identifier rubyid_print_marked_maybe'>print_marked_maybe</span>
|
619
|
+
<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>
|
620
|
+
<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='comma'>,</span> <span class='symbol'>:pass_only</span><span class='rparen'>)</span> <span class='kw'>if</span><span class='lparen'>(</span><span class='ivar'>@popped</span> <span class='op'>&&</span> <span class='op'>!</span> <span class='id identifier rubyid_print_letters?'>print_letters?</span><span class='rparen'>)</span>
|
621
|
+
<span class='kw'>end</span></pre>
|
622
|
+
</td>
|
623
|
+
</tr>
|
624
|
+
</table>
|
625
|
+
</div>
|
626
|
+
|
627
|
+
<div class="method_details ">
|
628
|
+
<h3 class="signature " id="print_words-instance_method">
|
629
|
+
|
630
|
+
- (<tt>Object</tt>) <strong>print_words</strong>(words)
|
631
|
+
|
632
|
+
|
633
|
+
|
634
|
+
|
635
|
+
|
636
|
+
</h3><table class="source_code">
|
637
|
+
<tr>
|
638
|
+
<td>
|
639
|
+
<pre class="lines">
|
640
|
+
|
641
|
+
|
642
|
+
21
|
643
|
+
22
|
644
|
+
23
|
645
|
+
24
|
646
|
+
25
|
647
|
+
26
|
648
|
+
27
|
649
|
+
28
|
650
|
+
29
|
651
|
+
30
|
652
|
+
31
|
653
|
+
32
|
654
|
+
33</pre>
|
655
|
+
</td>
|
656
|
+
<td>
|
657
|
+
<pre class="code"><span class="info file"># File 'lib/cw/repeat_word.rb', line 21</span>
|
658
|
+
|
659
|
+
<span class='kw'>def</span> <span class='id identifier rubyid_print_words'>print_words</span> <span class='id identifier rubyid_words'>words</span>
|
660
|
+
<span class='id identifier rubyid_timing'>timing</span><span class='period'>.</span><span class='id identifier rubyid_init_char_timer'>init_char_timer</span>
|
661
|
+
<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>
|
662
|
+
<span class='id identifier rubyid_process_letter'>process_letter</span> <span class='id identifier rubyid_letr'>letr</span>
|
663
|
+
<span class='id identifier rubyid_loop'>loop</span> <span class='kw'>do</span>
|
664
|
+
<span class='id identifier rubyid_process_space_maybe'>process_space_maybe</span> <span class='id identifier rubyid_letr'>letr</span>
|
665
|
+
<span class='id identifier rubyid_process_word_maybe'>process_word_maybe</span>
|
666
|
+
<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>
|
667
|
+
<span class='kw'>end</span>
|
668
|
+
<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>
|
669
|
+
<span class='kw'>break</span> <span class='kw'>if</span> <span class='id identifier rubyid_quit?'>quit?</span>
|
670
|
+
<span class='kw'>end</span>
|
671
|
+
<span class='kw'>end</span></pre>
|
672
|
+
</td>
|
673
|
+
</tr>
|
674
|
+
</table>
|
675
|
+
</div>
|
676
|
+
|
677
|
+
<div class="method_details ">
|
678
|
+
<h3 class="signature " id="process_input_word_maybe-instance_method">
|
679
|
+
|
680
|
+
- (<tt>Object</tt>) <strong>process_input_word_maybe</strong>
|
681
|
+
|
682
|
+
|
683
|
+
|
684
|
+
|
685
|
+
|
686
|
+
</h3><table class="source_code">
|
687
|
+
<tr>
|
688
|
+
<td>
|
689
|
+
<pre class="lines">
|
690
|
+
|
691
|
+
|
692
|
+
35
|
693
|
+
36
|
694
|
+
37
|
695
|
+
38
|
696
|
+
39
|
697
|
+
40</pre>
|
698
|
+
</td>
|
699
|
+
<td>
|
700
|
+
<pre class="code"><span class="info file"># File 'lib/cw/repeat_word.rb', line 35</span>
|
701
|
+
|
702
|
+
<span class='kw'>def</span> <span class='id identifier rubyid_process_input_word_maybe'>process_input_word_maybe</span>
|
703
|
+
<span class='kw'>if</span> <span class='ivar'>@word_to_process</span>
|
704
|
+
<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>
|
705
|
+
<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>
|
706
|
+
<span class='kw'>end</span>
|
707
|
+
<span class='kw'>end</span></pre>
|
708
|
+
</td>
|
709
|
+
</tr>
|
710
|
+
</table>
|
711
|
+
</div>
|
712
|
+
|
713
|
+
<div class="method_details ">
|
714
|
+
<h3 class="signature " id="process_letter-instance_method">
|
715
|
+
|
716
|
+
- (<tt>Object</tt>) <strong>process_letter</strong>(letr)
|
717
|
+
|
718
|
+
|
719
|
+
|
720
|
+
|
721
|
+
|
722
|
+
</h3><table class="source_code">
|
723
|
+
<tr>
|
724
|
+
<td>
|
725
|
+
<pre class="lines">
|
726
|
+
|
727
|
+
|
728
|
+
48
|
729
|
+
49
|
730
|
+
50
|
731
|
+
51</pre>
|
732
|
+
</td>
|
733
|
+
<td>
|
734
|
+
<pre class="code"><span class="info file"># File 'lib/cw/repeat_word.rb', line 48</span>
|
735
|
+
|
736
|
+
<span class='kw'>def</span> <span class='id identifier rubyid_process_letter'>process_letter</span> <span class='id identifier rubyid_letr'>letr</span>
|
737
|
+
<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>
|
738
|
+
<span class='id identifier rubyid_sleep_char_delay'>sleep_char_delay</span> <span class='id identifier rubyid_letr'>letr</span>
|
739
|
+
<span class='kw'>end</span></pre>
|
740
|
+
</td>
|
741
|
+
</tr>
|
742
|
+
</table>
|
743
|
+
</div>
|
744
|
+
|
745
|
+
<div class="method_details ">
|
746
|
+
<h3 class="signature " id="run-instance_method">
|
747
|
+
|
748
|
+
- (<tt>Object</tt>) <strong>run</strong>(words)
|
749
|
+
|
750
|
+
|
751
|
+
|
752
|
+
|
753
|
+
|
754
|
+
</h3><table class="source_code">
|
755
|
+
<tr>
|
756
|
+
<td>
|
757
|
+
<pre class="lines">
|
758
|
+
|
759
|
+
|
760
|
+
73
|
761
|
+
74
|
762
|
+
75
|
763
|
+
76
|
764
|
+
77
|
765
|
+
78
|
766
|
+
79
|
767
|
+
80
|
768
|
+
81
|
769
|
+
82
|
770
|
+
83
|
771
|
+
84
|
772
|
+
85
|
773
|
+
86
|
774
|
+
87
|
775
|
+
88
|
776
|
+
89
|
777
|
+
90</pre>
|
778
|
+
</td>
|
779
|
+
<td>
|
780
|
+
<pre class="code"><span class="info file"># File 'lib/cw/repeat_word.rb', line 73</span>
|
781
|
+
|
782
|
+
<span class='kw'>def</span> <span class='id identifier rubyid_run'>run</span> <span class='id identifier rubyid_words'>words</span>
|
783
|
+
<span class='id identifier rubyid_temp_words'>temp_words</span> <span class='op'>=</span> <span class='id identifier rubyid_words'>words</span><span class='period'>.</span><span class='id identifier rubyid_all'>all</span>
|
784
|
+
<span class='id identifier rubyid_temp_words'>temp_words</span> <span class='op'>=</span> <span class='id identifier rubyid_double_words'>double_words</span> <span class='id identifier rubyid_temp_words'>temp_words</span> <span class='kw'>if</span> <span class='const'>Params</span><span class='period'>.</span><span class='id identifier rubyid_double_words'>double_words</span>
|
785
|
+
<span class='id identifier rubyid_temp_words'>temp_words</span><span class='period'>.</span><span class='id identifier rubyid_each'>each</span> <span class='kw'>do</span> <span class='op'>|</span><span class='id identifier rubyid_word'>word</span><span class='op'>|</span>
|
786
|
+
<span class='id identifier rubyid_loop'>loop</span> <span class='kw'>do</span>
|
787
|
+
<span class='ivar'>@input_word</span><span class='comma'>,</span> <span class='ivar'>@words</span> <span class='op'>=</span> <span class='tstring'><span class='tstring_beg'>'</span><span class='tstring_end'>'</span></span><span class='comma'>,</span> <span class='const'>Words</span><span class='period'>.</span><span class='id identifier rubyid_new'>new</span>
|
788
|
+
<span class='ivar'>@quit</span><span class='comma'>,</span> <span class='ivar'>@failed</span> <span class='op'>=</span> <span class='kw'>nil</span><span class='comma'>,</span> <span class='kw'>nil</span>
|
789
|
+
<span class='ivar'>@words</span><span class='period'>.</span><span class='id identifier rubyid_add'>add</span> <span class='lbracket'>[</span><span class='id identifier rubyid_word'>word</span><span class='rbracket'>]</span>
|
790
|
+
<span class='ivar'>@threads</span> <span class='op'>=</span> <span class='const'>CWThreads</span><span class='period'>.</span><span class='id identifier rubyid_new'>new</span><span class='lparen'>(</span><span class='kw'>self</span><span class='comma'>,</span> <span class='id identifier rubyid_thread_processes'>thread_processes</span><span class='rparen'>)</span>
|
791
|
+
<span class='ivar'>@threads</span><span class='period'>.</span><span class='id identifier rubyid_run'>run</span>
|
792
|
+
<span class='kw'>break</span> <span class='kw'>unless</span> <span class='ivar'>@failed</span>
|
793
|
+
<span class='kw'>break</span> <span class='kw'>if</span> <span class='id identifier rubyid_global_quit?'>global_quit?</span>
|
794
|
+
<span class='kw'>end</span>
|
795
|
+
<span class='kw'>break</span> <span class='kw'>if</span> <span class='id identifier rubyid_global_quit?'>global_quit?</span>
|
796
|
+
<span class='kw'>end</span>
|
797
|
+
<span class='id identifier rubyid_reset_stdin'>reset_stdin</span>
|
798
|
+
<span class='id identifier rubyid_print'>print</span><span class='period'>.</span><span class='id identifier rubyid_newline'>newline</span>
|
799
|
+
<span class='kw'>end</span></pre>
|
800
|
+
</td>
|
801
|
+
</tr>
|
802
|
+
</table>
|
803
|
+
</div>
|
804
|
+
|
805
|
+
</div>
|
806
|
+
|
807
|
+
</div>
|
808
|
+
|
809
|
+
<div id="footer">
|
810
|
+
Generated on Mon May 23 21:20:17 2016 by
|
811
|
+
<a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
|
812
|
+
0.8.7.6 (ruby-2.2.0).
|
813
|
+
</div>
|
814
|
+
|
815
|
+
</body>
|
816
|
+
</html>
|