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.
data/doc/EnvVar.html ADDED
@@ -0,0 +1,1351 @@
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: EnvVar
8
+
9
+ &mdash; Documentation by YARD 0.8.7.6
10
+
11
+ </title>
12
+
13
+ <link rel="stylesheet" href="css/style.css" type="text/css" charset="utf-8" />
14
+
15
+ <link rel="stylesheet" href="css/common.css" type="text/css" charset="utf-8" />
16
+
17
+ <script type="text/javascript" charset="utf-8">
18
+ hasFrames = window.top.frames.main ? true : false;
19
+ relpath = '';
20
+ framesUrl = "frames.html#!EnvVar.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 (E)</a> &raquo;
35
+
36
+
37
+ <span class="title">EnvVar</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: EnvVar
67
+
68
+
69
+
70
+ </h1>
71
+
72
+ <dl class="box">
73
+
74
+ <dt class="r1">Inherits:</dt>
75
+ <dd class="r1">
76
+ <span class="inheritName"><span class='object_link'><a href="RumoduleCommon.html" title="RumoduleCommon (class)">RumoduleCommon</a></span></span>
77
+
78
+ <ul class="fullTree">
79
+ <li>Object</li>
80
+
81
+ <li class="next"><span class='object_link'><a href="RumoduleCommon.html" title="RumoduleCommon (class)">RumoduleCommon</a></span></li>
82
+
83
+ <li class="next">EnvVar</li>
84
+
85
+ </ul>
86
+ <a href="#" class="inheritanceTree">show all</a>
87
+
88
+ </dd>
89
+
90
+
91
+
92
+
93
+
94
+
95
+
96
+
97
+
98
+ <dt class="r2 last">Defined in:</dt>
99
+ <dd class="r2 last">bin/rumodule</dd>
100
+
101
+ </dl>
102
+ <div class="clear"></div>
103
+
104
+ <h2>Overview</h2><div class="docstring">
105
+ <div class="discussion">
106
+
107
+ <p>Environment variable that has been read from “unix” env.</p>
108
+
109
+
110
+ </div>
111
+ </div>
112
+ <div class="tags">
113
+
114
+
115
+ </div>
116
+ <h2>Constant Summary</h2>
117
+
118
+
119
+
120
+
121
+ <h2>Constant Summary</h2>
122
+
123
+ <h3 class="inherited">Constants inherited
124
+ from <span class='object_link'><a href="RumoduleCommon.html" title="RumoduleCommon (class)">RumoduleCommon</a></span></h3>
125
+ <p class="inherited"><span class='object_link'><a href="RumoduleCommon.html#SHELL-constant" title="RumoduleCommon::SHELL (constant)">RumoduleCommon::SHELL</a></span></p>
126
+
127
+
128
+ <h2>Instance Attribute Summary <small>(<a href="#" class="summary_toggle">collapse</a>)</small></h2>
129
+ <ul class="summary">
130
+
131
+ <li class="public ">
132
+ <span class="summary_signature">
133
+
134
+ <a href="#dirty-instance_method" title="#dirty (instance method)">- (Object) <strong>dirty</strong> </a>
135
+
136
+
137
+
138
+ </span>
139
+
140
+
141
+
142
+
143
+ <span class="note title readonly">readonly</span>
144
+
145
+
146
+
147
+
148
+
149
+
150
+
151
+
152
+
153
+ <span class="summary_desc"><div class='inline'>
154
+ <p>Dirty flag indicates that the env has to be updated.</p>
155
+ </div></span>
156
+
157
+ </li>
158
+
159
+
160
+ <li class="public ">
161
+ <span class="summary_signature">
162
+
163
+ <a href="#name-instance_method" title="#name (instance method)">- (Object) <strong>name</strong> </a>
164
+
165
+
166
+
167
+ </span>
168
+
169
+
170
+
171
+
172
+ <span class="note title readonly">readonly</span>
173
+
174
+
175
+
176
+
177
+
178
+
179
+
180
+
181
+
182
+ <span class="summary_desc"><div class='inline'>
183
+ <p>Variable name.</p>
184
+ </div></span>
185
+
186
+ </li>
187
+
188
+
189
+ <li class="public ">
190
+ <span class="summary_signature">
191
+
192
+ <a href="#value-instance_method" title="#value (instance method)">- (Object) <strong>value</strong> </a>
193
+
194
+
195
+
196
+ </span>
197
+
198
+
199
+
200
+
201
+ <span class="note title readonly">readonly</span>
202
+
203
+
204
+
205
+
206
+
207
+
208
+
209
+
210
+
211
+ <span class="summary_desc"><div class='inline'>
212
+ <p>EnvVar value.</p>
213
+ </div></span>
214
+
215
+ </li>
216
+
217
+
218
+ </ul>
219
+
220
+
221
+
222
+
223
+
224
+ <h2>
225
+ Class Method Summary
226
+ <small>(<a href="#" class="summary_toggle">collapse</a>)</small>
227
+ </h2>
228
+
229
+ <ul class="summary">
230
+
231
+ <li class="public ">
232
+ <span class="summary_signature">
233
+
234
+ <a href="#exist%3F-class_method" title="exist? (class method)">+ (String) <strong>exist?</strong>(name) </a>
235
+
236
+
237
+
238
+ </span>
239
+
240
+
241
+
242
+
243
+
244
+
245
+
246
+
247
+
248
+ <span class="summary_desc"><div class='inline'>
249
+ <p>Check for “unix” var existance.</p>
250
+ </div></span>
251
+
252
+ </li>
253
+
254
+
255
+ </ul>
256
+
257
+ <h2>
258
+ Instance Method Summary
259
+ <small>(<a href="#" class="summary_toggle">collapse</a>)</small>
260
+ </h2>
261
+
262
+ <ul class="summary">
263
+
264
+ <li class="public ">
265
+ <span class="summary_signature">
266
+
267
+ <a href="#append_path-instance_method" title="#append_path (instance method)">- (Object) <strong>append_path</strong>(value) </a>
268
+
269
+
270
+
271
+ </span>
272
+
273
+
274
+
275
+
276
+
277
+
278
+
279
+
280
+
281
+ <span class="summary_desc"><div class='inline'>
282
+ <p>Place new value at end of the path.</p>
283
+ </div></span>
284
+
285
+ </li>
286
+
287
+
288
+ <li class="public ">
289
+ <span class="summary_signature">
290
+
291
+ <a href="#delete_index-instance_method" title="#delete_index (instance method)">- (Object) <strong>delete_index</strong>(idx) </a>
292
+
293
+
294
+
295
+ </span>
296
+
297
+
298
+
299
+
300
+
301
+
302
+
303
+
304
+
305
+ <span class="summary_desc"><div class='inline'>
306
+ <p>Remove value at index.</p>
307
+ </div></span>
308
+
309
+ </li>
310
+
311
+
312
+ <li class="public ">
313
+ <span class="summary_signature">
314
+
315
+ <a href="#export-instance_method" title="#export (instance method)">- (String) <strong>export</strong> </a>
316
+
317
+
318
+
319
+ </span>
320
+
321
+
322
+
323
+
324
+
325
+
326
+
327
+
328
+
329
+ <span class="summary_desc"><div class='inline'>
330
+ <p>Format EnvVar for shell.</p>
331
+ </div></span>
332
+
333
+ </li>
334
+
335
+
336
+ <li class="public ">
337
+ <span class="summary_signature">
338
+
339
+ <a href="#initialize-instance_method" title="#initialize (instance method)">- (EnvVar) <strong>initialize</strong>(name, value = nil) </a>
340
+
341
+
342
+
343
+ </span>
344
+
345
+
346
+ <span class="note title constructor">constructor</span>
347
+
348
+
349
+
350
+
351
+
352
+
353
+
354
+
355
+ <span class="summary_desc"><div class='inline'>
356
+ <p>Initialize name, dirty and unset.</p>
357
+ </div></span>
358
+
359
+ </li>
360
+
361
+
362
+ <li class="public ">
363
+ <span class="summary_signature">
364
+
365
+ <a href="#length-instance_method" title="#length (instance method)">- (Integer) <strong>length</strong> </a>
366
+
367
+
368
+
369
+ </span>
370
+
371
+
372
+
373
+
374
+
375
+
376
+
377
+
378
+
379
+ <span class="summary_desc"><div class='inline'>
380
+ <p>Entries in Env var.</p>
381
+ </div></span>
382
+
383
+ </li>
384
+
385
+
386
+ <li class="public ">
387
+ <span class="summary_signature">
388
+
389
+ <a href="#prepend_path-instance_method" title="#prepend_path (instance method)">- (Object) <strong>prepend_path</strong>(value) </a>
390
+
391
+
392
+
393
+ </span>
394
+
395
+
396
+
397
+
398
+
399
+
400
+
401
+
402
+
403
+ <span class="summary_desc"><div class='inline'>
404
+ <p>Place new value infront of the path.</p>
405
+ </div></span>
406
+
407
+ </li>
408
+
409
+
410
+ <li class="public ">
411
+ <span class="summary_signature">
412
+
413
+ <a href="#remove_path-instance_method" title="#remove_path (instance method)">- (Object) <strong>remove_path</strong>(value) </a>
414
+
415
+
416
+
417
+ </span>
418
+
419
+
420
+
421
+
422
+
423
+
424
+
425
+
426
+
427
+ <span class="summary_desc"><div class='inline'>
428
+ <p>Remove value from the path.</p>
429
+ </div></span>
430
+
431
+ </li>
432
+
433
+
434
+ <li class="public ">
435
+ <span class="summary_signature">
436
+
437
+ <a href="#set-instance_method" title="#set (instance method)">- (Object) <strong>set</strong>(value) </a>
438
+
439
+
440
+
441
+ </span>
442
+
443
+
444
+
445
+
446
+
447
+
448
+
449
+
450
+
451
+ <span class="summary_desc"><div class='inline'>
452
+ <p>Set variable to a value.</p>
453
+ </div></span>
454
+
455
+ </li>
456
+
457
+
458
+ <li class="public ">
459
+ <span class="summary_signature">
460
+
461
+ <a href="#unset-instance_method" title="#unset (instance method)">- (Object) <strong>unset</strong> </a>
462
+
463
+
464
+
465
+ </span>
466
+
467
+
468
+
469
+
470
+
471
+
472
+
473
+
474
+
475
+ <span class="summary_desc"><div class='inline'>
476
+ <p>Unset variable from env.</p>
477
+ </div></span>
478
+
479
+ </li>
480
+
481
+
482
+ </ul>
483
+
484
+
485
+
486
+
487
+
488
+
489
+
490
+
491
+
492
+
493
+
494
+
495
+
496
+
497
+
498
+
499
+
500
+ <h3 class="inherited">Methods included from <span class='object_link'><a href="RumoduleMod.html" title="RumoduleMod (module)">RumoduleMod</a></span></h3>
501
+ <p class="inherited"><span class='object_link'><a href="RumoduleMod.html#home-instance_method" title="RumoduleMod#home (method)">#home</a></span></p>
502
+ <div id="constructor_details" class="method_details_list">
503
+ <h2>Constructor Details</h2>
504
+
505
+ <div class="method_details first">
506
+ <h3 class="signature first" id="initialize-instance_method">
507
+
508
+ - (<tt><span class='object_link'><a href="" title="EnvVar (class)">EnvVar</a></span></tt>) <strong>initialize</strong>(name, value = nil)
509
+
510
+
511
+
512
+
513
+
514
+ </h3><div class="docstring">
515
+ <div class="discussion">
516
+
517
+ <p>Initialize name, dirty and unset. If unset is true, then “unset” command is
518
+ output to shell.</p>
519
+
520
+
521
+ </div>
522
+ </div>
523
+ <div class="tags">
524
+ <p class="tag_title">Parameters:</p>
525
+ <ul class="param">
526
+
527
+ <li>
528
+
529
+ <span class='name'>name</span>
530
+
531
+
532
+ <span class='type'>(<tt>String</tt>)</span>
533
+
534
+
535
+
536
+ &mdash;
537
+ <div class='inline'>
538
+ <p>Env var name.</p>
539
+ </div>
540
+
541
+ </li>
542
+
543
+ <li>
544
+
545
+ <span class='name'>value</span>
546
+
547
+
548
+ <span class='type'>(<tt>String</tt>)</span>
549
+
550
+
551
+ <em class="default">(defaults to: <tt>nil</tt>)</em>
552
+
553
+
554
+ &mdash;
555
+ <div class='inline'>
556
+ <p>Value for Env var.</p>
557
+ </div>
558
+
559
+ </li>
560
+
561
+ </ul>
562
+
563
+
564
+ </div><table class="source_code">
565
+ <tr>
566
+ <td>
567
+ <pre class="lines">
568
+
569
+
570
+ 317
571
+ 318
572
+ 319
573
+ 320
574
+ 321
575
+ 322
576
+ 323
577
+ 324
578
+ 325
579
+ 326</pre>
580
+ </td>
581
+ <td>
582
+ <pre class="code"><span class="info file"># File 'bin/rumodule', line 317</span>
583
+
584
+ <span class='kw'>def</span> <span class='id identifier rubyid_initialize'>initialize</span><span class='lparen'>(</span> <span class='id identifier rubyid_name'>name</span><span class='comma'>,</span> <span class='id identifier rubyid_value'>value</span> <span class='op'>=</span> <span class='kw'>nil</span> <span class='rparen'>)</span>
585
+ <span class='ivar'>@name</span> <span class='op'>=</span> <span class='id identifier rubyid_name'>name</span>
586
+ <span class='ivar'>@dirty</span> <span class='op'>=</span> <span class='kw'>false</span>
587
+ <span class='ivar'>@unset</span> <span class='op'>=</span> <span class='kw'>false</span>
588
+ <span class='kw'>if</span> <span class='id identifier rubyid_value'>value</span>
589
+ <span class='ivar'>@value</span> <span class='op'>=</span> <span class='id identifier rubyid_value'>value</span>
590
+ <span class='kw'>else</span>
591
+ <span class='ivar'>@value</span> <span class='op'>=</span> <span class='const'>ENV</span><span class='lbracket'>[</span><span class='id identifier rubyid_name'>name</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'>&#39;</span><span class='tstring_content'>:</span><span class='tstring_end'>&#39;</span></span><span class='rparen'>)</span>
592
+ <span class='kw'>end</span>
593
+ <span class='kw'>end</span></pre>
594
+ </td>
595
+ </tr>
596
+ </table>
597
+ </div>
598
+
599
+ </div>
600
+
601
+ <div id="instance_attr_details" class="attr_details">
602
+ <h2>Instance Attribute Details</h2>
603
+
604
+
605
+ <span id=""></span>
606
+ <div class="method_details first">
607
+ <h3 class="signature first" id="dirty-instance_method">
608
+
609
+ - (<tt>Object</tt>) <strong>dirty</strong> <span class="extras">(readonly)</span>
610
+
611
+
612
+
613
+
614
+
615
+ </h3><div class="docstring">
616
+ <div class="discussion">
617
+
618
+ <p>Dirty flag indicates that the env has to be updated.</p>
619
+
620
+
621
+ </div>
622
+ </div>
623
+ <div class="tags">
624
+
625
+
626
+ </div><table class="source_code">
627
+ <tr>
628
+ <td>
629
+ <pre class="lines">
630
+
631
+
632
+ 297
633
+ 298
634
+ 299</pre>
635
+ </td>
636
+ <td>
637
+ <pre class="code"><span class="info file"># File 'bin/rumodule', line 297</span>
638
+
639
+ <span class='kw'>def</span> <span class='id identifier rubyid_dirty'>dirty</span>
640
+ <span class='ivar'>@dirty</span>
641
+ <span class='kw'>end</span></pre>
642
+ </td>
643
+ </tr>
644
+ </table>
645
+ </div>
646
+
647
+
648
+ <span id=""></span>
649
+ <div class="method_details ">
650
+ <h3 class="signature " id="name-instance_method">
651
+
652
+ - (<tt>Object</tt>) <strong>name</strong> <span class="extras">(readonly)</span>
653
+
654
+
655
+
656
+
657
+
658
+ </h3><div class="docstring">
659
+ <div class="discussion">
660
+
661
+ <p>Variable name.</p>
662
+
663
+
664
+ </div>
665
+ </div>
666
+ <div class="tags">
667
+
668
+
669
+ </div><table class="source_code">
670
+ <tr>
671
+ <td>
672
+ <pre class="lines">
673
+
674
+
675
+ 294
676
+ 295
677
+ 296</pre>
678
+ </td>
679
+ <td>
680
+ <pre class="code"><span class="info file"># File 'bin/rumodule', line 294</span>
681
+
682
+ <span class='kw'>def</span> <span class='id identifier rubyid_name'>name</span>
683
+ <span class='ivar'>@name</span>
684
+ <span class='kw'>end</span></pre>
685
+ </td>
686
+ </tr>
687
+ </table>
688
+ </div>
689
+
690
+
691
+ <span id=""></span>
692
+ <div class="method_details ">
693
+ <h3 class="signature " id="value-instance_method">
694
+
695
+ - (<tt>Object</tt>) <strong>value</strong> <span class="extras">(readonly)</span>
696
+
697
+
698
+
699
+
700
+
701
+ </h3><div class="docstring">
702
+ <div class="discussion">
703
+
704
+ <p>EnvVar value.</p>
705
+
706
+
707
+ </div>
708
+ </div>
709
+ <div class="tags">
710
+
711
+
712
+ </div><table class="source_code">
713
+ <tr>
714
+ <td>
715
+ <pre class="lines">
716
+
717
+
718
+ 300
719
+ 301
720
+ 302</pre>
721
+ </td>
722
+ <td>
723
+ <pre class="code"><span class="info file"># File 'bin/rumodule', line 300</span>
724
+
725
+ <span class='kw'>def</span> <span class='id identifier rubyid_value'>value</span>
726
+ <span class='ivar'>@value</span>
727
+ <span class='kw'>end</span></pre>
728
+ </td>
729
+ </tr>
730
+ </table>
731
+ </div>
732
+
733
+ </div>
734
+
735
+
736
+ <div id="class_method_details" class="method_details_list">
737
+ <h2>Class Method Details</h2>
738
+
739
+
740
+ <div class="method_details first">
741
+ <h3 class="signature first" id="exist?-class_method">
742
+
743
+ + (<tt>String</tt>) <strong>exist?</strong>(name)
744
+
745
+
746
+
747
+
748
+
749
+ </h3><div class="docstring">
750
+ <div class="discussion">
751
+
752
+ <p>Check for “unix” var existance.</p>
753
+
754
+
755
+ </div>
756
+ </div>
757
+ <div class="tags">
758
+ <p class="tag_title">Parameters:</p>
759
+ <ul class="param">
760
+
761
+ <li>
762
+
763
+ <span class='name'>name</span>
764
+
765
+
766
+ <span class='type'>(<tt>String</tt>)</span>
767
+
768
+
769
+
770
+ &mdash;
771
+ <div class='inline'>
772
+ <p>Env var name to check.</p>
773
+ </div>
774
+
775
+ </li>
776
+
777
+ </ul>
778
+
779
+ <p class="tag_title">Returns:</p>
780
+ <ul class="return">
781
+
782
+ <li>
783
+
784
+
785
+ <span class='type'>(<tt>String</tt>)</span>
786
+
787
+
788
+
789
+ &mdash;
790
+ <div class='inline'>
791
+ <p>Value or nil.</p>
792
+ </div>
793
+
794
+ </li>
795
+
796
+ </ul>
797
+
798
+ </div><table class="source_code">
799
+ <tr>
800
+ <td>
801
+ <pre class="lines">
802
+
803
+
804
+ 307
805
+ 308
806
+ 309</pre>
807
+ </td>
808
+ <td>
809
+ <pre class="code"><span class="info file"># File 'bin/rumodule', line 307</span>
810
+
811
+ <span class='kw'>def</span> <span class='const'>EnvVar</span><span class='period'>.</span><span class='id identifier rubyid_exist?'>exist?</span><span class='lparen'>(</span> <span class='id identifier rubyid_name'>name</span> <span class='rparen'>)</span>
812
+ <span class='const'>ENV</span><span class='lbracket'>[</span><span class='id identifier rubyid_name'>name</span><span class='rbracket'>]</span>
813
+ <span class='kw'>end</span></pre>
814
+ </td>
815
+ </tr>
816
+ </table>
817
+ </div>
818
+
819
+ </div>
820
+
821
+ <div id="instance_method_details" class="method_details_list">
822
+ <h2>Instance Method Details</h2>
823
+
824
+
825
+ <div class="method_details first">
826
+ <h3 class="signature first" id="append_path-instance_method">
827
+
828
+ - (<tt>Object</tt>) <strong>append_path</strong>(value)
829
+
830
+
831
+
832
+
833
+
834
+ </h3><div class="docstring">
835
+ <div class="discussion">
836
+
837
+ <p>Place new value at end of the path.</p>
838
+
839
+
840
+ </div>
841
+ </div>
842
+ <div class="tags">
843
+ <p class="tag_title">Parameters:</p>
844
+ <ul class="param">
845
+
846
+ <li>
847
+
848
+ <span class='name'>value</span>
849
+
850
+
851
+ <span class='type'>(<tt>String</tt>)</span>
852
+
853
+
854
+
855
+ &mdash;
856
+ <div class='inline'>
857
+ <p>Value for Env var.</p>
858
+ </div>
859
+
860
+ </li>
861
+
862
+ </ul>
863
+
864
+
865
+ </div><table class="source_code">
866
+ <tr>
867
+ <td>
868
+ <pre class="lines">
869
+
870
+
871
+ 360
872
+ 361
873
+ 362
874
+ 363
875
+ 364</pre>
876
+ </td>
877
+ <td>
878
+ <pre class="code"><span class="info file"># File 'bin/rumodule', line 360</span>
879
+
880
+ <span class='kw'>def</span> <span class='id identifier rubyid_append_path'>append_path</span><span class='lparen'>(</span> <span class='id identifier rubyid_value'>value</span> <span class='rparen'>)</span>
881
+ <span class='ivar'>@dirty</span> <span class='op'>=</span> <span class='kw'>true</span>
882
+ <span class='ivar'>@unset</span> <span class='op'>=</span> <span class='kw'>false</span>
883
+ <span class='ivar'>@value</span><span class='period'>.</span><span class='id identifier rubyid_push'>push</span><span class='lparen'>(</span> <span class='id identifier rubyid_value'>value</span> <span class='rparen'>)</span>
884
+ <span class='kw'>end</span></pre>
885
+ </td>
886
+ </tr>
887
+ </table>
888
+ </div>
889
+
890
+ <div class="method_details ">
891
+ <h3 class="signature " id="delete_index-instance_method">
892
+
893
+ - (<tt>Object</tt>) <strong>delete_index</strong>(idx)
894
+
895
+
896
+
897
+
898
+
899
+ </h3><div class="docstring">
900
+ <div class="discussion">
901
+
902
+ <p>Remove value at index.</p>
903
+
904
+
905
+ </div>
906
+ </div>
907
+ <div class="tags">
908
+ <p class="tag_title">Parameters:</p>
909
+ <ul class="param">
910
+
911
+ <li>
912
+
913
+ <span class='name'>idx</span>
914
+
915
+
916
+ <span class='type'>(<tt>Integer</tt>)</span>
917
+
918
+
919
+
920
+ &mdash;
921
+ <div class='inline'>
922
+ <p>Value index used to remove from Env var.</p>
923
+ </div>
924
+
925
+ </li>
926
+
927
+ </ul>
928
+
929
+
930
+ </div><table class="source_code">
931
+ <tr>
932
+ <td>
933
+ <pre class="lines">
934
+
935
+
936
+ 380
937
+ 381
938
+ 382
939
+ 383
940
+ 384</pre>
941
+ </td>
942
+ <td>
943
+ <pre class="code"><span class="info file"># File 'bin/rumodule', line 380</span>
944
+
945
+ <span class='kw'>def</span> <span class='id identifier rubyid_delete_index'>delete_index</span><span class='lparen'>(</span> <span class='id identifier rubyid_idx'>idx</span> <span class='rparen'>)</span>
946
+ <span class='ivar'>@dirty</span> <span class='op'>=</span> <span class='kw'>true</span>
947
+ <span class='ivar'>@unset</span> <span class='op'>=</span> <span class='kw'>false</span>
948
+ <span class='ivar'>@value</span><span class='period'>.</span><span class='id identifier rubyid_delete_at'>delete_at</span><span class='lparen'>(</span> <span class='id identifier rubyid_idx'>idx</span> <span class='rparen'>)</span>
949
+ <span class='kw'>end</span></pre>
950
+ </td>
951
+ </tr>
952
+ </table>
953
+ </div>
954
+
955
+ <div class="method_details ">
956
+ <h3 class="signature " id="export-instance_method">
957
+
958
+ - (<tt>String</tt>) <strong>export</strong>
959
+
960
+
961
+
962
+
963
+
964
+ </h3><div class="docstring">
965
+ <div class="discussion">
966
+
967
+ <p>Format EnvVar for shell. Output depends on whether the EnvVar has been
968
+ “unset” or not.</p>
969
+
970
+
971
+ </div>
972
+ </div>
973
+ <div class="tags">
974
+
975
+ <p class="tag_title">Returns:</p>
976
+ <ul class="return">
977
+
978
+ <li>
979
+
980
+
981
+ <span class='type'>(<tt>String</tt>)</span>
982
+
983
+
984
+
985
+ &mdash;
986
+ <div class='inline'>
987
+ <p>Shell&#39;s eval command arguments.</p>
988
+ </div>
989
+
990
+ </li>
991
+
992
+ </ul>
993
+
994
+ </div><table class="source_code">
995
+ <tr>
996
+ <td>
997
+ <pre class="lines">
998
+
999
+
1000
+ 399
1001
+ 400
1002
+ 401
1003
+ 402
1004
+ 403
1005
+ 404
1006
+ 405
1007
+ 406
1008
+ 407
1009
+ 408
1010
+ 409
1011
+ 410
1012
+ 411
1013
+ 412
1014
+ 413
1015
+ 414</pre>
1016
+ </td>
1017
+ <td>
1018
+ <pre class="code"><span class="info file"># File 'bin/rumodule', line 399</span>
1019
+
1020
+ <span class='kw'>def</span> <span class='id identifier rubyid_export'>export</span>
1021
+ <span class='kw'>if</span> <span class='ivar'>@unset</span>
1022
+ <span class='kw'>case</span> <span class='const'>SHELL</span>
1023
+ <span class='kw'>when</span> <span class='tstring'><span class='tstring_beg'>&#39;</span><span class='tstring_content'>zsh</span><span class='tstring_end'>&#39;</span></span><span class='comma'>,</span> <span class='tstring'><span class='tstring_beg'>&#39;</span><span class='tstring_content'>sh</span><span class='tstring_end'>&#39;</span></span><span class='comma'>,</span> <span class='tstring'><span class='tstring_beg'>&#39;</span><span class='tstring_content'>bash</span><span class='tstring_end'>&#39;</span></span><span class='semicolon'>;</span> <span class='tstring'><span class='tstring_beg'>&quot;</span><span class='tstring_content'>unset </span><span class='embexpr_beg'>#{</span><span class='id identifier rubyid_name'>name</span><span class='embexpr_end'>}</span><span class='tstring_end'>&quot;</span></span>
1024
+ <span class='kw'>when</span> <span class='tstring'><span class='tstring_beg'>&#39;</span><span class='tstring_content'>fish</span><span class='tstring_end'>&#39;</span></span><span class='semicolon'>;</span> <span class='tstring'><span class='tstring_beg'>&quot;</span><span class='tstring_content'>set -e </span><span class='embexpr_beg'>#{</span><span class='id identifier rubyid_name'>name</span><span class='embexpr_end'>}</span><span class='tstring_end'>&quot;</span></span>
1025
+ <span class='kw'>else</span> <span class='id identifier rubyid_raise'>raise</span> <span class='tstring'><span class='tstring_beg'>&quot;</span><span class='tstring_content'>Unknown shell: \&quot;</span><span class='embexpr_beg'>#{</span><span class='const'>SHELL</span><span class='embexpr_end'>}</span><span class='tstring_content'>\&quot;</span><span class='tstring_end'>&quot;</span></span>
1026
+ <span class='kw'>end</span>
1027
+ <span class='kw'>else</span>
1028
+ <span class='kw'>case</span> <span class='const'>SHELL</span>
1029
+ <span class='kw'>when</span> <span class='tstring'><span class='tstring_beg'>&#39;</span><span class='tstring_content'>zsh</span><span class='tstring_end'>&#39;</span></span><span class='comma'>,</span> <span class='tstring'><span class='tstring_beg'>&#39;</span><span class='tstring_content'>sh</span><span class='tstring_end'>&#39;</span></span><span class='comma'>,</span> <span class='tstring'><span class='tstring_beg'>&#39;</span><span class='tstring_content'>bash</span><span class='tstring_end'>&#39;</span></span><span class='semicolon'>;</span> <span class='tstring'><span class='tstring_beg'>&quot;</span><span class='tstring_content'>export </span><span class='embexpr_beg'>#{</span><span class='id identifier rubyid_name'>name</span><span class='embexpr_end'>}</span><span class='tstring_content'>=</span><span class='embexpr_beg'>#{</span><span class='ivar'>@value</span><span class='period'>.</span><span class='id identifier rubyid_join'>join</span><span class='lparen'>(</span><span class='tstring'><span class='tstring_beg'>&#39;</span><span class='tstring_content'>:</span><span class='tstring_end'>&#39;</span></span><span class='rparen'>)</span><span class='embexpr_end'>}</span><span class='tstring_end'>&quot;</span></span>
1030
+ <span class='comment'># when &#39;fish&#39;; &quot;export #{name} #{@value.join(&#39; &#39;)}&quot;
1031
+ </span> <span class='kw'>when</span> <span class='tstring'><span class='tstring_beg'>&#39;</span><span class='tstring_content'>fish</span><span class='tstring_end'>&#39;</span></span><span class='semicolon'>;</span> <span class='tstring'><span class='tstring_beg'>&quot;</span><span class='tstring_content'>set -gx </span><span class='embexpr_beg'>#{</span><span class='id identifier rubyid_name'>name</span><span class='embexpr_end'>}</span><span class='tstring_content'> </span><span class='embexpr_beg'>#{</span><span class='ivar'>@value</span><span class='period'>.</span><span class='id identifier rubyid_join'>join</span><span class='lparen'>(</span><span class='tstring'><span class='tstring_beg'>&#39;</span><span class='tstring_content'> </span><span class='tstring_end'>&#39;</span></span><span class='rparen'>)</span><span class='embexpr_end'>}</span><span class='tstring_end'>&quot;</span></span>
1032
+ <span class='kw'>else</span> <span class='id identifier rubyid_raise'>raise</span> <span class='tstring'><span class='tstring_beg'>&quot;</span><span class='tstring_content'>Unknown shell: \&quot;</span><span class='embexpr_beg'>#{</span><span class='const'>SHELL</span><span class='embexpr_end'>}</span><span class='tstring_content'>\&quot;</span><span class='tstring_end'>&quot;</span></span>
1033
+ <span class='kw'>end</span>
1034
+ <span class='kw'>end</span>
1035
+ <span class='kw'>end</span></pre>
1036
+ </td>
1037
+ </tr>
1038
+ </table>
1039
+ </div>
1040
+
1041
+ <div class="method_details ">
1042
+ <h3 class="signature " id="length-instance_method">
1043
+
1044
+ - (<tt>Integer</tt>) <strong>length</strong>
1045
+
1046
+
1047
+
1048
+
1049
+
1050
+ </h3><div class="docstring">
1051
+ <div class="discussion">
1052
+
1053
+ <p>Entries in Env var.</p>
1054
+
1055
+
1056
+ </div>
1057
+ </div>
1058
+ <div class="tags">
1059
+
1060
+ <p class="tag_title">Returns:</p>
1061
+ <ul class="return">
1062
+
1063
+ <li>
1064
+
1065
+
1066
+ <span class='type'>(<tt>Integer</tt>)</span>
1067
+
1068
+
1069
+
1070
+ &mdash;
1071
+ <div class='inline'>
1072
+ <p>Length.</p>
1073
+ </div>
1074
+
1075
+ </li>
1076
+
1077
+ </ul>
1078
+
1079
+ </div><table class="source_code">
1080
+ <tr>
1081
+ <td>
1082
+ <pre class="lines">
1083
+
1084
+
1085
+ 390
1086
+ 391
1087
+ 392</pre>
1088
+ </td>
1089
+ <td>
1090
+ <pre class="code"><span class="info file"># File 'bin/rumodule', line 390</span>
1091
+
1092
+ <span class='kw'>def</span> <span class='id identifier rubyid_length'>length</span>
1093
+ <span class='ivar'>@value</span><span class='period'>.</span><span class='id identifier rubyid_length'>length</span>
1094
+ <span class='kw'>end</span></pre>
1095
+ </td>
1096
+ </tr>
1097
+ </table>
1098
+ </div>
1099
+
1100
+ <div class="method_details ">
1101
+ <h3 class="signature " id="prepend_path-instance_method">
1102
+
1103
+ - (<tt>Object</tt>) <strong>prepend_path</strong>(value)
1104
+
1105
+
1106
+
1107
+
1108
+
1109
+ </h3><div class="docstring">
1110
+ <div class="discussion">
1111
+
1112
+ <p>Place new value infront of the path.</p>
1113
+
1114
+
1115
+ </div>
1116
+ </div>
1117
+ <div class="tags">
1118
+ <p class="tag_title">Parameters:</p>
1119
+ <ul class="param">
1120
+
1121
+ <li>
1122
+
1123
+ <span class='name'>value</span>
1124
+
1125
+
1126
+ <span class='type'>(<tt>String</tt>)</span>
1127
+
1128
+
1129
+
1130
+ &mdash;
1131
+ <div class='inline'>
1132
+ <p>Value for Env var.</p>
1133
+ </div>
1134
+
1135
+ </li>
1136
+
1137
+ </ul>
1138
+
1139
+
1140
+ </div><table class="source_code">
1141
+ <tr>
1142
+ <td>
1143
+ <pre class="lines">
1144
+
1145
+
1146
+ 350
1147
+ 351
1148
+ 352
1149
+ 353
1150
+ 354</pre>
1151
+ </td>
1152
+ <td>
1153
+ <pre class="code"><span class="info file"># File 'bin/rumodule', line 350</span>
1154
+
1155
+ <span class='kw'>def</span> <span class='id identifier rubyid_prepend_path'>prepend_path</span><span class='lparen'>(</span> <span class='id identifier rubyid_value'>value</span> <span class='rparen'>)</span>
1156
+ <span class='ivar'>@dirty</span> <span class='op'>=</span> <span class='kw'>true</span>
1157
+ <span class='ivar'>@unset</span> <span class='op'>=</span> <span class='kw'>false</span>
1158
+ <span class='ivar'>@value</span><span class='period'>.</span><span class='id identifier rubyid_unshift'>unshift</span><span class='lparen'>(</span> <span class='id identifier rubyid_value'>value</span> <span class='rparen'>)</span>
1159
+ <span class='kw'>end</span></pre>
1160
+ </td>
1161
+ </tr>
1162
+ </table>
1163
+ </div>
1164
+
1165
+ <div class="method_details ">
1166
+ <h3 class="signature " id="remove_path-instance_method">
1167
+
1168
+ - (<tt>Object</tt>) <strong>remove_path</strong>(value)
1169
+
1170
+
1171
+
1172
+
1173
+
1174
+ </h3><div class="docstring">
1175
+ <div class="discussion">
1176
+
1177
+ <p>Remove value from the path.</p>
1178
+
1179
+
1180
+ </div>
1181
+ </div>
1182
+ <div class="tags">
1183
+ <p class="tag_title">Parameters:</p>
1184
+ <ul class="param">
1185
+
1186
+ <li>
1187
+
1188
+ <span class='name'>value</span>
1189
+
1190
+
1191
+ <span class='type'>(<tt>String</tt>)</span>
1192
+
1193
+
1194
+
1195
+ &mdash;
1196
+ <div class='inline'>
1197
+ <p>Value to remove from Env var.</p>
1198
+ </div>
1199
+
1200
+ </li>
1201
+
1202
+ </ul>
1203
+
1204
+
1205
+ </div><table class="source_code">
1206
+ <tr>
1207
+ <td>
1208
+ <pre class="lines">
1209
+
1210
+
1211
+ 370
1212
+ 371
1213
+ 372
1214
+ 373
1215
+ 374</pre>
1216
+ </td>
1217
+ <td>
1218
+ <pre class="code"><span class="info file"># File 'bin/rumodule', line 370</span>
1219
+
1220
+ <span class='kw'>def</span> <span class='id identifier rubyid_remove_path'>remove_path</span><span class='lparen'>(</span> <span class='id identifier rubyid_value'>value</span> <span class='rparen'>)</span>
1221
+ <span class='ivar'>@dirty</span> <span class='op'>=</span> <span class='kw'>true</span>
1222
+ <span class='ivar'>@unset</span> <span class='op'>=</span> <span class='kw'>false</span>
1223
+ <span class='ivar'>@value</span><span class='period'>.</span><span class='id identifier rubyid_delete'>delete</span><span class='lparen'>(</span> <span class='id identifier rubyid_value'>value</span> <span class='rparen'>)</span>
1224
+ <span class='kw'>end</span></pre>
1225
+ </td>
1226
+ </tr>
1227
+ </table>
1228
+ </div>
1229
+
1230
+ <div class="method_details ">
1231
+ <h3 class="signature " id="set-instance_method">
1232
+
1233
+ - (<tt>Object</tt>) <strong>set</strong>(value)
1234
+
1235
+
1236
+
1237
+
1238
+
1239
+ </h3><div class="docstring">
1240
+ <div class="discussion">
1241
+
1242
+ <p>Set variable to a value.</p>
1243
+
1244
+
1245
+ </div>
1246
+ </div>
1247
+ <div class="tags">
1248
+ <p class="tag_title">Parameters:</p>
1249
+ <ul class="param">
1250
+
1251
+ <li>
1252
+
1253
+ <span class='name'>value</span>
1254
+
1255
+
1256
+ <span class='type'>(<tt>String</tt>)</span>
1257
+
1258
+
1259
+
1260
+ &mdash;
1261
+ <div class='inline'>
1262
+ <p>Value for Env var.</p>
1263
+ </div>
1264
+
1265
+ </li>
1266
+
1267
+ </ul>
1268
+
1269
+
1270
+ </div><table class="source_code">
1271
+ <tr>
1272
+ <td>
1273
+ <pre class="lines">
1274
+
1275
+
1276
+ 332
1277
+ 333
1278
+ 334
1279
+ 335
1280
+ 336</pre>
1281
+ </td>
1282
+ <td>
1283
+ <pre class="code"><span class="info file"># File 'bin/rumodule', line 332</span>
1284
+
1285
+ <span class='kw'>def</span> <span class='id identifier rubyid_set'>set</span><span class='lparen'>(</span> <span class='id identifier rubyid_value'>value</span> <span class='rparen'>)</span>
1286
+ <span class='ivar'>@dirty</span> <span class='op'>=</span> <span class='kw'>true</span>
1287
+ <span class='ivar'>@unset</span> <span class='op'>=</span> <span class='kw'>false</span>
1288
+ <span class='ivar'>@value</span> <span class='op'>=</span> <span class='lbracket'>[</span> <span class='id identifier rubyid_value'>value</span> <span class='rbracket'>]</span>
1289
+ <span class='kw'>end</span></pre>
1290
+ </td>
1291
+ </tr>
1292
+ </table>
1293
+ </div>
1294
+
1295
+ <div class="method_details ">
1296
+ <h3 class="signature " id="unset-instance_method">
1297
+
1298
+ - (<tt>Object</tt>) <strong>unset</strong>
1299
+
1300
+
1301
+
1302
+
1303
+
1304
+ </h3><div class="docstring">
1305
+ <div class="discussion">
1306
+
1307
+ <p>Unset variable from env.</p>
1308
+
1309
+
1310
+ </div>
1311
+ </div>
1312
+ <div class="tags">
1313
+
1314
+
1315
+ </div><table class="source_code">
1316
+ <tr>
1317
+ <td>
1318
+ <pre class="lines">
1319
+
1320
+
1321
+ 340
1322
+ 341
1323
+ 342
1324
+ 343
1325
+ 344</pre>
1326
+ </td>
1327
+ <td>
1328
+ <pre class="code"><span class="info file"># File 'bin/rumodule', line 340</span>
1329
+
1330
+ <span class='kw'>def</span> <span class='id identifier rubyid_unset'>unset</span>
1331
+ <span class='ivar'>@dirty</span> <span class='op'>=</span> <span class='kw'>true</span>
1332
+ <span class='ivar'>@unset</span> <span class='op'>=</span> <span class='kw'>true</span>
1333
+ <span class='ivar'>@value</span> <span class='op'>=</span> <span class='lbracket'>[</span><span class='rbracket'>]</span>
1334
+ <span class='kw'>end</span></pre>
1335
+ </td>
1336
+ </tr>
1337
+ </table>
1338
+ </div>
1339
+
1340
+ </div>
1341
+
1342
+ </div>
1343
+
1344
+ <div id="footer">
1345
+ Generated on Sat Mar 19 10:38:05 2016 by
1346
+ <a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
1347
+ 0.8.7.6 (ruby-2.1.2).
1348
+ </div>
1349
+
1350
+ </body>
1351
+ </html>