mangrove 0.7.2 → 0.8.1

Sign up to get free protection for your applications and to get access to all the features.
@@ -192,6 +192,28 @@
192
192
 
193
193
 
194
194
 
195
+ <span class="abstract note title">abstract</span>
196
+
197
+
198
+
199
+
200
+ <span class="summary_desc"><div class='inline'></div></span>
201
+
202
+ </li>
203
+
204
+
205
+ <li class="public ">
206
+ <span class="summary_signature">
207
+
208
+ <a href="#expect_with!-instance_method" title="#expect_with! (instance method)">#<strong>expect_with!</strong>(&amp;block) &#x21d2; InnerType </a>
209
+
210
+
211
+
212
+ </span>
213
+
214
+
215
+
216
+
195
217
  <span class="abstract note title">abstract</span>
196
218
 
197
219
 
@@ -425,10 +447,10 @@
425
447
  <pre class="lines">
426
448
 
427
449
 
428
- 157</pre>
450
+ 167</pre>
429
451
  </td>
430
452
  <td>
431
- <pre class="code"><span class="info file"># File 'lib/mangrove/option.rb', line 157</span>
453
+ <pre class="code"><span class="info file"># File 'lib/mangrove/option.rb', line 167</span>
432
454
 
433
455
  <span class='kw'>def</span> <span class='op'>==</span><span class='lparen'>(</span><span class='id identifier rubyid_other'>other</span><span class='rparen'>)</span><span class='semicolon'>;</span> <span class='kw'>end</span></pre>
434
456
  </td>
@@ -492,15 +514,82 @@
492
514
  <pre class="lines">
493
515
 
494
516
 
495
- 166</pre>
517
+ 176</pre>
496
518
  </td>
497
519
  <td>
498
- <pre class="code"><span class="info file"># File 'lib/mangrove/option.rb', line 166</span>
520
+ <pre class="code"><span class="info file"># File 'lib/mangrove/option.rb', line 176</span>
499
521
 
500
522
  <span class='kw'>def</span> <span class='id identifier rubyid_expect!'>expect!</span><span class='lparen'>(</span><span class='id identifier rubyid_message'>message</span><span class='rparen'>)</span><span class='semicolon'>;</span> <span class='kw'>end</span></pre>
501
523
  </td>
502
524
  </tr>
503
525
  </table>
526
+ </div>
527
+
528
+ <div class="method_details ">
529
+ <h3 class="signature " id="expect_with!-instance_method">
530
+
531
+ #<strong>expect_with!</strong>(&amp;block) &#x21d2; <tt><span class='object_link'><a href="#InnerType-constant" title="Mangrove::Option::InnerType (constant)">InnerType</a></span></tt>
532
+
533
+
534
+
535
+
536
+
537
+ </h3><div class="docstring">
538
+ <div class="discussion">
539
+ <div class="note abstract">
540
+ <strong>This method is abstract.</strong>
541
+ <div class='inline'></div>
542
+ </div>
543
+
544
+
545
+ </div>
546
+ </div>
547
+ <div class="tags">
548
+ <p class="tag_title">Parameters:</p>
549
+ <ul class="param">
550
+
551
+ <li>
552
+
553
+ <span class='name'>block</span>
554
+
555
+
556
+ <span class='type'>(<tt>T.proc.returns(T.untyped)</tt>)</span>
557
+
558
+
559
+
560
+ </li>
561
+
562
+ </ul>
563
+
564
+ <p class="tag_title">Returns:</p>
565
+ <ul class="return">
566
+
567
+ <li>
568
+
569
+
570
+ <span class='type'>(<tt><span class='object_link'><a href="#InnerType-constant" title="Mangrove::Option::InnerType (constant)">InnerType</a></span></tt>)</span>
571
+
572
+
573
+
574
+ </li>
575
+
576
+ </ul>
577
+
578
+ </div><table class="source_code">
579
+ <tr>
580
+ <td>
581
+ <pre class="lines">
582
+
583
+
584
+ 179</pre>
585
+ </td>
586
+ <td>
587
+ <pre class="code"><span class="info file"># File 'lib/mangrove/option.rb', line 179</span>
588
+
589
+ <span class='kw'>def</span> <span class='id identifier rubyid_expect_with!'>expect_with!</span><span class='lparen'>(</span><span class='op'>&amp;</span><span class='id identifier rubyid_block'>block</span><span class='rparen'>)</span><span class='semicolon'>;</span> <span class='kw'>end</span></pre>
590
+ </td>
591
+ </tr>
592
+ </table>
504
593
  </div>
