como 0.1.3 → 0.1.4
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 +7 -0
- data/doc/Como/ArgsParseState.html +52 -52
- data/doc/Como/ComoCommon.html +128 -33
- data/doc/Como/MainOpt.html +52 -55
- data/doc/Como/Opt/ErrorWithData.html +15 -15
- data/doc/Como/Opt/InvalidOption.html +1 -1
- data/doc/Como/Opt/MissingArgument.html +1 -1
- data/doc/Como/Opt.html +1211 -821
- data/doc/Como/RuleCheck.html +143 -92
- data/doc/Como/RuleDisplay.html +96 -92
- data/doc/Como/Spec.html +636 -273
- data/doc/Como.html +56 -36
- data/doc/_index.html +1 -1
- data/doc/file.CHANGELOG.html +12 -2
- data/doc/file.README.html +1 -1
- data/doc/index.html +1 -1
- data/doc/method_list.html +113 -71
- data/doc/top-level-namespace.html +1 -1
- data/lib/como.rb +217 -102
- data/lib/version.rb +2 -7
- metadata +60 -67
- data/Rakefile +0 -59
data/doc/Como/RuleCheck.html
CHANGED
@@ -140,7 +140,7 @@ is a meta language (DSL) for option combinations.</p>
|
|
140
140
|
<li class="public ">
|
141
141
|
<span class="summary_signature">
|
142
142
|
|
143
|
-
<a href="#check-class_method" title="check (class method)">+ (Object) <strong>check</strong>(opt
|
143
|
+
<a href="#check-class_method" title="check (class method)">+ (Object) <strong>check</strong>(opt) { ... }</a>
|
144
144
|
|
145
145
|
|
146
146
|
|
@@ -154,7 +154,9 @@ is a meta language (DSL) for option combinations.</p>
|
|
154
154
|
|
155
155
|
|
156
156
|
|
157
|
-
<span class="summary_desc"><div class='inline'
|
157
|
+
<span class="summary_desc"><div class='inline'>
|
158
|
+
<p>Perform rule checking options.</p>
|
159
|
+
</div></span>
|
158
160
|
|
159
161
|
</li>
|
160
162
|
|
@@ -308,7 +310,7 @@ is a meta language (DSL) for option combinations.</p>
|
|
308
310
|
|
309
311
|
|
310
312
|
<span class="summary_desc"><div class='inline'>
|
311
|
-
<p>
|
313
|
+
<p>Build Rule checker.</p>
|
312
314
|
</div></span>
|
313
315
|
|
314
316
|
</li>
|
@@ -428,7 +430,7 @@ is a meta language (DSL) for option combinations.</p>
|
|
428
430
|
</h3><div class="docstring">
|
429
431
|
<div class="discussion">
|
430
432
|
|
431
|
-
<p>
|
433
|
+
<p>Build Rule checker.</p>
|
432
434
|
|
433
435
|
|
434
436
|
</div>
|
@@ -442,12 +444,12 @@ is a meta language (DSL) for option combinations.</p>
|
|
442
444
|
<pre class="lines">
|
443
445
|
|
444
446
|
|
445
|
-
|
446
|
-
|
447
|
-
|
447
|
+
2094
|
448
|
+
2095
|
449
|
+
2096</pre>
|
448
450
|
</td>
|
449
451
|
<td>
|
450
|
-
<pre class="code"><span class="info file"># File 'lib/como.rb', line
|
452
|
+
<pre class="code"><span class="info file"># File 'lib/como.rb', line 2094</span>
|
451
453
|
|
452
454
|
<span class='kw'>def</span> <span class='id identifier rubyid_initialize'>initialize</span><span class='lparen'>(</span> <span class='id identifier rubyid_opt'>opt</span><span class='comma'>,</span> <span class='op'>&</span><span class='id identifier rubyid_rule'>rule</span> <span class='rparen'>)</span>
|
453
455
|
<span class='ivar'>@opt</span> <span class='op'>=</span> <span class='id identifier rubyid_opt'>opt</span>
|
@@ -467,25 +469,74 @@ is a meta language (DSL) for option combinations.</p>
|
|
467
469
|
<div class="method_details first">
|
468
470
|
<h3 class="signature first" id="check-class_method">
|
469
471
|
|
470
|
-
+ (<tt>Object</tt>) <strong>check</strong>(opt
|
472
|
+
+ (<tt>Object</tt>) <strong>check</strong>(opt) { ... }
|
473
|
+
|
474
|
+
|
475
|
+
|
476
|
+
|
471
477
|
|
478
|
+
</h3><div class="docstring">
|
479
|
+
<div class="discussion">
|
480
|
+
|
481
|
+
<p>Perform rule checking options.</p>
|
482
|
+
|
472
483
|
|
484
|
+
</div>
|
485
|
+
</div>
|
486
|
+
<div class="tags">
|
487
|
+
<p class="tag_title">Parameters:</p>
|
488
|
+
<ul class="param">
|
489
|
+
|
490
|
+
<li>
|
491
|
+
|
492
|
+
<span class='name'>opt</span>
|
493
|
+
|
494
|
+
|
495
|
+
<span class='type'>(<tt>Object</tt>)</span>
|
496
|
+
|
497
|
+
|
498
|
+
|
499
|
+
—
|
500
|
+
<div class='inline'>
|
501
|
+
<p>Options to check.</p>
|
502
|
+
</div>
|
503
|
+
|
504
|
+
</li>
|
473
505
|
|
506
|
+
</ul>
|
474
507
|
|
508
|
+
<p class="tag_title">Yields:</p>
|
509
|
+
<ul class="yield">
|
510
|
+
|
511
|
+
<li>
|
512
|
+
|
513
|
+
|
514
|
+
<span class='type'></span>
|
515
|
+
|
516
|
+
|
517
|
+
|
518
|
+
|
519
|
+
<div class='inline'>
|
520
|
+
<p>rule Checking conditions.</p>
|
521
|
+
</div>
|
522
|
+
|
523
|
+
</li>
|
475
524
|
|
476
|
-
</
|
525
|
+
</ul>
|
526
|
+
|
527
|
+
</div><table class="source_code">
|
477
528
|
<tr>
|
478
529
|
<td>
|
479
530
|
<pre class="lines">
|
480
531
|
|
481
532
|
|
482
|
-
|
483
|
-
|
484
|
-
|
485
|
-
|
533
|
+
2087
|
534
|
+
2088
|
535
|
+
2089
|
536
|
+
2090</pre>
|
486
537
|
</td>
|
487
538
|
<td>
|
488
|
-
<pre class="code"><span class="info file"># File 'lib/como.rb', line
|
539
|
+
<pre class="code"><span class="info file"># File 'lib/como.rb', line 2087</span>
|
489
540
|
|
490
541
|
<span class='kw'>def</span> <span class='const'>RuleCheck</span><span class='period'>.</span><span class='id identifier rubyid_check'>check</span><span class='lparen'>(</span> <span class='id identifier rubyid_opt'>opt</span><span class='comma'>,</span> <span class='op'>&</span><span class='id identifier rubyid_rule'>rule</span> <span class='rparen'>)</span>
|
491
542
|
<span class='id identifier rubyid_rc'>rc</span> <span class='op'>=</span> <span class='const'>RuleCheck</span><span class='period'>.</span><span class='id identifier rubyid_new'>new</span><span class='lparen'>(</span> <span class='id identifier rubyid_opt'>opt</span> <span class='rparen'>)</span>
|
@@ -528,12 +579,12 @@ is a meta language (DSL) for option combinations.</p>
|
|
528
579
|
<pre class="lines">
|
529
580
|
|
530
581
|
|
531
|
-
|
532
|
-
|
533
|
-
|
582
|
+
2172
|
583
|
+
2173
|
584
|
+
2174</pre>
|
534
585
|
</td>
|
535
586
|
<td>
|
536
|
-
<pre class="code"><span class="info file"># File 'lib/como.rb', line
|
587
|
+
<pre class="code"><span class="info file"># File 'lib/como.rb', line 2172</span>
|
537
588
|
|
538
589
|
<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>
|
539
590
|
<span class='id identifier rubyid_getScore'>getScore</span><span class='lparen'>(</span> <span class='op'>*</span><span class='id identifier rubyid_args'>args</span> <span class='rparen'>)</span> <span class='op'>==</span> <span class='id identifier rubyid_args'>args</span><span class='period'>.</span><span class='id identifier rubyid_length'>length</span>
|
@@ -569,12 +620,12 @@ is a meta language (DSL) for option combinations.</p>
|
|
569
620
|
<pre class="lines">
|
570
621
|
|
571
622
|
|
572
|
-
|
573
|
-
|
574
|
-
|
623
|
+
2167
|
624
|
+
2168
|
625
|
+
2169</pre>
|
575
626
|
</td>
|
576
627
|
<td>
|
577
|
-
<pre class="code"><span class="info file"># File 'lib/como.rb', line
|
628
|
+
<pre class="code"><span class="info file"># File 'lib/como.rb', line 2167</span>
|
578
629
|
|
579
630
|
<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>
|
580
631
|
<span class='id identifier rubyid_getScore'>getScore</span><span class='lparen'>(</span> <span class='op'>*</span><span class='id identifier rubyid_args'>args</span> <span class='rparen'>)</span> <span class='op'>></span> <span class='int'>0</span>
|
@@ -610,16 +661,16 @@ is a meta language (DSL) for option combinations.</p>
|
|
610
661
|
<pre class="lines">
|
611
662
|
|
612
663
|
|
613
|
-
|
614
|
-
|
615
|
-
|
616
|
-
|
617
|
-
|
618
|
-
|
619
|
-
|
664
|
+
2153
|
665
|
+
2154
|
666
|
+
2155
|
667
|
+
2156
|
668
|
+
2157
|
669
|
+
2158
|
670
|
+
2159</pre>
|
620
671
|
</td>
|
621
672
|
<td>
|
622
|
-
<pre class="code"><span class="info file"># File 'lib/como.rb', line
|
673
|
+
<pre class="code"><span class="info file"># File 'lib/como.rb', line 2153</span>
|
623
674
|
|
624
675
|
<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>
|
625
676
|
<span class='kw'>if</span> <span class='id identifier rubyid_getScore'>getScore</span><span class='lparen'>(</span> <span class='id identifier rubyid_args'>args</span><span class='lbracket'>[</span><span class='int'>0</span><span class='rbracket'>]</span> <span class='rparen'>)</span>
|
@@ -659,22 +710,22 @@ is a meta language (DSL) for option combinations.</p>
|
|
659
710
|
<pre class="lines">
|
660
711
|
|
661
712
|
|
662
|
-
|
663
|
-
|
664
|
-
|
665
|
-
|
666
|
-
|
667
|
-
|
668
|
-
|
669
|
-
|
670
|
-
|
671
|
-
|
672
|
-
|
673
|
-
|
674
|
-
|
713
|
+
2100
|
714
|
+
2101
|
715
|
+
2102
|
716
|
+
2103
|
717
|
+
2104
|
718
|
+
2105
|
719
|
+
2106
|
720
|
+
2107
|
721
|
+
2108
|
722
|
+
2109
|
723
|
+
2110
|
724
|
+
2111
|
725
|
+
2112</pre>
|
675
726
|
</td>
|
676
727
|
<td>
|
677
|
-
<pre class="code"><span class="info file"># File 'lib/como.rb', line
|
728
|
+
<pre class="code"><span class="info file"># File 'lib/como.rb', line 2100</span>
|
678
729
|
|
679
730
|
<span class='kw'>def</span> <span class='id identifier rubyid_getScore'>getScore</span><span class='lparen'>(</span> <span class='op'>*</span><span class='id identifier rubyid_args'>args</span> <span class='rparen'>)</span>
|
680
731
|
|
@@ -720,38 +771,38 @@ is a meta language (DSL) for option combinations.</p>
|
|
720
771
|
<pre class="lines">
|
721
772
|
|
722
773
|
|
723
|
-
|
724
|
-
|
725
|
-
|
726
|
-
|
727
|
-
|
728
|
-
|
729
|
-
|
730
|
-
|
731
|
-
|
732
|
-
|
733
|
-
|
734
|
-
|
735
|
-
|
736
|
-
|
737
|
-
|
738
|
-
|
739
|
-
|
740
|
-
|
741
|
-
|
742
|
-
|
743
|
-
|
744
|
-
|
745
|
-
|
746
|
-
|
747
|
-
|
748
|
-
|
749
|
-
|
750
|
-
|
751
|
-
|
774
|
+
2121
|
775
|
+
2122
|
776
|
+
2123
|
777
|
+
2124
|
778
|
+
2125
|
779
|
+
2126
|
780
|
+
2127
|
781
|
+
2128
|
782
|
+
2129
|
783
|
+
2130
|
784
|
+
2131
|
785
|
+
2132
|
786
|
+
2133
|
787
|
+
2134
|
788
|
+
2135
|
789
|
+
2136
|
790
|
+
2137
|
791
|
+
2138
|
792
|
+
2139
|
793
|
+
2140
|
794
|
+
2141
|
795
|
+
2142
|
796
|
+
2143
|
797
|
+
2144
|
798
|
+
2145
|
799
|
+
2146
|
800
|
+
2147
|
801
|
+
2148
|
802
|
+
2149</pre>
|
752
803
|
</td>
|
753
804
|
<td>
|
754
|
-
<pre class="code"><span class="info file"># File 'lib/como.rb', line
|
805
|
+
<pre class="code"><span class="info file"># File 'lib/como.rb', line 2121</span>
|
755
806
|
|
756
807
|
<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>
|
757
808
|
|
@@ -813,12 +864,12 @@ is a meta language (DSL) for option combinations.</p>
|
|
813
864
|
<pre class="lines">
|
814
865
|
|
815
866
|
|
816
|
-
|
817
|
-
|
818
|
-
|
867
|
+
2177
|
868
|
+
2178
|
869
|
+
2179</pre>
|
819
870
|
</td>
|
820
871
|
<td>
|
821
|
-
<pre class="code"><span class="info file"># File 'lib/como.rb', line
|
872
|
+
<pre class="code"><span class="info file"># File 'lib/como.rb', line 2177</span>
|
822
873
|
|
823
874
|
<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>
|
824
875
|
<span class='id identifier rubyid_getScore'>getScore</span><span class='lparen'>(</span> <span class='op'>*</span><span class='id identifier rubyid_args'>args</span> <span class='rparen'>)</span> <span class='op'>==</span> <span class='int'>0</span>
|
@@ -854,12 +905,12 @@ is a meta language (DSL) for option combinations.</p>
|
|
854
905
|
<pre class="lines">
|
855
906
|
|
856
907
|
|
857
|
-
|
858
|
-
|
859
|
-
|
908
|
+
2182
|
909
|
+
2183
|
910
|
+
2184</pre>
|
860
911
|
</td>
|
861
912
|
<td>
|
862
|
-
<pre class="code"><span class="info file"># File 'lib/como.rb', line
|
913
|
+
<pre class="code"><span class="info file"># File 'lib/como.rb', line 2182</span>
|
863
914
|
|
864
915
|
<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>
|
865
916
|
<span class='kw'>true</span>
|
@@ -895,12 +946,12 @@ is a meta language (DSL) for option combinations.</p>
|
|
895
946
|
<pre class="lines">
|
896
947
|
|
897
948
|
|
898
|
-
|
899
|
-
|
900
|
-
|
949
|
+
2115
|
950
|
+
2116
|
951
|
+
2117</pre>
|
901
952
|
</td>
|
902
953
|
<td>
|
903
|
-
<pre class="code"><span class="info file"># File 'lib/como.rb', line
|
954
|
+
<pre class="code"><span class="info file"># File 'lib/como.rb', line 2115</span>
|
904
955
|
|
905
956
|
<span class='kw'>def</span> <span class='id identifier rubyid_none'>none</span>
|
906
957
|
<span class='ivar'>@opt</span><span class='period'>.</span><span class='id identifier rubyid_givenCount'>givenCount</span> <span class='op'>==</span> <span class='int'>0</span>
|
@@ -936,12 +987,12 @@ is a meta language (DSL) for option combinations.</p>
|
|
936
987
|
<pre class="lines">
|
937
988
|
|
938
989
|
|
939
|
-
|
940
|
-
|
941
|
-
|
990
|
+
2162
|
991
|
+
2163
|
992
|
+
2164</pre>
|
942
993
|
</td>
|
943
994
|
<td>
|
944
|
-
<pre class="code"><span class="info file"># File 'lib/como.rb', line
|
995
|
+
<pre class="code"><span class="info file"># File 'lib/como.rb', line 2162</span>
|
945
996
|
|
946
997
|
<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>
|
947
998
|
<span class='id identifier rubyid_getScore'>getScore</span><span class='lparen'>(</span> <span class='op'>*</span><span class='id identifier rubyid_args'>args</span> <span class='rparen'>)</span> <span class='op'>==</span> <span class='int'>1</span>
|
@@ -956,7 +1007,7 @@ is a meta language (DSL) for option combinations.</p>
|
|
956
1007
|
</div>
|
957
1008
|
|
958
1009
|
<div id="footer">
|
959
|
-
Generated on
|
1010
|
+
Generated on Sat Nov 22 10:05:16 2014 by
|
960
1011
|
<a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
|
961
1012
|
0.8.6.1 (ruby-1.9.3).
|
962
1013
|
</div>
|