mangrove 0.5.0 → 0.6.0

Sign up to get free protection for your applications and to get access to all the features.
@@ -943,7 +943,7 @@
943
943
  </div>
944
944
 
945
945
  <div id="footer">
946
- Generated on Thu Aug 31 15:04:26 2023 by
946
+ Generated on Fri Sep 1 17:32:57 2023 by
947
947
  <a href="https://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
948
948
  0.9.34 (ruby-3.2.2).
949
949
  </div>
@@ -917,7 +917,7 @@
917
917
  </div>
918
918
 
919
919
  <div id="footer">
920
- Generated on Thu Aug 31 15:04:25 2023 by
920
+ Generated on Fri Sep 1 17:32:57 2023 by
921
921
  <a href="https://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
922
922
  0.9.34 (ruby-3.2.2).
923
923
  </div>
@@ -879,7 +879,7 @@
879
879
  </div>
880
880
 
881
881
  <div id="footer">
882
- Generated on Thu Aug 31 15:04:25 2023 by
882
+ Generated on Fri Sep 1 17:32:57 2023 by
883
883
  <a href="https://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
884
884
  0.9.34 (ruby-3.2.2).
885
885
  </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.4.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.6.0</span><span class='tstring_end'>&quot;</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 Thu Aug 31 15:04:25 2023 by
137
+ Generated on Fri Sep 1 17:32:57 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.2.2).
140
140
  </div>
data/docs/_index.html CHANGED
@@ -247,7 +247,7 @@
247
247
  </div>
248
248
 
249
249
  <div id="footer">
250
- Generated on Thu Aug 31 15:04:25 2023 by
250
+ Generated on Fri Sep 1 17:32:57 2023 by
251
251
  <a href="https://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
252
252
  0.9.34 (ruby-3.2.2).
253
253
  </div>
@@ -166,7 +166,7 @@ rake release
166
166
  </div></div>
167
167
 
168
168
  <div id="footer">
169
- Generated on Thu Aug 31 15:04:25 2023 by
169
+ Generated on Fri Sep 1 17:32:57 2023 by
170
170
  <a href="https://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
171
171
  0.9.34 (ruby-3.2.2).
172
172
  </div>
data/docs/index.html CHANGED
@@ -166,7 +166,7 @@ rake release
166
166
  </div></div>
167
167
 
168
168
  <div id="footer">
169
- Generated on Thu Aug 31 15:04:25 2023 by
169
+ Generated on Fri Sep 1 17:32:57 2023 by
170
170
  <a href="https://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
171
171
  0.9.34 (ruby-3.2.2).
172
172
  </div>
@@ -46,8 +46,8 @@
46
46
 
47
47
  <li class="odd ">
48
48
  <div class="item">
49
- <span class='object_link'><a href="Mangrove/Result/Ok.html#==-instance_method" title="Mangrove::Result::Ok#== (method)">#==</a></span>
50
- <small>Mangrove::Result::Ok</small>
49
+ <span class='object_link'><a href="Mangrove/Option/ControlSignal.html#==-instance_method" title="Mangrove::Option::ControlSignal#== (method)">#==</a></span>
50
+ <small>Mangrove::Option::ControlSignal</small>
51
51
  </div>
52
52
  </li>
53
53
 
@@ -62,16 +62,16 @@
62
62
 
63
63
  <li class="odd ">
64
64
  <div class="item">
65
- <span class='object_link'><a href="Mangrove/Option.html#==-instance_method" title="Mangrove::Option#== (method)">#==</a></span>
66
- <small>Mangrove::Option</small>
65
+ <span class='object_link'><a href="Mangrove/Result.html#==-instance_method" title="Mangrove::Result#== (method)">#==</a></span>
66
+ <small>Mangrove::Result</small>
67
67
  </div>
68
68
  </li>
69
69
 
70
70
 
71
71
  <li class="even ">
72
72
  <div class="item">
