mangrove 0.14.0 → 0.15.0

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: d46e85dd5f4de21295a962c41fc581e2ad41df3a72cdeb8e2477af462d4b36ee
4
- data.tar.gz: 8946983285f5d9bc48c60b6b93c4c28212114bb3b6b8749deb30f48e6157657c
3
+ metadata.gz: 27f3199cc234c62d6d3905e82878a1a1256d4d3d6274b0ad72ed5ebecfa52ef1
4
+ data.tar.gz: 927b3c1de75c99ad29dd12f91e4c04df420c4786f24966900ef98e426efbd330
5
5
  SHA512:
6
- metadata.gz: b08c02e2162a238d86caa94818103652b9025584e2d43fee9261574247a32d65af077d6d54a9f78d6571ef5d842545a44a368eb24b9b2ec212de0cfd4cdc643a
7
- data.tar.gz: '078a1955db6ba16b185046ef5b3c1f997fb703f0752bcbd9e7abd97884aa4c8f9a00ab7bbbc4cd6017804362cb94116bf82c45e84f2571fa0a4b7ab2b3adb0d5'
6
+ metadata.gz: 83476cb1be593db8e67f1b121944be82c4637371a7940e85cece9d86cff3532578dcf58c4fdc167dada7a3181fc32254100dfa2865c6479c15b46bd1a2ae1c39
7
+ data.tar.gz: 1c85b816e4f4b9921e84521ee5348d4fc97bf5859c451e0d94812061861cb7b89caab303674e58cd9869c89aaaa70cd01139e06b09353eaa7ec0e48d312e2d08
data/.rubocop.yml CHANGED
@@ -46,6 +46,9 @@ Style/GuardClause:
46
46
  Style/IfUnlessModifier:
47
47
  Enabled: false
48
48
 
49
+ Style/MultilineBlockChain:
50
+ Enabled: false
51
+
49
52
  Style/StringLiterals:
50
53
  Enabled: true
51
54
  EnforcedStyle: double_quotes
@@ -213,9 +213,9 @@
213
213
  </div>
214
214
 
215
215
  <div id="footer">
216
- Generated on Thu Oct 26 12:34:21 2023 by
216
+ Generated on Tue Oct 31 12:03:29 2023 by
217
217
  <a href="https://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
218
- 0.9.34 (ruby-3.1.2).
218
+ 0.9.34 (ruby-3.2.2).
219
219
  </div>
220
220
 
221
221
  </div>
@@ -105,9 +105,9 @@
105
105
  </div>
106
106
 
107
107
  <div id="footer">
108
- Generated on Thu Oct 26 12:34:21 2023 by
108
+ Generated on Tue Oct 31 12:03:29 2023 by
109
109
  <a href="https://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
110
- 0.9.34 (ruby-3.1.2).
110
+ 0.9.34 (ruby-3.2.2).
111
111
  </div>
112
112
 
113
113
  </div>
@@ -424,9 +424,9 @@
424
424
  </div>
425
425
 
426
426
  <div id="footer">
427
- Generated on Thu Oct 26 12:34:24 2023 by
427
+ Generated on Tue Oct 31 12:03:31 2023 by
428
428
  <a href="https://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
429
- 0.9.34 (ruby-3.1.2).
429
+ 0.9.34 (ruby-3.2.2).
430
430
  </div>
431
431
 
432
432
  </div>
@@ -1075,9 +1075,9 @@
1075
1075
  </div>
1076
1076
 
1077
1077
  <div id="footer">
1078
- Generated on Thu Oct 26 12:34:22 2023 by
1078
+ Generated on Tue Oct 31 12:03:30 2023 by
1079
1079
  <a href="https://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
1080
- 0.9.34 (ruby-3.1.2).
1080
+ 0.9.34 (ruby-3.2.2).
1081
1081
  </div>
1082
1082
 
1083
1083
  </div>
@@ -1192,9 +1192,9 @@
1192
1192
  </div>
1193
1193
 
1194
1194
  <div id="footer">