505
594
 
506
595
  <div class="method_details ">
@@ -559,10 +648,10 @@
559
648
  <pre class="lines">
560
649
 
561
650
 
562
- 178</pre>
651
+ 191</pre>
563
652
  </td>
564
653
  <td>
565
- <pre class="code"><span class="info file"># File 'lib/mangrove/option.rb', line 178</span>
654
+ <pre class="code"><span class="info file"># File 'lib/mangrove/option.rb', line 191</span>
566
655
 
567
656
  <span class='kw'>def</span> <span class='id identifier rubyid_map_none'>map_none</span><span class='lparen'>(</span><span class='op'>&amp;</span><span class='id identifier rubyid_block'>block</span><span class='rparen'>)</span><span class='semicolon'>;</span> <span class='kw'>end</span></pre>
568
657
  </td>
@@ -626,10 +715,10 @@
626
715
  <pre class="lines">
627
716
 
628
717
 
629
- 175</pre>
718
+ 188</pre>
630
719
  </td>
631
720
  <td>
632
- <pre class="code"><span class="info file"># File 'lib/mangrove/option.rb', line 175</span>
721
+ <pre class="code"><span class="info file"># File 'lib/mangrove/option.rb', line 188</span>
633
722
 
634
723
  <span class='kw'>def</span> <span class='id identifier rubyid_map_some'>map_some</span><span class='lparen'>(</span><span class='op'>&amp;</span><span class='id identifier rubyid_block'>block</span><span class='rparen'>)</span><span class='semicolon'>;</span> <span class='kw'>end</span></pre>
635
724
  </td>
@@ -678,10 +767,10 @@
678
767
  <pre class="lines">
679
768
 
680
769
 
681
- 172</pre>
770
+ 185</pre>
682
771
  </td>
683
772
  <td>
684
- <pre class="code"><span class="info file"># File 'lib/mangrove/option.rb', line 172</span>
773
+ <pre class="code"><span class="info file"># File 'lib/mangrove/option.rb', line 185</span>
685
774
 
686
775
  <span class='kw'>def</span> <span class='id identifier rubyid_none?'>none?</span><span class='semicolon'>;</span> <span class='kw'>end</span></pre>
687
776
  </td>
@@ -730,10 +819,10 @@
730
819
  <pre class="lines">
731
820
 
732
821
 
733
- 169</pre>
822
+ 182</pre>
734
823
  </td>
735
824
  <td>
736
- <pre class="code"><span class="info file"># File 'lib/mangrove/option.rb', line 169</span>
825
+ <pre class="code"><span class="info file"># File 'lib/mangrove/option.rb', line 182</span>
737
826
 
738
827
  <span class='kw'>def</span> <span class='id identifier rubyid_some?'>some?</span><span class='semicolon'>;</span> <span class='kw'>end</span></pre>
739
828
  </td>
@@ -797,10 +886,10 @@
797
886
  <pre class="lines">
798
887
 
799
888
 
800
- 181</pre>
889
+ 194</pre>
801
890
  </td>
802
891
  <td>
803
- <pre class="code"><span class="info file"># File 'lib/mangrove/option.rb', line 181</span>
892
+ <pre class="code"><span class="info file"># File 'lib/mangrove/option.rb', line 194</span>
804
893
 