73
- <span class='object_link'><a href="Mangrove/Option/None.html#==-instance_method" title="Mangrove::Option::None#== (method)">#==</a></span>
74
- <small>Mangrove::Option::None</small>
73
+ <span class='object_link'><a href="Mangrove/Result/Ok.html#==-instance_method" title="Mangrove::Result::Ok#== (method)">#==</a></span>
74
+ <small>Mangrove::Result::Ok</small>
75
75
  </div>
76
76
  </li>
77
77
 
@@ -86,24 +86,24 @@
86
86
 
87
87
  <li class="even ">
88
88
  <div class="item">
89
- <span class='object_link'><a href="Mangrove/Result/Err.html#==-instance_method" title="Mangrove::Result::Err#== (method)">#==</a></span>
90
- <small>Mangrove::Result::Err</small>
89
+ <span class='object_link'><a href="Mangrove/Option.html#==-instance_method" title="Mangrove::Option#== (method)">#==</a></span>
90
+ <small>Mangrove::Option</small>
91
91
  </div>
92
92
  </li>
93
93
 
94
94
 
95
95
  <li class="odd ">
96
96
  <div class="item">
97
- <span class='object_link'><a href="Mangrove/Result.html#==-instance_method" title="Mangrove::Result#== (method)">#==</a></span>
98
- <small>Mangrove::Result</small>
97
+ <span class='object_link'><a href="Mangrove/Result/Err.html#==-instance_method" title="Mangrove::Result::Err#== (method)">#==</a></span>
98
+ <small>Mangrove::Result::Err</small>
99
99
  </div>
100
100
  </li>
101
101
 
102
102
 
103
103
  <li class="even ">
104
104
  <div class="item">
105
- <span class='object_link'><a href="Mangrove/Option/ControlSignal.html#==-instance_method" title="Mangrove::Option::ControlSignal#== (method)">#==</a></span>
106
- <small>Mangrove::Option::ControlSignal</small>
105
+ <span class='object_link'><a href="Mangrove/Option/None.html#==-instance_method" title="Mangrove::Option::None#== (method)">#==</a></span>
106
+ <small>Mangrove::Option::None</small>
107
107
  </div>
108
108
  </li>
109
109
 
@@ -118,16 +118,16 @@
118
118
 
119
119
  <li class="even ">
120
120
  <div class="item">
121
- <span class='object_link'><a href="Mangrove/Result/Err.html#err%3F-instance_method" title="Mangrove::Result::Err#err? (method)">#err?</a></span>
122
- <small>Mangrove::Result::Err</small>
121
+ <span class='object_link'><a href="Mangrove/Result.html#err%3F-instance_method" title="Mangrove::Result#err? (method)">#err?</a></span>
122
+ <small>Mangrove::Result</small>
123
123
  </div>
124
124
  </li>
125
125
 
126
126
 
127
127
  <li class="odd ">
128
128
  <div class="item">
129
- <span class='object_link'><a href="Mangrove/Result.html#err%3F-instance_method" title="Mangrove::Result#err? (method)">#err?</a></span>
130
- <small>Mangrove::Result</small>
129
+ <span class='object_link'><a href="Mangrove/Result/Err.html#err%3F-instance_method" title="Mangrove::Result::Err#err? (method)">#err?</a></span>
130
+ <small>Mangrove::Result::Err</small>
131
131
  </div>
132
132
  </li>
133
133
 
@@ -150,48 +150,48 @@
150
150
 
151
151
  <li class="even ">
152
152
  <div class="item">
153
- <span class='object_link'><a href="Mangrove/Option/None.html#expect!-instance_method" title="Mangrove::Option::None#expect! (method)">#expect!</a></span>
154
- <small>Mangrove::Option::None</small>
153
+ <span class='object_link'><a href="Mangrove/Option.html#expect!-instance_method" title="Mangrove::Option#expect! (method)">#expect!</a></span>
154
+ <small>Mangrove::Option</small>
155
155
  </div>
156
156
  </li>
157
157
 
158
158
 
