cliutils 1.0.2 → 1.0.3

Sign up to get free protection for your applications and to get access to all the features.
Files changed (46) hide show
  1. checksums.yaml +4 -4
  2. data/.gitignore +2 -0
  3. data/.yardoc/checksums +11 -11
  4. data/.yardoc/object_types +0 -0
  5. data/.yardoc/objects/root.dat +0 -0
  6. data/Gemfile.lock +12 -33
  7. data/README.md +1 -1
  8. data/Rakefile +36 -31
  9. data/cliutils.gemspec +3 -2
  10. data/lib/cliutils/configuration.rb +13 -31
  11. data/lib/cliutils/configurator.rb +23 -62
  12. data/lib/cliutils/ext/Hash+Extensions.rb +39 -78
  13. data/lib/cliutils/ext/Logger+Extensions.rb +6 -11
  14. data/lib/cliutils/ext/String+Extensions.rb +25 -13
  15. data/lib/cliutils/logger-delegator.rb +15 -39
  16. data/lib/cliutils/messenging.rb +10 -28
  17. data/lib/cliutils/prefs.rb +18 -43
  18. data/lib/cliutils/pretty-io.rb +59 -127
  19. data/lib/cliutils/version.rb +2 -1
  20. data/lib/cliutils.rb +2 -0
  21. metadata +20 -32
  22. data/bin/cliutils +0 -38
  23. data/doc/CLIUtils/Configuration.html +0 -373
  24. data/doc/CLIUtils/Configurator.html +0 -873
  25. data/doc/CLIUtils/LoggerDelegator.html +0 -560
  26. data/doc/CLIUtils/Messenging.html +0 -396
  27. data/doc/CLIUtils/Prefs.html +0 -609
  28. data/doc/CLIUtils/PrettyIO.html +0 -1333
  29. data/doc/CLIUtils.html +0 -131
  30. data/doc/Hash.html +0 -672
  31. data/doc/Logger.html +0 -233
  32. data/doc/String.html +0 -562
  33. data/doc/_index.html +0 -207
  34. data/doc/class_list.html +0 -54
  35. data/doc/css/common.css +0 -1
  36. data/doc/css/full_list.css +0 -57
  37. data/doc/css/style.css +0 -339
  38. data/doc/file.README.html +0 -415
  39. data/doc/file_list.html +0 -56
  40. data/doc/frames.html +0 -26
  41. data/doc/index.html +0 -415
  42. data/doc/js/app.js +0 -219
  43. data/doc/js/full_list.js +0 -178
  44. data/doc/js/jquery.js +0 -4
  45. data/doc/method_list.html +0 -389
  46. data/doc/top-level-namespace.html +0 -114