1195
- Generated on Thu Oct 26 12:34:22 2023 by
1195
+ Generated on Tue Oct 31 12:03:29 2023 by
1196
1196
  <a href="https://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
1197
- 0.9.34 (ruby-3.1.2).
1197
+ 0.9.34 (ruby-3.2.2).
1198
1198
  </div>
1199
1199
 
1200
1200
  </div>
@@ -1135,9 +1135,9 @@
1135
1135
  </div>
1136
1136
 
1137
1137
  <div id="footer">
1138
- Generated on Thu Oct 26 12:34:21 2023 by
1138
+ Generated on Tue Oct 31 12:03:29 2023 by
1139
1139
  <a href="https://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
1140
- 0.9.34 (ruby-3.1.2).
1140
+ 0.9.34 (ruby-3.2.2).
1141
1141
  </div>
1142
1142
 
1143
1143
  </div>
@@ -424,9 +424,9 @@
424
424
  </div>
425
425
 
426
426
  <div id="footer">
427
- Generated on Thu Oct 26 12:34:24 2023 by
427
+ Generated on Tue Oct 31 12:03:31 2023 by
428
428
  <a href="https://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
429
- 0.9.34 (ruby-3.1.2).
429
+ 0.9.34 (ruby-3.2.2).
430
430
  </div>
431
431
 
432
432
  </div>
@@ -2079,9 +2079,9 @@
2079
2079
  </div>
2080
2080
 
2081
2081
  <div id="footer">
2082
- Generated on Thu Oct 26 12:34:24 2023 by
2082
+ Generated on Tue Oct 31 12:03:31 2023 by
2083
2083
  <a href="https://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
2084
- 0.9.34 (ruby-3.1.2).
2084
+ 0.9.34 (ruby-3.2.2).
2085
2085
  </div>
2086
2086
 
2087
2087
  </div>
@@ -2044,9 +2044,9 @@
2044
2044
  </div>
2045
2045
 
2046
2046
  <div id="footer">
2047
- Generated on Thu Oct 26 12:34:23 2023 by
2047
+ Generated on Tue Oct 31 12:03:30 2023 by
2048
2048
  <a href="https://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
2049
- 0.9.34 (ruby-3.1.2).
2049
+ 0.9.34 (ruby-3.2.2).
2050
2050
  </div>
2051
2051
 
2052
2052
  </div>
@@ -139,12 +139,12 @@
139
139
  <dt id="OkType-constant" class="">OkType =
140
140
 
141
141
  </dt>
142
- <dd><pre class="code"><span class='id identifier rubyid_type_member'>type_member</span></pre></dd>
142
+ <dd><pre class="code"><span class='id identifier rubyid_type_member'>type_member</span><span class='lparen'>(</span><span class='symbol'>:out</span><span class='rparen'>)</span></pre></dd>
143
143
 
144
144
  <dt id="ErrType-constant" class="">ErrType =
145
145
 
146
146
  </dt>
147
- <dd><pre class="code"><span class='id identifier rubyid_type_member'>type_member</span></pre></dd>
147
+ <dd><pre class="code"><span class='id identifier rubyid_type_member'>type_member</span><span class='lparen'>(</span><span class='symbol'>:out</span><span class='rparen'>)</span></pre></dd>
148
148
 
149
149
  </dl>
150
150
 
@@ -166,7 +166,7 @@
166
166
  <li class="public ">
167
167
  <span class="summary_signature">
168
168
 
169
- <a href="#err-class_method" title="err (class method)">.<strong>err</strong>(inner) &#x21d2; Result::Err[OkType, ErrType] </a>
169
+ <a href="#err-class_method" title="err (class method)">.<strong>err</strong>(_t_ok, inner) &#x21d2; Result::Err[T.type_parameter(:OkType), T.type_parameter(:ErrType)] </a>
170
170
 
171
171
 
172
172
 
@@ -188,7 +188,7 @@
188
188
  <li class="public ">
189
189
  <span class="summary_signature">
190
190
 
