mangrove 0.5.0 → 0.6.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/docs/Mangrove/ControlFlow/ControlSignal.html +1 -1
- data/docs/Mangrove/ControlFlow/Handler/ClassMethods.html +1 -1
- data/docs/Mangrove/ControlFlow/Handler.html +1 -1
- data/docs/Mangrove/ControlFlow/Rewriter.html +1 -1
- data/docs/Mangrove/ControlFlow.html +1 -1
- data/docs/Mangrove/Option/ControlSignal.html +1 -1
- data/docs/Mangrove/Option/None.html +121 -32
- data/docs/Mangrove/Option/Some.html +90 -1
- data/docs/Mangrove/Option.html +106 -17
- data/docs/Mangrove/Result/ControlSignal.html +1 -1
- data/docs/Mangrove/Result/Err.html +1 -1
- data/docs/Mangrove/Result/Ok.html +1 -1
- data/docs/Mangrove/Result.html +1 -1
- data/docs/Mangrove.html +2 -2
- data/docs/_index.html +1 -1
- data/docs/file.README.html +1 -1
- data/docs/index.html +1 -1
- data/docs/method_list.html +102 -78
- data/docs/top-level-namespace.html +1 -1
- data/lib/mangrove/option.rb +13 -0
- data/lib/mangrove/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 2da08457cd28358b038f3eed31a075eb3d49f9066802039e7d7a7859fc654fcc
|
4
|
+
data.tar.gz: 0ce95b6171a9cc3e00ab633f5057a1e95f0cee5f960dcb529968120ffac900c6
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: ac5e297743c8ba30f8807f6c1bcdcd692e9bd40dee8321f10cade1ec5756845494dd1c31dfff74c59aa7e1297ff9b633c51d4dce14d0b9bfac2a99f74b8bc28b
|
7
|
+
data.tar.gz: 38613ef701d1f56e6d06855b886d4532e515c196e96d4287c9cb33ff9c8c412344e78129f3e54fb093447b4f574f7b0d1281a72ac783fe16616cace6f1de47ac
|
@@ -213,7 +213,7 @@
|
|
213
213
|
</div>
|
214
214
|
|
215
215
|
<div id="footer">
|
216
|
-
Generated on
|
216
|
+
Generated on Fri Sep 1 17:32:57 2023 by
|
217
217
|
<a href="https://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
|
218
218
|
0.9.34 (ruby-3.2.2).
|
219
219
|
</div>
|
@@ -553,7 +553,7 @@
|
|
553
553
|
</div>
|
554
554
|
|
555
555
|
<div id="footer">
|
556
|
-
Generated on
|
556
|
+
Generated on Fri Sep 1 17:32:57 2023 by
|
557
557
|
<a href="https://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
|
558
558
|
0.9.34 (ruby-3.2.2).
|
559
559
|
</div>
|
@@ -129,7 +129,7 @@
|
|
129
129
|
</div>
|
130
130
|
|
131
131
|
<div id="footer">
|
132
|
-
Generated on
|
132
|
+
Generated on Fri Sep 1 17:32:57 2023 by
|
133
133
|
<a href="https://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
|
134
134
|
0.9.34 (ruby-3.2.2).
|
135
135
|
</div>
|
@@ -321,7 +321,7 @@
|
|
321
321
|
</div>
|
322
322
|
|
323
323
|
<div id="footer">
|
324
|
-
Generated on
|
324
|
+
Generated on Fri Sep 1 17:32:57 2023 by
|
325
325
|
<a href="https://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
|
326
326
|
0.9.34 (ruby-3.2.2).
|
327
327
|
</div>
|
@@ -244,7 +244,7 @@
|
|
244
244
|
</div>
|
245
245
|
|
246
246
|
<div id="footer">
|
247
|
-
Generated on
|
247
|
+
Generated on Fri Sep 1 17:32:57 2023 by
|
248
248
|
<a href="https://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
|
249
249
|
0.9.34 (ruby-3.2.2).
|
250
250
|
</div>
|
@@ -424,7 +424,7 @@
|
|
424
424
|
</div>
|
425
425
|
|
426
426
|
<div id="footer">
|
427
|
-
Generated on
|
427
|
+
Generated on Fri Sep 1 17:32:58 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>
|
@@ -278,6 +278,28 @@
|
|
278
278
|
|
279
279
|
|
280
280
|
|
281
|
+
<span class="summary_desc"><div class='inline'></div></span>
|
282
|
+
|
283
|
+
</li>
|
284
|
+
|
285
|
+
|
286
|
+
<li class="public ">
|
287
|
+
<span class="summary_signature">
|
288
|
+
|
289
|
+
<a href="#transpose-instance_method" title="#transpose (instance method)">#<strong>transpose</strong>(err) ⇒ Mangrove::Result[InnerType, T.type_parameter(:ErrType)] </a>
|
290
|
+
|
291
|
+
|
292
|
+
|
293
|
+
</span>
|
294
|
+
|
295
|
+
|
296
|
+
|
297
|
+
|
298
|
+
|
299
|
+
|
300
|
+
|
301
|
+
|
302
|
+
|
281
303
|
<span class="summary_desc"><div class='inline'></div></span>
|
282
304
|
|
283
305
|
</li>
|
@@ -401,20 +423,20 @@
|
|
401
423
|
<pre class="lines">
|
402
424
|
|
403
425
|
|
404
|
-
102
|
405
|
-
103
|
406
|
-
104
|
407
|
-
105
|
408
|
-
106
|
409
426
|
107
|
410
427
|
108
|
411
428
|
109
|
412
429
|
110
|
413
430
|
111
|
414
|
-
112
|
431
|
+
112
|
432
|
+
113
|
433
|
+
114
|
434
|
+
115
|
435
|
+
116
|
436
|
+
117</pre>
|
415
437
|
</td>
|
416
438
|
<td>
|
417
|
-
<pre class="code"><span class="info file"># File 'lib/mangrove/option.rb', line
|
439
|
+
<pre class="code"><span class="info file"># File 'lib/mangrove/option.rb', line 107</span>
|
418
440
|
|
419
441
|
<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>
|
420
442
|
<span class='kw'>case</span> <span class='id identifier rubyid_other'>other</span>
|
@@ -497,12 +519,12 @@
|
|
497
519
|
<pre class="lines">
|
498
520
|
|
499
521
|
|
500
|
-
|
501
|
-
|
502
|
-
|
522
|
+
130
|
523
|
+
131
|
524
|
+
132</pre>
|
503
525
|
</td>
|
504
526
|
<td>
|
505
|
-
<pre class="code"><span class="info file"># File 'lib/mangrove/option.rb', line
|
527
|
+
<pre class="code"><span class="info file"># File 'lib/mangrove/option.rb', line 130</span>
|
506
528
|
|
507
529
|
<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>
|
508
530
|
<span class='id identifier rubyid_raise'>raise</span> <span class='const'><span class='object_link'><a href="../Option.html" title="Mangrove::Option (module)">Option</a></span></span><span class='op'>::</span><span class='const'><span class='object_link'><a href="ControlSignal.html" title="Mangrove::Option::ControlSignal (class)">ControlSignal</a></span></span><span class='comma'>,</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="../Result/Err.html" title="Mangrove::Result::Err (class)">Err</a></span></span><span class='period'>.</span><span class='id identifier rubyid_new'><span class='object_link'><a href="../Result/Err.html#initialize-instance_method" title="Mangrove::Result::Err#initialize (method)">new</a></span></span><span class='lparen'>(</span><span class='id identifier rubyid_message'>message</span><span class='rparen'>)</span>
|
@@ -564,12 +586,12 @@
|
|
564
586
|
<pre class="lines">
|
565
587
|
|
566
588
|
|
567
|
-
|
568
|
-
|
569
|
-
|
589
|
+
146
|
590
|
+
147
|
591
|
+
148</pre>
|
570
592
|
</td>
|
571
593
|
<td>
|
572
|
-
<pre class="code"><span class="info file"># File 'lib/mangrove/option.rb', line
|
594
|
+
<pre class="code"><span class="info file"># File 'lib/mangrove/option.rb', line 146</span>
|
573
595
|
|
574
596
|
<span class='kw'>def</span> <span class='id identifier rubyid_map_none'>map_none</span><span class='lparen'>(</span><span class='op'>&</span><span class='id identifier rubyid_block'>block</span><span class='rparen'>)</span>
|
575
597
|
<span class='id identifier rubyid_block'>block</span><span class='period'>.</span><span class='id identifier rubyid_call'>call</span>
|
@@ -631,12 +653,12 @@
|
|
631
653
|
<pre class="lines">
|
632
654
|
|
633
655
|
|
634
|
-
|
635
|
-
|
636
|
-
|
656
|
+
141
|
657
|
+
142
|
658
|
+
143</pre>
|
637
659
|
</td>
|
638
660
|
<td>
|
639
|
-
<pre class="code"><span class="info file"># File 'lib/mangrove/option.rb', line
|
661
|
+
<pre class="code"><span class="info file"># File 'lib/mangrove/option.rb', line 141</span>
|
640
662
|
|
641
663
|
<span class='kw'>def</span> <span class='id identifier rubyid_map_some'>map_some</span><span class='lparen'>(</span><span class='op'>&</span><span class='id identifier rubyid__block'>_block</span><span class='rparen'>)</span>
|
642
664
|
<span class='kw'>self</span>
|
@@ -683,10 +705,10 @@
|
|
683
705
|
<pre class="lines">
|
684
706
|
|
685
707
|
|
686
|
-
|
708
|
+
138</pre>
|
687
709
|
</td>
|
688
710
|
<td>
|
689
|
-
<pre class="code"><span class="info file"># File 'lib/mangrove/option.rb', line
|
711
|
+
<pre class="code"><span class="info file"># File 'lib/mangrove/option.rb', line 138</span>
|
690
712
|
|
691
713
|
<span class='kw'>def</span> <span class='id identifier rubyid_none?'>none?</span> <span class='op'>=</span> <span class='kw'>true</span></pre>
|
692
714
|
</td>
|
@@ -731,15 +753,82 @@
|
|
731
753
|
<pre class="lines">
|
732
754
|
|
733
755
|
|
734
|
-
|
756
|
+
135</pre>
|
735
757
|
</td>
|
736
758
|
<td>
|
737
|
-
<pre class="code"><span class="info file"># File 'lib/mangrove/option.rb', line
|
759
|
+
<pre class="code"><span class="info file"># File 'lib/mangrove/option.rb', line 135</span>
|
738
760
|
|
739
761
|
<span class='kw'>def</span> <span class='id identifier rubyid_some?'>some?</span> <span class='op'>=</span> <span class='kw'>false</span></pre>
|
740
762
|
</td>
|
741
763
|
</tr>
|
742
764
|
</table>
|
765
|
+
</div>
|
766
|
+
|
767
|
+
<div class="method_details ">
|
768
|
+
<h3 class="signature " id="transpose-instance_method">
|
769
|
+
|
770
|
+
#<strong>transpose</strong>(err) ⇒ <tt><span class='object_link'><a href="../Result.html" title="Mangrove::Result (module)">Mangrove::Result</a></span>[<span class='object_link'><a href="#InnerType-constant" title="Mangrove::Option::None::InnerType (constant)">InnerType</a></span>, T.type_parameter(:ErrType)]</tt>
|
771
|
+
|
772
|
+
|
773
|
+
|
774
|
+
|
775
|
+
|
776
|
+
</h3><div class="docstring">
|
777
|
+
<div class="discussion">
|
778
|
+
|
779
|
+
|
780
|
+
</div>
|
781
|
+
</div>
|
782
|
+
<div class="tags">
|
783
|
+
<p class="tag_title">Parameters:</p>
|
784
|
+
<ul class="param">
|
785
|
+
|
786
|
+
<li>
|
787
|
+
|
788
|
+
<span class='name'>err</span>
|
789
|
+
|
790
|
+
|
791
|
+
<span class='type'>(<tt>T.type_parameter(:ErrType)</tt>)</span>
|
792
|
+
|
793
|
+
|
794
|
+
|
795
|
+
</li>
|
796
|
+
|
797
|
+
</ul>
|
798
|
+
|
799
|
+
<p class="tag_title">Returns:</p>
|
800
|
+
<ul class="return">
|
801
|
+
|
802
|
+
<li>
|
803
|
+
|
804
|
+
|
805
|
+
<span class='type'>(<tt><span class='object_link'><a href="../Result.html" title="Mangrove::Result (module)">Mangrove::Result</a></span>[<span class='object_link'><a href="#InnerType-constant" title="Mangrove::Option::None::InnerType (constant)">InnerType</a></span>, T.type_parameter(:ErrType)]</tt>)</span>
|
806
|
+
|
807
|
+
|
808
|
+
|
809
|
+
</li>
|
810
|
+
|
811
|
+
</ul>
|
812
|
+
|
813
|
+
</div><table class="source_code">
|
814
|
+
<tr>
|
815
|
+
<td>
|
816
|
+
<pre class="lines">
|
817
|
+
|
818
|
+
|
819
|
+
151
|
820
|
+
152
|
821
|
+
153</pre>
|
822
|
+
</td>
|
823
|
+
<td>
|
824
|
+
<pre class="code"><span class="info file"># File 'lib/mangrove/option.rb', line 151</span>
|
825
|
+
|
826
|
+
<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>
|
827
|
+
<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="../Result/Err.html" title="Mangrove::Result::Err (class)">Err</a></span></span><span class='period'>.</span><span class='id identifier rubyid_new'><span class='object_link'><a href="../Result/Err.html#initialize-instance_method" title="Mangrove::Result::Err#initialize (method)">new</a></span></span><span class='lparen'>(</span><span class='id identifier rubyid_err'>err</span><span class='rparen'>)</span>
|
828
|
+
<span class='kw'>end</span></pre>
|
829
|
+
</td>
|
830
|
+
</tr>
|
831
|
+
</table>
|
743
832
|
</div>
|
744
833
|
|
745
834
|
<div class="method_details ">
|
@@ -792,12 +881,12 @@
|
|
792
881
|
<pre class="lines">
|
793
882
|
|
794
883
|
|
795
|
-
|
796
|
-
|
797
|
-
|
884
|
+
125
|
885
|
+
126
|
886
|
+
127</pre>
|
798
887
|
</td>
|
799
888
|
<td>
|
800
|
-
<pre class="code"><span class="info file"># File 'lib/mangrove/option.rb', line
|
889
|
+
<pre class="code"><span class="info file"># File 'lib/mangrove/option.rb', line 125</span>
|
801
890
|
|
802
891
|
<span class='kw'>def</span> <span class='id identifier rubyid_unwrap!'>unwrap!</span>
|
803
892
|
<span class='id identifier rubyid_raise'>raise</span> <span class='const'><span class='object_link'><a href="../Option.html" title="Mangrove::Option (module)">Option</a></span></span><span class='op'>::</span><span class='const'><span class='object_link'><a href="ControlSignal.html" title="Mangrove::Option::ControlSignal (class)">ControlSignal</a></span></span><span class='comma'>,</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="../Result/Err.html" title="Mangrove::Result::Err (class)">Err</a></span></span><span class='period'>.</span><span class='id identifier rubyid_new'><span class='object_link'><a href="../Result/Err.html#initialize-instance_method" title="Mangrove::Result::Err#initialize (method)">new</a></span></span><span class='lparen'>(</span><span class='tstring'><span class='tstring_beg'>"</span><span class='tstring_content'>called `Option#unwrap!` on an `None` value: </span><span class='embexpr_beg'>#{</span><span class='kw'>self</span><span class='embexpr_end'>}</span><span class='tstring_end'>"</span></span><span class='rparen'>)</span>
|
@@ -859,12 +948,12 @@
|
|
859
948
|
<pre class="lines">
|
860
949
|
|
861
950
|
|
862
|
-
|
863
|
-
|
864
|
-
|
951
|
+
120
|
952
|
+
121
|
953
|
+
122</pre>
|
865
954
|
</td>
|
866
955
|
<td>
|
867
|
-
<pre class="code"><span class="info file"># File 'lib/mangrove/option.rb', line
|
956
|
+
<pre class="code"><span class="info file"># File 'lib/mangrove/option.rb', line 120</span>
|
868
957
|
|
869
958
|
<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>
|
870
959
|
<span class='id identifier rubyid_default'>default</span>
|
@@ -879,7 +968,7 @@
|
|
879
968
|
</div>
|
880
969
|
|
881
970
|
<div id="footer">
|
882
|
-
Generated on
|
971
|
+
Generated on Fri Sep 1 17:32:57 2023 by
|
883
972
|
<a href="https://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
|
884
973
|
0.9.34 (ruby-3.2.2).
|
885
974
|
</div>
|
@@ -302,6 +302,28 @@
|
|
302
302
|
|
303
303
|
|
304
304
|
|
305
|
+
<span class="summary_desc"><div class='inline'></div></span>
|
306
|
+
|
307
|
+
</li>
|
308
|
+
|
309
|
+
|
310
|
+
<li class="public ">
|
311
|
+
<span class="summary_signature">
|
312
|
+
|
313
|
+
<a href="#transpose-instance_method" title="#transpose (instance method)">#<strong>transpose</strong>(_err) ⇒ Mangrove::Result[InnerType, T.type_parameter(:ErrType)] </a>
|
314
|
+
|
315
|
+
|
316
|
+
|
317
|
+
</span>
|
318
|
+
|
319
|
+
|
320
|
+
|
321
|
+
|
322
|
+
|
323
|
+
|
324
|
+
|
325
|
+
|
326
|
+
|
305
327
|
<span class="summary_desc"><div class='inline'></div></span>
|
306
328
|
|
307
329
|
</li>
|
@@ -831,6 +853,73 @@
|
|
831
853
|
</td>
|
832
854
|
</tr>
|
833
855
|
</table>
|
856
|
+
</div>
|
857
|
+
|
858
|
+
<div class="method_details ">
|
859
|
+
<h3 class="signature " id="transpose-instance_method">
|
860
|
+
|
861
|
+
#<strong>transpose</strong>(_err) ⇒ <tt><span class='object_link'><a href="../Result.html" title="Mangrove::Result (module)">Mangrove::Result</a></span>[<span class='object_link'><a href="#InnerType-constant" title="Mangrove::Option::Some::InnerType (constant)">InnerType</a></span>, T.type_parameter(:ErrType)]</tt>
|
862
|
+
|
863
|
+
|
864
|
+
|
865
|
+
|
866
|
+
|
867
|
+
</h3><div class="docstring">
|
868
|
+
<div class="discussion">
|
869
|
+
|
870
|
+
|
871
|
+
</div>
|
872
|
+
</div>
|
873
|
+
<div class="tags">
|
874
|
+
<p class="tag_title">Parameters:</p>
|
875
|
+
<ul class="param">
|
876
|
+
|
877
|
+
<li>
|
878
|
+
|
879
|
+
<span class='name'>_err</span>
|
880
|
+
|
881
|
+
|
882
|
+
<span class='type'>(<tt>T.type_parameter(:ErrType)</tt>)</span>
|
883
|
+
|
884
|
+
|
885
|
+
|
886
|
+
</li>
|
887
|
+
|
888
|
+
</ul>
|
889
|
+
|
890
|
+
<p class="tag_title">Returns:</p>
|
891
|
+
<ul class="return">
|
892
|
+
|
893
|
+
<li>
|
894
|
+
|
895
|
+
|
896
|
+
<span class='type'>(<tt><span class='object_link'><a href="../Result.html" title="Mangrove::Result (module)">Mangrove::Result</a></span>[<span class='object_link'><a href="#InnerType-constant" title="Mangrove::Option::Some::InnerType (constant)">InnerType</a></span>, T.type_parameter(:ErrType)]</tt>)</span>
|
897
|
+
|
898
|
+
|
899
|
+
|
900
|
+
</li>
|
901
|
+
|
902
|
+
</ul>
|
903
|
+
|
904
|
+
</div><table class="source_code">
|
905
|
+
<tr>
|
906
|
+
<td>
|
907
|
+
<pre class="lines">
|
908
|
+
|
909
|
+
|
910
|
+
86
|
911
|
+
87
|
912
|
+
88</pre>
|
913
|
+
</td>
|
914
|
+
<td>
|
915
|
+
<pre class="code"><span class="info file"># File 'lib/mangrove/option.rb', line 86</span>
|
916
|
+
|
917
|
+
<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>
|
918
|
+
<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="../Result/Ok.html" title="Mangrove::Result::Ok (class)">Ok</a></span></span><span class='period'>.</span><span class='id identifier rubyid_new'><span class='object_link'><a href="../Result/Ok.html#initialize-instance_method" title="Mangrove::Result::Ok#initialize (method)">new</a></span></span><span class='lparen'>(</span><span class='ivar'>@inner</span><span class='rparen'>)</span>
|
919
|
+
<span class='kw'>end</span></pre>
|
920
|
+
</td>
|
921
|
+
</tr>
|
922
|
+
</table>
|
834
923
|
</div>
|
835
924
|
|
836
925
|
<div class="method_details ">
|
@@ -1009,7 +1098,7 @@
|
|
1009
1098
|
</div>
|
1010
1099
|
|
1011
1100
|
<div id="footer">
|
1012
|
-
Generated on
|
1101
|
+
Generated on Fri Sep 1 17:32:57 2023 by
|
1013
1102
|
<a href="https://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
|
1014
1103
|
0.9.34 (ruby-3.2.2).
|
1015
1104
|
</div>
|
data/docs/Mangrove/Option.html
CHANGED
@@ -280,6 +280,28 @@
|
|
280
280
|
|
281
281
|
|
282
282
|
|
283
|
+
<span class="abstract note title">abstract</span>
|
284
|
+
|
285
|
+
|
286
|
+
|
287
|
+
|
288
|
+
<span class="summary_desc"><div class='inline'></div></span>
|
289
|
+
|
290
|
+
</li>
|
291
|
+
|
292
|
+
|
293
|
+
<li class="public ">
|
294
|
+
<span class="summary_signature">
|
295
|
+
|
296
|
+
<a href="#transpose-instance_method" title="#transpose (instance method)">#<strong>transpose</strong>(err) ⇒ Mangrove::Result[InnerType, T.type_parameter(:ErrType)] </a>
|
297
|
+
|
298
|
+
|
299
|
+
|
300
|
+
</span>
|
301
|
+
|
302
|
+
|
303
|
+
|
304
|
+
|
283
305
|
<span class="abstract note title">abstract</span>
|
284
306
|
|
285
307
|
|
@@ -403,10 +425,10 @@
|
|
403
425
|
<pre class="lines">
|
404
426
|
|
405
427
|
|
406
|
-
|
428
|
+
157</pre>
|
407
429
|
</td>
|
408
430
|
<td>
|
409
|
-
<pre class="code"><span class="info file"># File 'lib/mangrove/option.rb', line
|
431
|
+
<pre class="code"><span class="info file"># File 'lib/mangrove/option.rb', line 157</span>
|
410
432
|
|
411
433
|
<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>
|
412
434
|
</td>
|
@@ -470,10 +492,10 @@
|
|
470
492
|
<pre class="lines">
|
471
493
|
|
472
494
|
|
473
|
-
|
495
|
+
166</pre>
|
474
496
|
</td>
|
475
497
|
<td>
|
476
|
-
<pre class="code"><span class="info file"># File 'lib/mangrove/option.rb', line
|
498
|
+
<pre class="code"><span class="info file"># File 'lib/mangrove/option.rb', line 166</span>
|
477
499
|
|
478
500
|
<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>
|
479
501
|
</td>
|
@@ -537,10 +559,10 @@
|
|
537
559
|
<pre class="lines">
|
538
560
|
|
539
561
|
|
540
|
-
|
562
|
+
178</pre>
|
541
563
|
</td>
|
542
564
|
<td>
|
543
|
-
<pre class="code"><span class="info file"># File 'lib/mangrove/option.rb', line
|
565
|
+
<pre class="code"><span class="info file"># File 'lib/mangrove/option.rb', line 178</span>
|
544
566
|
|
545
567
|
<span class='kw'>def</span> <span class='id identifier rubyid_map_none'>map_none</span><span class='lparen'>(</span><span class='op'>&</span><span class='id identifier rubyid_block'>block</span><span class='rparen'>)</span><span class='semicolon'>;</span> <span class='kw'>end</span></pre>
|
546
568
|
</td>
|
@@ -604,10 +626,10 @@
|
|
604
626
|
<pre class="lines">
|
605
627
|
|
606
628
|
|
607
|
-
|
629
|
+
175</pre>
|
608
630
|
</td>
|
609
631
|
<td>
|
610
|
-
<pre class="code"><span class="info file"># File 'lib/mangrove/option.rb', line
|
632
|
+
<pre class="code"><span class="info file"># File 'lib/mangrove/option.rb', line 175</span>
|
611
633
|
|
612
634
|
<span class='kw'>def</span> <span class='id identifier rubyid_map_some'>map_some</span><span class='lparen'>(</span><span class='op'>&</span><span class='id identifier rubyid_block'>block</span><span class='rparen'>)</span><span class='semicolon'>;</span> <span class='kw'>end</span></pre>
|
613
635
|
</td>
|
@@ -656,10 +678,10 @@
|
|
656
678
|
<pre class="lines">
|
657
679
|
|
658
680
|
|
659
|
-
|
681
|
+
172</pre>
|
660
682
|
</td>
|
661
683
|
<td>
|
662
|
-
<pre class="code"><span class="info file"># File 'lib/mangrove/option.rb', line
|
684
|
+
<pre class="code"><span class="info file"># File 'lib/mangrove/option.rb', line 172</span>
|
663
685
|
|
664
686
|
<span class='kw'>def</span> <span class='id identifier rubyid_none?'>none?</span><span class='semicolon'>;</span> <span class='kw'>end</span></pre>
|
665
687
|
</td>
|
@@ -708,15 +730,82 @@
|
|
708
730
|
<pre class="lines">
|
709
731
|
|
710
732
|
|
711
|
-
|
733
|
+
169</pre>
|
712
734
|
</td>
|
713
735
|
<td>
|
714
|
-
<pre class="code"><span class="info file"># File 'lib/mangrove/option.rb', line
|
736
|
+
<pre class="code"><span class="info file"># File 'lib/mangrove/option.rb', line 169</span>
|
715
737
|
|
716
738
|
<span class='kw'>def</span> <span class='id identifier rubyid_some?'>some?</span><span class='semicolon'>;</span> <span class='kw'>end</span></pre>
|
717
739
|
</td>
|
718
740
|
</tr>
|
719
741
|
</table>
|
742
|
+
</div>
|
743
|
+
|
744
|
+
<div class="method_details ">
|
745
|
+
<h3 class="signature " id="transpose-instance_method">
|
746
|
+
|
747
|
+
#<strong>transpose</strong>(err) ⇒ <tt><span class='object_link'><a href="Result.html" title="Mangrove::Result (module)">Mangrove::Result</a></span>[<span class='object_link'><a href="#InnerType-constant" title="Mangrove::Option::InnerType (constant)">InnerType</a></span>, T.type_parameter(:ErrType)]</tt>
|
748
|
+
|
749
|
+
|
750
|
+
|
751
|
+
|
752
|
+
|
753
|
+
</h3><div class="docstring">
|
754
|
+
<div class="discussion">
|
755
|
+
<div class="note abstract">
|
756
|
+
<strong>This method is abstract.</strong>
|
757
|
+
<div class='inline'></div>
|
758
|
+
</div>
|
759
|
+
|
760
|
+
|
761
|
+
</div>
|
762
|
+
</div>
|
763
|
+
<div class="tags">
|
764
|
+
<p class="tag_title">Parameters:</p>
|
765
|
+
<ul class="param">
|
766
|
+
|
767
|
+
<li>
|
768
|
+
|
769
|
+
<span class='name'>err</span>
|
770
|
+
|
771
|
+
|
772
|
+
<span class='type'>(<tt>T.type_parameter(:ErrType)</tt>)</span>
|
773
|
+
|
774
|
+
|
775
|
+
|
776
|
+
</li>
|
777
|
+
|
778
|
+
</ul>
|
779
|
+
|
780
|
+
<p class="tag_title">Returns:</p>
|
781
|
+
<ul class="return">
|
782
|
+
|
783
|
+
<li>
|
784
|
+
|
785
|
+
|
786
|
+
<span class='type'>(<tt><span class='object_link'><a href="Result.html" title="Mangrove::Result (module)">Mangrove::Result</a></span>[<span class='object_link'><a href="#InnerType-constant" title="Mangrove::Option::InnerType (constant)">InnerType</a></span>, T.type_parameter(:ErrType)]</tt>)</span>
|
787
|
+
|
788
|
+
|
789
|
+
|
790
|
+
</li>
|
791
|
+
|
792
|
+
</ul>
|
793
|
+
|
794
|
+
</div><table class="source_code">
|
795
|
+
<tr>
|
796
|
+
<td>
|
797
|
+
<pre class="lines">
|
798
|
+
|
799
|
+
|
800
|
+
181</pre>
|
801
|
+
</td>
|
802
|
+
<td>
|
803
|
+
<pre class="code"><span class="info file"># File 'lib/mangrove/option.rb', line 181</span>
|
804
|
+
|
805
|
+
<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
|
+
</td>
|
807
|
+
</tr>
|
808
|
+
</table>
|
720
809
|
</div>
|
721
810
|
|
722
811
|
<div class="method_details ">
|
@@ -760,10 +849,10 @@
|
|
760
849
|
<pre class="lines">
|
761
850
|
|
762
851
|
|
763
|
-
|
852
|
+
163</pre>
|
764
853
|
</td>
|
765
854
|
<td>
|
766
|
-
<pre class="code"><span class="info file"># File 'lib/mangrove/option.rb', line
|
855
|
+
<pre class="code"><span class="info file"># File 'lib/mangrove/option.rb', line 163</span>
|
767
856
|
|
768
857
|
<span class='kw'>def</span> <span class='id identifier rubyid_unwrap!'>unwrap!</span><span class='semicolon'>;</span> <span class='kw'>end</span></pre>
|
769
858
|
</td>
|
@@ -827,10 +916,10 @@
|
|
827
916
|
<pre class="lines">
|
828
917
|
|
829
918
|
|
830
|
-
|
919
|
+
160</pre>
|
831
920
|
</td>
|
832
921
|
<td>
|
833
|
-
<pre class="code"><span class="info file"># File 'lib/mangrove/option.rb', line
|
922
|
+
<pre class="code"><span class="info file"># File 'lib/mangrove/option.rb', line 160</span>
|
834
923
|
|
835
924
|
<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>
|
836
925
|
</td>
|
@@ -843,7 +932,7 @@
|
|
843
932
|
</div>
|
844
933
|
|
845
934
|
<div id="footer">
|
846
|
-
Generated on
|
935
|
+
Generated on Fri Sep 1 17:32:57 2023 by
|
847
936
|
<a href="https://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
|
848
937
|
0.9.34 (ruby-3.2.2).
|
849
938
|
</div>
|
@@ -424,7 +424,7 @@
|
|
424
424
|
</div>
|
425
425
|
|
426
426
|
<div id="footer">
|
427
|
-
Generated on
|
427
|
+
Generated on Fri Sep 1 17:32:58 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>
|