159
159
  <li class="odd ">
160
160
  <div class="item">
161
- <span class='object_link'><a href="Mangrove/Option.html#expect!-instance_method" title="Mangrove::Option#expect! (method)">#expect!</a></span>
162
- <small>Mangrove::Option</small>
161
+ <span class='object_link'><a href="Mangrove/Result/Ok.html#expect!-instance_method" title="Mangrove::Result::Ok#expect! (method)">#expect!</a></span>
162
+ <small>Mangrove::Result::Ok</small>
163
163
  </div>
164
164
  </li>
165
165
 
166
166
 
167
167
  <li class="even ">
168
168
  <div class="item">
169
- <span class='object_link'><a href="Mangrove/Result/Ok.html#expect!-instance_method" title="Mangrove::Result::Ok#expect! (method)">#expect!</a></span>
170
- <small>Mangrove::Result::Ok</small>
169
+ <span class='object_link'><a href="Mangrove/Result.html#expect!-instance_method" title="Mangrove::Result#expect! (method)">#expect!</a></span>
170
+ <small>Mangrove::Result</small>
171
171
  </div>
172
172
  </li>
173
173
 
174
174
 
175
175
  <li class="odd ">
176
176
  <div class="item">
177
- <span class='object_link'><a href="Mangrove/Option/Some.html#expect!-instance_method" title="Mangrove::Option::Some#expect! (method)">#expect!</a></span>
178
- <small>Mangrove::Option::Some</small>
177
+ <span class='object_link'><a href="Mangrove/Result/Err.html#expect!-instance_method" title="Mangrove::Result::Err#expect! (method)">#expect!</a></span>
178
+ <small>Mangrove::Result::Err</small>
179
179
  </div>
180
180
  </li>
181
181
 
182
182
 
183
183
  <li class="even ">
184
184
  <div class="item">
185
- <span class='object_link'><a href="Mangrove/Result/Err.html#expect!-instance_method" title="Mangrove::Result::Err#expect! (method)">#expect!</a></span>
186
- <small>Mangrove::Result::Err</small>
185
+ <span class='object_link'><a href="Mangrove/Option/None.html#expect!-instance_method" title="Mangrove::Option::None#expect! (method)">#expect!</a></span>
186
+ <small>Mangrove::Option::None</small>
187
187
  </div>
188
188
  </li>
189
189
 
190
190
 
191
191
  <li class="odd ">
192
192
  <div class="item">
193
- <span class='object_link'><a href="Mangrove/Result.html#expect!-instance_method" title="Mangrove::Result#expect! (method)">#expect!</a></span>
194
- <small>Mangrove::Result</small>
193
+ <span class='object_link'><a href="Mangrove/Option/Some.html#expect!-instance_method" title="Mangrove::Option::Some#expect! (method)">#expect!</a></span>
194
+ <small>Mangrove::Option::Some</small>
195
195
  </div>
196
196
  </li>
197
197
 
@@ -222,64 +222,64 @@
222
222
 
223
223
  <li class="odd ">
224
224
  <div class="item">
225
- <span class='object_link'><a href="Mangrove/Result/Ok.html#initialize-instance_method" title="Mangrove::Result::Ok#initialize (method)">#initialize</a></span>
226
- <small>Mangrove::Result::Ok</small>
225
+ <span class='object_link'><a href="Mangrove/Option/ControlSignal.html#initialize-instance_method" title="Mangrove::Option::ControlSignal#initialize (method)">#initialize</a></span>
226
+ <small>Mangrove::Option::ControlSignal</small>
227
227
  </div>
228
228
  </li>
229
229
 
230
230
 
231
231
  <li class="even ">
232
232
  <div class="item">
233
- <span class='object_link'><a href="Mangrove/Result/Err.html#initialize-instance_method" title="Mangrove::Result::Err#initialize (method)">#initialize</a></span>
234
- <small>Mangrove::Result::Err</small>
233
+ <span class='object_link'><a href="Mangrove/Option/Some.html#initialize-instance_method" title="Mangrove::Option::Some#initialize (method)">#initialize</a></span>
234
+ <small>Mangrove::Option::Some</small>
235
235
  </div>