191
- <a href="#from_results-class_method" title="from_results (class method)">.<strong>from_results</strong>(results) &#x21d2; Result[OkType, ErrType] </a>
191
+ <a href="#from_results-class_method" title="from_results (class method)">.<strong>from_results</strong>(results) &#x21d2; Result[T::Enumerable[T.type_parameter(:T)], T::Enumerable[T.type_parameter(:E)]] </a>
192
192
 
193
193
 
194
194
 
@@ -210,7 +210,7 @@
210
210
  <li class="public ">
211
211
  <span class="summary_signature">
212
212
 
213
- <a href="#ok-class_method" title="ok (class method)">.<strong>ok</strong>(inner) &#x21d2; Result::Ok[OkType, ErrType] </a>
213
+ <a href="#ok-class_method" title="ok (class method)">.<strong>ok</strong>(inner, _t_err) &#x21d2; Result::Ok[T.type_parameter(:OkType), T.type_parameter(:ErrType)] </a>
214
214
 
215
215
 
216
216
 
@@ -650,7 +650,7 @@
650
650
  <div class="method_details first">
651
651
  <h3 class="signature first" id="err-class_method">
652
652
 
653
- .<strong>err</strong>(inner) &#x21d2; <tt><span class='object_link'><a href="Result/Err.html" title="Mangrove::Result::Err (class)">Result::Err</a></span>[<span class='object_link'><a href="#OkType-constant" title="Mangrove::Result::OkType (constant)">OkType</a></span>, <span class='object_link'><a href="#ErrType-constant" title="Mangrove::Result::ErrType (constant)">ErrType</a></span>]</tt>
653
+ .<strong>err</strong>(_t_ok, inner) &#x21d2; <tt><span class='object_link'><a href="Result/Err.html" title="Mangrove::Result::Err (class)">Result::Err</a></span>[T.type_parameter(:OkType), T.type_parameter(:ErrType)]</tt>
654
654
 
655
655
 
656
656
 
@@ -666,12 +666,23 @@
666
666
  <p class="tag_title">Parameters:</p>
667
667
  <ul class="param">
668
668
 
669
+ <li>
670
+
671
+ <span class='name'>_t_ok</span>
672
+
673
+
674
+ <span class='type'>(<tt>T::Class[T.type_parameter(:OkType)]</tt>)</span>
675
+
676
+
677
+
678
+ </li>
679
+
669
680
  <li>
670
681
 
671
682
  <span class='name'>inner</span>
672
683
 
673
684
 
674
- <span class='type'>(<tt><span class='object_link'><a href="#ErrType-constant" title="Mangrove::Result::ErrType (constant)">ErrType</a></span></tt>)</span>
685
+ <span class='type'>(<tt>T.type_parameter(:ErrType)</tt>)</span>
675
686
 
676
687
 
677
688
 
@@ -685,7 +696,7 @@
685
696
  <li>
686
697
 
687
698
 
688
- <span class='type'>(<tt><span class='object_link'><a href="Result/Err.html" title="Mangrove::Result::Err (class)">Result::Err</a></span>[<span class='object_link'><a href="#OkType-constant" title="Mangrove::Result::OkType (constant)">OkType</a></span>, <span class='object_link'><a href="#ErrType-constant" title="Mangrove::Result::ErrType (constant)">ErrType</a></span>]</tt>)</span>
699
+ <span class='type'>(<tt><span class='object_link'><a href="Result/Err.html" title="Mangrove::Result::Err (class)">Result::Err</a></span>[T.type_parameter(:OkType), T.type_parameter(:ErrType)]</tt>)</span>
689
700
 
690
701
 
691
702
 
@@ -706,8 +717,8 @@
706
717
  <td>
707
718
  <pre class="code"><span class="info file"># File 'lib/mangrove/result.rb', line 101</span>
708
719
 
