rumodule 0.0.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +7 -0
- data/CHANGELOG.rdoc +11 -0
- data/LICENSE +20 -0
- data/README.rdoc +218 -0
- data/bin/rumodule +1069 -0
- data/doc/CmdAdd.html +837 -0
- data/doc/CmdDisplay.html +260 -0
- data/doc/CmdHelp.html +304 -0
- data/doc/CmdList.html +258 -0
- data/doc/CmdRm.html +832 -0
- data/doc/CmdSadd.html +300 -0
- data/doc/CmdSlist.html +258 -0
- data/doc/CmdSrm.html +283 -0
- data/doc/CmdWhich.html +258 -0
- data/doc/EnvVar.html +1351 -0
- data/doc/Rumodule.html +841 -0
- data/doc/RumoduleCommon.html +151 -0
- data/doc/RumoduleMod.html +202 -0
- data/doc/Utility.html +1403 -0
- data/doc/_index.html +202 -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.CHANGELOG.html +87 -0
- data/doc/file.README.html +303 -0
- data/doc/file_list.html +63 -0
- data/doc/frames.html +26 -0
- data/doc/index.html +303 -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 +423 -0
- data/doc/top-level-namespace.html +130 -0
- data/lib/version.rb +6 -0
- data/test/run_fish +3 -0
- data/test/run_zsh_sh_bash +3 -0
- data/test/test_fish +70 -0
- data/test/test_fish.log +60 -0
- data/test/test_golden.log +60 -0
- data/test/test_rumodule.rb +39 -0
- data/test/test_zsh_sh_bash +72 -0
- data/test/test_zsh_sh_bash.log +60 -0
- metadata +110 -0
data/doc/Utility.html
ADDED
@@ -0,0 +1,1403 @@
|
|
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
|
+
Module: Utility
|
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#!Utility.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 (U)</a> »
|
35
|
+
|
36
|
+
|
37
|
+
<span class="title">Utility</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>Module: Utility
|
67
|
+
|
68
|
+
|
69
|
+
|
70
|
+
</h1>
|
71
|
+
|
72
|
+
<dl class="box">
|
73
|
+
|
74
|
+
|
75
|
+
|
76
|
+
|
77
|
+
|
78
|
+
|
79
|
+
|
80
|
+
<dt class="r1">Included in:</dt>
|
81
|
+
<dd class="r1"><span class='object_link'><a href="Rumodule.html" title="Rumodule (class)">Rumodule</a></span></dd>
|
82
|
+
|
83
|
+
|
84
|
+
|
85
|
+
<dt class="r2 last">Defined in:</dt>
|
86
|
+
<dd class="r2 last">bin/rumodule</dd>
|
87
|
+
|
88
|
+
</dl>
|
89
|
+
<div class="clear"></div>
|
90
|
+
|
91
|
+
<h2>Overview</h2><div class="docstring">
|
92
|
+
<div class="discussion">
|
93
|
+
|
94
|
+
<p>Utility routines for Rumodule internal functions.</p>
|
95
|
+
|
96
|
+
|
97
|
+
</div>
|
98
|
+
</div>
|
99
|
+
<div class="tags">
|
100
|
+
|
101
|
+
|
102
|
+
</div>
|
103
|
+
<h2>Constant Summary</h2>
|
104
|
+
|
105
|
+
<dl class="constants">
|
106
|
+
|
107
|
+
<dt id="LOADED-constant" class="">LOADED =
|
108
|
+
<div class="docstring">
|
109
|
+
<div class="discussion">
|
110
|
+
|
111
|
+
<p>List of loaded modules.</p>
|
112
|
+
|
113
|
+
|
114
|
+
</div>
|
115
|
+
</div>
|
116
|
+
<div class="tags">
|
117
|
+
|
118
|
+
|
119
|
+
</div>
|
120
|
+
</dt>
|
121
|
+
<dd><pre class="code"><span class='tstring'><span class='tstring_beg'>'</span><span class='tstring_content'>RUMODULE_LOADED</span><span class='tstring_end'>'</span></span></pre></dd>
|
122
|
+
|
123
|
+
<dt id="SYSLOADED-constant" class="">SYSLOADED =
|
124
|
+
<div class="docstring">
|
125
|
+
<div class="discussion">
|
126
|
+
|
127
|
+
<p>List of loaded system modules.</p>
|
128
|
+
|
129
|
+
|
130
|
+
</div>
|
131
|
+
</div>
|
132
|
+
<div class="tags">
|
133
|
+
|
134
|
+
|
135
|
+
</div>
|
136
|
+
</dt>
|
137
|
+
<dd><pre class="code"><span class='tstring'><span class='tstring_beg'>'</span><span class='tstring_content'>RUMODULE_SYSLOADED</span><span class='tstring_end'>'</span></span></pre></dd>
|
138
|
+
|
139
|
+
<dt id="SUBLOADED-constant" class="">SUBLOADED =
|
140
|
+
<div class="docstring">
|
141
|
+
<div class="discussion">
|
142
|
+
|
143
|
+
<p>List of loaded submodules.</p>
|
144
|
+
|
145
|
+
|
146
|
+
</div>
|
147
|
+
</div>
|
148
|
+
<div class="tags">
|
149
|
+
|
150
|
+
|
151
|
+
</div>
|
152
|
+
</dt>
|
153
|
+
<dd><pre class="code"><span class='tstring'><span class='tstring_beg'>'</span><span class='tstring_content'>RUMODULE_SUBLOADED</span><span class='tstring_end'>'</span></span></pre></dd>
|
154
|
+
|
155
|
+
<dt id="MODULEDIRS-constant" class="">MODULEDIRS =
|
156
|
+
<div class="docstring">
|
157
|
+
<div class="discussion">
|
158
|
+
|
159
|
+
<p>List of directories including modules.</p>
|
160
|
+
|
161
|
+
|
162
|
+
</div>
|
163
|
+
</div>
|
164
|
+
<div class="tags">
|
165
|
+
|
166
|
+
|
167
|
+
</div>
|
168
|
+
</dt>
|
169
|
+
<dd><pre class="code"><span class='const'>ENV</span><span class='lbracket'>[</span><span class='tstring'><span class='tstring_beg'>'</span><span class='tstring_content'>RUMODULE</span><span class='tstring_end'>'</span></span><span class='rbracket'>]</span> <span class='op'>?</span> <span class='const'>ENV</span><span class='lbracket'>[</span><span class='tstring'><span class='tstring_beg'>'</span><span class='tstring_content'>RUMODULE</span><span class='tstring_end'>'</span></span><span class='rbracket'>]</span><span class='period'>.</span><span class='id identifier rubyid_split'>split</span><span class='lparen'>(</span><span class='tstring'><span class='tstring_beg'>'</span><span class='tstring_content'>:</span><span class='tstring_end'>'</span></span><span class='rparen'>)</span> <span class='op'>:</span> <span class='lbracket'>[</span><span class='rbracket'>]</span></pre></dd>
|
170
|
+
|
171
|
+
<dt id="RUMODULE_PUSH-constant" class="">RUMODULE_PUSH =
|
172
|
+
<div class="docstring">
|
173
|
+
<div class="discussion">
|
174
|
+
|
175
|
+
<p>Stack to store pushed env vars.</p>
|
176
|
+
|
177
|
+
|
178
|
+
</div>
|
179
|
+
</div>
|
180
|
+
<div class="tags">
|
181
|
+
|
182
|
+
|
183
|
+
</div>
|
184
|
+
</dt>
|
185
|
+
<dd><pre class="code"><span class='tstring'><span class='tstring_beg'>'</span><span class='tstring_content'>RUMODULE_PUSH</span><span class='tstring_end'>'</span></span></pre></dd>
|
186
|
+
|
187
|
+
</dl>
|
188
|
+
|
189
|
+
|
190
|
+
|
191
|
+
|
192
|
+
|
193
|
+
|
194
|
+
|
195
|
+
|
196
|
+
|
197
|
+
<h2>
|
198
|
+
Instance Method Summary
|
199
|
+
<small>(<a href="#" class="summary_toggle">collapse</a>)</small>
|
200
|
+
</h2>
|
201
|
+
|
202
|
+
<ul class="summary">
|
203
|
+
|
204
|
+
<li class="public ">
|
205
|
+
<span class="summary_signature">
|
206
|
+
|
207
|
+
<a href="#abort-instance_method" title="#abort (instance method)">- (Object) <strong>abort</strong> </a>
|
208
|
+
|
209
|
+
|
210
|
+
|
211
|
+
</span>
|
212
|
+
|
213
|
+
|
214
|
+
|
215
|
+
|
216
|
+
|
217
|
+
|
218
|
+
|
219
|
+
|
220
|
+
|
221
|
+
<span class="summary_desc"><div class='inline'>
|
222
|
+
<p>Exit program without shell output.</p>
|
223
|
+
</div></span>
|
224
|
+
|
225
|
+
</li>
|
226
|
+
|
227
|
+
|
228
|
+
<li class="public ">
|
229
|
+
<span class="summary_signature">
|
230
|
+
|
231
|
+
<a href="#all_loaded-instance_method" title="#all_loaded (instance method)">- (Array<String>) <strong>all_loaded</strong> </a>
|
232
|
+
|
233
|
+
|
234
|
+
|
235
|
+
</span>
|
236
|
+
|
237
|
+
|
238
|
+
|
239
|
+
|
240
|
+
|
241
|
+
|
242
|
+
|
243
|
+
|
244
|
+
|
245
|
+
<span class="summary_desc"><div class='inline'>
|
246
|
+
<p>List of loaded modules (normal + system).</p>
|
247
|
+
</div></span>
|
248
|
+
|
249
|
+
</li>
|
250
|
+
|
251
|
+
|
252
|
+
<li class="public ">
|
253
|
+
<span class="summary_signature">
|
254
|
+
|
255
|
+
<a href="#commonHelp-instance_method" title="#commonHelp (instance method)">- (Object) <strong>commonHelp</strong> </a>
|
256
|
+
|
257
|
+
|
258
|
+
|
259
|
+
</span>
|
260
|
+
|
261
|
+
|
262
|
+
|
263
|
+
|
264
|
+
|
265
|
+
|
266
|
+
|
267
|
+
|
268
|
+
|
269
|
+
<span class="summary_desc"><div class='inline'>
|
270
|
+
<p>Rumodule help.</p>
|
271
|
+
</div></span>
|
272
|
+
|
273
|
+
</li>
|
274
|
+
|
275
|
+
|
276
|
+
<li class="public ">
|
277
|
+
<span class="summary_signature">
|
278
|
+
|
279
|
+
<a href="#error-instance_method" title="#error (instance method)">- (Object) <strong>error</strong>(msg) </a>
|
280
|
+
|
281
|
+
|
282
|
+
|
283
|
+
</span>
|
284
|
+
|
285
|
+
|
286
|
+
|
287
|
+
|
288
|
+
|
289
|
+
|
290
|
+
|
291
|
+
|
292
|
+
|
293
|
+
<span class="summary_desc"><div class='inline'>
|
294
|
+
<p>Report error.</p>
|
295
|
+
</div></span>
|
296
|
+
|
297
|
+
</li>
|
298
|
+
|
299
|
+
|
300
|
+
<li class="public ">
|
301
|
+
<span class="summary_signature">
|
302
|
+
|
303
|
+
<a href="#findModule-instance_method" title="#findModule (instance method)">- (String) <strong>findModule</strong>(m) </a>
|
304
|
+
|
305
|
+
|
306
|
+
|
307
|
+
</span>
|
308
|
+
|
309
|
+
|
310
|
+
|
311
|
+
|
312
|
+
|
313
|
+
|
314
|
+
|
315
|
+
|
316
|
+
|
317
|
+
<span class="summary_desc"><div class='inline'>
|
318
|
+
<p>Return module file.</p>
|
319
|
+
</div></span>
|
320
|
+
|
321
|
+
</li>
|
322
|
+
|
323
|
+
|
324
|
+
<li class="public ">
|
325
|
+
<span class="summary_signature">
|
326
|
+
|
327
|
+
<a href="#help-instance_method" title="#help (instance method)">- (Object) <strong>help</strong>(str) </a>
|
328
|
+
|
329
|
+
|
330
|
+
|
331
|
+
</span>
|
332
|
+
|
333
|
+
|
334
|
+
|
335
|
+
|
336
|
+
|
337
|
+
|
338
|
+
|
339
|
+
|
340
|
+
|
341
|
+
<span class="summary_desc"><div class='inline'>
|
342
|
+
<p>Empty help for modules.</p>
|
343
|
+
</div></span>
|
344
|
+
|
345
|
+
</li>
|
346
|
+
|
347
|
+
|
348
|
+
<li class="public ">
|
349
|
+
<span class="summary_signature">
|
350
|
+
|
351
|
+
<a href="#loaded-instance_method" title="#loaded (instance method)">- (Array<String>) <strong>loaded</strong> </a>
|
352
|
+
|
353
|
+
|
354
|
+
|
355
|
+
</span>
|
356
|
+
|
357
|
+
|
358
|
+
|
359
|
+
|
360
|
+
|
361
|
+
|
362
|
+
|
363
|
+
|
364
|
+
|
365
|
+
<span class="summary_desc"><div class='inline'>
|
366
|
+
<p>List of loaded modules.</p>
|
367
|
+
</div></span>
|
368
|
+
|
369
|
+
</li>
|
370
|
+
|
371
|
+
|
372
|
+
<li class="public ">
|
373
|
+
<span class="summary_signature">
|
374
|
+
|
375
|
+
<a href="#loadModule-instance_method" title="#loadModule (instance method)">- (Object) <strong>loadModule</strong>(m) </a>
|
376
|
+
|
377
|
+
|
378
|
+
|
379
|
+
</span>
|
380
|
+
|
381
|
+
|
382
|
+
|
383
|
+
|
384
|
+
|
385
|
+
|
386
|
+
|
387
|
+
|
388
|
+
|
389
|
+
<span class="summary_desc"><div class='inline'>
|
390
|
+
<p>Load module content.</p>
|
391
|
+
</div></span>
|
392
|
+
|
393
|
+
</li>
|
394
|
+
|
395
|
+
|
396
|
+
<li class="public ">
|
397
|
+
<span class="summary_signature">
|
398
|
+
|
399
|
+
<a href="#registerModule-instance_method" title="#registerModule (instance method)">- (Object) <strong>registerModule</strong>(m, list = :normal) </a>
|
400
|
+
|
401
|
+
|
402
|
+
|
403
|
+
</span>
|
404
|
+
|
405
|
+
|
406
|
+
|
407
|
+
|
408
|
+
|
409
|
+
|
410
|
+
|
411
|
+
|
412
|
+
|
413
|
+
<span class="summary_desc"><div class='inline'>
|
414
|
+
<p>Register module as loaded.</p>
|
415
|
+
</div></span>
|
416
|
+
|
417
|
+
</li>
|
418
|
+
|
419
|
+
|
420
|
+
<li class="public ">
|
421
|
+
<span class="summary_signature">
|
422
|
+
|
423
|
+
<a href="#sys_loaded-instance_method" title="#sys_loaded (instance method)">- (Array<String>) <strong>sys_loaded</strong> </a>
|
424
|
+
|
425
|
+
|
426
|
+
|
427
|
+
</span>
|
428
|
+
|
429
|
+
|
430
|
+
|
431
|
+
|
432
|
+
|
433
|
+
|
434
|
+
|
435
|
+
|
436
|
+
|
437
|
+
<span class="summary_desc"><div class='inline'>
|
438
|
+
<p>List of loaded system modules.</p>
|
439
|
+
</div></span>
|
440
|
+
|
441
|
+
</li>
|
442
|
+
|
443
|
+
|
444
|
+
<li class="public ">
|
445
|
+
<span class="summary_signature">
|
446
|
+
|
447
|
+
<a href="#unregisterModule-instance_method" title="#unregisterModule (instance method)">- (Object) <strong>unregisterModule</strong>(m, list = :normal) </a>
|
448
|
+
|
449
|
+
|
450
|
+
|
451
|
+
</span>
|
452
|
+
|
453
|
+
|
454
|
+
|
455
|
+
|
456
|
+
|
457
|
+
|
458
|
+
|
459
|
+
|
460
|
+
|
461
|
+
<span class="summary_desc"><div class='inline'>
|
462
|
+
<p>UnRegister module as loaded.</p>
|
463
|
+
</div></span>
|
464
|
+
|
465
|
+
</li>
|
466
|
+
|
467
|
+
|
468
|
+
<li class="public ">
|
469
|
+
<span class="summary_signature">
|
470
|
+
|
471
|
+
<a href="#usage-instance_method" title="#usage (instance method)">- (Object) <strong>usage</strong>(msg) </a>
|
472
|
+
|
473
|
+
|
474
|
+
|
475
|
+
</span>
|
476
|
+
|
477
|
+
|
478
|
+
|
479
|
+
|
480
|
+
|
481
|
+
|
482
|
+
|
483
|
+
|
484
|
+
|
485
|
+
<span class="summary_desc"><div class='inline'>
|
486
|
+
<p>Report usage info.</p>
|
487
|
+
</div></span>
|
488
|
+
|
489
|
+
</li>
|
490
|
+
|
491
|
+
|
492
|
+
<li class="public ">
|
493
|
+
<span class="summary_signature">
|
494
|
+
|
495
|
+
<a href="#warning-instance_method" title="#warning (instance method)">- (Object) <strong>warning</strong>(msg) </a>
|
496
|
+
|
497
|
+
|
498
|
+
|
499
|
+
</span>
|
500
|
+
|
501
|
+
|
502
|
+
|
503
|
+
|
504
|
+
|
505
|
+
|
506
|
+
|
507
|
+
|
508
|
+
|
509
|
+
<span class="summary_desc"><div class='inline'>
|
510
|
+
<p>Report warning.</p>
|
511
|
+
</div></span>
|
512
|
+
|
513
|
+
</li>
|
514
|
+
|
515
|
+
|
516
|
+
</ul>
|
517
|
+
|
518
|
+
|
519
|
+
|
520
|
+
|
521
|
+
<div id="instance_method_details" class="method_details_list">
|
522
|
+
<h2>Instance Method Details</h2>
|
523
|
+
|
524
|
+
|
525
|
+
<div class="method_details first">
|
526
|
+
<h3 class="signature first" id="abort-instance_method">
|
527
|
+
|
528
|
+
- (<tt>Object</tt>) <strong>abort</strong>
|
529
|
+
|
530
|
+
|
531
|
+
|
532
|
+
|
533
|
+
|
534
|
+
</h3><div class="docstring">
|
535
|
+
<div class="discussion">
|
536
|
+
|
537
|
+
<p>Exit program without shell output.</p>
|
538
|
+
|
539
|
+
|
540
|
+
</div>
|
541
|
+
</div>
|
542
|
+
<div class="tags">
|
543
|
+
|
544
|
+
|
545
|
+
</div><table class="source_code">
|
546
|
+
<tr>
|
547
|
+
<td>
|
548
|
+
<pre class="lines">
|
549
|
+
|
550
|
+
|
551
|
+
487
|
552
|
+
488
|
553
|
+
489
|
554
|
+
490</pre>
|
555
|
+
</td>
|
556
|
+
<td>
|
557
|
+
<pre class="code"><span class="info file"># File 'bin/rumodule', line 487</span>
|
558
|
+
|
559
|
+
<span class='kw'>def</span> <span class='id identifier rubyid_abort'>abort</span>
|
560
|
+
<span class='const'>STDERR</span><span class='period'>.</span><span class='id identifier rubyid_flush'>flush</span>
|
561
|
+
<span class='id identifier rubyid_exit'>exit</span><span class='lparen'>(</span> <span class='kw'>false</span> <span class='rparen'>)</span>
|
562
|
+
<span class='kw'>end</span></pre>
|
563
|
+
</td>
|
564
|
+
</tr>
|
565
|
+
</table>
|
566
|
+
</div>
|
567
|
+
|
568
|
+
<div class="method_details ">
|
569
|
+
<h3 class="signature " id="all_loaded-instance_method">
|
570
|
+
|
571
|
+
- (<tt>Array<String></tt>) <strong>all_loaded</strong>
|
572
|
+
|
573
|
+
|
574
|
+
|
575
|
+
|
576
|
+
|
577
|
+
</h3><div class="docstring">
|
578
|
+
<div class="discussion">
|
579
|
+
|
580
|
+
<p>List of loaded modules (normal + system).</p>
|
581
|
+
|
582
|
+
|
583
|
+
</div>
|
584
|
+
</div>
|
585
|
+
<div class="tags">
|
586
|
+
|
587
|
+
<p class="tag_title">Returns:</p>
|
588
|
+
<ul class="return">
|
589
|
+
|
590
|
+
<li>
|
591
|
+
|
592
|
+
|
593
|
+
<span class='type'>(<tt>Array<String></tt>)</span>
|
594
|
+
|
595
|
+
|
596
|
+
|
597
|
+
—
|
598
|
+
<div class='inline'>
|
599
|
+
<p>Loaded modules.</p>
|
600
|
+
</div>
|
601
|
+
|
602
|
+
</li>
|
603
|
+
|
604
|
+
</ul>
|
605
|
+
|
606
|
+
</div><table class="source_code">
|
607
|
+
<tr>
|
608
|
+
<td>
|
609
|
+
<pre class="lines">
|
610
|
+
|
611
|
+
|
612
|
+
458
|
613
|
+
459
|
614
|
+
460
|
615
|
+
461
|
616
|
+
462</pre>
|
617
|
+
</td>
|
618
|
+
<td>
|
619
|
+
<pre class="code"><span class="info file"># File 'bin/rumodule', line 458</span>
|
620
|
+
|
621
|
+
<span class='kw'>def</span> <span class='id identifier rubyid_all_loaded'>all_loaded</span>
|
622
|
+
<span class='id identifier rubyid_getenvar'>getenvar</span><span class='lparen'>(</span> <span class='const'>LOADED</span><span class='comma'>,</span> <span class='kw'>true</span> <span class='rparen'>)</span><span class='period'>.</span><span class='id identifier rubyid_value'>value</span> <span class='op'>+</span>
|
623
|
+
<span class='id identifier rubyid_getenvar'>getenvar</span><span class='lparen'>(</span> <span class='const'>SYSLOADED</span><span class='comma'>,</span> <span class='kw'>true</span> <span class='rparen'>)</span><span class='period'>.</span><span class='id identifier rubyid_value'>value</span> <span class='op'>+</span>
|
624
|
+
<span class='id identifier rubyid_getenvar'>getenvar</span><span class='lparen'>(</span> <span class='const'>SUBLOADED</span><span class='comma'>,</span> <span class='kw'>true</span> <span class='rparen'>)</span><span class='period'>.</span><span class='id identifier rubyid_value'>value</span>
|
625
|
+
<span class='kw'>end</span></pre>
|
626
|
+
</td>
|
627
|
+
</tr>
|
628
|
+
</table>
|
629
|
+
</div>
|
630
|
+
|
631
|
+
<div class="method_details ">
|
632
|
+
<h3 class="signature " id="commonHelp-instance_method">
|
633
|
+
|
634
|
+
- (<tt>Object</tt>) <strong>commonHelp</strong>
|
635
|
+
|
636
|
+
|
637
|
+
|
638
|
+
|
639
|
+
|
640
|
+
</h3><div class="docstring">
|
641
|
+
<div class="discussion">
|
642
|
+
|
643
|
+
<p>Rumodule help.</p>
|
644
|
+
|
645
|
+
|
646
|
+
</div>
|
647
|
+
</div>
|
648
|
+
<div class="tags">
|
649
|
+
|
650
|
+
|
651
|
+
</div><table class="source_code">
|
652
|
+
<tr>
|
653
|
+
<td>
|
654
|
+
<pre class="lines">
|
655
|
+
|
656
|
+
|
657
|
+
600
|
658
|
+
601
|
659
|
+
602
|
660
|
+
603
|
661
|
+
604
|
662
|
+
605
|
663
|
+
606
|
664
|
+
607
|
665
|
+
608
|
666
|
+
609
|
667
|
+
610
|
668
|
+
611
|
669
|
+
612
|
670
|
+
613
|
671
|
+
614
|
672
|
+
615</pre>
|
673
|
+
</td>
|
674
|
+
<td>
|
675
|
+
<pre class="code"><span class="info file"># File 'bin/rumodule', line 600</span>
|
676
|
+
|
677
|
+
<span class='kw'>def</span> <span class='id identifier rubyid_commonHelp'>commonHelp</span>
|
678
|
+
<span class='id identifier rubyid_usage'>usage</span> <span class='tstring'><span class='tstring_beg'>%Q{</span><span class='tstring_content'>
|
679
|
+
Available Commands and Args:
|
680
|
+
- add modulefile+
|
681
|
+
- sadd modulefile+
|
682
|
+
- rm modulefile+
|
683
|
+
- list
|
684
|
+
- slist
|
685
|
+
- which modulefile
|
686
|
+
- display modulefile
|
687
|
+
- avail
|
688
|
+
- savail
|
689
|
+
- help modulefile
|
690
|
+
|
691
|
+
</span><span class='tstring_end'>}</span></span>
|
692
|
+
<span class='kw'>end</span></pre>
|
693
|
+
</td>
|
694
|
+
</tr>
|
695
|
+
</table>
|
696
|
+
</div>
|
697
|
+
|
698
|
+
<div class="method_details ">
|
699
|
+
<h3 class="signature " id="error-instance_method">
|
700
|
+
|
701
|
+
- (<tt>Object</tt>) <strong>error</strong>(msg)
|
702
|
+
|
703
|
+
|
704
|
+
|
705
|
+
|
706
|
+
|
707
|
+
</h3><div class="docstring">
|
708
|
+
<div class="discussion">
|
709
|
+
|
710
|
+
<p>Report error.</p>
|
711
|
+
|
712
|
+
|
713
|
+
</div>
|
714
|
+
</div>
|
715
|
+
<div class="tags">
|
716
|
+
|
717
|
+
|
718
|
+
</div><table class="source_code">
|
719
|
+
<tr>
|
720
|
+
<td>
|
721
|
+
<pre class="lines">
|
722
|
+
|
723
|
+
|
724
|
+
473
|
725
|
+
474
|
726
|
+
475
|
727
|
+
476</pre>
|
728
|
+
</td>
|
729
|
+
<td>
|
730
|
+
<pre class="code"><span class="info file"># File 'bin/rumodule', line 473</span>
|
731
|
+
|
732
|
+
<span class='kw'>def</span> <span class='id identifier rubyid_error'>error</span><span class='lparen'>(</span> <span class='id identifier rubyid_msg'>msg</span> <span class='rparen'>)</span>
|
733
|
+
<span class='const'>STDERR</span><span class='period'>.</span><span class='id identifier rubyid_puts'>puts</span><span class='lparen'>(</span> <span class='tstring'><span class='tstring_beg'>"</span><span class='tstring_content'>rumodule error: </span><span class='embexpr_beg'>#{</span><span class='id identifier rubyid_msg'>msg</span><span class='embexpr_end'>}</span><span class='tstring_end'>"</span></span> <span class='rparen'>)</span>
|
734
|
+
<span class='id identifier rubyid_abort'>abort</span>
|
735
|
+
<span class='kw'>end</span></pre>
|
736
|
+
</td>
|
737
|
+
</tr>
|
738
|
+
</table>
|
739
|
+
</div>
|
740
|
+
|
741
|
+
<div class="method_details ">
|
742
|
+
<h3 class="signature " id="findModule-instance_method">
|
743
|
+
|
744
|
+
- (<tt>String</tt>) <strong>findModule</strong>(m)
|
745
|
+
|
746
|
+
|
747
|
+
|
748
|
+
|
749
|
+
|
750
|
+
</h3><div class="docstring">
|
751
|
+
<div class="discussion">
|
752
|
+
|
753
|
+
<p>Return module file. If argument is dir, then check for directory content
|
754
|
+
for modules.</p>
|
755
|
+
|
756
|
+
<p>Alternatively 'm' can be abspath to module.</p>
|
757
|
+
|
758
|
+
|
759
|
+
</div>
|
760
|
+
</div>
|
761
|
+
<div class="tags">
|
762
|
+
<p class="tag_title">Parameters:</p>
|
763
|
+
<ul class="param">
|
764
|
+
|
765
|
+
<li>
|
766
|
+
|
767
|
+
<span class='name'>m</span>
|
768
|
+
|
769
|
+
|
770
|
+
<span class='type'>(<tt>String</tt>)</span>
|
771
|
+
|
772
|
+
|
773
|
+
|
774
|
+
—
|
775
|
+
<div class='inline'>
|
776
|
+
<p>Module name hint.</p>
|
777
|
+
</div>
|
778
|
+
|
779
|
+
</li>
|
780
|
+
|
781
|
+
</ul>
|
782
|
+
|
783
|
+
<p class="tag_title">Returns:</p>
|
784
|
+
<ul class="return">
|
785
|
+
|
786
|
+
<li>
|
787
|
+
|
788
|
+
|
789
|
+
<span class='type'>(<tt>String</tt>)</span>
|
790
|
+
|
791
|
+
|
792
|
+
|
793
|
+
—
|
794
|
+
<div class='inline'>
|
795
|
+
<p>Path to module.</p>
|
796
|
+
</div>
|
797
|
+
|
798
|
+
</li>
|
799
|
+
|
800
|
+
</ul>
|
801
|
+
|
802
|
+
</div><table class="source_code">
|
803
|
+
<tr>
|
804
|
+
<td>
|
805
|
+
<pre class="lines">
|
806
|
+
|
807
|
+
|
808
|
+
500
|
809
|
+
501
|
810
|
+
502
|
811
|
+
503
|
812
|
+
504
|
813
|
+
505
|
814
|
+
506
|
815
|
+
507
|
816
|
+
508
|
817
|
+
509
|
818
|
+
510
|
819
|
+
511
|
820
|
+
512
|
821
|
+
513
|
822
|
+
514
|
823
|
+
515
|
824
|
+
516
|
825
|
+
517
|
826
|
+
518
|
827
|
+
519
|
828
|
+
520
|
829
|
+
521
|
830
|
+
522
|
831
|
+
523
|
832
|
+
524
|
833
|
+
525
|
834
|
+
526
|
835
|
+
527
|
836
|
+
528
|
837
|
+
529
|
838
|
+
530
|
839
|
+
531
|
840
|
+
532
|
841
|
+
533
|
842
|
+
534
|
843
|
+
535
|
844
|
+
536</pre>
|
845
|
+
</td>
|
846
|
+
<td>
|
847
|
+
<pre class="code"><span class="info file"># File 'bin/rumodule', line 500</span>
|
848
|
+
|
849
|
+
<span class='kw'>def</span> <span class='id identifier rubyid_findModule'>findModule</span><span class='lparen'>(</span> <span class='id identifier rubyid_m'>m</span> <span class='rparen'>)</span>
|
850
|
+
|
851
|
+
<span class='kw'>if</span> <span class='id identifier rubyid_m'>m</span><span class='lbracket'>[</span><span class='int'>0</span><span class='rbracket'>]</span> <span class='op'>==</span> <span class='tstring'><span class='tstring_beg'>'</span><span class='tstring_content'>/</span><span class='tstring_end'>'</span></span>
|
852
|
+
|
853
|
+
<span class='comment'># Abspath
|
854
|
+
</span> <span class='id identifier rubyid_m'>m</span>
|
855
|
+
|
856
|
+
<span class='kw'>else</span>
|
857
|
+
|
858
|
+
<span class='comment'># Search for module.
|
859
|
+
</span>
|
860
|
+
<span class='id identifier rubyid_pwd'>pwd</span> <span class='op'>=</span> <span class='const'>Dir</span><span class='period'>.</span><span class='id identifier rubyid_pwd'>pwd</span>
|
861
|
+
|
862
|
+
<span class='id identifier rubyid_ret'>ret</span> <span class='op'>=</span> <span class='kw'>nil</span>
|
863
|
+
|
864
|
+
<span class='const'>MODULEDIRS</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_mdir'>mdir</span><span class='op'>|</span>
|
865
|
+
|
866
|
+
<span class='const'>Dir</span><span class='period'>.</span><span class='id identifier rubyid_chdir'>chdir</span> <span class='id identifier rubyid_mdir'>mdir</span>
|
867
|
+
|
868
|
+
<span class='kw'>if</span> <span class='const'>File</span><span class='period'>.</span><span class='id identifier rubyid_directory?'>directory?</span><span class='lparen'>(</span> <span class='id identifier rubyid_m'>m</span> <span class='rparen'>)</span>
|
869
|
+
<span class='id identifier rubyid_ret'>ret</span> <span class='op'>=</span> <span class='const'>Dir</span><span class='lbracket'>[</span> <span class='tstring'><span class='tstring_beg'>"</span><span class='embexpr_beg'>#{</span><span class='id identifier rubyid_m'>m</span><span class='embexpr_end'>}</span><span class='tstring_content'>/*</span><span class='tstring_end'>"</span></span> <span class='rbracket'>]</span><span class='period'>.</span><span class='id identifier rubyid_sort'>sort</span><span class='lbracket'>[</span><span class='op'>-</span><span class='int'>1</span><span class='rbracket'>]</span>
|
870
|
+
<span class='kw'>elsif</span> <span class='const'>File</span><span class='period'>.</span><span class='id identifier rubyid_exist?'>exist?</span><span class='lparen'>(</span> <span class='id identifier rubyid_m'>m</span> <span class='rparen'>)</span>
|
871
|
+
<span class='id identifier rubyid_ret'>ret</span> <span class='op'>=</span> <span class='id identifier rubyid_m'>m</span>
|
872
|
+
<span class='kw'>end</span>
|
873
|
+
|
874
|
+
<span class='kw'>if</span> <span class='id identifier rubyid_ret'>ret</span>
|
875
|
+
<span class='id identifier rubyid_ret'>ret</span> <span class='op'>=</span> <span class='id identifier rubyid_mdir'>mdir</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='op'>+</span> <span class='id identifier rubyid_ret'>ret</span>
|
876
|
+
<span class='kw'>break</span>
|
877
|
+
<span class='kw'>end</span>
|
878
|
+
|
879
|
+
<span class='kw'>end</span>
|
880
|
+
|
881
|
+
<span class='const'>Dir</span><span class='period'>.</span><span class='id identifier rubyid_chdir'>chdir</span><span class='lparen'>(</span> <span class='id identifier rubyid_pwd'>pwd</span> <span class='rparen'>)</span>
|
882
|
+
|
883
|
+
<span class='id identifier rubyid_ret'>ret</span>
|
884
|
+
<span class='kw'>end</span>
|
885
|
+
<span class='kw'>end</span></pre>
|
886
|
+
</td>
|
887
|
+
</tr>
|
888
|
+
</table>
|
889
|
+
</div>
|
890
|
+
|
891
|
+
<div class="method_details ">
|
892
|
+
<h3 class="signature " id="help-instance_method">
|
893
|
+
|
894
|
+
- (<tt>Object</tt>) <strong>help</strong>(str)
|
895
|
+
|
896
|
+
|
897
|
+
|
898
|
+
|
899
|
+
|
900
|
+
</h3><div class="docstring">
|
901
|
+
<div class="discussion">
|
902
|
+
|
903
|
+
<p>Empty help for modules. Help gets defined in CmdHelp when help is requested
|
904
|
+
by user.</p>
|
905
|
+
|
906
|
+
|
907
|
+
</div>
|
908
|
+
</div>
|
909
|
+
<div class="tags">
|
910
|
+
|
911
|
+
|
912
|
+
</div><table class="source_code">
|
913
|
+
<tr>
|
914
|
+
<td>
|
915
|
+
<pre class="lines">
|
916
|
+
|
917
|
+
|
918
|
+
620
|
919
|
+
621
|
920
|
+
622</pre>
|
921
|
+
</td>
|
922
|
+
<td>
|
923
|
+
<pre class="code"><span class="info file"># File 'bin/rumodule', line 620</span>
|
924
|
+
|
925
|
+
<span class='kw'>def</span> <span class='id identifier rubyid_help'>help</span><span class='lparen'>(</span> <span class='id identifier rubyid_str'>str</span> <span class='rparen'>)</span>
|
926
|
+
<span class='kw'>true</span>
|
927
|
+
<span class='kw'>end</span></pre>
|
928
|
+
</td>
|
929
|
+
</tr>
|
930
|
+
</table>
|
931
|
+
</div>
|
932
|
+
|
933
|
+
<div class="method_details ">
|
934
|
+
<h3 class="signature " id="loaded-instance_method">
|
935
|
+
|
936
|
+
- (<tt>Array<String></tt>) <strong>loaded</strong>
|
937
|
+
|
938
|
+
|
939
|
+
|
940
|
+
|
941
|
+
|
942
|
+
</h3><div class="docstring">
|
943
|
+
<div class="discussion">
|
944
|
+
|
945
|
+
<p>List of loaded modules.</p>
|
946
|
+
|
947
|
+
|
948
|
+
</div>
|
949
|
+
</div>
|
950
|
+
<div class="tags">
|
951
|
+
|
952
|
+
<p class="tag_title">Returns:</p>
|
953
|
+
<ul class="return">
|
954
|
+
|
955
|
+
<li>
|
956
|
+
|
957
|
+
|
958
|
+
<span class='type'>(<tt>Array<String></tt>)</span>
|
959
|
+
|
960
|
+
|
961
|
+
|
962
|
+
—
|
963
|
+
<div class='inline'>
|
964
|
+
<p>Loaded modules.</p>
|
965
|
+
</div>
|
966
|
+
|
967
|
+
</li>
|
968
|
+
|
969
|
+
</ul>
|
970
|
+
|
971
|
+
</div><table class="source_code">
|
972
|
+
<tr>
|
973
|
+
<td>
|
974
|
+
<pre class="lines">
|
975
|
+
|
976
|
+
|
977
|
+
442
|
978
|
+
443
|
979
|
+
444</pre>
|
980
|
+
</td>
|
981
|
+
<td>
|
982
|
+
<pre class="code"><span class="info file"># File 'bin/rumodule', line 442</span>
|
983
|
+
|
984
|
+
<span class='kw'>def</span> <span class='id identifier rubyid_loaded'>loaded</span>
|
985
|
+
<span class='id identifier rubyid_getenvar'>getenvar</span><span class='lparen'>(</span> <span class='const'>LOADED</span><span class='comma'>,</span> <span class='kw'>true</span> <span class='rparen'>)</span><span class='period'>.</span><span class='id identifier rubyid_value'>value</span>
|
986
|
+
<span class='kw'>end</span></pre>
|
987
|
+
</td>
|
988
|
+
</tr>
|
989
|
+
</table>
|
990
|
+
</div>
|
991
|
+
|
992
|
+
<div class="method_details ">
|
993
|
+
<h3 class="signature " id="loadModule-instance_method">
|
994
|
+
|
995
|
+
- (<tt>Object</tt>) <strong>loadModule</strong>(m)
|
996
|
+
|
997
|
+
|
998
|
+
|
999
|
+
|
1000
|
+
|
1001
|
+
</h3><div class="docstring">
|
1002
|
+
<div class="discussion">
|
1003
|
+
|
1004
|
+
<p>Load module content.</p>
|
1005
|
+
|
1006
|
+
|
1007
|
+
</div>
|
1008
|
+
</div>
|
1009
|
+
<div class="tags">
|
1010
|
+
<p class="tag_title">Parameters:</p>
|
1011
|
+
<ul class="param">
|
1012
|
+
|
1013
|
+
<li>
|
1014
|
+
|
1015
|
+
<span class='name'>m</span>
|
1016
|
+
|
1017
|
+
|
1018
|
+
<span class='type'>(<tt>String</tt>)</span>
|
1019
|
+
|
1020
|
+
|
1021
|
+
|
1022
|
+
—
|
1023
|
+
<div class='inline'>
|
1024
|
+
<p>Module name hint.</p>
|
1025
|
+
</div>
|
1026
|
+
|
1027
|
+
</li>
|
1028
|
+
|
1029
|
+
</ul>
|
1030
|
+
|
1031
|
+
|
1032
|
+
</div><table class="source_code">
|
1033
|
+
<tr>
|
1034
|
+
<td>
|
1035
|
+
<pre class="lines">
|
1036
|
+
|
1037
|
+
|
1038
|
+
542
|
1039
|
+
543
|
1040
|
+
544
|
1041
|
+
545
|
1042
|
+
546
|
1043
|
+
547
|
1044
|
+
548
|
1045
|
+
549
|
1046
|
+
550</pre>
|
1047
|
+
</td>
|
1048
|
+
<td>
|
1049
|
+
<pre class="code"><span class="info file"># File 'bin/rumodule', line 542</span>
|
1050
|
+
|
1051
|
+
<span class='kw'>def</span> <span class='id identifier rubyid_loadModule'>loadModule</span><span class='lparen'>(</span> <span class='id identifier rubyid_m'>m</span> <span class='rparen'>)</span>
|
1052
|
+
<span class='id identifier rubyid_path'>path</span> <span class='op'>=</span> <span class='id identifier rubyid_findModule'>findModule</span><span class='lparen'>(</span> <span class='id identifier rubyid_m'>m</span> <span class='rparen'>)</span>
|
1053
|
+
<span class='kw'>if</span> <span class='id identifier rubyid_path'>path</span> <span class='op'>&&</span> <span class='const'>File</span><span class='period'>.</span><span class='id identifier rubyid_exist?'>exist?</span><span class='lparen'>(</span> <span class='id identifier rubyid_path'>path</span> <span class='rparen'>)</span>
|
1054
|
+
<span class='id identifier rubyid_instance_eval'>instance_eval</span><span class='lparen'>(</span> <span class='const'>IO</span><span class='op'>::</span><span class='id identifier rubyid_read'>read</span><span class='lparen'>(</span> <span class='id identifier rubyid_path'>path</span> <span class='rparen'>)</span><span class='comma'>,</span> <span class='id identifier rubyid_path'>path</span> <span class='rparen'>)</span>
|
1055
|
+
<span class='id identifier rubyid_path'>path</span>
|
1056
|
+
<span class='kw'>else</span>
|
1057
|
+
<span class='id identifier rubyid_error'>error</span> <span class='tstring'><span class='tstring_beg'>"</span><span class='tstring_content'>Unknown module: \"</span><span class='embexpr_beg'>#{</span><span class='id identifier rubyid_m'>m</span><span class='embexpr_end'>}</span><span class='tstring_content'>\"!</span><span class='tstring_end'>"</span></span>
|
1058
|
+
<span class='kw'>end</span>
|
1059
|
+
<span class='kw'>end</span></pre>
|
1060
|
+
</td>
|
1061
|
+
</tr>
|
1062
|
+
</table>
|
1063
|
+
</div>
|
1064
|
+
|
1065
|
+
<div class="method_details ">
|
1066
|
+
<h3 class="signature " id="registerModule-instance_method">
|
1067
|
+
|
1068
|
+
- (<tt>Object</tt>) <strong>registerModule</strong>(m, list = :normal)
|
1069
|
+
|
1070
|
+
|
1071
|
+
|
1072
|
+
|
1073
|
+
|
1074
|
+
</h3><div class="docstring">
|
1075
|
+
<div class="discussion">
|
1076
|
+
|
1077
|
+
<p>Register module as loaded.</p>
|
1078
|
+
|
1079
|
+
|
1080
|
+
</div>
|
1081
|
+
</div>
|
1082
|
+
<div class="tags">
|
1083
|
+
<p class="tag_title">Parameters:</p>
|
1084
|
+
<ul class="param">
|
1085
|
+
|
1086
|
+
<li>
|
1087
|
+
|
1088
|
+
<span class='name'>m</span>
|
1089
|
+
|
1090
|
+
|
1091
|
+
<span class='type'>(<tt>String</tt>)</span>
|
1092
|
+
|
1093
|
+
|
1094
|
+
|
1095
|
+
—
|
1096
|
+
<div class='inline'>
|
1097
|
+
<p>Module path.</p>
|
1098
|
+
</div>
|
1099
|
+
|
1100
|
+
</li>
|
1101
|
+
|
1102
|
+
</ul>
|
1103
|
+
|
1104
|
+
|
1105
|
+
</div><table class="source_code">
|
1106
|
+
<tr>
|
1107
|
+
<td>
|
1108
|
+
<pre class="lines">
|
1109
|
+
|
1110
|
+
|
1111
|
+
556
|
1112
|
+
557
|
1113
|
+
558
|
1114
|
+
559
|
1115
|
+
560
|
1116
|
+
561
|
1117
|
+
562</pre>
|
1118
|
+
</td>
|
1119
|
+
<td>
|
1120
|
+
<pre class="code"><span class="info file"># File 'bin/rumodule', line 556</span>
|
1121
|
+
|
1122
|
+
<span class='kw'>def</span> <span class='id identifier rubyid_registerModule'>registerModule</span><span class='lparen'>(</span> <span class='id identifier rubyid_m'>m</span><span class='comma'>,</span> <span class='id identifier rubyid_list'>list</span> <span class='op'>=</span> <span class='symbol'>:normal</span> <span class='rparen'>)</span>
|
1123
|
+
<span class='kw'>case</span> <span class='id identifier rubyid_list'>list</span>
|
1124
|
+
<span class='kw'>when</span> <span class='symbol'>:normal</span><span class='semicolon'>;</span> <span class='id identifier rubyid_getenvar'>getenvar</span><span class='lparen'>(</span> <span class='const'>LOADED</span><span class='comma'>,</span> <span class='kw'>true</span> <span class='rparen'>)</span><span class='period'>.</span><span class='id identifier rubyid_append_path'>append_path</span><span class='lparen'>(</span> <span class='id identifier rubyid_m'>m</span> <span class='rparen'>)</span>
|
1125
|
+
<span class='kw'>when</span> <span class='symbol'>:system</span><span class='semicolon'>;</span> <span class='id identifier rubyid_getenvar'>getenvar</span><span class='lparen'>(</span> <span class='const'>SYSLOADED</span><span class='comma'>,</span> <span class='kw'>true</span> <span class='rparen'>)</span><span class='period'>.</span><span class='id identifier rubyid_append_path'>append_path</span><span class='lparen'>(</span> <span class='id identifier rubyid_m'>m</span> <span class='rparen'>)</span>
|
1126
|
+
<span class='kw'>when</span> <span class='symbol'>:sub</span><span class='semicolon'>;</span> <span class='id identifier rubyid_getenvar'>getenvar</span><span class='lparen'>(</span> <span class='const'>SUBLOADED</span><span class='comma'>,</span> <span class='kw'>true</span> <span class='rparen'>)</span><span class='period'>.</span><span class='id identifier rubyid_append_path'>append_path</span><span class='lparen'>(</span> <span class='id identifier rubyid_m'>m</span> <span class='rparen'>)</span>
|
1127
|
+
<span class='kw'>end</span>
|
1128
|
+
<span class='kw'>end</span></pre>
|
1129
|
+
</td>
|
1130
|
+
</tr>
|
1131
|
+
</table>
|
1132
|
+
</div>
|
1133
|
+
|
1134
|
+
<div class="method_details ">
|
1135
|
+
<h3 class="signature " id="sys_loaded-instance_method">
|
1136
|
+
|
1137
|
+
- (<tt>Array<String></tt>) <strong>sys_loaded</strong>
|
1138
|
+
|
1139
|
+
|
1140
|
+
|
1141
|
+
|
1142
|
+
|
1143
|
+
</h3><div class="docstring">
|
1144
|
+
<div class="discussion">
|
1145
|
+
|
1146
|
+
<p>List of loaded system modules.</p>
|
1147
|
+
|
1148
|
+
|
1149
|
+
</div>
|
1150
|
+
</div>
|
1151
|
+
<div class="tags">
|
1152
|
+
|
1153
|
+
<p class="tag_title">Returns:</p>
|
1154
|
+
<ul class="return">
|
1155
|
+
|
1156
|
+
<li>
|
1157
|
+
|
1158
|
+
|
1159
|
+
<span class='type'>(<tt>Array<String></tt>)</span>
|
1160
|
+
|
1161
|
+
|
1162
|
+
|
1163
|
+
—
|
1164
|
+
<div class='inline'>
|
1165
|
+
<p>Loaded modules.</p>
|
1166
|
+
</div>
|
1167
|
+
|
1168
|
+
</li>
|
1169
|
+
|
1170
|
+
</ul>
|
1171
|
+
|
1172
|
+
</div><table class="source_code">
|
1173
|
+
<tr>
|
1174
|
+
<td>
|
1175
|
+
<pre class="lines">
|
1176
|
+
|
1177
|
+
|
1178
|
+
450
|
1179
|
+
451
|
1180
|
+
452</pre>
|
1181
|
+
</td>
|
1182
|
+
<td>
|
1183
|
+
<pre class="code"><span class="info file"># File 'bin/rumodule', line 450</span>
|
1184
|
+
|
1185
|
+
<span class='kw'>def</span> <span class='id identifier rubyid_sys_loaded'>sys_loaded</span>
|
1186
|
+
<span class='id identifier rubyid_getenvar'>getenvar</span><span class='lparen'>(</span> <span class='const'>SYSLOADED</span><span class='comma'>,</span> <span class='kw'>true</span> <span class='rparen'>)</span><span class='period'>.</span><span class='id identifier rubyid_value'>value</span>
|
1187
|
+
<span class='kw'>end</span></pre>
|
1188
|
+
</td>
|
1189
|
+
</tr>
|
1190
|
+
</table>
|
1191
|
+
</div>
|
1192
|
+
|
1193
|
+
<div class="method_details ">
|
1194
|
+
<h3 class="signature " id="unregisterModule-instance_method">
|
1195
|
+
|
1196
|
+
- (<tt>Object</tt>) <strong>unregisterModule</strong>(m, list = :normal)
|
1197
|
+
|
1198
|
+
|
1199
|
+
|
1200
|
+
|
1201
|
+
|
1202
|
+
</h3><div class="docstring">
|
1203
|
+
<div class="discussion">
|
1204
|
+
|
1205
|
+
<p>UnRegister module as loaded.</p>
|
1206
|
+
|
1207
|
+
|
1208
|
+
</div>
|
1209
|
+
</div>
|
1210
|
+
<div class="tags">
|
1211
|
+
<p class="tag_title">Parameters:</p>
|
1212
|
+
<ul class="param">
|
1213
|
+
|
1214
|
+
<li>
|
1215
|
+
|
1216
|
+
<span class='name'>m</span>
|
1217
|
+
|
1218
|
+
|
1219
|
+
<span class='type'>(<tt>String</tt>)</span>
|
1220
|
+
|
1221
|
+
|
1222
|
+
|
1223
|
+
—
|
1224
|
+
<div class='inline'>
|
1225
|
+
<p>Module path.</p>
|
1226
|
+
</div>
|
1227
|
+
|
1228
|
+
</li>
|
1229
|
+
|
1230
|
+
</ul>
|
1231
|
+
|
1232
|
+
|
1233
|
+
</div><table class="source_code">
|
1234
|
+
<tr>
|
1235
|
+
<td>
|
1236
|
+
<pre class="lines">
|
1237
|
+
|
1238
|
+
|
1239
|
+
568
|
1240
|
+
569
|
1241
|
+
570
|
1242
|
+
571
|
1243
|
+
572
|
1244
|
+
573
|
1245
|
+
574
|
1246
|
+
575
|
1247
|
+
576
|
1248
|
+
577
|
1249
|
+
578
|
1250
|
+
579
|
1251
|
+
580
|
1252
|
+
581
|
1253
|
+
582
|
1254
|
+
583
|
1255
|
+
584
|
1256
|
+
585
|
1257
|
+
586
|
1258
|
+
587
|
1259
|
+
588
|
1260
|
+
589
|
1261
|
+
590
|
1262
|
+
591
|
1263
|
+
592
|
1264
|
+
593
|
1265
|
+
594
|
1266
|
+
595
|
1267
|
+
596</pre>
|
1268
|
+
</td>
|
1269
|
+
<td>
|
1270
|
+
<pre class="code"><span class="info file"># File 'bin/rumodule', line 568</span>
|
1271
|
+
|
1272
|
+
<span class='kw'>def</span> <span class='id identifier rubyid_unregisterModule'>unregisterModule</span><span class='lparen'>(</span> <span class='id identifier rubyid_m'>m</span><span class='comma'>,</span> <span class='id identifier rubyid_list'>list</span> <span class='op'>=</span> <span class='symbol'>:normal</span> <span class='rparen'>)</span>
|
1273
|
+
|
1274
|
+
<span class='kw'>case</span> <span class='id identifier rubyid_list'>list</span>
|
1275
|
+
<span class='kw'>when</span> <span class='symbol'>:normal</span><span class='semicolon'>;</span> <span class='id identifier rubyid_loaded'>loaded</span> <span class='op'>=</span> <span class='id identifier rubyid_getenvar'>getenvar</span><span class='lparen'>(</span> <span class='const'>LOADED</span> <span class='rparen'>)</span>
|
1276
|
+
<span class='kw'>when</span> <span class='symbol'>:system</span><span class='semicolon'>;</span> <span class='id identifier rubyid_loaded'>loaded</span> <span class='op'>=</span> <span class='id identifier rubyid_getenvar'>getenvar</span><span class='lparen'>(</span> <span class='const'>SYSLOADED</span> <span class='rparen'>)</span>
|
1277
|
+
<span class='kw'>when</span> <span class='symbol'>:sub</span><span class='semicolon'>;</span> <span class='id identifier rubyid_loaded'>loaded</span> <span class='op'>=</span> <span class='id identifier rubyid_getenvar'>getenvar</span><span class='lparen'>(</span> <span class='const'>SUBLOADED</span> <span class='rparen'>)</span>
|
1278
|
+
<span class='kw'>end</span>
|
1279
|
+
|
1280
|
+
<span class='comment'># loaded = getenvar( LOADED )
|
1281
|
+
</span> <span class='id identifier rubyid_index'>index</span> <span class='op'>=</span> <span class='id identifier rubyid_loaded'>loaded</span><span class='period'>.</span><span class='id identifier rubyid_value'>value</span><span class='period'>.</span><span class='id identifier rubyid_index'>index</span><span class='lparen'>(</span> <span class='id identifier rubyid_m'>m</span> <span class='rparen'>)</span>
|
1282
|
+
|
1283
|
+
<span class='kw'>if</span> <span class='id identifier rubyid_index'>index</span>
|
1284
|
+
|
1285
|
+
<span class='comment'># Accurate match.
|
1286
|
+
</span> <span class='id identifier rubyid_loaded'>loaded</span><span class='period'>.</span><span class='id identifier rubyid_delete_index'>delete_index</span><span class='lparen'>(</span> <span class='id identifier rubyid_index'>index</span> <span class='rparen'>)</span>
|
1287
|
+
|
1288
|
+
<span class='kw'>else</span>
|
1289
|
+
|
1290
|
+
<span class='comment'># Regexp match.
|
1291
|
+
</span> <span class='id identifier rubyid_loaded'>loaded</span><span class='period'>.</span><span class='id identifier rubyid_length'>length</span><span class='period'>.</span><span class='id identifier rubyid_times'>times</span> <span class='kw'>do</span> <span class='op'>|</span><span class='id identifier rubyid_i'>i</span><span class='op'>|</span>
|
1292
|
+
<span class='kw'>if</span> <span class='const'>Regexp</span><span class='period'>.</span><span class='id identifier rubyid_new'>new</span><span class='lparen'>(</span> <span class='tstring'><span class='tstring_beg'>"</span><span class='embexpr_beg'>#{</span><span class='id identifier rubyid_m'>m</span><span class='embexpr_end'>}</span><span class='tstring_content'>/</span><span class='tstring_end'>"</span></span> <span class='rparen'>)</span><span class='period'>.</span><span class='id identifier rubyid_match'>match</span><span class='lparen'>(</span> <span class='id identifier rubyid_loaded'>loaded</span><span class='period'>.</span><span class='id identifier rubyid_value'>value</span><span class='lbracket'>[</span><span class='id identifier rubyid_i'>i</span><span class='rbracket'>]</span> <span class='rparen'>)</span>
|
1293
|
+
<span class='id identifier rubyid_loaded'>loaded</span><span class='period'>.</span><span class='id identifier rubyid_delete_index'>delete_index</span><span class='lparen'>(</span> <span class='id identifier rubyid_i'>i</span> <span class='rparen'>)</span>
|
1294
|
+
<span class='kw'>return</span>
|
1295
|
+
<span class='kw'>end</span>
|
1296
|
+
<span class='kw'>end</span>
|
1297
|
+
|
1298
|
+
<span class='kw'>end</span>
|
1299
|
+
|
1300
|
+
<span class='kw'>end</span></pre>
|
1301
|
+
</td>
|
1302
|
+
</tr>
|
1303
|
+
</table>
|
1304
|
+
</div>
|
1305
|
+
|
1306
|
+
<div class="method_details ">
|
1307
|
+
<h3 class="signature " id="usage-instance_method">
|
1308
|
+
|
1309
|
+
- (<tt>Object</tt>) <strong>usage</strong>(msg)
|
1310
|
+
|
1311
|
+
|
1312
|
+
|
1313
|
+
|
1314
|
+
|
1315
|
+
</h3><div class="docstring">
|
1316
|
+
<div class="discussion">
|
1317
|
+
|
1318
|
+
<p>Report usage info.</p>
|
1319
|
+
|
1320
|
+
|
1321
|
+
</div>
|
1322
|
+
</div>
|
1323
|
+
<div class="tags">
|
1324
|
+
|
1325
|
+
|
1326
|
+
</div><table class="source_code">
|
1327
|
+
<tr>
|
1328
|
+
<td>
|
1329
|
+
<pre class="lines">
|
1330
|
+
|
1331
|
+
|
1332
|
+
466
|
1333
|
+
467
|
1334
|
+
468
|
1335
|
+
469</pre>
|
1336
|
+
</td>
|
1337
|
+
<td>
|
1338
|
+
<pre class="code"><span class="info file"># File 'bin/rumodule', line 466</span>
|
1339
|
+
|
1340
|
+
<span class='kw'>def</span> <span class='id identifier rubyid_usage'>usage</span><span class='lparen'>(</span> <span class='id identifier rubyid_msg'>msg</span> <span class='rparen'>)</span>
|
1341
|
+
<span class='const'>STDERR</span><span class='period'>.</span><span class='id identifier rubyid_puts'>puts</span><span class='lparen'>(</span> <span class='id identifier rubyid_msg'>msg</span> <span class='rparen'>)</span>
|
1342
|
+
<span class='id identifier rubyid_abort'>abort</span>
|
1343
|
+
<span class='kw'>end</span></pre>
|
1344
|
+
</td>
|
1345
|
+
</tr>
|
1346
|
+
</table>
|
1347
|
+
</div>
|
1348
|
+
|
1349
|
+
<div class="method_details ">
|
1350
|
+
<h3 class="signature " id="warning-instance_method">
|
1351
|
+
|
1352
|
+
- (<tt>Object</tt>) <strong>warning</strong>(msg)
|
1353
|
+
|
1354
|
+
|
1355
|
+
|
1356
|
+
|
1357
|
+
|
1358
|
+
</h3><div class="docstring">
|
1359
|
+
<div class="discussion">
|
1360
|
+
|
1361
|
+
<p>Report warning.</p>
|
1362
|
+
|
1363
|
+
|
1364
|
+
</div>
|
1365
|
+
</div>
|
1366
|
+
<div class="tags">
|
1367
|
+
|
1368
|
+
|
1369
|
+
</div><table class="source_code">
|
1370
|
+
<tr>
|
1371
|
+
<td>
|
1372
|
+
<pre class="lines">
|
1373
|
+
|
1374
|
+
|
1375
|
+
480
|
1376
|
+
481
|
1377
|
+
482
|
1378
|
+
483</pre>
|
1379
|
+
</td>
|
1380
|
+
<td>
|
1381
|
+
<pre class="code"><span class="info file"># File 'bin/rumodule', line 480</span>
|
1382
|
+
|
1383
|
+
<span class='kw'>def</span> <span class='id identifier rubyid_warning'>warning</span><span class='lparen'>(</span> <span class='id identifier rubyid_msg'>msg</span> <span class='rparen'>)</span>
|
1384
|
+
<span class='const'>STDERR</span><span class='period'>.</span><span class='id identifier rubyid_puts'>puts</span><span class='lparen'>(</span> <span class='tstring'><span class='tstring_beg'>"</span><span class='tstring_content'>rumodule warning: </span><span class='embexpr_beg'>#{</span><span class='id identifier rubyid_msg'>msg</span><span class='embexpr_end'>}</span><span class='tstring_end'>"</span></span> <span class='rparen'>)</span>
|
1385
|
+
<span class='id identifier rubyid_abort'>abort</span>
|
1386
|
+
<span class='kw'>end</span></pre>
|
1387
|
+
</td>
|
1388
|
+
</tr>
|
1389
|
+
</table>
|
1390
|
+
</div>
|
1391
|
+
|
1392
|
+
</div>
|
1393
|
+
|
1394
|
+
</div>
|
1395
|
+
|
1396
|
+
<div id="footer">
|
1397
|
+
Generated on Sat Mar 19 10:38:05 2016 by
|
1398
|
+
<a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
|
1399
|
+
0.8.7.6 (ruby-2.1.2).
|
1400
|
+
</div>
|
1401
|
+
|
1402
|
+
</body>
|
1403
|
+
</html>
|