236
236
  </li>
237
237
 
238
238
 
239
239
  <li class="odd ">
240
240
  <div class="item">
241
- <span class='object_link'><a href="Mangrove/Option/Some.html#initialize-instance_method" title="Mangrove::Option::Some#initialize (method)">#initialize</a></span>
242
- <small>Mangrove::Option::Some</small>
241
+ <span class='object_link'><a href="Mangrove/Result/ControlSignal.html#initialize-instance_method" title="Mangrove::Result::ControlSignal#initialize (method)">#initialize</a></span>
242
+ <small>Mangrove::Result::ControlSignal</small>
243
243
  </div>
244
244
  </li>
245
245
 
246
246
 
247
247
  <li class="even ">
248
248
  <div class="item">
249
- <span class='object_link'><a href="Mangrove/Option/ControlSignal.html#initialize-instance_method" title="Mangrove::Option::ControlSignal#initialize (method)">#initialize</a></span>
250
- <small>Mangrove::Option::ControlSignal</small>
249
+ <span class='object_link'><a href="Mangrove/Result/Err.html#initialize-instance_method" title="Mangrove::Result::Err#initialize (method)">#initialize</a></span>
250
+ <small>Mangrove::Result::Err</small>
251
251
  </div>
252
252
  </li>
253
253
 
254
254
 
255
255
  <li class="odd ">
256
256
  <div class="item">
257
- <span class='object_link'><a href="Mangrove/Result/ControlSignal.html#initialize-instance_method" title="Mangrove::Result::ControlSignal#initialize (method)">#initialize</a></span>
258
- <small>Mangrove::Result::ControlSignal</small>
257
+ <span class='object_link'><a href="Mangrove/Result/Ok.html#initialize-instance_method" title="Mangrove::Result::Ok#initialize (method)">#initialize</a></span>
258
+ <small>Mangrove::Result::Ok</small>
259
259
  </div>
260
260
  </li>
261
261
 
262
262
 
263
263
  <li class="even ">
264
264
  <div class="item">
265
- <span class='object_link'><a href="Mangrove/ControlFlow/ControlSignal.html#inner_value-instance_method" title="Mangrove::ControlFlow::ControlSignal#inner_value (method)">#inner_value</a></span>
266
- <small>Mangrove::ControlFlow::ControlSignal</small>
265
+ <span class='object_link'><a href="Mangrove/Result/ControlSignal.html#inner_value-instance_method" title="Mangrove::Result::ControlSignal#inner_value (method)">#inner_value</a></span>
266
+ <small>Mangrove::Result::ControlSignal</small>
267
267
  </div>
268
268
  </li>
269
269
 
270
270
 
271
271
  <li class="odd ">
272
272
  <div class="item">
273
- <span class='object_link'><a href="Mangrove/Option/ControlSignal.html#inner_value-instance_method" title="Mangrove::Option::ControlSignal#inner_value (method)">#inner_value</a></span>
274
- <small>Mangrove::Option::ControlSignal</small>
273
+ <span class='object_link'><a href="Mangrove/ControlFlow/ControlSignal.html#inner_value-instance_method" title="Mangrove::ControlFlow::ControlSignal#inner_value (method)">#inner_value</a></span>
274
+ <small>Mangrove::ControlFlow::ControlSignal</small>
275
275
  </div>
276
276
  </li>
277
277
 
278
278
 
279
279
  <li class="even ">
280
280
  <div class="item">
281
- <span class='object_link'><a href="Mangrove/Result/ControlSignal.html#inner_value-instance_method" title="Mangrove::Result::ControlSignal#inner_value (method)">#inner_value</a></span>
282
- <small>Mangrove::Result::ControlSignal</small>
281
+ <span class='object_link'><a href="Mangrove/Option/ControlSignal.html#inner_value-instance_method" title="Mangrove::Option::ControlSignal#inner_value (method)">#inner_value</a></span>
282
+ <small>Mangrove::Option::ControlSignal</small>
283
283
  </div>