709
- <span class='kw'>def</span> <span class='id identifier rubyid_err'>err</span><span class='lparen'>(</span><span class='id identifier rubyid_inner'>inner</span><span class='rparen'>)</span>
710
- <span class='const'><span class='object_link'><a href="" 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='lbracket'>[</span><span class='const'><span class='object_link'><a href="#OkType-constant" title="Mangrove::Result::OkType (constant)">OkType</a></span></span><span class='comma'>,</span> <span class='const'><span class='object_link'><a href="#ErrType-constant" title="Mangrove::Result::ErrType (constant)">ErrType</a></span></span><span class='rbracket'>]</span><span class='period'>.</span><span class='id identifier rubyid_new'>new</span><span class='lparen'>(</span><span class='id identifier rubyid_inner'>inner</span><span class='rparen'>)</span>
720
+ <span class='kw'>def</span> <span class='id identifier rubyid_err'>err</span><span class='lparen'>(</span><span class='id identifier rubyid__t_ok'>_t_ok</span><span class='comma'>,</span> <span class='id identifier rubyid_inner'>inner</span><span class='rparen'>)</span>
721
+ <span class='const'><span class='object_link'><a href="" 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='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'>:OkType</span><span class='rparen'>)</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'>:ErrType</span><span class='rparen'>)</span><span class='rbracket'>]</span><span class='period'>.</span><span class='id identifier rubyid_new'>new</span><span class='lparen'>(</span><span class='id identifier rubyid_inner'>inner</span><span class='rparen'>)</span>
711
722
  <span class='kw'>end</span></pre>
712
723
  </td>
713
724
  </tr>
@@ -717,7 +728,7 @@
717
728
  <div class="method_details ">
718
729
  <h3 class="signature " id="from_results-class_method">
719
730
 
720
- .<strong>from_results</strong>(results) &#x21d2; <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>, <span class='object_link'><a href="#ErrType-constant" title="Mangrove::Result::ErrType (constant)">ErrType</a></span>]</tt>
731
+ .<strong>from_results</strong>(results) &#x21d2; <tt><span class='object_link'><a href="" title="Mangrove::Result (module)">Result</a></span>[T::Enumerable[T.type_parameter(:T)], T::Enumerable[T.type_parameter(:E)]]</tt>
721
732
 
722
733
 
723
734
 
@@ -738,7 +749,7 @@
738
749
  <span class='name'>results</span>
739
750
 
740
751
 
741
- <span class='type'>(<tt>Enumerable&lt;<span class='object_link'><a href="" title="Mangrove::Result (module)">Mangrove::Result</a></span>[<span class='object_link'><a href="#OkType-constant" title="Mangrove::Result::OkType (constant)">OkType</a></span>, <span class='object_link'><a href="#ErrType-constant" title="Mangrove::Result::ErrType (constant)">ErrType</a></span>]&gt;</tt>)</span>
752
+ <span class='type'>(<tt>Enumerable&lt;<span class='object_link'><a href="" title="Mangrove::Result (module)">Result</a></span>[T.type_parameter(:T), T.type_parameter(:E)]&gt;</tt>)</span>
742
753
 
743
754
 
744
755
 
@@ -752,7 +763,7 @@
752
763
  <li>
753
764
 
754
765
 
755
- <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>, <span class='object_link'><a href="#ErrType-constant" title="Mangrove::Result::ErrType (constant)">ErrType</a></span>]</tt>)</span>
766
+ <span class='type'>(<tt><span class='object_link'><a href="" title="Mangrove::Result (module)">Result</a></span>[T::Enumerable[T.type_parameter(:T)], T::Enumerable[T.type_parameter(:E)]]</tt>)</span>
756
767
 
757
768
 
758
769
 
@@ -786,10 +797,10 @@
786
797
 
787
798
  <span class='kw'>if</span> <span class='id identifier rubyid_errs'>errs</span><span class='period'>.</span><span class='id identifier rubyid_empty?'>empty?</span>
788
799
  <span class='comment'># This is safe as errs is empty.