805
894
  <span class='kw'>def</span> <span class='id identifier rubyid_transpose'>transpose</span><span class='lparen'>(</span><span class='id identifier rubyid_err'>err</span><span class='rparen'>)</span><span class='semicolon'>;</span> <span class='kw'>end</span></pre>
806
895
  </td>
@@ -849,10 +938,10 @@
849
938
  <pre class="lines">
850
939
 
851
940
 
852
- 163</pre>
941
+ 173</pre>
853
942
  </td>
854
943
  <td>
855
- <pre class="code"><span class="info file"># File 'lib/mangrove/option.rb', line 163</span>
944
+ <pre class="code"><span class="info file"># File 'lib/mangrove/option.rb', line 173</span>
856
945
 
857
946
  <span class='kw'>def</span> <span class='id identifier rubyid_unwrap!'>unwrap!</span><span class='semicolon'>;</span> <span class='kw'>end</span></pre>
858
947
  </td>
@@ -916,10 +1005,10 @@
916
1005
  <pre class="lines">
917
1006
 
918
1007
 
919
- 160</pre>
1008
+ 170</pre>
920
1009
  </td>
921
1010
  <td>
922
- <pre class="code"><span class="info file"># File 'lib/mangrove/option.rb', line 160</span>
1011
+ <pre class="code"><span class="info file"># File 'lib/mangrove/option.rb', line 170</span>
923
1012
 
924
1013
  <span class='kw'>def</span> <span class='id identifier rubyid_unwrap_or'>unwrap_or</span><span class='lparen'>(</span><span class='id identifier rubyid_default'>default</span><span class='rparen'>)</span><span class='semicolon'>;</span> <span class='kw'>end</span></pre>
925
1014
  </td>
@@ -932,7 +1021,7 @@
932
1021
  </div>
933
1022
 
934
1023
  <div id="footer">
935
- Generated on Fri Sep 15 12:06:26 2023 by
1024
+ Generated on Wed Oct 18 11:52:43 2023 by
936
1025
  <a href="https://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
937
1026
  0.9.34 (ruby-3.2.2).
938
1027
  </div>
@@ -424,7 +424,7 @@
424
424
  </div>
425
425
 
426
426
  <div id="footer">
427
- Generated on Fri Sep 15 12:06:26 2023 by
427
+ Generated on Wed Oct 18 11:52:43 2023 by
428
428
  <a href="https://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
429
429
  0.9.34 (ruby-3.2.2).
430
430
  </div>
@@ -228,6 +228,28 @@
228
228
 
229
229
 
230
230
 
231
+ <span class="summary_desc"><div class='inline'></div></span>
232
+
233
+ </li>
234
+
235
+
236
+ <li class="public ">
237
+ <span class="summary_signature">
238
+
239
+ <a href="#expect_with!-instance_method" title="#expect_with! (instance method)">#<strong>expect_with!</strong>(&amp;block) &#x21d2; OkType </a>
240
+
241
+
242
+
243
+ </span>
244
+
245
+
246
+
247
+
248
+
249
+
250
+
251
+
252
+
231
253
  <span class="summary_desc"><div class='inline'></div></span>
232
254
 
233
255
  </li>
@@ -430,12 +452,12 @@
430
452
  <pre class="lines">
431
453
 
432
454
 
433
- 138
434
- 139
435
- 140</pre>
455
+ 146
456
+ 147
457
+ 148</pre>
436
458
  </td>
437
459
  <td>
438
- <pre class="code"><span class="info file"># File 'lib/mangrove/result.rb', line 138</span>
460
+ <pre class="code"><span class="info file"># File 'lib/mangrove/result.rb', line 146</span>
439
461
 
440
462
  <span class='kw'>def</span> <span class='id identifier rubyid_initialize'>initialize</span><span class='lparen'>(</span><span class='id identifier rubyid_inner'>inner</span><span class='rparen'>)</span>