284
284
  </li>
285
285
 
@@ -318,16 +318,16 @@
318
318
 
319
319
  <li class="odd ">
320
320
  <div class="item">
321
- <span class='object_link'><a href="Mangrove/Option/None.html#map_none-instance_method" title="Mangrove::Option::None#map_none (method)">#map_none</a></span>
322
- <small>Mangrove::Option::None</small>
321
+ <span class='object_link'><a href="Mangrove/Option.html#map_none-instance_method" title="Mangrove::Option#map_none (method)">#map_none</a></span>
322
+ <small>Mangrove::Option</small>
323
323
  </div>
324
324
  </li>
325
325
 
326
326
 
327
327
  <li class="even ">
328
328
  <div class="item">
329
- <span class='object_link'><a href="Mangrove/Option.html#map_none-instance_method" title="Mangrove::Option#map_none (method)">#map_none</a></span>
330
- <small>Mangrove::Option</small>
329
+ <span class='object_link'><a href="Mangrove/Option/None.html#map_none-instance_method" title="Mangrove::Option::None#map_none (method)">#map_none</a></span>
330
+ <small>Mangrove::Option::None</small>
331
331
  </div>
332
332
  </li>
333
333
 
@@ -342,32 +342,32 @@
342
342
 
343
343
  <li class="even ">
344
344
  <div class="item">
345
- <span class='object_link'><a href="Mangrove/Result/Err.html#map_ok-instance_method" title="Mangrove::Result::Err#map_ok (method)">#map_ok</a></span>
346
- <small>Mangrove::Result::Err</small>
345
+ <span class='object_link'><a href="Mangrove/Result/Ok.html#map_ok-instance_method" title="Mangrove::Result::Ok#map_ok (method)">#map_ok</a></span>
346
+ <small>Mangrove::Result::Ok</small>
347
347
  </div>
348
348
  </li>
349
349
 
350
350
 
351
351
  <li class="odd ">
352
352
  <div class="item">
353
- <span class='object_link'><a href="Mangrove/Result/Ok.html#map_ok-instance_method" title="Mangrove::Result::Ok#map_ok (method)">#map_ok</a></span>
354
- <small>Mangrove::Result::Ok</small>
353
+ <span class='object_link'><a href="Mangrove/Result/Err.html#map_ok-instance_method" title="Mangrove::Result::Err#map_ok (method)">#map_ok</a></span>
354
+ <small>Mangrove::Result::Err</small>
355
355
  </div>
356
356
  </li>
357
357
 
358
358
 
359
359
  <li class="even ">
360
360
  <div class="item">
361
- <span class='object_link'><a href="Mangrove/Option/None.html#map_some-instance_method" title="Mangrove::Option::None#map_some (method)">#map_some</a></span>
362
- <small>Mangrove::Option::None</small>
361
+ <span class='object_link'><a href="Mangrove/Option/Some.html#map_some-instance_method" title="Mangrove::Option::Some#map_some (method)">#map_some</a></span>
362
+ <small>Mangrove::Option::Some</small>
363
363
  </div>
364
364
  </li>
365
365
 
366
366
 
367
367
  <li class="odd ">
368
368
  <div class="item">
369
- <span class='object_link'><a href="Mangrove/Option/Some.html#map_some-instance_method" title="Mangrove::Option::Some#map_some (method)">#map_some</a></span>
370
- <small>Mangrove::Option::Some</small>
369
+ <span class='object_link'><a href="Mangrove/Option/None.html#map_some-instance_method" title="Mangrove::Option::None#map_some (method)">#map_some</a></span>
370
+ <small>Mangrove::Option::None</small>
371
371
  </div>
372
372
  </li>
373
373
 
@@ -422,16 +422,16 @@
422
422
 