789
- </span> <span class='const'><span class='object_link'><a href="" 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='id identifier rubyid_results'>results</span><span class='period'>.</span><span class='id identifier rubyid_map'>map</span> <span class='lbrace'>{</span> <span class='op'>|</span><span class='id identifier rubyid_r'>r</span><span class='op'>|</span> <span class='const'>T</span><span class='period'>.</span><span class='id identifier rubyid_cast'>cast</span><span class='lparen'>(</span><span class='id identifier rubyid_r'>r</span><span class='comma'>,</span> <span class='const'><span class='object_link'><a href="" 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='lbracket'>[</span><span class='const'><span class='object_link'><a href="#OkType-constant" title="Mangrove::Result::OkType (constant)">OkType</a></span></span><span class='comma'>,</span> <span class='const'><span class='object_link'><a href="#ErrType-constant" title="Mangrove::Result::ErrType (constant)">ErrType</a></span></span><span class='rbracket'>]</span><span class='rparen'>)</span><span class='period'>.</span><span class='id identifier rubyid_ok_inner'>ok_inner</span> <span class='rbrace'>}</span><span class='rparen'>)</span>
800
+ </span> <span class='const'><span class='object_link'><a href="" 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='lbracket'>[</span><span class='const'>T</span><span class='op'>::</span><span class='const'>Enumerable</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'>:T</span><span class='rparen'>)</span><span class='rbracket'>]</span><span class='comma'>,</span> <span class='const'>T</span><span class='op'>::</span><span class='const'>Enumerable</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'>:E</span><span class='rparen'>)</span><span class='rbracket'>]</span><span class='rbracket'>]</span><span class='period'>.</span><span class='id identifier rubyid_new'>new</span><span class='lparen'>(</span><span class='id identifier rubyid_results'>results</span><span class='period'>.</span><span class='id identifier rubyid_map'>map</span> <span class='lbrace'>{</span> <span class='op'>|</span><span class='id identifier rubyid_r'>r</span><span class='op'>|</span> <span class='const'>T</span><span class='period'>.</span><span class='id identifier rubyid_cast'>cast</span><span class='lparen'>(</span><span class='id identifier rubyid_r'>r</span><span class='comma'>,</span> <span class='const'><span class='object_link'><a href="" 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='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'>:T</span><span class='rparen'>)</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'>:E</span><span class='rparen'>)</span><span class='rbracket'>]</span><span class='rparen'>)</span><span class='period'>.</span><span class='id identifier rubyid_ok_inner'>ok_inner</span> <span class='rbrace'>}</span><span class='rparen'>)</span>
790
801
  <span class='kw'>else</span>
791
802
  <span class='comment'># This is safe as errs is results where err? is true
792
- </span> <span class='const'><span class='object_link'><a href="" 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_errs'>errs</span><span class='period'>.</span><span class='id identifier rubyid_map'>map</span> <span class='lbrace'>{</span> <span class='op'>|</span><span class='id identifier rubyid_r'>r</span><span class='op'>|</span> <span class='const'>T</span><span class='period'>.</span><span class='id identifier rubyid_cast'>cast</span><span class='lparen'>(</span><span class='id identifier rubyid_r'>r</span><span class='comma'>,</span> <span class='const'><span class='object_link'><a href="" 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='lbracket'>[</span><span class='const'><span class='object_link'><a href="#OkType-constant" title="Mangrove::Result::OkType (constant)">OkType</a></span></span><span class='comma'>,</span> <span class='const'><span class='object_link'><a href="#ErrType-constant" title="Mangrove::Result::ErrType (constant)">ErrType</a></span></span><span class='rbracket'>]</span><span class='rparen'>)</span><span class='period'>.</span><span class='id identifier rubyid_err_inner'>err_inner</span> <span class='rbrace'>}</span><span class='rparen'>)</span>
803
+ </span> <span class='const'><span class='object_link'><a href="" 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='lbracket'>[</span><span class='const'>T</span><span class='op'>::</span><span class='const'>Enumerable</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'>:T</span><span class='rparen'>)</span><span class='rbracket'>]</span><span class='comma'>,</span> <span class='const'>T</span><span class='op'>::</span><span class='const'>Enumerable</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'>:E</span><span class='rparen'>)</span><span class='rbracket'>]</span><span class='rbracket'>]</span><span class='period'>.</span><span class='id identifier rubyid_new'>new</span><span class='lparen'>(</span><span class='id identifier rubyid_errs'>errs</span><span class='period'>.</span><span class='id identifier rubyid_map'>map</span> <span class='lbrace'>{</span> <span class='op'>|</span><span class='id identifier rubyid_r'>r</span><span class='op'>|</span> <span class='const'>T</span><span class='period'>.</span><span class='id identifier rubyid_cast'>cast</span><span class='lparen'>(</span><span class='id identifier rubyid_r'>r</span><span class='comma'>,</span> <span class='const'><span class='object_link'><a href="" 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='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'>:T</span><span class='rparen'>)</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'>:E</span><span class='rparen'>)</span><span class='rbracket'>]</span><span class='rparen'>)</span><span class='period'>.</span><span class='id identifier rubyid_err_inner'>err_inner</span> <span class='rbrace'>}</span><span class='rparen'>)</span>
793
804
  <span class='kw'>end</span>
794
805
  <span class='kw'>end</span></pre>
795
806
  </td>
@@ -800,7 +811,7 @@
800
811
  <div class="method_details ">
801
812
  <h3 class="signature " id="ok-class_method">
802
813
 
803
- .<strong>ok</strong>(inner) &#x21d2; <tt><span class='object_link'><a href="Result/Ok.html" title="Mangrove::Result::Ok (class)">Result::Ok</a></span>[<span class='object_link'><a href="#OkType-constant" title="Mangrove::Result::OkType (constant)">OkType</a></span>, <span class='object_link'><a href="#ErrType-constant" title="Mangrove::Result::ErrType (constant)">ErrType</a></span>]</tt>
814
+ .<strong>ok</strong>(inner, _t_err) &#x21d2; <tt><span class='object_link'><a href="Result/Ok.html" title="Mangrove::Result::Ok (class)">Result::Ok</a></span>[T.type_parameter(:OkType), T.type_parameter(:ErrType)]</tt>
804
815
 
805
816
 
806
817
 
@@ -821,7 +832,18 @@
821
832
  <span class='name'>inner</span>
822
833
 
823
834
 
824
- <span class='type'>(<tt><span class='object_link'><a href="#OkType-constant" title="Mangrove::Result::OkType (constant)">OkType</a></span></tt>)</span>
835
+ <span class='type'>(<tt>T.type_parameter(:OkType)</tt>)</span>
836
+
837
+
838
+
839
+ </li>
840
+
841
+ <li>
842
+
843
+ <span class='name'>_t_err</span>
844
+
845
+
846
+ <span class='type'>(<tt>T::Class[T.type_parameter(:ErrType)]</tt>)</span>
825
847
 
826
848
 
827
849
 
@@ -835,7 +857,7 @@
835
857
  <li>
836
858
 
837
859
 
838
- <span class='type'>(<tt><span class='object_link'><a href="Result/Ok.html" title="Mangrove::Result::Ok (class)">Result::Ok</a></span>[<span class='object_link'><a href="#OkType-constant" title="Mangrove::Result::OkType (constant)">OkType</a></span>, <span class='object_link'><a href="#ErrType-constant" title="Mangrove::Result::ErrType (constant)">ErrType</a></span>]</tt>)</span>
860
+ <span class='type'>(<tt><span class='object_link'><a href="Result/Ok.html" title="Mangrove::Result::Ok (class)">Result::Ok</a></span>[T.type_parameter(:OkType), T.type_parameter(:ErrType)]</tt>)</span>
839
861
 
840
862
 
841
863
 
@@ -856,8 +878,8 @@
856
878
  <td>
857
879
  <pre class="code"><span class="info file"># File 'lib/mangrove/result.rb', line 96</span>
858
880
 
859
- <span class='kw'>def</span> <span class='id identifier rubyid_ok'>ok</span><span class='lparen'>(</span><span class='id identifier rubyid_inner'>inner</span><span class='rparen'>)</span>
860
- <span class='const'><span class='object_link'><a href="" 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='lbracket'>[</span><span class='const'><span class='object_link'><a href="#OkType-constant" title="Mangrove::Result::OkType (constant)">OkType</a></span></span><span class='comma'>,</span> <span class='const'><span class='object_link'><a href="#ErrType-constant" title="Mangrove::Result::ErrType (constant)">ErrType</a></span></span><span class='rbracket'>]</span><span class='period'>.</span><span class='id identifier rubyid_new'>new</span><span class='lparen'>(</span><span class='id identifier rubyid_inner'>inner</span><span class='rparen'>)</span>
881
+ <span class='kw'>def</span> <span class='id identifier rubyid_ok'>ok</span><span class='lparen'>(</span><span class='id identifier rubyid_inner'>inner</span><span class='comma'>,</span> <span class='id identifier rubyid__t_err'>_t_err</span><span class='rparen'>)</span>
882
+ <span class='const'><span class='object_link'><a href="" 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='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'>:OkType</span><span class='rparen'>)</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'>:ErrType</span><span class='rparen'>)</span><span class='rbracket'>]</span><span class='period'>.</span><span class='id identifier rubyid_new'>new</span><span class='lparen'>(</span><span class='id identifier rubyid_inner'>inner</span><span class='rparen'>)</span>
861
883
  <span class='kw'>end</span></pre>
862
884
  </td>
863
885
  </tr>
@@ -965,7 +987,7 @@
965
987
  <span class='name'>other</span>
966
988
 
967
989
 
968
- <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>
990
+ <span class='type'>(<tt><span class='object_link'><a href="" title="Mangrove::Result (module)">Result</a></span>[T.type_parameter(:NewOkType), T.untyped]</tt>)</span>
969
991
 
970
992
 
971
993
 
@@ -1032,7 +1054,7 @@
1032
1054
  <span class='name'>block</span>
1033
1055
 
1034
1056
 
1035
- <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>
1057
+ <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), T.untyped])</tt>)</span>
1036
1058
 