@@ -1,609 +0,0 @@
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: CLIUtils::Prefs
8
-
9
- &mdash; Documentation by YARD 0.8.7.4
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#!CLIUtils/Prefs.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 (P)</a> &raquo;
35
- <span class='title'><span class='object_link'><a href="../CLIUtils.html" title="CLIUtils (module)">CLIUtils</a></span></span>
36
- &raquo;
37
- <span class="title">Prefs</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: CLIUtils::Prefs
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">CLIUtils::Prefs</li>
82
-
83
- </ul>
84
- <a href="#" class="inheritanceTree">show all</a>
85
-
86
- </dd>
87
-
88
-
89
-
90
-
91
-
92
-
93
- <dt class="r2">Includes:</dt>
94
- <dd class="r2"><span class='object_link'><a href="PrettyIO.html" title="CLIUtils::PrettyIO (module)">PrettyIO</a></span></dd>
95
-
96
-
97
-
98
-
99
-
100
- <dt class="r1 last">Defined in:</dt>
101
- <dd class="r1 last">lib/cliutils/prefs.rb</dd>
102
-
103
- </dl>
104
- <div class="clear"></div>
105
-
106
- <h2>Overview</h2><div class="docstring">
107
- <div class="discussion">
108
-
109
- <h6 id="label-"></h6>
110
-
111
- <pre class="code ruby"><code class="ruby">PrefManager Class
112
-
113
- Engine to derive preferences from a YAML file, deliver
114
- those to a user via a prompt, and collect the results.
115
- ======================================================</code></pre>
116
-
117
-
118
- </div>
119
- </div>
120
- <div class="tags">
121
-
122
-
123
- </div>
124
-
125
-
126
-
127
- <h2>Instance Attribute Summary <small>(<a href="#" class="summary_toggle">collapse</a>)</small></h2>
128
- <ul class="summary">
129
-
130
- <li class="public ">
131
- <span class="summary_signature">
132
-
133
- <a href="#answers-instance_method" title="#answers (instance method)">- (Object) <strong>answers</strong> </a>
134
-
135
-
136
-
137
- </span>
138
-
139
-
140
-
141
-
142
- <span class="note title readonly">readonly</span>
143
-
144
-
145
-
146
-
147
-
148
-
149
-
150
-
151
-
152
- <span class="summary_desc"><div class='inline'>
153
- <h6 id="label-Attributes++%3D%3D%3D%3D%3D%3D%3D%3D%3D%3D%3D%3D%3D%3D%3D%3D%3D%3D%3D%3D%3D%3D%3D%3D%3D%3D%3D%3D%3D%3D%3D%3D%3D%3D%3D%3D%3D%3D%3D%3D%3D%3D%3D%3D%3D%3D%3D%3D%3D%3D%3D%3D.">Attributes ====================================================.</h6>
154
- </div></span>
155
-
156
- </li>
157
-
158
-
159
- <li class="public ">
160
- <span class="summary_signature">
161
-
162
- <a href="#config_path-instance_method" title="#config_path (instance method)">- (Object) <strong>config_path</strong> </a>
163
-
164
-
165
-
166
- </span>
167
-
168
-
169
-
170
-
171
- <span class="note title readonly">readonly</span>
172
-
173
-
174
-
175
-
176
-
177
-
178
-
179
-
180
-
181
- <span class="summary_desc"><div class='inline'>
182
- <h6 id="label-Attributes++%3D%3D%3D%3D%3D%3D%3D%3D%3D%3D%3D%3D%3D%3D%3D%3D%3D%3D%3D%3D%3D%3D%3D%3D%3D%3D%3D%3D%3D%3D%3D%3D%3D%3D%3D%3D%3D%3D%3D%3D%3D%3D%3D%3D%3D%3D%3D%3D%3D%3D%3D%3D.">Attributes ====================================================.</h6>
183
- </div></span>
184
-
185
- </li>
186
-
187
-
188
- <li class="public ">
189
- <span class="summary_signature">
190
-
191
- <a href="#prompts-instance_method" title="#prompts (instance method)">- (Object) <strong>prompts</strong> </a>
192
-
193
-
194
-
195
- </span>
196
-
197
-
198
-
199
-
200
- <span class="note title readonly">readonly</span>
201
-
202
-
203
-
204
-
205
-
206
-
207
-
208
-
209
-
210
- <span class="summary_desc"><div class='inline'>
211
- <h6 id="label-Attributes++%3D%3D%3D%3D%3D%3D%3D%3D%3D%3D%3D%3D%3D%3D%3D%3D%3D%3D%3D%3D%3D%3D%3D%3D%3D%3D%3D%3D%3D%3D%3D%3D%3D%3D%3D%3D%3D%3D%3D%3D%3D%3D%3D%3D%3D%3D%3D%3D%3D%3D%3D%3D.">Attributes ====================================================.</h6>
212
- </div></span>
213
-
214
- </li>
215
-
216
-
217
- </ul>
218
-
219
-
220
-
221
-
222
-
223
- <h2>
224
- Instance Method Summary
225
- <small>(<a href="#" class="summary_toggle">collapse</a>)</small>
226
- </h2>
227
-
228
- <ul class="summary">
229
-
230
- <li class="public ">
231
- <span class="summary_signature">
232
-
233
- <a href="#ask-instance_method" title="#ask (instance method)">- (Object) <strong>ask</strong> </a>
234
-
235
-
236
-
237
- </span>
238
-
239
-
240
-
241
-
242
-
243
-
244
-
245
-
246
-
247
- <span class="summary_desc"><div class='inline'>
248
- <p>—————————————————- ask method.</p>
249
- </div></span>
250
-
251
- </li>
252
-
253
-
254
- <li class="public ">
255
- <span class="summary_signature">
256
-
257
- <a href="#initialize-instance_method" title="#initialize (instance method)">- (Prefs) <strong>initialize</strong>(data) </a>
258
-
259
-
260
-
261
- </span>
262
-
263
-
264
- <span class="note title constructor">constructor</span>
265
-
266
-
267
-
268
-
269
-
270
-
271
-
272
-
273
- <span class="summary_desc"><div class='inline'>
274
- <h6 id="label-Methods++%3D%3D%3D%3D%3D%3D%3D%3D%3D%3D%3D%3D%3D%3D%3D%3D%3D%3D%3D%3D%3D%3D%3D%3D%3D%3D%3D%3D%3D%3D%3D%3D%3D%3D%3D%3D%3D%3D%3D%3D%3D%3D%3D%3D%3D%3D%3D%3D%3D%3D%3D%3D++----------------------------------------------------++initialize+method.">Methods ==================================================== —————————————————- initialize method.</h6>
275
- </div></span>
276
-
277
- </li>
278
-
279
-
280
- </ul>
281
-
282
-
283
-
284
-
285
-
286
-
287
-
288
-
289
-
290
-
291
-
292
- <h3 class="inherited">Methods included from <span class='object_link'><a href="PrettyIO.html" title="CLIUtils::PrettyIO (module)">PrettyIO</a></span></h3>
293
- <p class="inherited"><span class='object_link'><a href="PrettyIO.html#color_chart-instance_method" title="CLIUtils::PrettyIO#color_chart (method)">#color_chart</a></span>, <span class='object_link'><a href="PrettyIO.html#debug-instance_method" title="CLIUtils::PrettyIO#debug (method)">#debug</a></span>, <span class='object_link'><a href="PrettyIO.html#error-instance_method" title="CLIUtils::PrettyIO#error (method)">#error</a></span>, <span class='object_link'><a href="PrettyIO.html#included-class_method" title="CLIUtils::PrettyIO.included (method)">included</a></span>, <span class='object_link'><a href="PrettyIO.html#info-instance_method" title="CLIUtils::PrettyIO#info (method)">#info</a></span>, <span class='object_link'><a href="PrettyIO.html#info_block-instance_method" title="CLIUtils::PrettyIO#info_block (method)">#info_block</a></span>, <span class='object_link'><a href="PrettyIO.html#log-instance_method" title="CLIUtils::PrettyIO#log (method)">#log</a></span>, <span class='object_link'><a href="PrettyIO.html#prompt-instance_method" title="CLIUtils::PrettyIO#prompt (method)">#prompt</a></span>, <span class='object_link'><a href="PrettyIO.html#section-instance_method" title="CLIUtils::PrettyIO#section (method)">#section</a></span>, <span class='object_link'><a href="PrettyIO.html#section_block-instance_method" title="CLIUtils::PrettyIO#section_block (method)">#section_block</a></span>, <span class='object_link'><a href="PrettyIO.html#success-instance_method" title="CLIUtils::PrettyIO#success (method)">#success</a></span>, <span class='object_link'><a href="PrettyIO.html#warn-instance_method" title="CLIUtils::PrettyIO#warn (method)">#warn</a></span>, <span class='object_link'><a href="PrettyIO.html#wrap-class_method" title="CLIUtils::PrettyIO.wrap (method)">wrap</a></span>, <span class='object_link'><a href="PrettyIO.html#wrap_at-class_method" title="CLIUtils::PrettyIO.wrap_at (method)">wrap_at</a></span>, <span class='object_link'><a href="PrettyIO.html#wrap_limit-class_method" title="CLIUtils::PrettyIO.wrap_limit (method)">wrap_limit</a></span></p>
294
- <div id="constructor_details" class="method_details_list">
295
- <h2>Constructor Details</h2>
296
-
297
- <div class="method_details first">
298
- <h3 class="signature first" id="initialize-instance_method">
299
-
300
- - (<tt><span class='object_link'><a href="" title="CLIUtils::Prefs (class)">Prefs</a></span></tt>) <strong>initialize</strong>(data)
301
-
302
-
303
-
304
-
305
-
306
- </h3><div class="docstring">
307
- <div class="discussion">
308
-
309
- <h6 id="label-"></h6>
310
-
311
- <pre class="code ruby"><code class="ruby">Methods
312
- ====================================================
313
- ----------------------------------------------------
314
- initialize method
315
-
316
- Reads prompt data from YAML file.
317
- @return Void
318
- ----------------------------------------------------</code></pre>
319
-
320
-
321
- </div>
322
- </div>
323
- <div class="tags">
324
-
325
-
326
- </div><table class="source_code">
327
- <tr>
328
- <td>
329
- <pre class="lines">
330
-
331
-
332
- 24
333
- 25
334
- 26
335
- 27
336
- 28
337
- 29
338
- 30
339
- 31
340
- 32
341
- 33
342
- 34
343
- 35
344
- 36
345
- 37
346
- 38
347
- 39
348
- 40
349
- 41
350
- 42
351
- 43
352
- 44
353
- 45
354
- 46</pre>
355
- </td>
356
- <td>
357
- <pre class="code"><span class="info file"># File 'lib/cliutils/prefs.rb', line 24</span>
358
-
359
- <span class='kw'>def</span> <span class='id identifier rubyid_initialize'>initialize</span><span class='lparen'>(</span><span class='id identifier rubyid_data'>data</span><span class='rparen'>)</span>
360
- <span class='ivar'>@answers</span> <span class='op'>=</span> <span class='lbracket'>[</span><span class='rbracket'>]</span>
361
- <span class='ivar'>@prompts</span> <span class='op'>=</span> <span class='lbrace'>{</span><span class='rbrace'>}</span>
362
-
363
- <span class='kw'>case</span> <span class='id identifier rubyid_data'>data</span>
364
- <span class='kw'>when</span> <span class='const'>String</span>
365
- <span class='kw'>if</span> <span class='const'>File</span><span class='period'>.</span><span class='id identifier rubyid_exists?'>exists?</span><span class='lparen'>(</span><span class='id identifier rubyid_data'>data</span><span class='rparen'>)</span>
366
- <span class='ivar'>@config_path</span> <span class='op'>=</span> <span class='id identifier rubyid_data'>data</span>
367
-
368
- <span class='id identifier rubyid_prompts'>prompts</span> <span class='op'>=</span> <span class='const'>YAML</span><span class='op'>::</span><span class='id identifier rubyid_load_file'>load_file</span><span class='lparen'>(</span><span class='id identifier rubyid_data'>data</span><span class='rparen'>)</span>
369
- <span class='ivar'>@prompts</span><span class='period'>.</span><span class='id identifier rubyid_deep_merge!'>deep_merge!</span><span class='lparen'>(</span><span class='id identifier rubyid_prompts'>prompts</span><span class='rparen'>)</span><span class='period'>.</span><span class='id identifier rubyid_deep_symbolize_keys!'>deep_symbolize_keys!</span>
370
- <span class='kw'>else</span>
371
- <span class='id identifier rubyid_fail'>fail</span> <span class='tstring'><span class='tstring_beg'>&quot;</span><span class='tstring_content'>Invalid configuration file: </span><span class='embexpr_beg'>#{</span> <span class='id identifier rubyid_yaml_path'>yaml_path</span> <span class='embexpr_end'>}</span><span class='tstring_end'>&quot;</span></span>
372
- <span class='kw'>end</span>
373
- <span class='kw'>when</span> <span class='const'>Array</span>
374
- <span class='ivar'>@config_path</span> <span class='op'>=</span> <span class='kw'>nil</span>
375
-
376
- <span class='id identifier rubyid_prompts'>prompts</span> <span class='op'>=</span> <span class='lbrace'>{</span><span class='symbol'>:prompts</span> <span class='op'>=&gt;</span> <span class='id identifier rubyid_data'>data</span><span class='rbrace'>}</span>
377
- <span class='ivar'>@prompts</span><span class='period'>.</span><span class='id identifier rubyid_deep_merge!'>deep_merge!</span><span class='lparen'>(</span><span class='id identifier rubyid_prompts'>prompts</span><span class='rparen'>)</span><span class='period'>.</span><span class='id identifier rubyid_deep_symbolize_keys!'>deep_symbolize_keys!</span>
378
- <span class='kw'>else</span>
379
- <span class='id identifier rubyid_fail'>fail</span> <span class='tstring'><span class='tstring_beg'>&#39;</span><span class='tstring_content'>Invalid configuration data</span><span class='tstring_end'>&#39;</span></span>
380
- <span class='kw'>end</span>
381
- <span class='kw'>end</span></pre>
382
- </td>
383
- </tr>
384
- </table>
385
- </div>
386
-
387
- </div>
388
-
389
- <div id="instance_attr_details" class="attr_details">
390
- <h2>Instance Attribute Details</h2>
391
-
392
-
393
- <span id=""></span>
394
- <div class="method_details first">
395
- <h3 class="signature first" id="answers-instance_method">
396
-
397
- - (<tt>Object</tt>) <strong>answers</strong> <span class="extras">(readonly)</span>
398
-
399
-
400
-
401
-
402
-
403
- </h3><div class="docstring">
404
- <div class="discussion">
405
-
406
- <h6 id="label-"></h6>
407
-
408
- <pre class="code ruby"><code class="ruby">Attributes
409
- ====================================================</code></pre>
410
-
411
-
412
- </div>
413
- </div>
414
- <div class="tags">
415
-
416
-
417
- </div><table class="source_code">
418
- <tr>
419
- <td>
420
- <pre class="lines">
421
-
422
-
423
- 13
424
- 14
425
- 15</pre>
426
- </td>
427
- <td>
428
- <pre class="code"><span class="info file"># File 'lib/cliutils/prefs.rb', line 13</span>
429
-
430
- <span class='kw'>def</span> <span class='id identifier rubyid_answers'>answers</span>
431
- <span class='ivar'>@answers</span>
432
- <span class='kw'>end</span></pre>
433
- </td>
434
- </tr>
435
- </table>
436
- </div>
437
-
438
-
439
- <span id=""></span>
440
- <div class="method_details ">
441
- <h3 class="signature " id="config_path-instance_method">
442
-
443
- - (<tt>Object</tt>) <strong>config_path</strong> <span class="extras">(readonly)</span>
444
-
445
-
446
-
447
-
448
-
449
- </h3><div class="docstring">
450
- <div class="discussion">
451
-
452
- <h6 id="label-"></h6>
453
-
454
- <pre class="code ruby"><code class="ruby">Attributes
455
- ====================================================</code></pre>
456
-
457
-
458
- </div>
459
- </div>
460
- <div class="tags">
461
-
462
-
463
- </div><table class="source_code">
464
- <tr>
465
- <td>
466
- <pre class="lines">
467
-
468
-
469
- 13
470
- 14
471
- 15</pre>
472
- </td>
473
- <td>
474
- <pre class="code"><span class="info file"># File 'lib/cliutils/prefs.rb', line 13</span>
475
-
476
- <span class='kw'>def</span> <span class='id identifier rubyid_config_path'>config_path</span>
477
- <span class='ivar'>@config_path</span>
478
- <span class='kw'>end</span></pre>
479
- </td>
480
- </tr>
481
- </table>
482
- </div>
483
-
484
-
485
- <span id=""></span>
486
- <div class="method_details ">
487
- <h3 class="signature " id="prompts-instance_method">
488
-
489
- - (<tt>Object</tt>) <strong>prompts</strong> <span class="extras">(readonly)</span>
490
-
491
-
492
-
493
-
494
-
495
- </h3><div class="docstring">
496
- <div class="discussion">
497
-
498
- <h6 id="label-"></h6>
499
-
500
- <pre class="code ruby"><code class="ruby">Attributes
501
- ====================================================</code></pre>
502
-
503
-
504
- </div>
505
- </div>
506
- <div class="tags">
507
-
508
-
509
- </div><table class="source_code">
510
- <tr>
511
- <td>
512
- <pre class="lines">
513
-
514
-
515
- 13
516
- 14
517
- 15</pre>
518
- </td>
519
- <td>
520
- <pre class="code"><span class="info file"># File 'lib/cliutils/prefs.rb', line 13</span>
521
-
522
- <span class='kw'>def</span> <span class='id identifier rubyid_prompts'>prompts</span>
523
- <span class='ivar'>@prompts</span>
524
- <span class='kw'>end</span></pre>
525
- </td>
526
- </tr>
527
- </table>
528
- </div>
529
-
530
- </div>
531
-
532
-
533
- <div id="instance_method_details" class="method_details_list">
534
- <h2>Instance Method Details</h2>
535
-
536
-
537
- <div class="method_details first">
538
- <h3 class="signature first" id="ask-instance_method">
539
-
540
- - (<tt>Object</tt>) <strong>ask</strong>
541
-
542
-
543
-
544
-
545
-
546
- </h3><div class="docstring">
547
- <div class="discussion">
548
- <hr>
549
-
550
- <pre class="code ruby"><code class="ruby">ask method
551
-
552
- Runs through all of the prompt questions and collects
553
- answers from the user. Note that all questions w/o
554
- requirements are examined first; once those are
555
- complete, questions w/ requirements are examined.
556
- @return Void
557
- ----------------------------------------------------</code></pre>
558
-
559
-
560
- </div>
561
- </div>
562
- <div class="tags">
563
-
564
-
565
- </div><table class="source_code">
566
- <tr>
567
- <td>
568
- <pre class="lines">
569
-
570
-
571
- 57
572
- 58
573
- 59
574
- 60
575
- 61
576
- 62
577
- 63
578
- 64
579
- 65</pre>
580
- </td>
581
- <td>
582
- <pre class="code"><span class="info file"># File 'lib/cliutils/prefs.rb', line 57</span>
583
-
584
- <span class='kw'>def</span> <span class='id identifier rubyid_ask'>ask</span>
585
- <span class='ivar'>@prompts</span><span class='lbracket'>[</span><span class='symbol'>:prompts</span><span class='rbracket'>]</span><span class='period'>.</span><span class='id identifier rubyid_reject'>reject</span> <span class='lbrace'>{</span> <span class='op'>|</span><span class='id identifier rubyid_p'>p</span><span class='op'>|</span> <span class='id identifier rubyid_p'>p</span><span class='lbracket'>[</span><span class='symbol'>:requirements</span><span class='rbracket'>]</span> <span class='rbrace'>}</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_p'>p</span><span class='op'>|</span>
586
- <span class='id identifier rubyid__deliver_prompt'>_deliver_prompt</span><span class='lparen'>(</span><span class='id identifier rubyid_p'>p</span><span class='rparen'>)</span>
587
- <span class='kw'>end</span>
588
-
589
- <span class='ivar'>@prompts</span><span class='lbracket'>[</span><span class='symbol'>:prompts</span><span class='rbracket'>]</span><span class='period'>.</span><span class='id identifier rubyid_find_all'>find_all</span> <span class='lbrace'>{</span> <span class='op'>|</span><span class='id identifier rubyid_p'>p</span><span class='op'>|</span> <span class='id identifier rubyid_p'>p</span><span class='lbracket'>[</span><span class='symbol'>:requirements</span><span class='rbracket'>]</span> <span class='rbrace'>}</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_p'>p</span><span class='op'>|</span>
590
- <span class='id identifier rubyid__deliver_prompt'>_deliver_prompt</span><span class='lparen'>(</span><span class='id identifier rubyid_p'>p</span><span class='rparen'>)</span> <span class='kw'>if</span> <span class='id identifier rubyid__requirements_fulfilled?'>_requirements_fulfilled?</span><span class='lparen'>(</span><span class='id identifier rubyid_p'>p</span><span class='rparen'>)</span>
591
- <span class='kw'>end</span>
592
- <span class='kw'>end</span></pre>
593
- </td>
594
- </tr>
595
- </table>
596
- </div>
597
-
598
- </div>
599
-
600
- </div>
601
-
602
- <div id="footer">
603
- Generated on Sat Mar 29 17:22:03 2014 by
604
- <a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
605
- 0.8.7.4 (ruby-2.1.0).
606
- </div>
607
-
608
- </body>
609
- </html>