423
423
  <li class="even ">
424
424
  <div class="item">
425
- <span class='object_link'><a href="Mangrove/Result/Err.html#ok%3F-instance_method" title="Mangrove::Result::Err#ok? (method)">#ok?</a></span>
426
- <small>Mangrove::Result::Err</small>
425
+ <span class='object_link'><a href="Mangrove/Result/Ok.html#ok%3F-instance_method" title="Mangrove::Result::Ok#ok? (method)">#ok?</a></span>
426
+ <small>Mangrove::Result::Ok</small>
427
427
  </div>
428
428
  </li>
429
429
 
430
430
 
431
431
  <li class="odd ">
432
432
  <div class="item">
433
- <span class='object_link'><a href="Mangrove/Result/Ok.html#ok%3F-instance_method" title="Mangrove::Result::Ok#ok? (method)">#ok?</a></span>
434
- <small>Mangrove::Result::Ok</small>
433
+ <span class='object_link'><a href="Mangrove/Result/Err.html#ok%3F-instance_method" title="Mangrove::Result::Err#ok? (method)">#ok?</a></span>
434
+ <small>Mangrove::Result::Err</small>
435
435
  </div>
436
436
  </li>
437
437
 
@@ -477,6 +477,14 @@
477
477
 
478
478
 
479
479
  <li class="odd ">
480
+ <div class="item">
481
+ <span class='object_link'><a href="Mangrove/Option.html#some%3F-instance_method" title="Mangrove::Option#some? (method)">#some?</a></span>
482
+ <small>Mangrove::Option</small>
483
+ </div>
484
+ </li>
485
+
486
+
487
+ <li class="even ">
480
488
  <div class="item">
481
489
  <span class='object_link'><a href="Mangrove/Option/None.html#some%3F-instance_method" title="Mangrove::Option::None#some? (method)">#some?</a></span>
482
490
  <small>Mangrove::Option::None</small>
@@ -484,7 +492,7 @@
484
492
  </li>
485
493
 
486
494
 
487
- <li class="even ">
495
+ <li class="odd ">
488
496
  <div class="item">
489
497
  <span class='object_link'><a href="Mangrove/Option/Some.html#some%3F-instance_method" title="Mangrove::Option::Some#some? (method)">#some?</a></span>
490
498
  <small>Mangrove::Option::Some</small>
@@ -492,17 +500,25 @@
492
500
  </li>
493
501
 
494
502
 
495
- <li class="odd ">
503
+ <li class="even ">
496
504
  <div class="item">
497
- <span class='object_link'><a href="Mangrove/Option.html#some%3F-instance_method" title="Mangrove::Option#some? (method)">#some?</a></span>
505
+ <span class='object_link'><a href="Mangrove/Option.html#transpose-instance_method" title="Mangrove::Option#transpose (method)">#transpose</a></span>
498
506
  <small>Mangrove::Option</small>
499
507
  </div>
500
508
  </li>
501
509
 
502
510
 
511
+ <li class="odd ">
512
+ <div class="item">
513
+ <span class='object_link'><a href="Mangrove/Option/None.html#transpose-instance_method" title="Mangrove::Option::None#transpose (method)">#transpose</a></span>
514
+ <small>Mangrove::Option::None</small>
515
+ </div>
516
+ </li>
517
+
518
+
503
519
  <li class="even ">
504
520
  <div class="item">
505
- <span class='object_link'><a href="Mangrove/Option/Some.html#unwrap-instance_method" title="Mangrove::Option::Some#unwrap (method)">#unwrap</a></span>
521
+ <span class='object_link'><a href="Mangrove/Option/Some.html#transpose-instance_method" title="Mangrove::Option::Some#transpose (method)">#transpose</a></span>
506
522
  <small>Mangrove::Option::Some</small>
507
523
  </div>
508
524
  </li>
@@ -510,45 +526,53 @@
510
526
 
511
527
  <li class="odd ">
512
528
  <div class="item">