1037
1059
 
1038
1060
 
@@ -1110,7 +1132,7 @@
1110
1132
  <span class='name'>block</span>
1111
1133
 
1112
1134
 
1113
- <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>
1135
+ <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), T.untyped])</tt>)</span>
1114
1136
 
1115
1137
 
1116
1138
 
@@ -1861,7 +1883,7 @@
1861
1883
  <span class='name'>other</span>
1862
1884
 
1863
1885
 
1864
- <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>, <span class='object_link'><a href="#ErrType-constant" title="Mangrove::Result::ErrType (constant)">ErrType</a></span>]</tt>)</span>
1886
+ <span class='type'>(<tt><span class='object_link'><a href="" title="Mangrove::Result (module)">Result</a></span>[T.untyped, T.untyped]</tt>)</span>
1865
1887
 
1866
1888
 
1867
1889
 
@@ -1928,7 +1950,7 @@
1928
1950
  <span class='name'>block</span>
1929
1951
 
1930
1952
 
1931
- <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>
1953
+ <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>[T.untyped, T.type_parameter(:NewErrType)])</tt>)</span>
1932
1954
 
1933
1955
 
1934
1956
 
@@ -2006,7 +2028,7 @@
2006
2028
  <span class='name'>block</span>
2007
2029
 
2008
2030
 