441
463
  <span class='ivar'>@inner</span> <span class='op'>=</span> <span class='id identifier rubyid_inner'>inner</span>
@@ -504,19 +526,19 @@
504
526
  <pre class="lines">
505
527
 
506
528
 
507
- 143
508
- 144
509
- 145
510
- 146
511
- 147
512
- 148
513
- 149
514
- 150
515
529
  151
516
- 152</pre>
530
+ 152
531
+ 153
532
+ 154
533
+ 155
534
+ 156
535
+ 157
536
+ 158
537
+ 159
538
+ 160</pre>
517
539
  </td>
518
540
  <td>
519
- <pre class="code"><span class="info file"># File 'lib/mangrove/result.rb', line 143</span>
541
+ <pre class="code"><span class="info file"># File 'lib/mangrove/result.rb', line 151</span>
520
542
 
521
543
  <span class='kw'>def</span> <span class='op'>==</span><span class='lparen'>(</span><span class='id identifier rubyid_other'>other</span><span class='rparen'>)</span>
522
544
  <span class='kw'>case</span> <span class='id identifier rubyid_other'>other</span>
@@ -570,10 +592,10 @@
570
592
  <pre class="lines">
571
593
 
572
594
 
573
- 173</pre>
595
+ 186</pre>
574
596
  </td>
575
597
  <td>
576
- <pre class="code"><span class="info file"># File 'lib/mangrove/result.rb', line 173</span>
598
+ <pre class="code"><span class="info file"># File 'lib/mangrove/result.rb', line 186</span>
577
599
 
578
600
  <span class='kw'>def</span> <span class='id identifier rubyid_err?'>err?</span> <span class='op'>=</span> <span class='kw'>true</span></pre>
579
601
  </td>
@@ -618,12 +640,12 @@
618
640
  <pre class="lines">
619
641
 
620
642
 
621
- 155
622
- 156
623
- 157</pre>
643
+ 163
644
+ 164
645
+ 165</pre>
624
646
  </td>
625
647
  <td>
626
- <pre class="code"><span class="info file"># File 'lib/mangrove/result.rb', line 155</span>
648
+ <pre class="code"><span class="info file"># File 'lib/mangrove/result.rb', line 163</span>
627
649
 
628
650
  <span class='kw'>def</span> <span class='id identifier rubyid_err_inner'>err_inner</span>
629
651
  <span class='ivar'>@inner</span>
@@ -698,12 +720,12 @@
698
720
  <pre class="lines">
699
721
 
700
722
 
701
- 165
702
- 166
703
- 167</pre>
723
+ 173
724
+ 174
725
+ 175</pre>
704
726
  </td>
705
727
  <td>
706
- <pre class="code"><span class="info file"># File 'lib/mangrove/result.rb', line 165</span>
728
+ <pre class="code"><span class="info file"># File 'lib/mangrove/result.rb', line 173</span>
707
729
 
708
730
  <span class='kw'>def</span> <span class='id identifier rubyid_expect!'>expect!</span><span class='lparen'>(</span><span class='id identifier rubyid_message'>message</span><span class='rparen'>)</span>
709
731
  <span class='id identifier rubyid_raise'>raise</span> <span class='const'><span class='object_link'><a href="../Result.html" title="Mangrove::Result (module)">Result</a></span></span><span class='op'>::</span><span class='const'><span class='object_link'><a href="ControlSignal.html" title="Mangrove::Result::ControlSignal (class)">ControlSignal</a></span></span><span class='comma'>,</span> <span class='id identifier rubyid_message'>message</span>
@@ -711,6 +733,86 @@
711
733
  </td>
712
734
  </tr>
713
735
  </table>