513
- <span class='object_link'><a href="Mangrove/Result.html#unwrap!-instance_method" title="Mangrove::Result#unwrap! (method)">#unwrap!</a></span>
514
- <small>Mangrove::Result</small>
529
+ <span class='object_link'><a href="Mangrove/Option/Some.html#unwrap-instance_method" title="Mangrove::Option::Some#unwrap (method)">#unwrap</a></span>
530
+ <small>Mangrove::Option::Some</small>
515
531
  </div>
516
532
  </li>
517
533
 
518
534
 
519
535
  <li class="even ">
520
536
  <div class="item">
521
- <span class='object_link'><a href="Mangrove/Result/Ok.html#unwrap!-instance_method" title="Mangrove::Result::Ok#unwrap! (method)">#unwrap!</a></span>
522
- <small>Mangrove::Result::Ok</small>
537
+ <span class='object_link'><a href="Mangrove/Option/None.html#unwrap!-instance_method" title="Mangrove::Option::None#unwrap! (method)">#unwrap!</a></span>
538
+ <small>Mangrove::Option::None</small>
523
539
  </div>
524
540
  </li>
525
541
 
526
542
 
527
543
  <li class="odd ">
528
544
  <div class="item">
529
- <span class='object_link'><a href="Mangrove/Option.html#unwrap!-instance_method" title="Mangrove::Option#unwrap! (method)">#unwrap!</a></span>
530
- <small>Mangrove::Option</small>
545
+ <span class='object_link'><a href="Mangrove/Result/Err.html#unwrap!-instance_method" title="Mangrove::Result::Err#unwrap! (method)">#unwrap!</a></span>
546
+ <small>Mangrove::Result::Err</small>
531
547
  </div>
532
548
  </li>
533
549
 
534
550
 
535
551
  <li class="even ">
536
552
  <div class="item">
537
- <span class='object_link'><a href="Mangrove/Result/Err.html#unwrap!-instance_method" title="Mangrove::Result::Err#unwrap! (method)">#unwrap!</a></span>
538
- <small>Mangrove::Result::Err</small>
553
+ <span class='object_link'><a href="Mangrove/Result.html#unwrap!-instance_method" title="Mangrove::Result#unwrap! (method)">#unwrap!</a></span>
554
+ <small>Mangrove::Result</small>
539
555
  </div>
540
556
  </li>
541
557
 
542
558
 
543
559
  <li class="odd ">
544
560
  <div class="item">
545
- <span class='object_link'><a href="Mangrove/Option/None.html#unwrap!-instance_method" title="Mangrove::Option::None#unwrap! (method)">#unwrap!</a></span>
546
- <small>Mangrove::Option::None</small>
561
+ <span class='object_link'><a href="Mangrove/Option.html#unwrap!-instance_method" title="Mangrove::Option#unwrap! (method)">#unwrap!</a></span>
562
+ <small>Mangrove::Option</small>
547
563
  </div>
548
564
  </li>
549
565
 
550
566
 
551
567
  <li class="even ">
568
+ <div class="item">
569
+ <span class='object_link'><a href="Mangrove/Result/Ok.html#unwrap!-instance_method" title="Mangrove::Result::Ok#unwrap! (method)">#unwrap!</a></span>
570
+ <small>Mangrove::Result::Ok</small>
571
+ </div>
572
+ </li>
573
+
574
+
575
+ <li class="odd ">
552
576
  <div class="item">
553
577
  <span class='object_link'><a href="Mangrove/Option/Some.html#unwrap!-instance_method" title="Mangrove::Option::Some#unwrap! (method)">#unwrap!</a></span>
554
578
  <small>Mangrove::Option::Some</small>
@@ -556,7 +580,7 @@
556
580
  </li>
557
581
 
558
582
 
559
- <li class="odd ">
583
+ <li class="even ">
560
584
  <div class="item">
561
585
  <span class='object_link'><a href="Mangrove/Option/Some.html#unwrap_or-instance_method" title="Mangrove::Option::Some#unwrap_or (method)">#unwrap_or</a></span>