2009
- <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>
2031
+ <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>[T.untyped, T.type_parameter(:NewErrType)])</tt>)</span>
2010
2032
 
2011
2033
 
2012
2034
 
@@ -2102,9 +2124,9 @@
2102
2124
  </div>
2103
2125
 
2104
2126
  <div id="footer">
2105
- Generated on Thu Oct 26 12:34:21 2023 by
2127
+ Generated on Tue Oct 31 12:03:29 2023 by
2106
2128
  <a href="https://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
2107
- 0.9.34 (ruby-3.1.2).
2129
+ 0.9.34 (ruby-3.2.2).
2108
2130
  </div>
2109
2131
 
2110
2132
  </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'>&quot;</span><span class='tstring_content'>0.14.0</span><span class='tstring_end'>&quot;</span></span></pre></dd>
121
+ <dd><pre class="code"><span class='tstring'><span class='tstring_beg'>&quot;</span><span class='tstring_content'>0.15.0</span><span class='tstring_end'>&quot;</span></span></pre></dd>
122
122
 
123
123
  </dl>
124
124
 
@@ -134,9 +134,9 @@
134
134
  </div>
135
135
 
136
136
  <div id="footer">
137
- Generated on Thu Oct 26 12:34:21 2023 by
137
+ Generated on Tue Oct 31 12:03:29 2023 by
138
138
  <a href="https://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