736
+ </div>
737
+
738
+ <div class="method_details ">
739
+ <h3 class="signature " id="expect_with!-instance_method">
740
+
741
+ #<strong>expect_with!</strong>(&amp;block) &#x21d2; <tt><span class='object_link'><a href="#OkType-constant" title="Mangrove::Result::Err::OkType (constant)">OkType</a></span></tt>
742
+
743
+
744
+
745
+
746
+
747
+ </h3><div class="docstring">
748
+ <div class="discussion">
749
+
750
+
751
+ </div>
752
+ </div>
753
+ <div class="tags">
754
+ <p class="tag_title">Parameters:</p>
755
+ <ul class="param">
756
+
757
+ <li>
758
+
759
+ <span class='name'>block</span>
760
+
761
+
762
+ <span class='type'>(<tt>T.proc.returns(T.untyped)</tt>)</span>
763
+
764
+
765
+
766
+ </li>
767
+
768
+ </ul>
769
+
770
+ <p class="tag_title">Returns:</p>
771
+ <ul class="return">
772
+
773
+ <li>
774
+
775
+
776
+ <span class='type'>(<tt><span class='object_link'><a href="#OkType-constant" title="Mangrove::Result::Err::OkType (constant)">OkType</a></span></tt>)</span>
777
+
778
+
779
+
780
+ </li>
781
+
782
+ </ul>
783
+ <p class="tag_title">Raises:</p>
784
+ <ul class="raise">
785
+
786
+ <li>
787
+
788
+
789
+ <span class='type'>(<tt><span class='object_link'><a href="ControlSignal.html" title="Mangrove::Result::ControlSignal (class)">Result::ControlSignal</a></span></tt>)</span>
790
+
791
+
792
+
793
+ </li>
794
+
795
+ </ul>
796
+
797
+ </div><table class="source_code">
798
+ <tr>
799
+ <td>
800
+ <pre class="lines">
801
+
802
+
803
+ 178
804
+ 179
805
+ 180</pre>
806
+ </td>
807
+ <td>
808
+ <pre class="code"><span class="info file"># File 'lib/mangrove/result.rb', line 178</span>
809
+
810
+ <span class='kw'>def</span> <span class='id identifier rubyid_expect_with!'>expect_with!</span><span class='lparen'>(</span><span class='op'>&amp;</span><span class='id identifier rubyid_block'>block</span><span class='rparen'>)</span>
811
+ <span class='id identifier rubyid_raise'>raise</span> <span class='const'><span class='object_link'><a href="../Result.html" title="Mangrove::Result (module)">Result</a></span></span><span class='op'>::</span><span class='const'><span class='object_link'><a href="ControlSignal.html" title="Mangrove::Result::ControlSignal (class)">ControlSignal</a></span></span><span class='comma'>,</span> <span class='id identifier rubyid_block'>block</span><span class='period'>.</span><span class='id identifier rubyid_call'>call</span>
812
+ <span class='kw'>end</span></pre>
813
+ </td>
814
+ </tr>
815
+ </table>
714
816
  </div>
715
817
 
716
818
  <div class="method_details ">
@@ -765,12 +867,12 @@
765
867
  <pre class="lines">
766
868
 
767
869
 
768
- 181
769
- 182
770
- 183</pre>
870
+ 194
871
+ 195
872
+ 196</pre>
771
873
  </td>
772
874
  <td>
773
- <pre class="code"><span class="info file"># File 'lib/mangrove/result.rb', line 181</span>
875
+ <pre class="code"><span class="info file"># File 'lib/mangrove/result.rb', line 194</span>
774
876
 
775
877
  <span class='kw'>def</span> <span class='id identifier rubyid_map_err'>map_err</span><span class='lparen'>(</span><span class='op'>&amp;</span><span class='id identifier rubyid_block'>block</span><span class='rparen'>)</span>
776
878
  <span class='id identifier rubyid_block'>block</span><span class='period'>.</span><span class='id identifier rubyid_call'>call</span><span class='lparen'>(</span><span class='ivar'>@inner</span><span class='rparen'>)</span>
@@ -832,12 +934,12 @@
832
934
  <pre class="lines">
