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/Cl.html
ADDED
@@ -0,0 +1,1125 @@
|
|
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: Cl
|
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#!Cl.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 (C)</a> »
|
35
|
+
|
36
|
+
|
37
|
+
<span class="title">Cl</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: Cl
|
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">Cl</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/cl.rb</dd>
|
98
|
+
|
99
|
+
</dl>
|
100
|
+
<div class="clear"></div>
|
101
|
+
|
102
|
+
<h2>Overview</h2><div class="docstring">
|
103
|
+
<div class="discussion">
|
104
|
+
|
105
|
+
<p>class Cl performs command-line processing</p>
|
106
|
+
|
107
|
+
|
108
|
+
</div>
|
109
|
+
</div>
|
110
|
+
<div class="tags">
|
111
|
+
|
112
|
+
|
113
|
+
</div>
|
114
|
+
|
115
|
+
|
116
|
+
|
117
|
+
|
118
|
+
|
119
|
+
|
120
|
+
|
121
|
+
<h2>
|
122
|
+
Instance Method Summary
|
123
|
+
<small>(<a href="#" class="summary_toggle">collapse</a>)</small>
|
124
|
+
</h2>
|
125
|
+
|
126
|
+
<ul class="summary">
|
127
|
+
|
128
|
+
<li class="public ">
|
129
|
+
<span class="summary_signature">
|
130
|
+
|
131
|
+
<a href="#build_command_line-instance_method" title="#build_command_line (instance method)">- (Object) <strong>build_command_line</strong> </a>
|
132
|
+
|
133
|
+
|
134
|
+
|
135
|
+
</span>
|
136
|
+
|
137
|
+
|
138
|
+
|
139
|
+
|
140
|
+
|
141
|
+
|
142
|
+
|
143
|
+
|
144
|
+
|
145
|
+
<span class="summary_desc"><div class='inline'></div></span>
|
146
|
+
|
147
|
+
</li>
|
148
|
+
|
149
|
+
|
150
|
+
<li class="public ">
|
151
|
+
<span class="summary_signature">
|
152
|
+
|
153
|
+
<a href="#cl_audio_filename-instance_method" title="#cl_audio_filename (instance method)">- (Object) <strong>cl_audio_filename</strong> </a>
|
154
|
+
|
155
|
+
|
156
|
+
|
157
|
+
</span>
|
158
|
+
|
159
|
+
|
160
|
+
|
161
|
+
|
162
|
+
|
163
|
+
|
164
|
+
|
165
|
+
|
166
|
+
|
167
|
+
<span class="summary_desc"><div class='inline'></div></span>
|
168
|
+
|
169
|
+
</li>
|
170
|
+
|
171
|
+
|
172
|
+
<li class="public ">
|
173
|
+
<span class="summary_signature">
|
174
|
+
|
175
|
+
<a href="#cl_author-instance_method" title="#cl_author (instance method)">- (Object) <strong>cl_author</strong> </a>
|
176
|
+
|
177
|
+
|
178
|
+
|
179
|
+
</span>
|
180
|
+
|
181
|
+
|
182
|
+
|
183
|
+
|
184
|
+
|
185
|
+
|
186
|
+
|
187
|
+
|
188
|
+
|
189
|
+
<span class="summary_desc"><div class='inline'></div></span>
|
190
|
+
|
191
|
+
</li>
|
192
|
+
|
193
|
+
|
194
|
+
<li class="public ">
|
195
|
+
<span class="summary_signature">
|
196
|
+
|
197
|
+
<a href="#cl_command_line-instance_method" title="#cl_command_line (instance method)">- (Object) <strong>cl_command_line</strong> </a>
|
198
|
+
|
199
|
+
|
200
|
+
|
201
|
+
</span>
|
202
|
+
|
203
|
+
|
204
|
+
|
205
|
+
|
206
|
+
|
207
|
+
|
208
|
+
|
209
|
+
|
210
|
+
|
211
|
+
<span class="summary_desc"><div class='inline'></div></span>
|
212
|
+
|
213
|
+
</li>
|
214
|
+
|
215
|
+
|
216
|
+
<li class="public ">
|
217
|
+
<span class="summary_signature">
|
218
|
+
|
219
|
+
<a href="#cl_echo-instance_method" title="#cl_echo (instance method)">- (Object) <strong>cl_echo</strong>(words) </a>
|
220
|
+
|
221
|
+
|
222
|
+
|
223
|
+
</span>
|
224
|
+
|
225
|
+
|
226
|
+
|
227
|
+
|
228
|
+
|
229
|
+
|
230
|
+
|
231
|
+
|
232
|
+
|
233
|
+
<span class="summary_desc"><div class='inline'></div></span>
|
234
|
+
|
235
|
+
</li>
|
236
|
+
|
237
|
+
|
238
|
+
<li class="public ">
|
239
|
+
<span class="summary_signature">
|
240
|
+
|
241
|
+
<a href="#cl_effective_wpm-instance_method" title="#cl_effective_wpm (instance method)">- (Object) <strong>cl_effective_wpm</strong> </a>
|
242
|
+
|
243
|
+
|
244
|
+
|
245
|
+
</span>
|
246
|
+
|
247
|
+
|
248
|
+
|
249
|
+
|
250
|
+
|
251
|
+
|
252
|
+
|
253
|
+
|
254
|
+
|
255
|
+
<span class="summary_desc"><div class='inline'></div></span>
|
256
|
+
|
257
|
+
</li>
|
258
|
+
|
259
|
+
|
260
|
+
<li class="public ">
|
261
|
+
<span class="summary_signature">
|
262
|
+
|
263
|
+
<a href="#cl_frequency-instance_method" title="#cl_frequency (instance method)">- (Object) <strong>cl_frequency</strong> </a>
|
264
|
+
|
265
|
+
|
266
|
+
|
267
|
+
</span>
|
268
|
+
|
269
|
+
|
270
|
+
|
271
|
+
|
272
|
+
|
273
|
+
|
274
|
+
|
275
|
+
|
276
|
+
|
277
|
+
<span class="summary_desc"><div class='inline'></div></span>
|
278
|
+
|
279
|
+
</li>
|
280
|
+
|
281
|
+
|
282
|
+
<li class="public ">
|
283
|
+
<span class="summary_signature">
|
284
|
+
|
285
|
+
<a href="#cl_noise-instance_method" title="#cl_noise (instance method)">- (Object) <strong>cl_noise</strong> </a>
|
286
|
+
|
287
|
+
|
288
|
+
|
289
|
+
</span>
|
290
|
+
|
291
|
+
|
292
|
+
|
293
|
+
|
294
|
+
|
295
|
+
|
296
|
+
|
297
|
+
|
298
|
+
|
299
|
+
<span class="summary_desc"><div class='inline'></div></span>
|
300
|
+
|
301
|
+
</li>
|
302
|
+
|
303
|
+
|
304
|
+
<li class="public ">
|
305
|
+
<span class="summary_signature">
|
306
|
+
|
307
|
+
<a href="#cl_quality-instance_method" title="#cl_quality (instance method)">- (Object) <strong>cl_quality</strong> </a>
|
308
|
+
|
309
|
+
|
310
|
+
|
311
|
+
</span>
|
312
|
+
|
313
|
+
|
314
|
+
|
315
|
+
|
316
|
+
|
317
|
+
|
318
|
+
|
319
|
+
|
320
|
+
|
321
|
+
<span class="summary_desc"><div class='inline'></div></span>
|
322
|
+
|
323
|
+
</li>
|
324
|
+
|
325
|
+
|
326
|
+
<li class="public ">
|
327
|
+
<span class="summary_signature">
|
328
|
+
|
329
|
+
<a href="#cl_sawtooth-instance_method" title="#cl_sawtooth (instance method)">- (Object) <strong>cl_sawtooth</strong> </a>
|
330
|
+
|
331
|
+
|
332
|
+
|
333
|
+
</span>
|
334
|
+
|
335
|
+
|
336
|
+
|
337
|
+
|
338
|
+
|
339
|
+
|
340
|
+
|
341
|
+
|
342
|
+
|
343
|
+
<span class="summary_desc"><div class='inline'></div></span>
|
344
|
+
|
345
|
+
</li>
|
346
|
+
|
347
|
+
|
348
|
+
<li class="public ">
|
349
|
+
<span class="summary_signature">
|
350
|
+
|
351
|
+
<a href="#cl_sinewave-instance_method" title="#cl_sinewave (instance method)">- (Object) <strong>cl_sinewave</strong> </a>
|
352
|
+
|
353
|
+
|
354
|
+
|
355
|
+
</span>
|
356
|
+
|
357
|
+
|
358
|
+
|
359
|
+
|
360
|
+
|
361
|
+
|
362
|
+
|
363
|
+
|
364
|
+
|
365
|
+
<span class="summary_desc"><div class='inline'></div></span>
|
366
|
+
|
367
|
+
</li>
|
368
|
+
|
369
|
+
|
370
|
+
<li class="public ">
|
371
|
+
<span class="summary_signature">
|
372
|
+
|
373
|
+
<a href="#cl_squarewave-instance_method" title="#cl_squarewave (instance method)">- (Object) <strong>cl_squarewave</strong> </a>
|
374
|
+
|
375
|
+
|
376
|
+
|
377
|
+
</span>
|
378
|
+
|
379
|
+
|
380
|
+
|
381
|
+
|
382
|
+
|
383
|
+
|
384
|
+
|
385
|
+
|
386
|
+
|
387
|
+
<span class="summary_desc"><div class='inline'></div></span>
|
388
|
+
|
389
|
+
</li>
|
390
|
+
|
391
|
+
|
392
|
+
<li class="public ">
|
393
|
+
<span class="summary_signature">
|
394
|
+
|
395
|
+
<a href="#cl_title-instance_method" title="#cl_title (instance method)">- (Object) <strong>cl_title</strong> </a>
|
396
|
+
|
397
|
+
|
398
|
+
|
399
|
+
</span>
|
400
|
+
|
401
|
+
|
402
|
+
|
403
|
+
|
404
|
+
|
405
|
+
|
406
|
+
|
407
|
+
|
408
|
+
|
409
|
+
<span class="summary_desc"><div class='inline'></div></span>
|
410
|
+
|
411
|
+
</li>
|
412
|
+
|
413
|
+
|
414
|
+
<li class="public ">
|
415
|
+
<span class="summary_signature">
|
416
|
+
|
417
|
+
<a href="#cl_word_spacing-instance_method" title="#cl_word_spacing (instance method)">- (Object) <strong>cl_word_spacing</strong> </a>
|
418
|
+
|
419
|
+
|
420
|
+
|
421
|
+
</span>
|
422
|
+
|
423
|
+
|
424
|
+
|
425
|
+
|
426
|
+
|
427
|
+
|
428
|
+
|
429
|
+
|
430
|
+
|
431
|
+
<span class="summary_desc"><div class='inline'></div></span>
|
432
|
+
|
433
|
+
</li>
|
434
|
+
|
435
|
+
|
436
|
+
<li class="public ">
|
437
|
+
<span class="summary_signature">
|
438
|
+
|
439
|
+
<a href="#cl_wpm-instance_method" title="#cl_wpm (instance method)">- (Object) <strong>cl_wpm</strong> </a>
|
440
|
+
|
441
|
+
|
442
|
+
|
443
|
+
</span>
|
444
|
+
|
445
|
+
|
446
|
+
|
447
|
+
|
448
|
+
|
449
|
+
|
450
|
+
|
451
|
+
|
452
|
+
|
453
|
+
<span class="summary_desc"><div class='inline'></div></span>
|
454
|
+
|
455
|
+
</li>
|
456
|
+
|
457
|
+
|
458
|
+
<li class="public ">
|
459
|
+
<span class="summary_signature">
|
460
|
+
|
461
|
+
<a href="#coarse_quality-instance_method" title="#coarse_quality (instance method)">- (Object) <strong>coarse_quality</strong>(quality) </a>
|
462
|
+
|
463
|
+
|
464
|
+
|
465
|
+
</span>
|
466
|
+
|
467
|
+
|
468
|
+
|
469
|
+
|
470
|
+
|
471
|
+
|
472
|
+
|
473
|
+
|
474
|
+
|
475
|
+
<span class="summary_desc"><div class='inline'></div></span>
|
476
|
+
|
477
|
+
</li>
|
478
|
+
|
479
|
+
|
480
|
+
<li class="public ">
|
481
|
+
<span class="summary_signature">
|
482
|
+
|
483
|
+
<a href="#initialize-instance_method" title="#initialize (instance method)">- (Cl) <strong>initialize</strong> </a>
|
484
|
+
|
485
|
+
|
486
|
+
|
487
|
+
</span>
|
488
|
+
|
489
|
+
|
490
|
+
<span class="note title constructor">constructor</span>
|
491
|
+
|
492
|
+
|
493
|
+
|
494
|
+
|
495
|
+
|
496
|
+
|
497
|
+
|
498
|
+
|
499
|
+
<span class="summary_desc"><div class='inline'>
|
500
|
+
<p>A new instance of Cl.</p>
|
501
|
+
</div></span>
|
502
|
+
|
503
|
+
</li>
|
504
|
+
|
505
|
+
|
506
|
+
</ul>
|
507
|
+
|
508
|
+
|
509
|
+
<div id="constructor_details" class="method_details_list">
|
510
|
+
<h2>Constructor Details</h2>
|
511
|
+
|
512
|
+
<div class="method_details first">
|
513
|
+
<h3 class="signature first" id="initialize-instance_method">
|
514
|
+
|
515
|
+
- (<tt><span class='object_link'><a href="" title="Cl (class)">Cl</a></span></tt>) <strong>initialize</strong>
|
516
|
+
|
517
|
+
|
518
|
+
|
519
|
+
|
520
|
+
|
521
|
+
</h3><div class="docstring">
|
522
|
+
<div class="discussion">
|
523
|
+
|
524
|
+
<p>Returns a new instance of Cl</p>
|
525
|
+
|
526
|
+
|
527
|
+
</div>
|
528
|
+
</div>
|
529
|
+
<div class="tags">
|
530
|
+
|
531
|
+
|
532
|
+
</div><table class="source_code">
|
533
|
+
<tr>
|
534
|
+
<td>
|
535
|
+
<pre class="lines">
|
536
|
+
|
537
|
+
|
538
|
+
7
|
539
|
+
8
|
540
|
+
9
|
541
|
+
10
|
542
|
+
11
|
543
|
+
12
|
544
|
+
13</pre>
|
545
|
+
</td>
|
546
|
+
<td>
|
547
|
+
<pre class="code"><span class="info file"># File 'lib/cw/cl.rb', line 7</span>
|
548
|
+
|
549
|
+
<span class='kw'>def</span> <span class='id identifier rubyid_initialize'>initialize</span>
|
550
|
+
<span class='ivar'>@tone</span> <span class='op'>=</span> <span class='lbrace'>{</span>
|
551
|
+
<span class='label'>sinewave:</span> <span class='int'>0</span><span class='comma'>,</span>
|
552
|
+
<span class='label'>sawtooth:</span> <span class='int'>1</span><span class='comma'>,</span>
|
553
|
+
<span class='label'>squarewave:</span> <span class='int'>2</span>
|
554
|
+
<span class='rbrace'>}</span>
|
555
|
+
<span class='kw'>end</span></pre>
|
556
|
+
</td>
|
557
|
+
</tr>
|
558
|
+
</table>
|
559
|
+
</div>
|
560
|
+
|
561
|
+
</div>
|
562
|
+
|
563
|
+
|
564
|
+
<div id="instance_method_details" class="method_details_list">
|
565
|
+
<h2>Instance Method Details</h2>
|
566
|
+
|
567
|
+
|
568
|
+
<div class="method_details first">
|
569
|
+
<h3 class="signature first" id="build_command_line-instance_method">
|
570
|
+
|
571
|
+
- (<tt>Object</tt>) <strong>build_command_line</strong>
|
572
|
+
|
573
|
+
|
574
|
+
|
575
|
+
|
576
|
+
|
577
|
+
</h3><table class="source_code">
|
578
|
+
<tr>
|
579
|
+
<td>
|
580
|
+
<pre class="lines">
|
581
|
+
|
582
|
+
|
583
|
+
91
|
584
|
+
92
|
585
|
+
93
|
586
|
+
94
|
587
|
+
95
|
588
|
+
96
|
589
|
+
97
|
590
|
+
98
|
591
|
+
99
|
592
|
+
100
|
593
|
+
101
|
594
|
+
102
|
595
|
+
103
|
596
|
+
104
|
597
|
+
105
|
598
|
+
106</pre>
|
599
|
+
</td>
|
600
|
+
<td>
|
601
|
+
<pre class="code"><span class="info file"># File 'lib/cw/cl.rb', line 91</span>
|
602
|
+
|
603
|
+
<span class='kw'>def</span> <span class='id identifier rubyid_build_command_line'>build_command_line</span>
|
604
|
+
<span class='lbracket'>[</span> <span class='id identifier rubyid_cl_wpm'>cl_wpm</span><span class='comma'>,</span>
|
605
|
+
<span class='id identifier rubyid_cl_effective_wpm'>cl_effective_wpm</span><span class='comma'>,</span>
|
606
|
+
<span class='id identifier rubyid_cl_word_spacing'>cl_word_spacing</span><span class='comma'>,</span>
|
607
|
+
<span class='id identifier rubyid_cl_frequency'>cl_frequency</span><span class='comma'>,</span>
|
608
|
+
<span class='id identifier rubyid_cl_squarewave'>cl_squarewave</span><span class='comma'>,</span>
|
609
|
+
<span class='id identifier rubyid_cl_sawtooth'>cl_sawtooth</span><span class='comma'>,</span>
|
610
|
+
<span class='id identifier rubyid_cl_sinewave'>cl_sinewave</span><span class='comma'>,</span>
|
611
|
+
<span class='id identifier rubyid_cl_author'>cl_author</span><span class='comma'>,</span>
|
612
|
+
<span class='id identifier rubyid_cl_title'>cl_title</span><span class='comma'>,</span>
|
613
|
+
<span class='id identifier rubyid_cl_noise'>cl_noise</span><span class='comma'>,</span>
|
614
|
+
<span class='id identifier rubyid_cl_audio_filename'>cl_audio_filename</span><span class='comma'>,</span>
|
615
|
+
<span class='id identifier rubyid_cl_quality'>cl_quality</span><span class='comma'>,</span>
|
616
|
+
<span class='id identifier rubyid_cl_command_line'>cl_command_line</span>
|
617
|
+
<span class='rbracket'>]</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_param'>param</span><span class='op'>|</span> <span class='id identifier rubyid_param'>param</span><span class='rbrace'>}</span><span class='period'>.</span><span class='id identifier rubyid_join'>join</span>
|
618
|
+
<span class='kw'>end</span></pre>
|
619
|
+
</td>
|
620
|
+
</tr>
|
621
|
+
</table>
|
622
|
+
</div>
|
623
|
+
|
624
|
+
<div class="method_details ">
|
625
|
+
<h3 class="signature " id="cl_audio_filename-instance_method">
|
626
|
+
|
627
|
+
- (<tt>Object</tt>) <strong>cl_audio_filename</strong>
|
628
|
+
|
629
|
+
|
630
|
+
|
631
|
+
|
632
|
+
|
633
|
+
</h3><table class="source_code">
|
634
|
+
<tr>
|
635
|
+
<td>
|
636
|
+
<pre class="lines">
|
637
|
+
|
638
|
+
|
639
|
+
65
|
640
|
+
66
|
641
|
+
67</pre>
|
642
|
+
</td>
|
643
|
+
<td>
|
644
|
+
<pre class="code"><span class="info file"># File 'lib/cw/cl.rb', line 65</span>
|
645
|
+
|
646
|
+
<span class='kw'>def</span> <span class='id identifier rubyid_cl_audio_filename'>cl_audio_filename</span>
|
647
|
+
<span class='tstring'><span class='tstring_beg'>"</span><span class='tstring_content'>-o \"</span><span class='embexpr_beg'>#{</span><span class='const'>Params</span><span class='period'>.</span><span class='id identifier rubyid_audio_dir'>audio_dir</span><span class='embexpr_end'>}</span><span class='tstring_content'>/</span><span class='embexpr_beg'>#{</span><span class='const'>Params</span><span class='period'>.</span><span class='id identifier rubyid_audio_filename'>audio_filename</span><span class='embexpr_end'>}</span><span class='tstring_content'>\" </span><span class='tstring_end'>"</span></span>
|
648
|
+
<span class='kw'>end</span></pre>
|
649
|
+
</td>
|
650
|
+
</tr>
|
651
|
+
</table>
|
652
|
+
</div>
|
653
|
+
|
654
|
+
<div class="method_details ">
|
655
|
+
<h3 class="signature " id="cl_author-instance_method">
|
656
|
+
|
657
|
+
- (<tt>Object</tt>) <strong>cl_author</strong>
|
658
|
+
|
659
|
+
|
660
|
+
|
661
|
+
|
662
|
+
|
663
|
+
</h3><table class="source_code">
|
664
|
+
<tr>
|
665
|
+
<td>
|
666
|
+
<pre class="lines">
|
667
|
+
|
668
|
+
|
669
|
+
50
|
670
|
+
51
|
671
|
+
52
|
672
|
+
53</pre>
|
673
|
+
</td>
|
674
|
+
<td>
|
675
|
+
<pre class="code"><span class="info file"># File 'lib/cw/cl.rb', line 50</span>
|
676
|
+
|
677
|
+
<span class='kw'>def</span> <span class='id identifier rubyid_cl_author'>cl_author</span>
|
678
|
+
<span class='id identifier rubyid_author'>author</span> <span class='op'>=</span> <span class='const'>Params</span><span class='period'>.</span><span class='id identifier rubyid_author'>author</span>
|
679
|
+
<span class='id identifier rubyid_author'>author</span> <span class='op'>?</span> <span class='tstring'><span class='tstring_beg'>"</span><span class='tstring_content'>-a \"</span><span class='embexpr_beg'>#{</span><span class='id identifier rubyid_author'>author</span><span class='embexpr_end'>}</span><span class='tstring_content'>\" </span><span class='tstring_end'>"</span></span> <span class='op'>:</span> <span class='tstring'><span class='tstring_beg'>'</span><span class='tstring_end'>'</span></span>
|
680
|
+
<span class='kw'>end</span></pre>
|
681
|
+
</td>
|
682
|
+
</tr>
|
683
|
+
</table>
|
684
|
+
</div>
|
685
|
+
|
686
|
+
<div class="method_details ">
|
687
|
+
<h3 class="signature " id="cl_command_line-instance_method">
|
688
|
+
|
689
|
+
- (<tt>Object</tt>) <strong>cl_command_line</strong>
|
690
|
+
|
691
|
+
|
692
|
+
|
693
|
+
|
694
|
+
|
695
|
+
</h3><table class="source_code">
|
696
|
+
<tr>
|
697
|
+
<td>
|
698
|
+
<pre class="lines">
|
699
|
+
|
700
|
+
|
701
|
+
86
|
702
|
+
87
|
703
|
+
88
|
704
|
+
89</pre>
|
705
|
+
</td>
|
706
|
+
<td>
|
707
|
+
<pre class="code"><span class="info file"># File 'lib/cw/cl.rb', line 86</span>
|
708
|
+
|
709
|
+
<span class='kw'>def</span> <span class='id identifier rubyid_cl_command_line'>cl_command_line</span>
|
710
|
+
<span class='id identifier rubyid_cl'>cl</span> <span class='op'>=</span> <span class='const'>Params</span><span class='period'>.</span><span class='id identifier rubyid_command_line'>command_line</span>
|
711
|
+
<span class='id identifier rubyid_cl'>cl</span> <span class='op'>?</span> <span class='tstring'><span class='tstring_beg'>"</span><span class='embexpr_beg'>#{</span><span class='id identifier rubyid_cl'>cl</span><span class='embexpr_end'>}</span><span class='tstring_end'>"</span></span> <span class='op'>:</span> <span class='tstring'><span class='tstring_beg'>'</span><span class='tstring_end'>'</span></span>
|
712
|
+
<span class='kw'>end</span></pre>
|
713
|
+
</td>
|
714
|
+
</tr>
|
715
|
+
</table>
|
716
|
+
</div>
|
717
|
+
|
718
|
+
<div class="method_details ">
|
719
|
+
<h3 class="signature " id="cl_echo-instance_method">
|
720
|
+
|
721
|
+
- (<tt>Object</tt>) <strong>cl_echo</strong>(words)
|
722
|
+
|
723
|
+
|
724
|
+
|
725
|
+
|
726
|
+
|
727
|
+
</h3><table class="source_code">
|
728
|
+
<tr>
|
729
|
+
<td>
|
730
|
+
<pre class="lines">
|
731
|
+
|
732
|
+
|
733
|
+
108
|
734
|
+
109
|
735
|
+
110</pre>
|
736
|
+
</td>
|
737
|
+
<td>
|
738
|
+
<pre class="code"><span class="info file"># File 'lib/cw/cl.rb', line 108</span>
|
739
|
+
|
740
|
+
<span class='kw'>def</span> <span class='id identifier rubyid_cl_echo'>cl_echo</span> <span class='id identifier rubyid_words'>words</span>
|
741
|
+
<span class='tstring'><span class='tstring_beg'>"</span><span class='tstring_content'>echo </span><span class='embexpr_beg'>#{</span><span class='id identifier rubyid_words'>words</span><span class='embexpr_end'>}</span><span class='tstring_content'> | ebook2cw </span><span class='embexpr_beg'>#{</span><span class='id identifier rubyid_build_command_line'>build_command_line</span><span class='embexpr_end'>}</span><span class='tstring_end'>"</span></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="cl_effective_wpm-instance_method">
|
750
|
+
|
751
|
+
- (<tt>Object</tt>) <strong>cl_effective_wpm</strong>
|
752
|
+
|
753
|
+
|
754
|
+
|
755
|
+
|
756
|
+
|
757
|
+
</h3><table class="source_code">
|
758
|
+
<tr>
|
759
|
+
<td>
|
760
|
+
<pre class="lines">
|
761
|
+
|
762
|
+
|
763
|
+
20
|
764
|
+
21
|
765
|
+
22
|
766
|
+
23</pre>
|
767
|
+
</td>
|
768
|
+
<td>
|
769
|
+
<pre class="code"><span class="info file"># File 'lib/cw/cl.rb', line 20</span>
|
770
|
+
|
771
|
+
<span class='kw'>def</span> <span class='id identifier rubyid_cl_effective_wpm'>cl_effective_wpm</span>
|
772
|
+
<span class='id identifier rubyid_ewpm'>ewpm</span> <span class='op'>=</span> <span class='const'>Params</span><span class='period'>.</span><span class='id identifier rubyid_effective_wpm'>effective_wpm</span>
|
773
|
+
<span class='id identifier rubyid_ewpm'>ewpm</span> <span class='op'>?</span> <span class='tstring'><span class='tstring_beg'>"</span><span class='tstring_content'>-e </span><span class='embexpr_beg'>#{</span><span class='id identifier rubyid_ewpm'>ewpm</span><span class='embexpr_end'>}</span><span class='tstring_content'> </span><span class='tstring_end'>"</span></span> <span class='op'>:</span> <span class='tstring'><span class='tstring_beg'>'</span><span class='tstring_end'>'</span></span>
|
774
|
+
<span class='kw'>end</span></pre>
|
775
|
+
</td>
|
776
|
+
</tr>
|
777
|
+
</table>
|
778
|
+
</div>
|
779
|
+
|
780
|
+
<div class="method_details ">
|
781
|
+
<h3 class="signature " id="cl_frequency-instance_method">
|
782
|
+
|
783
|
+
- (<tt>Object</tt>) <strong>cl_frequency</strong>
|
784
|
+
|
785
|
+
|
786
|
+
|
787
|
+
|
788
|
+
|
789
|
+
</h3><table class="source_code">
|
790
|
+
<tr>
|
791
|
+
<td>
|
792
|
+
<pre class="lines">
|
793
|
+
|
794
|
+
|
795
|
+
30
|
796
|
+
31
|
797
|
+
32
|
798
|
+
33</pre>
|
799
|
+
</td>
|
800
|
+
<td>
|
801
|
+
<pre class="code"><span class="info file"># File 'lib/cw/cl.rb', line 30</span>
|
802
|
+
|
803
|
+
<span class='kw'>def</span> <span class='id identifier rubyid_cl_frequency'>cl_frequency</span>
|
804
|
+
<span class='id identifier rubyid_freq'>freq</span> <span class='op'>=</span> <span class='const'>Params</span><span class='period'>.</span><span class='id identifier rubyid_frequency'>frequency</span>
|
805
|
+
<span class='id identifier rubyid_freq'>freq</span> <span class='op'>?</span> <span class='tstring'><span class='tstring_beg'>"</span><span class='tstring_content'>-f </span><span class='embexpr_beg'>#{</span><span class='id identifier rubyid_freq'>freq</span><span class='embexpr_end'>}</span><span class='tstring_content'> </span><span class='tstring_end'>"</span></span> <span class='op'>:</span> <span class='tstring'><span class='tstring_beg'>'</span><span class='tstring_end'>'</span></span>
|
806
|
+
<span class='kw'>end</span></pre>
|
807
|
+
</td>
|
808
|
+
</tr>
|
809
|
+
</table>
|
810
|
+
</div>
|
811
|
+
|
812
|
+
<div class="method_details ">
|
813
|
+
<h3 class="signature " id="cl_noise-instance_method">
|
814
|
+
|
815
|
+
- (<tt>Object</tt>) <strong>cl_noise</strong>
|
816
|
+
|
817
|
+
|
818
|
+
|
819
|
+
|
820
|
+
|
821
|
+
</h3><table class="source_code">
|
822
|
+
<tr>
|
823
|
+
<td>
|
824
|
+
<pre class="lines">
|
825
|
+
|
826
|
+
|
827
|
+
60
|
828
|
+
61
|
829
|
+
62
|
830
|
+
63</pre>
|
831
|
+
</td>
|
832
|
+
<td>
|
833
|
+
<pre class="code"><span class="info file"># File 'lib/cw/cl.rb', line 60</span>
|
834
|
+
|
835
|
+
<span class='kw'>def</span> <span class='id identifier rubyid_cl_noise'>cl_noise</span>
|
836
|
+
<span class='id identifier rubyid_noise'>noise</span> <span class='op'>=</span> <span class='const'>Params</span><span class='period'>.</span><span class='id identifier rubyid_noise'>noise</span>
|
837
|
+
<span class='id identifier rubyid_noise'>noise</span> <span class='op'>?</span> <span class='tstring'><span class='tstring_beg'>"</span><span class='tstring_content'>-N 5 -B 1000 </span><span class='tstring_end'>"</span></span> <span class='op'>:</span> <span class='tstring'><span class='tstring_beg'>'</span><span class='tstring_end'>'</span></span>
|
838
|
+
<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="cl_quality-instance_method">
|
846
|
+
|
847
|
+
- (<tt>Object</tt>) <strong>cl_quality</strong>
|
848
|
+
|
849
|
+
|
850
|
+
|
851
|
+
|
852
|
+
|
853
|
+
</h3><table class="source_code">
|
854
|
+
<tr>
|
855
|
+
<td>
|
856
|
+
<pre class="lines">
|
857
|
+
|
858
|
+
|
859
|
+
77
|
860
|
+
78
|
861
|
+
79
|
862
|
+
80
|
863
|
+
81
|
864
|
+
82
|
865
|
+
83
|
866
|
+
84</pre>
|
867
|
+
</td>
|
868
|
+
<td>
|
869
|
+
<pre class="code"><span class="info file"># File 'lib/cw/cl.rb', line 77</span>
|
870
|
+
|
871
|
+
<span class='kw'>def</span> <span class='id identifier rubyid_cl_quality'>cl_quality</span>
|
872
|
+
<span class='id identifier rubyid_quality'>quality</span> <span class='op'>=</span> <span class='const'>Params</span><span class='period'>.</span><span class='id identifier rubyid_quality'>quality</span>
|
873
|
+
<span class='kw'>if</span> <span class='id identifier rubyid_quality'>quality</span> <span class='op'>&&</span> <span class='id identifier rubyid_quality'>quality</span><span class='period'>.</span><span class='id identifier rubyid_class'>class</span> <span class='op'>==</span> <span class='const'>Fixnum</span>
|
874
|
+
<span class='tstring'><span class='tstring_beg'>"</span><span class='tstring_content'>-q </span><span class='embexpr_beg'>#{</span><span class='id identifier rubyid_quality'>quality</span><span class='embexpr_end'>}</span><span class='tstring_content'> </span><span class='tstring_end'>"</span></span>
|
875
|
+
<span class='kw'>else</span>
|
876
|
+
<span class='id identifier rubyid_coarse_quality'>coarse_quality</span> <span class='id identifier rubyid_quality'>quality</span>
|
877
|
+
<span class='kw'>end</span>
|
878
|
+
<span class='kw'>end</span></pre>
|
879
|
+
</td>
|
880
|
+
</tr>
|
881
|
+
</table>
|
882
|
+
</div>
|
883
|
+
|
884
|
+
<div class="method_details ">
|
885
|
+
<h3 class="signature " id="cl_sawtooth-instance_method">
|
886
|
+
|
887
|
+
- (<tt>Object</tt>) <strong>cl_sawtooth</strong>
|
888
|
+
|
889
|
+
|
890
|
+
|
891
|
+
|
892
|
+
|
893
|
+
</h3><table class="source_code">
|
894
|
+
<tr>
|
895
|
+
<td>
|
896
|
+
<pre class="lines">
|
897
|
+
|
898
|
+
|
899
|
+
40
|
900
|
+
41
|
901
|
+
42
|
902
|
+
43</pre>
|
903
|
+
</td>
|
904
|
+
<td>
|
905
|
+
<pre class="code"><span class="info file"># File 'lib/cw/cl.rb', line 40</span>
|
906
|
+
|
907
|
+
<span class='kw'>def</span> <span class='id identifier rubyid_cl_sawtooth'>cl_sawtooth</span>
|
908
|
+
<span class='id identifier rubyid_st'>st</span> <span class='op'>=</span> <span class='const'>Params</span><span class='period'>.</span><span class='id identifier rubyid_tone'>tone</span> <span class='op'>==</span> <span class='symbol'>:sawtooth</span>
|
909
|
+
<span class='id identifier rubyid_st'>st</span> <span class='op'>?</span> <span class='tstring'><span class='tstring_beg'>"</span><span class='tstring_content'>-T </span><span class='embexpr_beg'>#{</span><span class='ivar'>@tone</span><span class='lbracket'>[</span><span class='symbol'>:sawtooth</span><span class='rbracket'>]</span><span class='embexpr_end'>}</span><span class='tstring_content'> </span><span class='tstring_end'>"</span></span> <span class='op'>:</span> <span class='tstring'><span class='tstring_beg'>'</span><span class='tstring_end'>'</span></span>
|
910
|
+
<span class='kw'>end</span></pre>
|
911
|
+
</td>
|
912
|
+
</tr>
|
913
|
+
</table>
|
914
|
+
</div>
|
915
|
+
|
916
|
+
<div class="method_details ">
|
917
|
+
<h3 class="signature " id="cl_sinewave-instance_method">
|
918
|
+
|
919
|
+
- (<tt>Object</tt>) <strong>cl_sinewave</strong>
|
920
|
+
|
921
|
+
|
922
|
+
|
923
|
+
|
924
|
+
|
925
|
+
</h3><table class="source_code">
|
926
|
+
<tr>
|
927
|
+
<td>
|
928
|
+
<pre class="lines">
|
929
|
+
|
930
|
+
|
931
|
+
45
|
932
|
+
46
|
933
|
+
47
|
934
|
+
48</pre>
|
935
|
+
</td>
|
936
|
+
<td>
|
937
|
+
<pre class="code"><span class="info file"># File 'lib/cw/cl.rb', line 45</span>
|
938
|
+
|
939
|
+
<span class='kw'>def</span> <span class='id identifier rubyid_cl_sinewave'>cl_sinewave</span>
|
940
|
+
<span class='id identifier rubyid_sin'>sin</span> <span class='op'>=</span> <span class='const'>Params</span><span class='period'>.</span><span class='id identifier rubyid_tone'>tone</span> <span class='op'>==</span> <span class='symbol'>:sinewave</span>
|
941
|
+
<span class='id identifier rubyid_sin'>sin</span> <span class='op'>?</span> <span class='tstring'><span class='tstring_beg'>"</span><span class='tstring_content'>-T </span><span class='embexpr_beg'>#{</span><span class='ivar'>@tone</span><span class='lbracket'>[</span><span class='symbol'>:sinewave</span><span class='rbracket'>]</span><span class='embexpr_end'>}</span><span class='tstring_content'> </span><span class='tstring_end'>"</span></span> <span class='op'>:</span> <span class='tstring'><span class='tstring_beg'>'</span><span class='tstring_end'>'</span></span>
|
942
|
+
<span class='kw'>end</span></pre>
|
943
|
+
</td>
|
944
|
+
</tr>
|
945
|
+
</table>
|
946
|
+
</div>
|
947
|
+
|
948
|
+
<div class="method_details ">
|
949
|
+
<h3 class="signature " id="cl_squarewave-instance_method">
|
950
|
+
|
951
|
+
- (<tt>Object</tt>) <strong>cl_squarewave</strong>
|
952
|
+
|
953
|
+
|
954
|
+
|
955
|
+
|
956
|
+
|
957
|
+
</h3><table class="source_code">
|
958
|
+
<tr>
|
959
|
+
<td>
|
960
|
+
<pre class="lines">
|
961
|
+
|
962
|
+
|
963
|
+
35
|
964
|
+
36
|
965
|
+
37
|
966
|
+
38</pre>
|
967
|
+
</td>
|
968
|
+
<td>
|
969
|
+
<pre class="code"><span class="info file"># File 'lib/cw/cl.rb', line 35</span>
|
970
|
+
|
971
|
+
<span class='kw'>def</span> <span class='id identifier rubyid_cl_squarewave'>cl_squarewave</span>
|
972
|
+
<span class='id identifier rubyid_sqr'>sqr</span> <span class='op'>=</span> <span class='const'>Params</span><span class='period'>.</span><span class='id identifier rubyid_tone'>tone</span> <span class='op'>==</span> <span class='symbol'>:squarewave</span>
|
973
|
+
<span class='id identifier rubyid_sqr'>sqr</span> <span class='op'>?</span> <span class='tstring'><span class='tstring_beg'>"</span><span class='tstring_content'>-T </span><span class='embexpr_beg'>#{</span><span class='ivar'>@tone</span><span class='lbracket'>[</span><span class='symbol'>:squarewave</span><span class='rbracket'>]</span><span class='embexpr_end'>}</span><span class='tstring_content'> </span><span class='tstring_end'>"</span></span> <span class='op'>:</span> <span class='tstring'><span class='tstring_beg'>'</span><span class='tstring_end'>'</span></span>
|
974
|
+
<span class='kw'>end</span></pre>
|
975
|
+
</td>
|
976
|
+
</tr>
|
977
|
+
</table>
|
978
|
+
</div>
|
979
|
+
|
980
|
+
<div class="method_details ">
|
981
|
+
<h3 class="signature " id="cl_title-instance_method">
|
982
|
+
|
983
|
+
- (<tt>Object</tt>) <strong>cl_title</strong>
|
984
|
+
|
985
|
+
|
986
|
+
|
987
|
+
|
988
|
+
|
989
|
+
</h3><table class="source_code">
|
990
|
+
<tr>
|
991
|
+
<td>
|
992
|
+
<pre class="lines">
|
993
|
+
|
994
|
+
|
995
|
+
55
|
996
|
+
56
|
997
|
+
57
|
998
|
+
58</pre>
|
999
|
+
</td>
|
1000
|
+
<td>
|
1001
|
+
<pre class="code"><span class="info file"># File 'lib/cw/cl.rb', line 55</span>
|
1002
|
+
|
1003
|
+
<span class='kw'>def</span> <span class='id identifier rubyid_cl_title'>cl_title</span>
|
1004
|
+
<span class='id identifier rubyid_title'>title</span> <span class='op'>=</span> <span class='const'>Params</span><span class='period'>.</span><span class='id identifier rubyid_title'>title</span>
|
1005
|
+
<span class='id identifier rubyid_title'>title</span> <span class='op'>?</span> <span class='tstring'><span class='tstring_beg'>"</span><span class='tstring_content'>-t \"</span><span class='embexpr_beg'>#{</span><span class='id identifier rubyid_title'>title</span><span class='embexpr_end'>}</span><span class='tstring_content'>\" </span><span class='tstring_end'>"</span></span> <span class='op'>:</span> <span class='tstring'><span class='tstring_beg'>'</span><span class='tstring_end'>'</span></span>
|
1006
|
+
<span class='kw'>end</span></pre>
|
1007
|
+
</td>
|
1008
|
+
</tr>
|
1009
|
+
</table>
|
1010
|
+
</div>
|
1011
|
+
|
1012
|
+
<div class="method_details ">
|
1013
|
+
<h3 class="signature " id="cl_word_spacing-instance_method">
|
1014
|
+
|
1015
|
+
- (<tt>Object</tt>) <strong>cl_word_spacing</strong>
|
1016
|
+
|
1017
|
+
|
1018
|
+
|
1019
|
+
|
1020
|
+
|
1021
|
+
</h3><table class="source_code">
|
1022
|
+
<tr>
|
1023
|
+
<td>
|
1024
|
+
<pre class="lines">
|
1025
|
+
|
1026
|
+
|
1027
|
+
25
|
1028
|
+
26
|
1029
|
+
27
|
1030
|
+
28</pre>
|
1031
|
+
</td>
|
1032
|
+
<td>
|
1033
|
+
<pre class="code"><span class="info file"># File 'lib/cw/cl.rb', line 25</span>
|
1034
|
+
|
1035
|
+
<span class='kw'>def</span> <span class='id identifier rubyid_cl_word_spacing'>cl_word_spacing</span>
|
1036
|
+
<span class='id identifier rubyid_ws'>ws</span> <span class='op'>=</span> <span class='const'>Params</span><span class='period'>.</span><span class='id identifier rubyid_word_spacing'>word_spacing</span>
|
1037
|
+
<span class='id identifier rubyid_ws'>ws</span> <span class='op'>?</span> <span class='tstring'><span class='tstring_beg'>"</span><span class='tstring_content'>-W </span><span class='embexpr_beg'>#{</span><span class='id identifier rubyid_ws'>ws</span><span class='embexpr_end'>}</span><span class='tstring_content'> </span><span class='tstring_end'>"</span></span> <span class='op'>:</span> <span class='tstring'><span class='tstring_beg'>'</span><span class='tstring_end'>'</span></span>
|
1038
|
+
<span class='kw'>end</span></pre>
|
1039
|
+
</td>
|
1040
|
+
</tr>
|
1041
|
+
</table>
|
1042
|
+
</div>
|
1043
|
+
|
1044
|
+
<div class="method_details ">
|
1045
|
+
<h3 class="signature " id="cl_wpm-instance_method">
|
1046
|
+
|
1047
|
+
- (<tt>Object</tt>) <strong>cl_wpm</strong>
|
1048
|
+
|
1049
|
+
|
1050
|
+
|
1051
|
+
|
1052
|
+
|
1053
|
+
</h3><table class="source_code">
|
1054
|
+
<tr>
|
1055
|
+
<td>
|
1056
|
+
<pre class="lines">
|
1057
|
+
|
1058
|
+
|
1059
|
+
15
|
1060
|
+
16
|
1061
|
+
17
|
1062
|
+
18</pre>
|
1063
|
+
</td>
|
1064
|
+
<td>
|
1065
|
+
<pre class="code"><span class="info file"># File 'lib/cw/cl.rb', line 15</span>
|
1066
|
+
|
1067
|
+
<span class='kw'>def</span> <span class='id identifier rubyid_cl_wpm'>cl_wpm</span>
|
1068
|
+
<span class='id identifier rubyid_wpm'>wpm</span> <span class='op'>=</span> <span class='const'>Params</span><span class='period'>.</span><span class='id identifier rubyid_wpm'>wpm</span>
|
1069
|
+
<span class='id identifier rubyid_wpm'>wpm</span> <span class='op'>?</span> <span class='tstring'><span class='tstring_beg'>"</span><span class='tstring_content'>-w </span><span class='embexpr_beg'>#{</span><span class='id identifier rubyid_wpm'>wpm</span><span class='embexpr_end'>}</span><span class='tstring_content'> </span><span class='tstring_end'>"</span></span> <span class='op'>:</span> <span class='tstring'><span class='tstring_beg'>'</span><span class='tstring_end'>'</span></span>
|
1070
|
+
<span class='kw'>end</span></pre>
|
1071
|
+
</td>
|
1072
|
+
</tr>
|
1073
|
+
</table>
|
1074
|
+
</div>
|
1075
|
+
|
1076
|
+
<div class="method_details ">
|
1077
|
+
<h3 class="signature " id="coarse_quality-instance_method">
|
1078
|
+
|
1079
|
+
- (<tt>Object</tt>) <strong>coarse_quality</strong>(quality)
|
1080
|
+
|
1081
|
+
|
1082
|
+
|
1083
|
+
|
1084
|
+
|
1085
|
+
</h3><table class="source_code">
|
1086
|
+
<tr>
|
1087
|
+
<td>
|
1088
|
+
<pre class="lines">
|
1089
|
+
|
1090
|
+
|
1091
|
+
69
|
1092
|
+
70
|
1093
|
+
71
|
1094
|
+
72
|
1095
|
+
73
|
1096
|
+
74
|
1097
|
+
75</pre>
|
1098
|
+
</td>
|
1099
|
+
<td>
|
1100
|
+
<pre class="code"><span class="info file"># File 'lib/cw/cl.rb', line 69</span>
|
1101
|
+
|
1102
|
+
<span class='kw'>def</span> <span class='id identifier rubyid_coarse_quality'>coarse_quality</span><span class='lparen'>(</span><span class='id identifier rubyid_quality'>quality</span><span class='rparen'>)</span>
|
1103
|
+
<span class='lbrace'>{</span>
|
1104
|
+
<span class='symbol'>:high</span> <span class='op'>=></span> <span class='tstring'><span class='tstring_beg'>"</span><span class='tstring_content'>-q 1 </span><span class='tstring_end'>"</span></span><span class='comma'>,</span>
|
1105
|
+
<span class='symbol'>:medium</span> <span class='op'>=></span> <span class='tstring'><span class='tstring_beg'>"</span><span class='tstring_content'>-q 5 </span><span class='tstring_end'>"</span></span><span class='comma'>,</span>
|
1106
|
+
<span class='symbol'>:low</span> <span class='op'>=></span> <span class='tstring'><span class='tstring_beg'>"</span><span class='tstring_content'>-q 9 </span><span class='tstring_end'>"</span></span>
|
1107
|
+
<span class='rbrace'>}</span><span class='lbracket'>[</span><span class='id identifier rubyid_quality'>quality</span><span class='rbracket'>]</span>
|
1108
|
+
<span class='kw'>end</span></pre>
|
1109
|
+
</td>
|
1110
|
+
</tr>
|
1111
|
+
</table>
|
1112
|
+
</div>
|
1113
|
+
|
1114
|
+
</div>
|
1115
|
+
|
1116
|
+
</div>
|
1117
|
+
|
1118
|
+
<div id="footer">
|
1119
|
+
Generated on Mon May 23 21:20:16 2016 by
|
1120
|
+
<a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
|
1121
|
+
0.8.7.6 (ruby-2.2.0).
|
1122
|
+
</div>
|
1123
|
+
|
1124
|
+
</body>
|
1125
|
+
</html>
|