139
- 0.9.34 (ruby-3.1.2).
139
+ 0.9.34 (ruby-3.2.2).
140
140
  </div>
141
141
 
142
142
  </div>
data/docs/_index.html CHANGED
@@ -88,23 +88,23 @@
88
88
  </li>
89
89
 
90
90
  <li>
91
- <span class='object_link'><a href="Mangrove/Option/ControlSignal.html" title="Mangrove::Option::ControlSignal (class)">ControlSignal</a></span>
91
+ <span class='object_link'><a href="Mangrove/ControlFlow/ControlSignal.html" title="Mangrove::ControlFlow::ControlSignal (module)">ControlSignal</a></span>
92
92
 
93
- <small>(Mangrove::Option)</small>
93
+ <small>(Mangrove::ControlFlow)</small>
94
94
 
95
95
  </li>
96
96
 
97
97
  <li>
98
- <span class='object_link'><a href="Mangrove/Result/ControlSignal.html" title="Mangrove::Result::ControlSignal (class)">ControlSignal</a></span>
98
+ <span class='object_link'><a href="Mangrove/Option/ControlSignal.html" title="Mangrove::Option::ControlSignal (class)">ControlSignal</a></span>
99
99
 
100
- <small>(Mangrove::Result)</small>
100
+ <small>(Mangrove::Option)</small>
101
101
 
102
102
  </li>
103
103
 
104
104
  <li>
105
- <span class='object_link'><a href="Mangrove/ControlFlow/ControlSignal.html" title="Mangrove::ControlFlow::ControlSignal (module)">ControlSignal</a></span>
105
+ <span class='object_link'><a href="Mangrove/Result/ControlSignal.html" title="Mangrove::Result::ControlSignal (class)">ControlSignal</a></span>
106
106
 
107
- <small>(Mangrove::ControlFlow)</small>
107
+ <small>(Mangrove::Result)</small>
108
108
 
109
109
  </li>
110
110
 
@@ -215,9 +215,9 @@
215
215
  </div>
216
216
 
217
217
  <div id="footer">
218
- Generated on Thu Oct 26 12:34:21 2023 by
218
+ Generated on Tue Oct 31 12:03:29 2023 by
219
219
  <a href="https://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
220
- 0.9.34 (ruby-3.1.2).
220
+ 0.9.34 (ruby-3.2.2).
221
221
  </div>
222
222
 
223
223
  </div>
@@ -162,9 +162,9 @@ rake release
162
162
  </div></div>
163
163
 
164
164
  <div id="footer">
165
- Generated on Thu Oct 26 12:34:21 2023 by
165
+ Generated on Tue Oct 31 12:03:29 2023 by
166
166
  <a href="https://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
167
- 0.9.34 (ruby-3.1.2).
167
+ 0.9.34 (ruby-3.2.2).
168
168
  </div>
169
169
 
170
170
  </div>
data/docs/index.html CHANGED
@@ -162,9 +162,9 @@ rake release
162
162
  </div></div>
163
163
 
164
164
  <div id="footer">
165
- Generated on Thu Oct 26 12:34:21 2023 by
165
+ Generated on Tue Oct 31 12:03:29 2023 by
166
166
  <a href="https://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
167
- 0.9.34 (ruby-3.1.2).
167
+ 0.9.34 (ruby-3.2.2).
168
168
  </div>
169
169
 
170
170
  </div>