833
935
 
834
936
 
835
- 176
836
- 177
837
- 178</pre>
937
+ 189
938
+ 190
939
+ 191</pre>
838
940
  </td>
839
941
  <td>
840
- <pre class="code"><span class="info file"># File 'lib/mangrove/result.rb', line 176</span>
942
+ <pre class="code"><span class="info file"># File 'lib/mangrove/result.rb', line 189</span>
841
943
 
842
944
  <span class='kw'>def</span> <span class='id identifier rubyid_map_ok'>map_ok</span><span class='lparen'>(</span><span class='op'>&amp;</span><span class='id identifier rubyid__block'>_block</span><span class='rparen'>)</span>
843
945
  <span class='kw'>self</span>
@@ -884,10 +986,10 @@
884
986
  <pre class="lines">
885
987
 
886
988
 
887
- 170</pre>
989
+ 183</pre>
888
990
  </td>
889
991
  <td>
890
- <pre class="code"><span class="info file"># File 'lib/mangrove/result.rb', line 170</span>
992
+ <pre class="code"><span class="info file"># File 'lib/mangrove/result.rb', line 183</span>
891
993
 
892
994
  <span class='kw'>def</span> <span class='id identifier rubyid_ok?'>ok?</span> <span class='op'>=</span> <span class='kw'>false</span></pre>
893
995
  </td>
@@ -932,12 +1034,12 @@
932
1034
  <pre class="lines">
933
1035
 
934
1036
 
935
- 186
936
- 187
937
- 188</pre>
1037
+ 199
1038
+ 200
1039
+ 201</pre>
938
1040
  </td>
939
1041
  <td>
940
- <pre class="code"><span class="info file"># File 'lib/mangrove/result.rb', line 186</span>
1042
+ <pre class="code"><span class="info file"># File 'lib/mangrove/result.rb', line 199</span>
941
1043
 
942
1044
  <span class='kw'>def</span> <span class='id identifier rubyid_to_s'>to_s</span>
943
1045
  <span class='tstring'><span class='tstring_beg'>&quot;</span><span class='embexpr_beg'>#{</span><span class='kw'>super</span><span class='embexpr_end'>}</span><span class='tstring_content'>: inner=`</span><span class='embexpr_beg'>#{</span><span class='ivar'>@inner</span><span class='embexpr_end'>}</span><span class='tstring_content'>`</span><span class='tstring_end'>&quot;</span></span>
@@ -997,12 +1099,12 @@
997
1099
  <pre class="lines">
998
1100
 
999
1101
 
1000
- 160
1001
- 161
1002
- 162</pre>
1102
+ 168
1103
+ 169
1104
+ 170</pre>
1003
1105
  </td>
1004
1106
  <td>
1005
- <pre class="code"><span class="info file"># File 'lib/mangrove/result.rb', line 160</span>
1107
+ <pre class="code"><span class="info file"># File 'lib/mangrove/result.rb', line 168</span>
1006
1108
 
1007
1109
  <span class='kw'>def</span> <span class='id identifier rubyid_unwrap!'>unwrap!</span>
1008
1110
  <span class='id identifier rubyid_raise'>raise</span> <span class='const'><span class='object_link'><a href="../Result.html" title="Mangrove::Result (module)">Result</a></span></span><span class='op'>::</span><span class='const'><span class='object_link'><a href="ControlSignal.html" title="Mangrove::Result::ControlSignal (class)">ControlSignal</a></span></span><span class='comma'>,</span> <span class='ivar'>@inner</span>
@@ -1017,7 +1119,7 @@
1017
1119
  </div>
1018
1120
 
1019
1121
  <div id="footer">
1020
- Generated on Fri Sep 15 12:06:26 2023 by
1122
+ Generated on Wed Oct 18 11:52:43 2023 by
1021
1123
  <a href="https://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
1022
1124
  0.9.34 (ruby-3.2.2).
1023
1125
  </div>