como 0.1.6 → 0.1.7
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/Como/ArgsParseState.html +50 -50
- data/doc/Como/ComoCommon.html +1 -1
- data/doc/Como/MainOpt.html +46 -46
- data/doc/Como/Opt/ErrorWithData.html +1 -1
- data/doc/Como/Opt/InvalidOption.html +1 -1
- data/doc/Como/Opt/MissingArgument.html +1 -1
- data/doc/Como/Opt.html +117 -24
- data/doc/Como/RuleCheck.html +79 -79
- data/doc/Como/RuleDisplay.html +79 -79
- data/doc/Como/Spec.html +1 -1
- data/doc/Como.html +1 -1
- data/doc/_index.html +1 -1
- data/doc/file.CHANGELOG.html +1 -1
- data/doc/file.README.html +1 -1
- data/doc/index.html +1 -1
- data/doc/method_list.html +19 -13
- data/doc/top-level-namespace.html +1 -1
- data/lib/como.rb +21 -0
- data/lib/version.rb +1 -1
- metadata +1 -1
data/doc/Como/RuleDisplay.html
CHANGED
@@ -554,13 +554,13 @@ Example expansion of options:
|
|
554
554
|
<pre class="lines">
|
555
555
|
|
556
556
|
|
557
|
-
|
558
|
-
|
559
|
-
|
560
|
-
|
557
|
+
2279
|
558
|
+
2280
|
559
|
+
2281
|
560
|
+
2282</pre>
|
561
561
|
</td>
|
562
562
|
<td>
|
563
|
-
<pre class="code"><span class="info file"># File 'lib/como.rb', line
|
563
|
+
<pre class="code"><span class="info file"># File 'lib/como.rb', line 2279</span>
|
564
564
|
|
565
565
|
<span class='kw'>def</span> <span class='id identifier rubyid_initialize'>initialize</span><span class='lparen'>(</span> <span class='id identifier rubyid_prefixStr'>prefixStr</span> <span class='rparen'>)</span>
|
566
566
|
<span class='comment'># Prefix string for lines. Rules add/rm from it.
|
@@ -604,13 +604,13 @@ Example expansion of options:
|
|
604
604
|
<pre class="lines">
|
605
605
|
|
606
606
|
|
607
|
-
|
608
|
-
|
609
|
-
|
610
|
-
|
607
|
+
2273
|
608
|
+
2274
|
609
|
+
2275
|
610
|
+
2276</pre>
|
611
611
|
</td>
|
612
612
|
<td>
|
613
|
-
<pre class="code"><span class="info file"># File 'lib/como.rb', line
|
613
|
+
<pre class="code"><span class="info file"># File 'lib/como.rb', line 2273</span>
|
614
614
|
|
615
615
|
<span class='kw'>def</span> <span class='const'>RuleDisplay</span><span class='period'>.</span><span class='id identifier rubyid_print'>print</span><span class='lparen'>(</span> <span class='id identifier rubyid_prefixStr'>prefixStr</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='comma'>,</span> <span class='op'>&</span><span class='id identifier rubyid_rule'>rule</span> <span class='rparen'>)</span>
|
616
616
|
<span class='id identifier rubyid_rd'>rd</span> <span class='op'>=</span> <span class='const'>RuleDisplay</span><span class='period'>.</span><span class='id identifier rubyid_new'>new</span><span class='lparen'>(</span> <span class='id identifier rubyid_prefixStr'>prefixStr</span> <span class='rparen'>)</span>
|
@@ -653,12 +653,12 @@ Example expansion of options:
|
|
653
653
|
<pre class="lines">
|
654
654
|
|
655
655
|
|
656
|
-
|
657
|
-
|
658
|
-
|
656
|
+
2290
|
657
|
+
2291
|
658
|
+
2292</pre>
|
659
659
|
</td>
|
660
660
|
<td>
|
661
|
-
<pre class="code"><span class="info file"># File 'lib/como.rb', line
|
661
|
+
<pre class="code"><span class="info file"># File 'lib/como.rb', line 2290</span>
|
662
662
|
|
663
663
|
<span class='kw'>def</span> <span class='id identifier rubyid_addPrefix'>addPrefix</span><span class='lparen'>(</span> <span class='id identifier rubyid_str'>str</span> <span class='rparen'>)</span>
|
664
664
|
<span class='ivar'>@prefixStr</span> <span class='op'>+=</span> <span class='id identifier rubyid_str'>str</span>
|
@@ -694,12 +694,12 @@ Example expansion of options:
|
|
694
694
|
<pre class="lines">
|
695
695
|
|
696
696
|
|
697
|
-
|
698
|
-
|
699
|
-
|
697
|
+
2354
|
698
|
+
2355
|
699
|
+
2356</pre>
|
700
700
|
</td>
|
701
701
|
<td>
|
702
|
-
<pre class="code"><span class="info file"># File 'lib/como.rb', line
|
702
|
+
<pre class="code"><span class="info file"># File 'lib/como.rb', line 2354</span>
|
703
703
|
|
704
704
|
<span class='kw'>def</span> <span class='id identifier rubyid_all'>all</span><span class='lparen'>(</span> <span class='op'>*</span><span class='id identifier rubyid_args'>args</span> <span class='rparen'>)</span>
|
705
705
|
<span class='lbracket'>[</span> <span class='tstring'><span class='tstring_beg'>"</span><span class='tstring_content'>All of</span><span class='tstring_end'>"</span></span><span class='comma'>,</span> <span class='op'>*</span><span class='id identifier rubyid_args'>args</span> <span class='rbracket'>]</span>
|
@@ -735,12 +735,12 @@ Example expansion of options:
|
|
735
735
|
<pre class="lines">
|
736
736
|
|
737
737
|
|
738
|
-
|
739
|
-
|
740
|
-
|
738
|
+
2349
|
739
|
+
2350
|
740
|
+
2351</pre>
|
741
741
|
</td>
|
742
742
|
<td>
|
743
|
-
<pre class="code"><span class="info file"># File 'lib/como.rb', line
|
743
|
+
<pre class="code"><span class="info file"># File 'lib/como.rb', line 2349</span>
|
744
744
|
|
745
745
|
<span class='kw'>def</span> <span class='id identifier rubyid_any'>any</span><span class='lparen'>(</span> <span class='op'>*</span><span class='id identifier rubyid_args'>args</span> <span class='rparen'>)</span>
|
746
746
|
<span class='lbracket'>[</span> <span class='tstring'><span class='tstring_beg'>"</span><span class='tstring_content'>One or more of</span><span class='tstring_end'>"</span></span><span class='comma'>,</span> <span class='op'>*</span><span class='id identifier rubyid_args'>args</span> <span class='rbracket'>]</span>
|
@@ -776,12 +776,12 @@ Example expansion of options:
|
|
776
776
|
<pre class="lines">
|
777
777
|
|
778
778
|
|
779
|
-
|
780
|
-
|
781
|
-
|
779
|
+
2285
|
780
|
+
2286
|
781
|
+
2287</pre>
|
782
782
|
</td>
|
783
783
|
<td>
|
784
|
-
<pre class="code"><span class="info file"># File 'lib/como.rb', line
|
784
|
+
<pre class="code"><span class="info file"># File 'lib/como.rb', line 2285</span>
|
785
785
|
|
786
786
|
<span class='kw'>def</span> <span class='id identifier rubyid_evalAndDisplay'>evalAndDisplay</span><span class='lparen'>(</span> <span class='op'>&</span><span class='id identifier rubyid_rule'>rule</span> <span class='rparen'>)</span>
|
787
787
|
<span class='id identifier rubyid_printRule'>printRule</span><span class='lparen'>(</span> <span class='id identifier rubyid_instance_eval'>instance_eval</span><span class='lparen'>(</span> <span class='op'>&</span><span class='id identifier rubyid_rule'>rule</span> <span class='rparen'>)</span> <span class='rparen'>)</span>
|
@@ -817,12 +817,12 @@ Example expansion of options:
|
|
817
817
|
<pre class="lines">
|
818
818
|
|
819
819
|
|
820
|
-
|
821
|
-
|
822
|
-
|
820
|
+
2339
|
821
|
+
2340
|
822
|
+
2341</pre>
|
823
823
|
</td>
|
824
824
|
<td>
|
825
|
-
<pre class="code"><span class="info file"># File 'lib/como.rb', line
|
825
|
+
<pre class="code"><span class="info file"># File 'lib/como.rb', line 2339</span>
|
826
826
|
|
827
827
|
<span class='kw'>def</span> <span class='id identifier rubyid_follow'>follow</span><span class='lparen'>(</span> <span class='op'>*</span><span class='id identifier rubyid_args'>args</span> <span class='rparen'>)</span>
|
828
828
|
<span class='lbracket'>[</span> <span class='tstring'><span class='tstring_beg'>"</span><span class='tstring_content'>If first then rest</span><span class='tstring_end'>"</span></span><span class='comma'>,</span> <span class='op'>*</span><span class='id identifier rubyid_args'>args</span> <span class='rbracket'>]</span>
|
@@ -858,12 +858,12 @@ Example expansion of options:
|
|
858
858
|
<pre class="lines">
|
859
859
|
|
860
860
|
|
861
|
-
|
862
|
-
|
863
|
-
|
861
|
+
2333
|
862
|
+
2334
|
863
|
+
2335</pre>
|
864
864
|
</td>
|
865
865
|
<td>
|
866
|
-
<pre class="code"><span class="info file"># File 'lib/como.rb', line
|
866
|
+
<pre class="code"><span class="info file"># File 'lib/como.rb', line 2333</span>
|
867
867
|
|
868
868
|
<span class='kw'>def</span> <span class='id identifier rubyid_incr'>incr</span><span class='lparen'>(</span> <span class='op'>*</span><span class='id identifier rubyid_args'>args</span> <span class='rparen'>)</span>
|
869
869
|
<span class='lbracket'>[</span> <span class='tstring'><span class='tstring_beg'>"</span><span class='tstring_content'>Adding in order</span><span class='tstring_end'>"</span></span><span class='comma'>,</span> <span class='op'>*</span><span class='id identifier rubyid_args'>args</span> <span class='rbracket'>]</span>
|
@@ -899,12 +899,12 @@ Example expansion of options:
|
|
899
899
|
<pre class="lines">
|
900
900
|
|
901
901
|
|
902
|
-
|
903
|
-
|
904
|
-
|
902
|
+
2359
|
903
|
+
2360
|
904
|
+
2361</pre>
|
905
905
|
</td>
|
906
906
|
<td>
|
907
|
-
<pre class="code"><span class="info file"># File 'lib/como.rb', line
|
907
|
+
<pre class="code"><span class="info file"># File 'lib/como.rb', line 2359</span>
|
908
908
|
|
909
909
|
<span class='kw'>def</span> <span class='id identifier rubyid_inv'>inv</span><span class='lparen'>(</span> <span class='op'>*</span><span class='id identifier rubyid_args'>args</span> <span class='rparen'>)</span>
|
910
910
|
<span class='lbracket'>[</span> <span class='tstring'><span class='tstring_beg'>"</span><span class='tstring_content'>Not</span><span class='tstring_end'>"</span></span><span class='comma'>,</span> <span class='op'>*</span><span class='id identifier rubyid_args'>args</span> <span class='rbracket'>]</span>
|
@@ -940,12 +940,12 @@ Example expansion of options:
|
|
940
940
|
<pre class="lines">
|
941
941
|
|
942
942
|
|
943
|
-
|
944
|
-
|
945
|
-
|
943
|
+
2364
|
944
|
+
2365
|
945
|
+
2366</pre>
|
946
946
|
</td>
|
947
947
|
<td>
|
948
|
-
<pre class="code"><span class="info file"># File 'lib/como.rb', line
|
948
|
+
<pre class="code"><span class="info file"># File 'lib/como.rb', line 2364</span>
|
949
949
|
|
950
950
|
<span class='kw'>def</span> <span class='id identifier rubyid_meh'>meh</span><span class='lparen'>(</span> <span class='op'>*</span><span class='id identifier rubyid_args'>args</span> <span class='rparen'>)</span>
|
951
951
|
<span class='lbracket'>[</span> <span class='tstring'><span class='tstring_beg'>"</span><span class='tstring_content'>Ignoring</span><span class='tstring_end'>"</span></span><span class='comma'>,</span> <span class='op'>*</span><span class='id identifier rubyid_args'>args</span> <span class='rbracket'>]</span>
|
@@ -981,12 +981,12 @@ Example expansion of options:
|
|
981
981
|
<pre class="lines">
|
982
982
|
|
983
983
|
|
984
|
-
|
985
|
-
|
986
|
-
|
984
|
+
2327
|
985
|
+
2328
|
986
|
+
2329</pre>
|
987
987
|
</td>
|
988
988
|
<td>
|
989
|
-
<pre class="code"><span class="info file"># File 'lib/como.rb', line
|
989
|
+
<pre class="code"><span class="info file"># File 'lib/como.rb', line 2327</span>
|
990
990
|
|
991
991
|
<span class='kw'>def</span> <span class='id identifier rubyid_none'>none</span>
|
992
992
|
<span class='lbracket'>[</span> <span class='tstring'><span class='tstring_beg'>"</span><span class='tstring_content'>NONE</span><span class='tstring_end'>"</span></span> <span class='rbracket'>]</span>
|
@@ -1022,12 +1022,12 @@ Example expansion of options:
|
|
1022
1022
|
<pre class="lines">
|
1023
1023
|
|
1024
1024
|
|
1025
|
-
|
1026
|
-
|
1027
|
-
|
1025
|
+
2344
|
1026
|
+
2345
|
1027
|
+
2346</pre>
|
1028
1028
|
</td>
|
1029
1029
|
<td>
|
1030
|
-
<pre class="code"><span class="info file"># File 'lib/como.rb', line
|
1030
|
+
<pre class="code"><span class="info file"># File 'lib/como.rb', line 2344</span>
|
1031
1031
|
|
1032
1032
|
<span class='kw'>def</span> <span class='id identifier rubyid_one'>one</span><span class='lparen'>(</span> <span class='op'>*</span><span class='id identifier rubyid_args'>args</span> <span class='rparen'>)</span>
|
1033
1033
|
<span class='lbracket'>[</span> <span class='tstring'><span class='tstring_beg'>"</span><span class='tstring_content'>One of</span><span class='tstring_end'>"</span></span><span class='comma'>,</span> <span class='op'>*</span><span class='id identifier rubyid_args'>args</span> <span class='rbracket'>]</span>
|
@@ -1063,12 +1063,12 @@ Example expansion of options:
|
|
1063
1063
|
<pre class="lines">
|
1064
1064
|
|
1065
1065
|
|
1066
|
-
|
1067
|
-
|
1068
|
-
|
1066
|
+
2305
|
1067
|
+
2306
|
1068
|
+
2307</pre>
|
1069
1069
|
</td>
|
1070
1070
|
<td>
|
1071
|
-
<pre class="code"><span class="info file"># File 'lib/como.rb', line
|
1071
|
+
<pre class="code"><span class="info file"># File 'lib/como.rb', line 2305</span>
|
1072
1072
|
|
1073
1073
|
<span class='kw'>def</span> <span class='id identifier rubyid_p'>p</span><span class='lparen'>(</span> <span class='id identifier rubyid_str'>str</span> <span class='rparen'>)</span>
|
1074
1074
|
<span class='cvar'>@@io</span><span class='period'>.</span><span class='id identifier rubyid_puts'>puts</span><span class='lparen'>(</span> <span class='ivar'>@prefixStr</span> <span class='op'>+</span> <span class='id identifier rubyid_str'>str</span> <span class='rparen'>)</span>
|
@@ -1104,23 +1104,23 @@ Example expansion of options:
|
|
1104
1104
|
<pre class="lines">
|
1105
1105
|
|
1106
1106
|
|
1107
|
-
|
1108
|
-
|
1109
|
-
|
1110
|
-
|
1111
|
-
|
1112
|
-
|
1113
|
-
|
1114
|
-
|
1115
|
-
|
1116
|
-
|
1117
|
-
|
1118
|
-
|
1119
|
-
|
1120
|
-
|
1107
|
+
2311
|
1108
|
+
2312
|
1109
|
+
2313
|
1110
|
+
2314
|
1111
|
+
2315
|
1112
|
+
2316
|
1113
|
+
2317
|
1114
|
+
2318
|
1115
|
+
2319
|
1116
|
+
2320
|
1117
|
+
2321
|
1118
|
+
2322
|
1119
|
+
2323
|
1120
|
+
2324</pre>
|
1121
1121
|
</td>
|
1122
1122
|
<td>
|
1123
|
-
<pre class="code"><span class="info file"># File 'lib/como.rb', line
|
1123
|
+
<pre class="code"><span class="info file"># File 'lib/como.rb', line 2311</span>
|
1124
1124
|
|
1125
1125
|
<span class='kw'>def</span> <span class='id identifier rubyid_printRule'>printRule</span><span class='lparen'>(</span> <span class='id identifier rubyid_arr'>arr</span> <span class='rparen'>)</span>
|
1126
1126
|
<span class='id identifier rubyid_p'>p</span><span class='lparen'>(</span> <span class='tstring'><span class='tstring_beg'>"</span><span class='tstring_content'>|--# </span><span class='embexpr_beg'>#{</span><span class='id identifier rubyid_arr'>arr</span><span class='lbracket'>[</span><span class='int'>0</span><span class='rbracket'>]</span><span class='embexpr_end'>}</span><span class='tstring_content'>:</span><span class='tstring_end'>"</span></span> <span class='rparen'>)</span>
|
@@ -1167,17 +1167,17 @@ Example expansion of options:
|
|
1167
1167
|
<pre class="lines">
|
1168
1168
|
|
1169
1169
|
|
1170
|
-
|
1171
|
-
|
1172
|
-
|
1173
|
-
|
1174
|
-
|
1175
|
-
|
1176
|
-
|
1177
|
-
|
1170
|
+
2295
|
1171
|
+
2296
|
1172
|
+
2297
|
1173
|
+
2298
|
1174
|
+
2299
|
1175
|
+
2300
|
1176
|
+
2301
|
1177
|
+
2302</pre>
|
1178
1178
|
</td>
|
1179
1179
|
<td>
|
1180
|
-
<pre class="code"><span class="info file"># File 'lib/como.rb', line
|
1180
|
+
<pre class="code"><span class="info file"># File 'lib/como.rb', line 2295</span>
|
1181
1181
|
|
1182
1182
|
<span class='kw'>def</span> <span class='id identifier rubyid_rmPrefix'>rmPrefix</span><span class='lparen'>(</span> <span class='id identifier rubyid_item'>item</span> <span class='rparen'>)</span>
|
1183
1183
|
<span class='kw'>if</span> <span class='id identifier rubyid_item'>item</span><span class='period'>.</span><span class='id identifier rubyid_class'>class</span> <span class='op'>==</span> <span class='const'>String</span>
|
@@ -1197,7 +1197,7 @@ Example expansion of options:
|
|
1197
1197
|
</div>
|
1198
1198
|
|
1199
1199
|
<div id="footer">
|
1200
|
-
Generated on Tue Jun 21
|
1200
|
+
Generated on Tue Jun 21 19:41:09 2016 by
|
1201
1201
|
<a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
|
1202
1202
|
0.8.7.6 (ruby-2.3.1).
|
1203
1203
|
</div>
|
data/doc/Como/Spec.html
CHANGED
@@ -2217,7 +2217,7 @@ the command line. Performs “usage” display if “help” was selected.</p>
|
|
2217
2217
|
</div>
|
2218
2218
|
|
2219
2219
|
<div id="footer">
|
2220
|
-
Generated on Tue Jun 21
|
2220
|
+
Generated on Tue Jun 21 19:41:09 2016 by
|
2221
2221
|
<a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
|
2222
2222
|
0.8.7.6 (ruby-2.3.1).
|
2223
2223
|
</div>
|
data/doc/Como.html
CHANGED
@@ -906,7 +906,7 @@ of the internal workings of Como is required though.</p>
|
|
906
906
|
</div>
|
907
907
|
|
908
908
|
<div id="footer">
|
909
|
-
Generated on Tue Jun 21
|
909
|
+
Generated on Tue Jun 21 19:41:09 2016 by
|
910
910
|
<a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
|
911
911
|
0.8.7.6 (ruby-2.3.1).
|
912
912
|
</div>
|
data/doc/_index.html
CHANGED
@@ -233,7 +233,7 @@
|
|
233
233
|
</div>
|
234
234
|
|
235
235
|
<div id="footer">
|
236
|
-
Generated on Tue Jun 21
|
236
|
+
Generated on Tue Jun 21 19:41:08 2016 by
|
237
237
|
<a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
|
238
238
|
0.8.7.6 (ruby-2.3.1).
|
239
239
|
</div>
|
data/doc/file.CHANGELOG.html
CHANGED
@@ -115,7 +115,7 @@ settings, i.e. the Opt#params method added.</p>
|
|
115
115
|
</div></div>
|
116
116
|
|
117
117
|
<div id="footer">
|
118
|
-
Generated on Tue Jun 21
|
118
|
+
Generated on Tue Jun 21 19:41:08 2016 by
|
119
119
|
<a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
|
120
120
|
0.8.7.6 (ruby-2.3.1).
|
121
121
|
</div>
|
data/doc/file.README.html
CHANGED
@@ -85,7 +85,7 @@ used.</p>
|
|
85
85
|
</div></div>
|
86
86
|
|
87
87
|
<div id="footer">
|
88
|
-
Generated on Tue Jun 21
|
88
|
+
Generated on Tue Jun 21 19:41:08 2016 by
|
89
89
|
<a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
|
90
90
|
0.8.7.6 (ruby-2.3.1).
|
91
91
|
</div>
|
data/doc/index.html
CHANGED
@@ -85,7 +85,7 @@ used.</p>
|
|
85
85
|
</div></div>
|
86
86
|
|
87
87
|
<div id="footer">
|
88
|
-
Generated on Tue Jun 21
|
88
|
+
Generated on Tue Jun 21 19:41:08 2016 by
|
89
89
|
<a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
|
90
90
|
0.8.7.6 (ruby-2.3.1).
|
91
91
|
</div>
|
data/doc/method_list.html
CHANGED
@@ -874,84 +874,90 @@
|
|
874
874
|
|
875
875
|
|
876
876
|
<li class="r2 ">
|
877
|
-
<span class='object_link'><a href="Como/Opt.html#
|
877
|
+
<span class='object_link'><a href="Como/Opt.html#to_hopt-instance_method" title="Como::Opt#to_hopt (method)">#to_hopt</a></span>
|
878
878
|
<small>Como::Opt</small>
|
879
879
|
</li>
|
880
880
|
|
881
881
|
|
882
882
|
<li class="r1 ">
|
883
|
+
<span class='object_link'><a href="Como/Opt.html#type-instance_method" title="Como::Opt#type (method)">#type</a></span>
|
884
|
+
<small>Como::Opt</small>
|
885
|
+
</li>
|
886
|
+
|
887
|
+
|
888
|
+
<li class="r2 ">
|
883
889
|
<span class='object_link'><a href="Como/Spec.html#usage-class_method" title="Como::Spec.usage (method)">usage</a></span>
|
884
890
|
<small>Como::Spec</small>
|
885
891
|
</li>
|
886
892
|
|
887
893
|
|
888
|
-
<li class="
|
894
|
+
<li class="r1 ">
|
889
895
|
<span class='object_link'><a href="Como/Opt.html#usage-instance_method" title="Como::Opt#usage (method)">#usage</a></span>
|
890
896
|
<small>Como::Opt</small>
|
891
897
|
</li>
|
892
898
|
|
893
899
|
|
894
|
-
<li class="
|
900
|
+
<li class="r2 ">
|
895
901
|
<span class='object_link'><a href="Como/Opt.html#usageCommand-instance_method" title="Como::Opt#usageCommand (method)">#usageCommand</a></span>
|
896
902
|
<small>Como::Opt</small>
|
897
903
|
</li>
|
898
904
|
|
899
905
|
|
900
|
-
<li class="
|
906
|
+
<li class="r1 ">
|
901
907
|
<span class='object_link'><a href="Como/MainOpt.html#usageCommand-instance_method" title="Como::MainOpt#usageCommand (method)">#usageCommand</a></span>
|
902
908
|
<small>Como::MainOpt</small>
|
903
909
|
</li>
|
904
910
|
|
905
911
|
|
906
|
-
<li class="
|
912
|
+
<li class="r2 ">
|
907
913
|
<span class='object_link'><a href="Como/Opt.html#usageIfHelp-instance_method" title="Como::Opt#usageIfHelp (method)">#usageIfHelp</a></span>
|
908
914
|
<small>Como::Opt</small>
|
909
915
|
</li>
|
910
916
|
|
911
917
|
|
912
|
-
<li class="
|
918
|
+
<li class="r1 ">
|
913
919
|
<span class='object_link'><a href="Como/Opt.html#usageNormal-instance_method" title="Como::Opt#usageNormal (method)">#usageNormal</a></span>
|
914
920
|
<small>Como::Opt</small>
|
915
921
|
</li>
|
916
922
|
|
917
923
|
|
918
|
-
<li class="
|
924
|
+
<li class="r2 ">
|
919
925
|
<span class='object_link'><a href="Como/Opt.html#value-instance_method" title="Como::Opt#value (method)">#value</a></span>
|
920
926
|
<small>Como::Opt</small>
|
921
927
|
</li>
|
922
928
|
|
923
929
|
|
924
|
-
<li class="
|
930
|
+
<li class="r1 ">
|
925
931
|
<span class='object_link'><a href="Como.html#version-class_method" title="Como.version (method)">version</a></span>
|
926
932
|
<small>Como</small>
|
927
933
|
</li>
|
928
934
|
|
929
935
|
|
930
|
-
<li class="
|
936
|
+
<li class="r2 ">
|
931
937
|
<span class='object_link'><a href="Como/Opt.html#warn-class_method" title="Como::Opt.warn (method)">warn</a></span>
|
932
938
|
<small>Como::Opt</small>
|
933
939
|
</li>
|
934
940
|
|
935
941
|
|
936
|
-
<li class="
|
942
|
+
<li class="r1 ">
|
937
943
|
<span class='object_link'><a href="Como/Opt.html#warn-instance_method" title="Como::Opt#warn (method)">#warn</a></span>
|
938
944
|
<small>Como::Opt</small>
|
939
945
|
</li>
|
940
946
|
|
941
947
|
|
942
|
-
<li class="
|
948
|
+
<li class="r2 ">
|
943
949
|
<span class='object_link'><a href="Como/Opt.html#year-class_method" title="Como::Opt.year (method)">year</a></span>
|
944
950
|
<small>Como::Opt</small>
|
945
951
|
</li>
|
946
952
|
|
947
953
|
|
948
|
-
<li class="
|
954
|
+
<li class="r1 ">
|
949
955
|
<span class='object_link'><a href="Como/MainOpt.html#year-instance_method" title="Como::MainOpt#year (method)">#year</a></span>
|
950
956
|
<small>Como::MainOpt</small>
|
951
957
|
</li>
|
952
958
|
|
953
959
|
|
954
|
-
<li class="
|
960
|
+
<li class="r2 ">
|
955
961
|
<span class='object_link'><a href="Como/Opt.html#%7E-instance_method" title="Como::Opt#~ (method)">#~</a></span>
|
956
962
|
<small>Como::Opt</small>
|
957
963
|
</li>
|
@@ -103,7 +103,7 @@
|
|
103
103
|
</div>
|
104
104
|
|
105
105
|
<div id="footer">
|
106
|
-
Generated on Tue Jun 21
|
106
|
+
Generated on Tue Jun 21 19:41:08 2016 by
|
107
107
|
<a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
|
108
108
|
0.8.7.6 (ruby-2.3.1).
|
109
109
|
</div>
|
data/lib/como.rb
CHANGED
@@ -1865,6 +1865,27 @@ module Como
|
|
1865
1865
|
end
|
1866
1866
|
|
1867
1867
|
|
1868
|
+
# Convert to hash representation with opt name keys.
|
1869
|
+
#
|
1870
|
+
# Keys are symbols: name, type, given, value, subopt, subcmd.
|
1871
|
+
def to_hopt
|
1872
|
+
h = {}
|
1873
|
+
h[ :name ] = @name
|
1874
|
+
h[ :type ] = @type
|
1875
|
+
h[ :given ] = @given
|
1876
|
+
h[ :value ] = @value
|
1877
|
+
h[ :subopt ] = {}
|
1878
|
+
@subopt.each do |i|
|
1879
|
+
h[ :subopt ][ i.name ] = i.to_hopt
|
1880
|
+
end
|
1881
|
+
h[ :subcmd ] = {}
|
1882
|
+
@subcmd.each do |i|
|
1883
|
+
h[ :subcmd ][ i.name ] = i.to_hopt
|
1884
|
+
end
|
1885
|
+
h
|
1886
|
+
end
|
1887
|
+
|
1888
|
+
|
1868
1889
|
# Como error printout.
|
1869
1890
|
#
|
1870
1891
|
# @param str [String] Error message.
|
data/lib/version.rb
CHANGED