562
586
  <small>Mangrove::Option::Some</small>
@@ -564,7 +588,7 @@
564
588
  </li>
565
589
 
566
590
 
567
- <li class="even ">
591
+ <li class="odd ">
568
592
  <div class="item">
569
593
  <span class='object_link'><a href="Mangrove/Option.html#unwrap_or-instance_method" title="Mangrove::Option#unwrap_or (method)">#unwrap_or</a></span>
570
594
  <small>Mangrove::Option</small>
@@ -572,7 +596,7 @@
572
596
  </li>
573
597
 
574
598
 
575
- <li class="odd ">
599
+ <li class="even ">
576
600
  <div class="item">
577
601
  <span class='object_link'><a href="Mangrove/Option/None.html#unwrap_or-instance_method" title="Mangrove::Option::None#unwrap_or (method)">#unwrap_or</a></span>
578
602
  <small>Mangrove::Option::None</small>
@@ -580,7 +604,7 @@
580
604
  </li>
581
605
 
582
606
 
583
- <li class="even ">
607
+ <li class="odd ">
584
608
  <div class="item">
585
609
  <span class='object_link'><a href="Mangrove/ControlFlow/Handler/ClassMethods.html#wrap_original_method_to_handle_flow_control_exception-instance_method" title="Mangrove::ControlFlow::Handler::ClassMethods#wrap_original_method_to_handle_flow_control_exception (method)">#wrap_original_method_to_handle_flow_control_exception</a></span>
586
610
  <small>Mangrove::ControlFlow::Handler::ClassMethods</small>
@@ -100,7 +100,7 @@
100
100
  </div>
101
101
 
102
102
  <div id="footer">
103
- Generated on Thu Aug 31 15:04:25 2023 by
103
+ Generated on Fri Sep 1 17:32:57 2023 by
104
104
  <a href="https://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
105
105
  0.9.34 (ruby-3.2.2).
106
106
  </div>
@@ -82,6 +82,11 @@ module Mangrove
82
82
  self
83
83
  end
84
84
 
85
+ sig { override.type_parameters(:ErrType).params(_err: T.type_parameter(:ErrType)).returns(Mangrove::Result[InnerType, T.type_parameter(:ErrType)]) }
86
+ def transpose(_err)
87
+ Result::Ok.new(@inner)
88
+ end
89
+
85
90
  private
86
91
 
87
92
  sig { returns(InnerType) }
@@ -141,6 +146,11 @@ module Mangrove
141
146
  def map_none(&block)
142
147
  block.call
143
148
  end
149
+
150
+ sig { override.type_parameters(:ErrType).params(err: T.type_parameter(:ErrType)).returns(Mangrove::Result[InnerType, T.type_parameter(:ErrType)]) }
151
+ def transpose(err)
152
+ Result::Err.new(err)
153
+ end
144
154
  end
145
155
 
146
156
  sig { abstract.params(other: BasicObject).returns(T::Boolean) }
@@ -166,5 +176,8 @@ module Mangrove
166
176
 
167
177
  sig { abstract.params(block: T.proc.returns(Option[InnerType])).returns(Option[InnerType]) }
168
178
  def map_none(&block); end
179
+
180
+ sig { abstract.type_parameters(:ErrType).params(err: T.type_parameter(:ErrType)).returns(Mangrove::Result[InnerType, T.type_parameter(:ErrType)]) }
181
+ def transpose(err); end
169
182
  end
170
183
  end
@@ -2,5 +2,5 @@
2
2
  # frozen_string_literal: true
3
3
 
4
4
  module Mangrove
5
- VERSION = "0.5.0"
5
+ VERSION = "0.6.0"
6
6
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: mangrove
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.5.0
4
+ version: 0.6.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Kazuma Murata
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2023-08-31 00:00:00.000000000 Z
11
+ date: 2023-09-01 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: sorbet-runtime