mangrove 0.10.1 → 0.12.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.html +1 -1
- data/docs/Mangrove/Option/ControlSignal.html +1 -1
- data/docs/Mangrove/Option/None.html +46 -46
- data/docs/Mangrove/Option/Some.html +46 -46
- data/docs/Mangrove/Option.html +38 -38
- data/docs/Mangrove/Result/ControlSignal.html +1 -1
- data/docs/Mangrove/Result/Err.html +10 -10
- data/docs/Mangrove/Result/Ok.html +10 -10
- data/docs/Mangrove/Result.html +9 -9
- 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 +29 -29
- data/docs/top-level-namespace.html +1 -1
- data/lib/mangrove/option.rb +14 -14
- data/lib/mangrove/result.rb +8 -8
- data/lib/mangrove/version.rb +1 -1
- metadata +1 -1
data/docs/Mangrove/Option.html
CHANGED
@@ -258,7 +258,7 @@
|
|
258
258
|
<li class="public ">
|
259
259
|
<span class="summary_signature">
|
260
260
|
|
261
|
-
<a href="#
|
261
|
+
<a href="#map-instance_method" title="#map (instance method)">#<strong>map</strong>(&block) ⇒ ::Mangrove::Option[T.type_parameter(:NewInnerType)] </a>
|
262
262
|
|
263
263
|
|
264
264
|
|
@@ -280,7 +280,7 @@
|
|
280
280
|
<li class="public ">
|
281
281
|
<span class="summary_signature">
|
282
282
|
|
283
|
-
<a href="#
|
283
|
+
<a href="#none%3F-instance_method" title="#none? (instance method)">#<strong>none?</strong> ⇒ Boolean </a>
|
284
284
|
|
285
285
|
|
286
286
|
|
@@ -302,7 +302,7 @@
|
|
302
302
|
<li class="public ">
|
303
303
|
<span class="summary_signature">
|
304
304
|
|
305
|
-
<a href="#
|
305
|
+
<a href="#or-instance_method" title="#or (instance method)">#<strong>or</strong>(default) ⇒ Option[InnerType] </a>
|
306
306
|
|
307
307
|
|
308
308
|
|
@@ -707,9 +707,9 @@
|
|
707
707
|
</div>
|
708
708
|
|
709
709
|
<div class="method_details ">
|
710
|
-
<h3 class="signature " id="
|
710
|
+
<h3 class="signature " id="map-instance_method">
|
711
711
|
|
712
|
-
#<strong>
|
712
|
+
#<strong>map</strong>(&block) ⇒ <tt><span class='object_link'><a href="" title="Mangrove::Option (module)">::Mangrove::Option</a></span>[T.type_parameter(:NewInnerType)]</tt>
|
713
713
|
|
714
714
|
|
715
715
|
|
@@ -734,7 +734,7 @@
|
|
734
734
|
<span class='name'>block</span>
|
735
735
|
|
736
736
|
|
737
|
-
<span class='type'>(<tt>T.proc.
|
737
|
+
<span class='type'>(<tt>T.proc.params(inner: <span class='object_link'><a href="#InnerType-constant" title="Mangrove::Option::InnerType (constant)">InnerType</a></span>).returns(<span class='object_link'><a href="" title="Mangrove::Option (module)">Option</a></span>[T.type_parameter(:NewInnerType)])</tt>)</span>
|
738
738
|
|
739
739
|
|
740
740
|
|
@@ -748,7 +748,7 @@
|
|
748
748
|
<li>
|
749
749
|
|
750
750
|
|
751
|
-
<span class='type'>(<tt><span class='object_link'><a href="" title="Mangrove::Option (module)"
|
751
|
+
<span class='type'>(<tt><span class='object_link'><a href="" title="Mangrove::Option (module)">::Mangrove::Option</a></span>[T.type_parameter(:NewInnerType)]</tt>)</span>
|
752
752
|
|
753
753
|
|
754
754
|
|
@@ -762,21 +762,21 @@
|
|
762
762
|
<pre class="lines">
|
763
763
|
|
764
764
|
|
765
|
-
|
765
|
+
202</pre>
|
766
766
|
</td>
|
767
767
|
<td>
|
768
|
-
<pre class="code"><span class="info file"># File 'lib/mangrove/option.rb', line
|
768
|
+
<pre class="code"><span class="info file"># File 'lib/mangrove/option.rb', line 202</span>
|
769
769
|
|
770
|
-
<span class='kw'>def</span> <span class='id identifier
|
770
|
+
<span class='kw'>def</span> <span class='id identifier rubyid_map'>map</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>
|
771
771
|
</td>
|
772
772
|
</tr>
|
773
773
|
</table>
|
774
774
|
</div>
|
775
775
|
|
776
776
|
<div class="method_details ">
|
777
|
-
<h3 class="signature " id="
|
777
|
+
<h3 class="signature " id="none?-instance_method">
|
778
778
|
|
779
|
-
#<strong>
|
779
|
+
#<strong>none?</strong> ⇒ <tt>Boolean</tt>
|
780
780
|
|
781
781
|
|
782
782
|
|
@@ -793,29 +793,14 @@
|
|
793
793
|
</div>
|
794
794
|
</div>
|
795
795
|
<div class="tags">
|
796
|
-
<p class="tag_title">Parameters:</p>
|
797
|
-
<ul class="param">
|
798
796
|
|
799
|
-
<li>
|
800
|
-
|
801
|
-
<span class='name'>block</span>
|
802
|
-
|
803
|
-
|
804
|
-
<span class='type'>(<tt>T.proc.params(inner: <span class='object_link'><a href="#InnerType-constant" title="Mangrove::Option::InnerType (constant)">InnerType</a></span>).returns(<span class='object_link'><a href="" title="Mangrove::Option (module)">Option</a></span>[<span class='object_link'><a href="#InnerType-constant" title="Mangrove::Option::InnerType (constant)">InnerType</a></span>])</tt>)</span>
|
805
|
-
|
806
|
-
|
807
|
-
|
808
|
-
</li>
|
809
|
-
|
810
|
-
</ul>
|
811
|
-
|
812
797
|
<p class="tag_title">Returns:</p>
|
813
798
|
<ul class="return">
|
814
799
|
|
815
800
|
<li>
|
816
801
|
|
817
802
|
|
818
|
-
<span class='type'>(<tt
|
803
|
+
<span class='type'>(<tt>Boolean</tt>)</span>
|
819
804
|
|
820
805
|
|
821
806
|
|
@@ -829,21 +814,21 @@
|
|
829
814
|
<pre class="lines">
|
830
815
|
|
831
816
|
|
832
|
-
|
817
|
+
199</pre>
|
833
818
|
</td>
|
834
819
|
<td>
|
835
|
-
<pre class="code"><span class="info file"># File 'lib/mangrove/option.rb', line
|
820
|
+
<pre class="code"><span class="info file"># File 'lib/mangrove/option.rb', line 199</span>
|
836
821
|
|
837
|
-
<span class='kw'>def</span> <span class='id identifier
|
822
|
+
<span class='kw'>def</span> <span class='id identifier rubyid_none?'>none?</span><span class='semicolon'>;</span> <span class='kw'>end</span></pre>
|
838
823
|
</td>
|
839
824
|
</tr>
|
840
825
|
</table>
|
841
826
|
</div>
|
842
827
|
|
843
828
|
<div class="method_details ">
|
844
|
-
<h3 class="signature " id="
|
829
|
+
<h3 class="signature " id="or-instance_method">
|
845
830
|
|
846
|
-
#<strong>
|
831
|
+
#<strong>or</strong>(default) ⇒ <tt><span class='object_link'><a href="" title="Mangrove::Option (module)">Option</a></span>[<span class='object_link'><a href="#InnerType-constant" title="Mangrove::Option::InnerType (constant)">InnerType</a></span>]</tt>
|
847
832
|
|
848
833
|
|
849
834
|
|
@@ -860,14 +845,29 @@
|
|
860
845
|
</div>
|
861
846
|
</div>
|
862
847
|
<div class="tags">
|
848
|
+
<p class="tag_title">Parameters:</p>
|
849
|
+
<ul class="param">
|
863
850
|
|
851
|
+
<li>
|
852
|
+
|
853
|
+
<span class='name'>default</span>
|
854
|
+
|
855
|
+
|
856
|
+
<span class='type'>(<tt><span class='object_link'><a href="" title="Mangrove::Option (module)">Option</a></span>[<span class='object_link'><a href="#InnerType-constant" title="Mangrove::Option::InnerType (constant)">InnerType</a></span>]</tt>)</span>
|
857
|
+
|
858
|
+
|
859
|
+
|
860
|
+
</li>
|
861
|
+
|
862
|
+
</ul>
|
863
|
+
|
864
864
|
<p class="tag_title">Returns:</p>
|
865
865
|
<ul class="return">
|
866
866
|
|
867
867
|
<li>
|
868
868
|
|
869
869
|
|
870
|
-
<span class='type'>(<tt>
|
870
|
+
<span class='type'>(<tt><span class='object_link'><a href="" title="Mangrove::Option (module)">Option</a></span>[<span class='object_link'><a href="#InnerType-constant" title="Mangrove::Option::InnerType (constant)">InnerType</a></span>]</tt>)</span>
|
871
871
|
|
872
872
|
|
873
873
|
|
@@ -881,12 +881,12 @@
|
|
881
881
|
<pre class="lines">
|
882
882
|
|
883
883
|
|
884
|
-
|
884
|
+
205</pre>
|
885
885
|
</td>
|
886
886
|
<td>
|
887
|
-
<pre class="code"><span class="info file"># File 'lib/mangrove/option.rb', line
|
887
|
+
<pre class="code"><span class="info file"># File 'lib/mangrove/option.rb', line 205</span>
|
888
888
|
|
889
|
-
<span class='kw'>def</span> <span class='id identifier
|
889
|
+
<span class='kw'>def</span> <span class='kw'>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>
|
890
890
|
</td>
|
891
891
|
</tr>
|
892
892
|
</table>
|
@@ -1135,7 +1135,7 @@
|
|
1135
1135
|
</div>
|
1136
1136
|
|
1137
1137
|
<div id="footer">
|
1138
|
-
Generated on Tue Oct 24
|
1138
|
+
Generated on Tue Oct 24 20:44:48 2023 by
|
1139
1139
|
<a href="https://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
|
1140
1140
|
0.9.34 (ruby-3.1.2).
|
1141
1141
|
</div>
|
@@ -424,7 +424,7 @@
|
|
424
424
|
</div>
|
425
425
|
|
426
426
|
<div id="footer">
|
427
|
-
Generated on Tue Oct 24
|
427
|
+
Generated on Tue Oct 24 20:44:49 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.1.2).
|
430
430
|
</div>
|
@@ -282,7 +282,7 @@
|
|
282
282
|
<li class="public ">
|
283
283
|
<span class="summary_signature">
|
284
284
|
|
285
|
-
<a href="#map_err-instance_method" title="#map_err (instance method)">#<strong>map_err</strong>(&block) ⇒ Result[OkType,
|
285
|
+
<a href="#map_err-instance_method" title="#map_err (instance method)">#<strong>map_err</strong>(&block) ⇒ Result[OkType, T.type_parameter(:NewErrType)] </a>
|
286
286
|
|
287
287
|
|
288
288
|
|
@@ -304,7 +304,7 @@
|
|
304
304
|
<li class="public ">
|
305
305
|
<span class="summary_signature">
|
306
306
|
|
307
|
-
<a href="#map_ok-instance_method" title="#map_ok (instance method)">#<strong>map_ok</strong>(&_block) ⇒ Result[
|
307
|
+
<a href="#map_ok-instance_method" title="#map_ok (instance method)">#<strong>map_ok</strong>(&_block) ⇒ Result[T.type_parameter(:NewOkType), ErrType] </a>
|
308
308
|
|
309
309
|
|
310
310
|
|
@@ -818,7 +818,7 @@
|
|
818
818
|
<div class="method_details ">
|
819
819
|
<h3 class="signature " id="map_err-instance_method">
|
820
820
|
|
821
|
-
#<strong>map_err</strong>(&block) ⇒ <tt><span class='object_link'><a href="../Result.html" title="Mangrove::Result (module)">Result</a></span>[<span class='object_link'><a href="#OkType-constant" title="Mangrove::Result::Err::OkType (constant)">OkType</a></span>,
|
821
|
+
#<strong>map_err</strong>(&block) ⇒ <tt><span class='object_link'><a href="../Result.html" title="Mangrove::Result (module)">Result</a></span>[<span class='object_link'><a href="#OkType-constant" title="Mangrove::Result::Err::OkType (constant)">OkType</a></span>, T.type_parameter(:NewErrType)]</tt>
|
822
822
|
|
823
823
|
|
824
824
|
|
@@ -839,7 +839,7 @@
|
|
839
839
|
<span class='name'>block</span>
|
840
840
|
|
841
841
|
|
842
|
-
<span class='type'>(<tt>T.proc.params(this: <span class='object_link'><a href="#ErrType-constant" title="Mangrove::Result::Err::ErrType (constant)">ErrType</a></span>).returns(<span class='object_link'><a href="../Result.html" title="Mangrove::Result (module)">Result</a></span>[<span class='object_link'><a href="#OkType-constant" title="Mangrove::Result::Err::OkType (constant)">OkType</a></span>,
|
842
|
+
<span class='type'>(<tt>T.proc.params(this: <span class='object_link'><a href="#ErrType-constant" title="Mangrove::Result::Err::ErrType (constant)">ErrType</a></span>).returns(<span class='object_link'><a href="../Result.html" title="Mangrove::Result (module)">Result</a></span>[<span class='object_link'><a href="#OkType-constant" title="Mangrove::Result::Err::OkType (constant)">OkType</a></span>, T.type_parameter(:NewErrType)])</tt>)</span>
|
843
843
|
|
844
844
|
|
845
845
|
|
@@ -853,7 +853,7 @@
|
|
853
853
|
<li>
|
854
854
|
|
855
855
|
|
856
|
-
<span class='type'>(<tt><span class='object_link'><a href="../Result.html" title="Mangrove::Result (module)">Result</a></span>[<span class='object_link'><a href="#OkType-constant" title="Mangrove::Result::Err::OkType (constant)">OkType</a></span>,
|
856
|
+
<span class='type'>(<tt><span class='object_link'><a href="../Result.html" title="Mangrove::Result (module)">Result</a></span>[<span class='object_link'><a href="#OkType-constant" title="Mangrove::Result::Err::OkType (constant)">OkType</a></span>, T.type_parameter(:NewErrType)]</tt>)</span>
|
857
857
|
|
858
858
|
|
859
859
|
|
@@ -885,7 +885,7 @@
|
|
885
885
|
<div class="method_details ">
|
886
886
|
<h3 class="signature " id="map_ok-instance_method">
|
887
887
|
|
888
|
-
#<strong>map_ok</strong>(&_block) ⇒ <tt><span class='object_link'><a href="../Result.html" title="Mangrove::Result (module)">Result</a></span>[
|
888
|
+
#<strong>map_ok</strong>(&_block) ⇒ <tt><span class='object_link'><a href="../Result.html" title="Mangrove::Result (module)">Result</a></span>[T.type_parameter(:NewOkType), <span class='object_link'><a href="#ErrType-constant" title="Mangrove::Result::Err::ErrType (constant)">ErrType</a></span>]</tt>
|
889
889
|
|
890
890
|
|
891
891
|
|
@@ -906,7 +906,7 @@
|
|
906
906
|
<span class='name'>_block</span>
|
907
907
|
|
908
908
|
|
909
|
-
<span class='type'>(<tt>T.proc.params(this: <span class='object_link'><a href="#OkType-constant" title="Mangrove::Result::Err::OkType (constant)">OkType</a></span>).returns(<span class='object_link'><a href="../Result.html" title="Mangrove::Result (module)">Result</a></span>[
|
909
|
+
<span class='type'>(<tt>T.proc.params(this: <span class='object_link'><a href="#OkType-constant" title="Mangrove::Result::Err::OkType (constant)">OkType</a></span>).returns(<span class='object_link'><a href="../Result.html" title="Mangrove::Result (module)">Result</a></span>[T.type_parameter(:NewOkType), <span class='object_link'><a href="#ErrType-constant" title="Mangrove::Result::Err::ErrType (constant)">ErrType</a></span>])</tt>)</span>
|
910
910
|
|
911
911
|
|
912
912
|
|
@@ -920,7 +920,7 @@
|
|
920
920
|
<li>
|
921
921
|
|
922
922
|
|
923
|
-
<span class='type'>(<tt><span class='object_link'><a href="../Result.html" title="Mangrove::Result (module)">Result</a></span>[
|
923
|
+
<span class='type'>(<tt><span class='object_link'><a href="../Result.html" title="Mangrove::Result (module)">Result</a></span>[T.type_parameter(:NewOkType), <span class='object_link'><a href="#ErrType-constant" title="Mangrove::Result::Err::ErrType (constant)">ErrType</a></span>]</tt>)</span>
|
924
924
|
|
925
925
|
|
926
926
|
|
@@ -942,7 +942,7 @@
|
|
942
942
|
<pre class="code"><span class="info file"># File 'lib/mangrove/result.rb', line 189</span>
|
943
943
|
|
944
944
|
<span class='kw'>def</span> <span class='id identifier rubyid_map_ok'>map_ok</span><span class='lparen'>(</span><span class='op'>&</span><span class='id identifier rubyid__block'>_block</span><span class='rparen'>)</span>
|
945
|
-
<span class='kw'>self</span>
|
945
|
+
<span class='const'>T</span><span class='period'>.</span><span class='id identifier rubyid_cast'>cast</span><span class='lparen'>(</span><span class='kw'>self</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="" title="Mangrove::Result::Err (class)">Err</a></span></span><span class='lbracket'>[</span><span class='const'>T</span><span class='period'>.</span><span class='id identifier rubyid_type_parameter'>type_parameter</span><span class='lparen'>(</span><span class='symbol'>:NewOkType</span><span class='rparen'>)</span><span class='comma'>,</span> <span class='const'><span class='object_link'><a href="#ErrType-constant" title="Mangrove::Result::Err::ErrType (constant)">ErrType</a></span></span><span class='rbracket'>]</span><span class='rparen'>)</span>
|
946
946
|
<span class='kw'>end</span></pre>
|
947
947
|
</td>
|
948
948
|
</tr>
|
@@ -1119,7 +1119,7 @@
|
|
1119
1119
|
</div>
|
1120
1120
|
|
1121
1121
|
<div id="footer">
|
1122
|
-
Generated on Tue Oct 24
|
1122
|
+
Generated on Tue Oct 24 20:44:49 2023 by
|
1123
1123
|
<a href="https://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
|
1124
1124
|
0.9.34 (ruby-3.1.2).
|
1125
1125
|
</div>
|
@@ -260,7 +260,7 @@
|
|
260
260
|
<li class="public ">
|
261
261
|
<span class="summary_signature">
|
262
262
|
|
263
|
-
<a href="#map_err-instance_method" title="#map_err (instance method)">#<strong>map_err</strong>(&_block) ⇒ Result[OkType,
|
263
|
+
<a href="#map_err-instance_method" title="#map_err (instance method)">#<strong>map_err</strong>(&_block) ⇒ Result[OkType, T.type_parameter(:NewErrType)] </a>
|
264
264
|
|
265
265
|
|
266
266
|
|
@@ -282,7 +282,7 @@
|
|
282
282
|
<li class="public ">
|
283
283
|
<span class="summary_signature">
|
284
284
|
|
285
|
-
<a href="#map_ok-instance_method" title="#map_ok (instance method)">#<strong>map_ok</strong>(&block) ⇒ Result[
|
285
|
+
<a href="#map_ok-instance_method" title="#map_ok (instance method)">#<strong>map_ok</strong>(&block) ⇒ Result[T.type_parameter(:NewOkType), ErrType] </a>
|
286
286
|
|
287
287
|
|
288
288
|
|
@@ -740,7 +740,7 @@
|
|
740
740
|
<div class="method_details ">
|
741
741
|
<h3 class="signature " id="map_err-instance_method">
|
742
742
|
|
743
|
-
#<strong>map_err</strong>(&_block) ⇒ <tt><span class='object_link'><a href="../Result.html" title="Mangrove::Result (module)">Result</a></span>[<span class='object_link'><a href="#OkType-constant" title="Mangrove::Result::Ok::OkType (constant)">OkType</a></span>,
|
743
|
+
#<strong>map_err</strong>(&_block) ⇒ <tt><span class='object_link'><a href="../Result.html" title="Mangrove::Result (module)">Result</a></span>[<span class='object_link'><a href="#OkType-constant" title="Mangrove::Result::Ok::OkType (constant)">OkType</a></span>, T.type_parameter(:NewErrType)]</tt>
|
744
744
|
|
745
745
|
|
746
746
|
|
@@ -761,7 +761,7 @@
|
|
761
761
|
<span class='name'>_block</span>
|
762
762
|
|
763
763
|
|
764
|
-
<span class='type'>(<tt>T.proc.params(this: <span class='object_link'><a href="#ErrType-constant" title="Mangrove::Result::Ok::ErrType (constant)">ErrType</a></span>).returns(<span class='object_link'><a href="../Result.html" title="Mangrove::Result (module)">Result</a></span>[<span class='object_link'><a href="#OkType-constant" title="Mangrove::Result::Ok::OkType (constant)">OkType</a></span>,
|
764
|
+
<span class='type'>(<tt>T.proc.params(this: <span class='object_link'><a href="#ErrType-constant" title="Mangrove::Result::Ok::ErrType (constant)">ErrType</a></span>).returns(<span class='object_link'><a href="../Result.html" title="Mangrove::Result (module)">Result</a></span>[<span class='object_link'><a href="#OkType-constant" title="Mangrove::Result::Ok::OkType (constant)">OkType</a></span>, T.type_parameter(:NewErrType)])</tt>)</span>
|
765
765
|
|
766
766
|
|
767
767
|
|
@@ -775,7 +775,7 @@
|
|
775
775
|
<li>
|
776
776
|
|
777
777
|
|
778
|
-
<span class='type'>(<tt><span class='object_link'><a href="../Result.html" title="Mangrove::Result (module)">Result</a></span>[<span class='object_link'><a href="#OkType-constant" title="Mangrove::Result::Ok::OkType (constant)">OkType</a></span>,
|
778
|
+
<span class='type'>(<tt><span class='object_link'><a href="../Result.html" title="Mangrove::Result (module)">Result</a></span>[<span class='object_link'><a href="#OkType-constant" title="Mangrove::Result::Ok::OkType (constant)">OkType</a></span>, T.type_parameter(:NewErrType)]</tt>)</span>
|
779
779
|
|
780
780
|
|
781
781
|
|
@@ -797,7 +797,7 @@
|
|
797
797
|
<pre class="code"><span class="info file"># File 'lib/mangrove/result.rb', line 125</span>
|
798
798
|
|
799
799
|
<span class='kw'>def</span> <span class='id identifier rubyid_map_err'>map_err</span><span class='lparen'>(</span><span class='op'>&</span><span class='id identifier rubyid__block'>_block</span><span class='rparen'>)</span>
|
800
|
-
<span class='kw'>self</span>
|
800
|
+
<span class='const'>T</span><span class='period'>.</span><span class='id identifier rubyid_cast'>cast</span><span class='lparen'>(</span><span class='kw'>self</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="" title="Mangrove::Result::Ok (class)">Ok</a></span></span><span class='lbracket'>[</span><span class='const'><span class='object_link'><a href="#OkType-constant" title="Mangrove::Result::Ok::OkType (constant)">OkType</a></span></span><span class='comma'>,</span> <span class='const'>T</span><span class='period'>.</span><span class='id identifier rubyid_type_parameter'>type_parameter</span><span class='lparen'>(</span><span class='symbol'>:NewErrType</span><span class='rparen'>)</span><span class='rbracket'>]</span><span class='rparen'>)</span>
|
801
801
|
<span class='kw'>end</span></pre>
|
802
802
|
</td>
|
803
803
|
</tr>
|
@@ -807,7 +807,7 @@
|
|
807
807
|
<div class="method_details ">
|
808
808
|
<h3 class="signature " id="map_ok-instance_method">
|
809
809
|
|
810
|
-
#<strong>map_ok</strong>(&block) ⇒ <tt><span class='object_link'><a href="../Result.html" title="Mangrove::Result (module)">Result</a></span>[
|
810
|
+
#<strong>map_ok</strong>(&block) ⇒ <tt><span class='object_link'><a href="../Result.html" title="Mangrove::Result (module)">Result</a></span>[T.type_parameter(:NewOkType), <span class='object_link'><a href="#ErrType-constant" title="Mangrove::Result::Ok::ErrType (constant)">ErrType</a></span>]</tt>
|
811
811
|
|
812
812
|
|
813
813
|
|
@@ -828,7 +828,7 @@
|
|
828
828
|
<span class='name'>block</span>
|
829
829
|
|
830
830
|
|
831
|
-
<span class='type'>(<tt>T.proc.params(this: <span class='object_link'><a href="#OkType-constant" title="Mangrove::Result::Ok::OkType (constant)">OkType</a></span>).returns(<span class='object_link'><a href="../Result.html" title="Mangrove::Result (module)">Result</a></span>[
|
831
|
+
<span class='type'>(<tt>T.proc.params(this: <span class='object_link'><a href="#OkType-constant" title="Mangrove::Result::Ok::OkType (constant)">OkType</a></span>).returns(<span class='object_link'><a href="../Result.html" title="Mangrove::Result (module)">Result</a></span>[T.type_parameter(:NewOkType), <span class='object_link'><a href="#ErrType-constant" title="Mangrove::Result::Ok::ErrType (constant)">ErrType</a></span>])</tt>)</span>
|
832
832
|
|
833
833
|
|
834
834
|
|
@@ -842,7 +842,7 @@
|
|
842
842
|
<li>
|
843
843
|
|
844
844
|
|
845
|
-
<span class='type'>(<tt><span class='object_link'><a href="../Result.html" title="Mangrove::Result (module)">Result</a></span>[
|
845
|
+
<span class='type'>(<tt><span class='object_link'><a href="../Result.html" title="Mangrove::Result (module)">Result</a></span>[T.type_parameter(:NewOkType), <span class='object_link'><a href="#ErrType-constant" title="Mangrove::Result::Ok::ErrType (constant)">ErrType</a></span>]</tt>)</span>
|
846
846
|
|
847
847
|
|
848
848
|
|
@@ -1080,7 +1080,7 @@
|
|
1080
1080
|
</div>
|
1081
1081
|
|
1082
1082
|
<div id="footer">
|
1083
|
-
Generated on Tue Oct 24
|
1083
|
+
Generated on Tue Oct 24 20:44:49 2023 by
|
1084
1084
|
<a href="https://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
|
1085
1085
|
0.9.34 (ruby-3.1.2).
|
1086
1086
|
</div>
|
data/docs/Mangrove/Result.html
CHANGED
@@ -285,7 +285,7 @@
|
|
285
285
|
<li class="public ">
|
286
286
|
<span class="summary_signature">
|
287
287
|
|
288
|
-
<a href="#map_err-instance_method" title="#map_err (instance method)">#<strong>map_err</strong>(&block) ⇒ Result[OkType,
|
288
|
+
<a href="#map_err-instance_method" title="#map_err (instance method)">#<strong>map_err</strong>(&block) ⇒ Result[OkType, T.type_parameter(:NewErrType)] </a>
|
289
289
|
|
290
290
|
|
291
291
|
|
@@ -307,7 +307,7 @@
|
|
307
307
|
<li class="public ">
|
308
308
|
<span class="summary_signature">
|
309
309
|
|
310
|
-
<a href="#map_ok-instance_method" title="#map_ok (instance method)">#<strong>map_ok</strong>(&block) ⇒ Result[
|
310
|
+
<a href="#map_ok-instance_method" title="#map_ok (instance method)">#<strong>map_ok</strong>(&block) ⇒ Result[T.type_parameter(:NewOkType), ErrType] </a>
|
311
311
|
|
312
312
|
|
313
313
|
|
@@ -728,7 +728,7 @@
|
|
728
728
|
<div class="method_details ">
|
729
729
|
<h3 class="signature " id="map_err-instance_method">
|
730
730
|
|
731
|
-
#<strong>map_err</strong>(&block) ⇒ <tt><span class='object_link'><a href="" title="Mangrove::Result (module)">Result</a></span>[<span class='object_link'><a href="#OkType-constant" title="Mangrove::Result::OkType (constant)">OkType</a></span>,
|
731
|
+
#<strong>map_err</strong>(&block) ⇒ <tt><span class='object_link'><a href="" title="Mangrove::Result (module)">Result</a></span>[<span class='object_link'><a href="#OkType-constant" title="Mangrove::Result::OkType (constant)">OkType</a></span>, T.type_parameter(:NewErrType)]</tt>
|
732
732
|
|
733
733
|
|
734
734
|
|
@@ -753,7 +753,7 @@
|
|
753
753
|
<span class='name'>block</span>
|
754
754
|
|
755
755
|
|
756
|
-
<span class='type'>(<tt>T.proc.params(this: <span class='object_link'><a href="#ErrType-constant" title="Mangrove::Result::ErrType (constant)">ErrType</a></span>).returns(<span class='object_link'><a href="" title="Mangrove::Result (module)">Result</a></span>[<span class='object_link'><a href="#OkType-constant" title="Mangrove::Result::OkType (constant)">OkType</a></span>,
|
756
|
+
<span class='type'>(<tt>T.proc.params(this: <span class='object_link'><a href="#ErrType-constant" title="Mangrove::Result::ErrType (constant)">ErrType</a></span>).returns(<span class='object_link'><a href="" title="Mangrove::Result (module)">Result</a></span>[<span class='object_link'><a href="#OkType-constant" title="Mangrove::Result::OkType (constant)">OkType</a></span>, T.type_parameter(:NewErrType)])</tt>)</span>
|
757
757
|
|
758
758
|
|
759
759
|
|
@@ -767,7 +767,7 @@
|
|
767
767
|
<li>
|
768
768
|
|
769
769
|
|
770
|
-
<span class='type'>(<tt><span class='object_link'><a href="" title="Mangrove::Result (module)">Result</a></span>[<span class='object_link'><a href="#OkType-constant" title="Mangrove::Result::OkType (constant)">OkType</a></span>,
|
770
|
+
<span class='type'>(<tt><span class='object_link'><a href="" title="Mangrove::Result (module)">Result</a></span>[<span class='object_link'><a href="#OkType-constant" title="Mangrove::Result::OkType (constant)">OkType</a></span>, T.type_parameter(:NewErrType)]</tt>)</span>
|
771
771
|
|
772
772
|
|
773
773
|
|
@@ -795,7 +795,7 @@
|
|
795
795
|
<div class="method_details ">
|
796
796
|
<h3 class="signature " id="map_ok-instance_method">
|
797
797
|
|
798
|
-
#<strong>map_ok</strong>(&block) ⇒ <tt><span class='object_link'><a href="" title="Mangrove::Result (module)">Result</a></span>[
|
798
|
+
#<strong>map_ok</strong>(&block) ⇒ <tt><span class='object_link'><a href="" title="Mangrove::Result (module)">Result</a></span>[T.type_parameter(:NewOkType), <span class='object_link'><a href="#ErrType-constant" title="Mangrove::Result::ErrType (constant)">ErrType</a></span>]</tt>
|
799
799
|
|
800
800
|
|
801
801
|
|
@@ -820,7 +820,7 @@
|
|
820
820
|
<span class='name'>block</span>
|
821
821
|
|
822
822
|
|
823
|
-
<span class='type'>(<tt>T.proc.params(this: <span class='object_link'><a href="#OkType-constant" title="Mangrove::Result::OkType (constant)">OkType</a></span>).returns(<span class='object_link'><a href="" title="Mangrove::Result (module)">Result</a></span>[
|
823
|
+
<span class='type'>(<tt>T.proc.params(this: <span class='object_link'><a href="#OkType-constant" title="Mangrove::Result::OkType (constant)">OkType</a></span>).returns(<span class='object_link'><a href="" title="Mangrove::Result (module)">Result</a></span>[T.type_parameter(:NewOkType), <span class='object_link'><a href="#ErrType-constant" title="Mangrove::Result::ErrType (constant)">ErrType</a></span>])</tt>)</span>
|
824
824
|
|
825
825
|
|
826
826
|
|
@@ -834,7 +834,7 @@
|
|
834
834
|
<li>
|
835
835
|
|
836
836
|
|
837
|
-
<span class='type'>(<tt><span class='object_link'><a href="" title="Mangrove::Result (module)">Result</a></span>[
|
837
|
+
<span class='type'>(<tt><span class='object_link'><a href="" title="Mangrove::Result (module)">Result</a></span>[T.type_parameter(:NewOkType), <span class='object_link'><a href="#ErrType-constant" title="Mangrove::Result::ErrType (constant)">ErrType</a></span>]</tt>)</span>
|
838
838
|
|
839
839
|
|
840
840
|
|
@@ -968,7 +968,7 @@
|
|
968
968
|
</div>
|
969
969
|
|
970
970
|
<div id="footer">
|
971
|
-
Generated on Tue Oct 24
|
971
|
+
Generated on Tue Oct 24 20:44:48 2023 by
|
972
972
|
<a href="https://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
|
973
973
|
0.9.34 (ruby-3.1.2).
|
974
974
|
</div>
|
data/docs/Mangrove.html
CHANGED
@@ -118,7 +118,7 @@
|
|
118
118
|
<dt id="VERSION-constant" class="">VERSION =
|
119
119
|
|
120
120
|
</dt>
|
121
|
-
<dd><pre class="code"><span class='tstring'><span class='tstring_beg'>"</span><span class='tstring_content'>0.
|
121
|
+
<dd><pre class="code"><span class='tstring'><span class='tstring_beg'>"</span><span class='tstring_content'>0.12.0</span><span class='tstring_end'>"</span></span></pre></dd>
|
122
122
|
|
123
123
|
</dl>
|
124
124
|
|
@@ -134,7 +134,7 @@
|
|
134
134
|
</div>
|
135
135
|
|
136
136
|
<div id="footer">
|
137
|
-
Generated on Tue Oct 24
|
137
|
+
Generated on Tue Oct 24 20:44:48 2023 by
|
138
138
|
<a href="https://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
|
139
139
|
0.9.34 (ruby-3.1.2).
|
140
140
|
</div>
|
data/docs/_index.html
CHANGED
@@ -215,7 +215,7 @@
|
|
215
215
|
</div>
|
216
216
|
|
217
217
|
<div id="footer">
|
218
|
-
Generated on Tue Oct 24
|
218
|
+
Generated on Tue Oct 24 20:44:47 2023 by
|
219
219
|
<a href="https://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
|
220
220
|
0.9.34 (ruby-3.1.2).
|
221
221
|
</div>
|
data/docs/file.README.html
CHANGED
@@ -162,7 +162,7 @@ rake release
|
|
162
162
|
</div></div>
|
163
163
|
|
164
164
|
<div id="footer">
|
165
|
-
Generated on Tue Oct 24
|
165
|
+
Generated on Tue Oct 24 20:44:48 2023 by
|
166
166
|
<a href="https://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
|
167
167
|
0.9.34 (ruby-3.1.2).
|
168
168
|
</div>
|
data/docs/index.html
CHANGED
@@ -162,7 +162,7 @@ rake release
|
|
162
162
|
</div></div>
|
163
163
|
|
164
164
|
<div id="footer">
|
165
|
-
Generated on Tue Oct 24
|
165
|
+
Generated on Tue Oct 24 20:44:48 2023 by
|
166
166
|
<a href="https://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
|
167
167
|
0.9.34 (ruby-3.1.2).
|
168
168
|
</div>
|