mangrove 0.7.1 → 0.8.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: 2f08bb435ea573ede01749ec506f16e5d81bc7c0fd9ee3ac3e92934937147a27
4
- data.tar.gz: db95dc470d4978d96289dd98abfd6d42afde618f53d42e62a95e431bb71a8ec1
3
+ metadata.gz: 3ade560b0dc327319be4fee46607f4b03375d6672b19955bfc7e024a425868d3
4
+ data.tar.gz: 913c9ce80834cf53e653d1d7bbcfb0213e0cc21435eb4a3acd741ffcacc0ada6
5
5
  SHA512:
6
- metadata.gz: 4a7687933e307aecffffa7bd5749074dfb957244faa7ab24aabe43ebaaf56eef7e2d186217bd9402bc2828ca0f03d0a4ceb71b8fd1696baf097fbd8575960147
7
- data.tar.gz: c34f26429cefd1fd1640dd4efab1bc4160e581f43c0fe04a6c833de4d4fd19c406235bb6fcf52759ccecf83ff1ac16e00bf14144a007f204ab131b6cfaae8bce
6
+ metadata.gz: b39ce6a6a8dde42e1581d553e8f0019aa14273a608a62e612e95138e820cda90621a7ba754a5078a8774ebcf463b134d44be6c5253852fc3b7ef4a22310edeb1
7
+ data.tar.gz: 4a735957cb30d9419fb407d64d281d6bc8711c60079566b3b866528d9a2d582e57acaadd9da223954e4444f11527f3c4cac06fcf456cd77f079f1175ae67eb31
data/README.md CHANGED
@@ -3,30 +3,30 @@ Mangrove provides type utility to use with Sorbet.
3
3
 
4
4
  You can do something like this with the gem.
5
5
 
6
+ use `rubocop-mangrove`` to statically check rescuing ControlSignal is done
7
+
6
8
  ```ruby
7
- class MyClass
9
+ class TransposeExample
8
10
  extend T::Sig
9
11
 
10
- include Mangrove::ControlFlow::Handler
11
-
12
12
  sig { params(numbers: T::Enumerable[Integer]).returns(Mangrove::Result[T::Array[Integer], String]) }
13
13
  def divide_arguments_by_3(numbers)
14
- divided_nubmers = numbers
14
+ Mangrove::Result.from_results(numbers
15
15
  .map { |number|
16
16
  if number % 3 == 0
17
17
  Mangrove::Result::Ok.new(number / 3)
18
18
  else
19
19
  Mangrove::Result::Err.new("number #{number} is not divisible by 3")
20
20
  end
21
- }
22
- .map(&:unwrap!)
23
-
24
- Mangrove::Result::Ok.new(divided_nubmers)
21
+ })
22
+ rescue ::Mangrove::ControlFlow::ControlSignal => e
23
+ Mangrove::Result::Err.new(e.inner_value)
25
24
  end
26
25
  end
26
+ # rubocop:enable Lint/ConstantDefinitionInBlock
27
27
 
28
- expect(MyClass.new.divide_arguments_by_3([3, 4, 6])).to eq Mangrove::Result::Err.new("number 4 is not divisible by 3")
29
- expect(MyClass.new.divide_arguments_by_3([3, 6, 9])).to eq Mangrove::Result::Ok.new([1, 2, 3])
28
+ expect(TransposeExample.new.divide_arguments_by_3([3, 4, 5])).to eq Mangrove::Result::Err.new(["number 4 is not divisible by 3", "number 5 is not divisible by 3"])
29
+ expect(TransposeExample.new.divide_arguments_by_3([3, 6, 9])).to eq Mangrove::Result::Ok.new([1, 2, 3])
30
30
  ```
31
31
 
32
32
  Other examples are available at [`spec/**/**_spec.rb`](https://github.com/kazzix14/mangrove/tree/main/spec).
@@ -34,9 +34,9 @@ Other examples are available at [`spec/**/**_spec.rb`](https://github.com/kazzix
34
34
  ## Features
35
35
  Most features are not implemented.
36
36
 
37
- - [x] Option Type (Partially Implemented)
38
- - [x] Result Type (Partially Implemented)
39
- - [ ] Builder type (Not implemented)
37
+ - [x] Option Type
38
+ - [x] Result Type
39
+ - [ ] Builder Type Factory
40
40
  - [ ] Auto Implementation
41
41
  - [ ] TODO
42
42
 
@@ -213,7 +213,7 @@
213
213
  </div>
214
214
 
215
215
  <div id="footer">
216
- Generated on Tue Sep 12 17:51:33 2023 by
216
+ Generated on Wed Oct 18 11:45:16 2023 by
217
217
  <a href="https://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
218
218
  0.9.34 (ruby-3.2.2).
219
219
  </div>
@@ -69,11 +69,6 @@
69
69
 
70
70
 
71
71
 
72
- <dl>
73
- <dt>Extended by:</dt>
74
- <dd>T::Sig</dd>
75
- </dl>
76
-
77
72
 
78
73
 
79
74
 
@@ -83,9 +78,7 @@
83
78
 
84
79
  <dl>
85
80
  <dt>Defined in:</dt>
86
- <dd>lib/mangrove/control_flow/rewriter.rb<span class="defines">,<br />
87
- lib/mangrove/control_flow/control_signal.rb</span>
88
- </dd>
81
+ <dd>lib/mangrove/control_flow/control_signal.rb</dd>
89
82
  </dl>
90
83
 
91
84
  </div>
@@ -98,8 +91,6 @@
98
91
 
99
92
 
100
93
 
101
- <strong class="classes">Classes:</strong> <span class='object_link'><a href="ControlFlow/Rewriter.html" title="Mangrove::ControlFlow::Rewriter (class)">Rewriter</a></span>
102
-
103
94
 
104
95
  </p>
105
96
 
@@ -109,131 +100,12 @@
109
100
 
110
101
 
111
102
 
112
-
113
- <h2>
114
- Class Method Summary
115
- <small><a href="#" class="summary_toggle">collapse</a></small>
116
- </h2>
117
-
118
- <ul class="summary">
119
-
120
- <li class="public ">
121
- <span class="summary_signature">
122
-
123
- <a href="#impl!-class_method" title="impl! (class method)">.<strong>impl!</strong>(method_to_be_rewritten) &#x21d2; String </a>
124
-
125
-
126
-
127
- </span>
128
-
129
-
130
-
131
-
132
-
133
-
134
-
135
-
136
-
137
- <span class="summary_desc"><div class='inline'></div></span>
138
-
139
- </li>
140
-
141
-
142
- </ul>
143
-
144
-
145
-
146
-
147
-
148
- <div id="class_method_details" class="method_details_list">
149
- <h2>Class Method Details</h2>
150
-
151
-
152
- <div class="method_details first">
153
- <h3 class="signature first" id="impl!-class_method">
154
-
155
- .<strong>impl!</strong>(method_to_be_rewritten) &#x21d2; <tt>String</tt>
156
-
157
-
158
-
159
103
 
160
-
161
- </h3><div class="docstring">
162
- <div class="discussion">
163
-
164
-
165
- </div>
166
- </div>
167
- <div class="tags">
168
- <p class="tag_title">Parameters:</p>
169
- <ul class="param">
170
-
171
- <li>
172
-
173
- <span class='name'>method_to_be_rewritten</span>
174
-
175
-
176
- <span class='type'>(<tt>Method</tt>, <tt>UnboundMethod</tt>)</span>
177
-
178
-
179
-
180
- </li>
181
-
182
- </ul>
183
-
184
- <p class="tag_title">Returns:</p>
185
- <ul class="return">
186
-
187
- <li>
188
-
189
-
190
- <span class='type'>(<tt>String</tt>)</span>
191
-
192
-
193
-
194
- </li>
195
-
196
- </ul>
197
-
198
- </div><table class="source_code">
199
- <tr>
200
- <td>
201
- <pre class="lines">
202
-
203
-
204
- 16
205
- 17
206
- 18
207
- 19
208
- 20
209
- 21
210
- 22
211
- 23
212
- 24</pre>
213
- </td>
214
- <td>
215
- <pre class="code"><span class="info file"># File 'lib/mangrove/control_flow/rewriter.rb', line 16</span>
216
-
217
- <span class='kw'>def</span> <span class='id identifier rubyid_impl!'>impl!</span><span class='lparen'>(</span><span class='id identifier rubyid_method_to_be_rewritten'>method_to_be_rewritten</span><span class='rparen'>)</span>
218
- <span class='id identifier rubyid_filename'>filename</span><span class='comma'>,</span> <span class='id identifier rubyid_line_number'>line_number</span> <span class='op'>=</span> <span class='id identifier rubyid_method_to_be_rewritten'>method_to_be_rewritten</span><span class='period'>.</span><span class='id identifier rubyid_source_location'>source_location</span>
219
-
220
- <span class='id identifier rubyid_source'>source</span> <span class='op'>=</span> <span class='id identifier rubyid_method_to_be_rewritten'>method_to_be_rewritten</span><span class='period'>.</span><span class='id identifier rubyid_source'>source</span>
221
- <span class='id identifier rubyid_ast'>ast</span> <span class='op'>=</span> <span class='const'>Parser</span><span class='op'>::</span><span class='const'>CurrentRuby</span><span class='period'>.</span><span class='id identifier rubyid_parse'>parse</span><span class='lparen'>(</span><span class='id identifier rubyid_source'>source</span><span class='rparen'>)</span>
222
- <span class='id identifier rubyid_source_buffer'>source_buffer</span> <span class='op'>=</span> <span class='const'>Parser</span><span class='op'>::</span><span class='const'>Source</span><span class='op'>::</span><span class='const'>Buffer</span><span class='period'>.</span><span class='id identifier rubyid_new'>new</span><span class='lparen'>(</span><span class='tstring'><span class='tstring_beg'>&quot;</span><span class='embexpr_beg'>#{</span><span class='id identifier rubyid_filename'>filename</span><span class='embexpr_end'>}</span><span class='tstring_content'>:</span><span class='embexpr_beg'>#{</span><span class='id identifier rubyid_line_number'>line_number</span><span class='embexpr_end'>}</span><span class='tstring_end'>&quot;</span></span><span class='comma'>,</span> <span class='label'>source:</span><span class='rparen'>)</span>
223
- <span class='id identifier rubyid_rewriter'>rewriter</span> <span class='op'>=</span> <span class='const'><span class='object_link'><a href="ControlFlow/Rewriter.html" title="Mangrove::ControlFlow::Rewriter (class)">Rewriter</a></span></span><span class='period'>.</span><span class='id identifier rubyid_new'>new</span>
224
- <span class='id identifier rubyid_rewriter'>rewriter</span><span class='period'>.</span><span class='id identifier rubyid_rewrite'>rewrite</span><span class='lparen'>(</span><span class='id identifier rubyid_source_buffer'>source_buffer</span><span class='comma'>,</span> <span class='id identifier rubyid_ast'>ast</span><span class='rparen'>)</span>
225
- <span class='kw'>end</span></pre>
226
- </td>
227
- </tr>
228
- </table>
229
- </div>
230
-
231
- </div>
232
104
 
233
105
  </div>
234
106
 
235
107
  <div id="footer">
236
- Generated on Tue Sep 12 17:51:33 2023 by
108
+ Generated on Wed Oct 18 11:45:16 2023 by
237
109
  <a href="https://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
238
110
  0.9.34 (ruby-3.2.2).
239
111
  </div>
@@ -424,7 +424,7 @@
424
424
  </div>
425
425
 
426
426
  <div id="footer">
427
- Generated on Tue Sep 12 17:51:34 2023 by
427
+ Generated on Wed Oct 18 11:45:16 2023 by
428
428
  <a href="https://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
429
429
  0.9.34 (ruby-3.2.2).
430
430
  </div>
@@ -190,6 +190,28 @@
190
190
 
191
191
 
192
192
 
193
+ <span class="summary_desc"><div class='inline'></div></span>
194
+
195
+ </li>
196
+
197
+
198
+ <li class="public ">
199
+ <span class="summary_signature">
200
+
201
+ <a href="#expect_with!-instance_method" title="#expect_with! (instance method)">#<strong>expect_with!</strong>(&amp;block) &#x21d2; InnerType </a>
202
+
203
+
204
+
205
+ </span>
206
+
207
+
208
+
209
+
210
+
211
+
212
+
213
+
214
+
193
215
  <span class="summary_desc"><div class='inline'></div></span>
194
216
 
195
217
  </li>
@@ -423,20 +445,20 @@
423
445
  <pre class="lines">
424
446
 
425
447
 
426
- 107
427
- 108
428
- 109
429
- 110
430
- 111
431
448
  112
432
449
  113
433
450
  114
434
451
  115
435
452
  116
436
- 117</pre>
453
+ 117
454
+ 118
455
+ 119
456
+ 120
457
+ 121
458
+ 122</pre>
437
459
  </td>
438
460
  <td>
439
- <pre class="code"><span class="info file"># File 'lib/mangrove/option.rb', line 107</span>
461
+ <pre class="code"><span class="info file"># File 'lib/mangrove/option.rb', line 112</span>
440
462
 
441
463
  <span class='kw'>def</span> <span class='op'>==</span><span class='lparen'>(</span><span class='id identifier rubyid_other'>other</span><span class='rparen'>)</span>
442
464
  <span class='kw'>case</span> <span class='id identifier rubyid_other'>other</span>
@@ -519,15 +541,95 @@
519
541
  <pre class="lines">
520
542
 
521
543
 
522
- 130
523
- 131
524
- 132</pre>
544
+ 135
545
+ 136
546
+ 137</pre>
525
547
  </td>
526
548
  <td>
527
- <pre class="code"><span class="info file"># File 'lib/mangrove/option.rb', line 130</span>
549
+ <pre class="code"><span class="info file"># File 'lib/mangrove/option.rb', line 135</span>
528
550
 
529
551
  <span class='kw'>def</span> <span class='id identifier rubyid_expect!'>expect!</span><span class='lparen'>(</span><span class='id identifier rubyid_message'>message</span><span class='rparen'>)</span>
530
- <span class='id identifier rubyid_raise'>raise</span> <span class='const'><span class='object_link'><a href="../Option.html" title="Mangrove::Option (module)">Option</a></span></span><span class='op'>::</span><span class='const'><span class='object_link'><a href="ControlSignal.html" title="Mangrove::Option::ControlSignal (class)">ControlSignal</a></span></span><span class='comma'>,</span> <span class='const'><span class='object_link'><a href="../Result.html" title="Mangrove::Result (module)">Result</a></span></span><span class='op'>::</span><span class='const'><span class='object_link'><a href="../Result/Err.html" title="Mangrove::Result::Err (class)">Err</a></span></span><span class='period'>.</span><span class='id identifier rubyid_new'><span class='object_link'><a href="../Result/Err.html#initialize-instance_method" title="Mangrove::Result::Err#initialize (method)">new</a></span></span><span class='lparen'>(</span><span class='id identifier rubyid_message'>message</span><span class='rparen'>)</span>
552
+ <span class='id identifier rubyid_raise'>raise</span> <span class='const'><span class='object_link'><a href="../Option.html" title="Mangrove::Option (module)">Option</a></span></span><span class='op'>::</span><span class='const'><span class='object_link'><a href="ControlSignal.html" title="Mangrove::Option::ControlSignal (class)">ControlSignal</a></span></span><span class='comma'>,</span> <span class='id identifier rubyid_message'>message</span>
553
+ <span class='kw'>end</span></pre>
554
+ </td>
555
+ </tr>
556
+ </table>
557
+ </div>
558
+
559
+ <div class="method_details ">
560
+ <h3 class="signature " id="expect_with!-instance_method">
561
+
562
+ #<strong>expect_with!</strong>(&amp;block) &#x21d2; <tt><span class='object_link'><a href="#InnerType-constant" title="Mangrove::Option::None::InnerType (constant)">InnerType</a></span></tt>
563
+
564
+
565
+
566
+
567
+
568
+ </h3><div class="docstring">
569
+ <div class="discussion">
570
+
571
+
572
+ </div>
573
+ </div>
574
+ <div class="tags">
575
+ <p class="tag_title">Parameters:</p>
576
+ <ul class="param">
577
+
578
+ <li>
579
+
580
+ <span class='name'>block</span>
581
+
582
+
583
+ <span class='type'>(<tt>T.proc.returns(T.untyped)</tt>)</span>
584
+
585
+
586
+
587
+ </li>
588
+
589
+ </ul>
590
+
591
+ <p class="tag_title">Returns:</p>
592
+ <ul class="return">
593
+
594
+ <li>
595
+
596
+
597
+ <span class='type'>(<tt><span class='object_link'><a href="#InnerType-constant" title="Mangrove::Option::None::InnerType (constant)">InnerType</a></span></tt>)</span>
598
+
599
+
600
+
601
+ </li>
602
+
603
+ </ul>
604
+ <p class="tag_title">Raises:</p>
605
+ <ul class="raise">
606
+
607
+ <li>
608
+
609
+
610
+ <span class='type'>(<tt><span class='object_link'><a href="ControlSignal.html" title="Mangrove::Option::ControlSignal (class)">Option::ControlSignal</a></span></tt>)</span>
611
+
612
+
613
+
614
+ </li>
615
+
616
+ </ul>
617
+
618
+ </div><table class="source_code">
619
+ <tr>
620
+ <td>
621
+ <pre class="lines">
622
+
623
+
624
+ 140
625
+ 141
626
+ 142</pre>
627
+ </td>
628
+ <td>
629
+ <pre class="code"><span class="info file"># File 'lib/mangrove/option.rb', line 140</span>
630
+
631
+ <span class='kw'>def</span> <span class='id identifier rubyid_expect_with!'>expect_with!</span><span class='lparen'>(</span><span class='op'>&amp;</span><span class='id identifier rubyid_block'>block</span><span class='rparen'>)</span>
632
+ <span class='id identifier rubyid_raise'>raise</span> <span class='const'><span class='object_link'><a href="../Option.html" title="Mangrove::Option (module)">Option</a></span></span><span class='op'>::</span><span class='const'><span class='object_link'><a href="ControlSignal.html" title="Mangrove::Option::ControlSignal (class)">ControlSignal</a></span></span><span class='comma'>,</span> <span class='id identifier rubyid_block'>block</span><span class='period'>.</span><span class='id identifier rubyid_call'>call</span>
531
633
  <span class='kw'>end</span></pre>
532
634
  </td>
533
635
  </tr>
@@ -586,12 +688,12 @@
586
688
  <pre class="lines">
587
689
 
588
690
 
589
- 146
590
- 147
591
- 148</pre>
691
+ 156
692
+ 157
693
+ 158</pre>
592
694
  </td>
593
695
  <td>
594
- <pre class="code"><span class="info file"># File 'lib/mangrove/option.rb', line 146</span>
696
+ <pre class="code"><span class="info file"># File 'lib/mangrove/option.rb', line 156</span>
595
697
 
596
698
  <span class='kw'>def</span> <span class='id identifier rubyid_map_none'>map_none</span><span class='lparen'>(</span><span class='op'>&amp;</span><span class='id identifier rubyid_block'>block</span><span class='rparen'>)</span>
597
699
  <span class='id identifier rubyid_block'>block</span><span class='period'>.</span><span class='id identifier rubyid_call'>call</span>
@@ -653,12 +755,12 @@
653
755
  <pre class="lines">
654
756
 
655
757
 
656
- 141
657
- 142
658
- 143</pre>
758
+ 151
759
+ 152
760
+ 153</pre>
659
761
  </td>
660
762
  <td>
661
- <pre class="code"><span class="info file"># File 'lib/mangrove/option.rb', line 141</span>
763
+ <pre class="code"><span class="info file"># File 'lib/mangrove/option.rb', line 151</span>
662
764
 
663
765
  <span class='kw'>def</span> <span class='id identifier rubyid_map_some'>map_some</span><span class='lparen'>(</span><span class='op'>&amp;</span><span class='id identifier rubyid__block'>_block</span><span class='rparen'>)</span>
664
766
  <span class='kw'>self</span>
@@ -705,10 +807,10 @@
705
807
  <pre class="lines">
706
808
 
707
809
 
708
- 138</pre>
810
+ 148</pre>
709
811
  </td>
710
812
  <td>
711
- <pre class="code"><span class="info file"># File 'lib/mangrove/option.rb', line 138</span>
813
+ <pre class="code"><span class="info file"># File 'lib/mangrove/option.rb', line 148</span>
712
814
 
713
815
  <span class='kw'>def</span> <span class='id identifier rubyid_none?'>none?</span> <span class='op'>=</span> <span class='kw'>true</span></pre>
714
816
  </td>
@@ -753,10 +855,10 @@
753
855
  <pre class="lines">
754
856
 
755
857
 
756
- 135</pre>
858
+ 145</pre>
757
859
  </td>
758
860
  <td>
759
- <pre class="code"><span class="info file"># File 'lib/mangrove/option.rb', line 135</span>
861
+ <pre class="code"><span class="info file"># File 'lib/mangrove/option.rb', line 145</span>
760
862
 
761
863
  <span class='kw'>def</span> <span class='id identifier rubyid_some?'>some?</span> <span class='op'>=</span> <span class='kw'>false</span></pre>
762
864
  </td>
@@ -816,12 +918,12 @@
816
918
  <pre class="lines">
817
919
 
818
920
 
819
- 151
820
- 152
821
- 153</pre>
921
+ 161
922
+ 162
923
+ 163</pre>
822
924
  </td>
823
925
  <td>
824
- <pre class="code"><span class="info file"># File 'lib/mangrove/option.rb', line 151</span>
926
+ <pre class="code"><span class="info file"># File 'lib/mangrove/option.rb', line 161</span>
825
927
 
826
928
  <span class='kw'>def</span> <span class='id identifier rubyid_transpose'>transpose</span><span class='lparen'>(</span><span class='id identifier rubyid_err'>err</span><span class='rparen'>)</span>
827
929
  <span class='const'><span class='object_link'><a href="../Result.html" title="Mangrove::Result (module)">Result</a></span></span><span class='op'>::</span><span class='const'><span class='object_link'><a href="../Result/Err.html" title="Mangrove::Result::Err (class)">Err</a></span></span><span class='period'>.</span><span class='id identifier rubyid_new'><span class='object_link'><a href="../Result/Err.html#initialize-instance_method" title="Mangrove::Result::Err#initialize (method)">new</a></span></span><span class='lparen'>(</span><span class='id identifier rubyid_err'>err</span><span class='rparen'>)</span>
@@ -881,15 +983,15 @@
881
983
  <pre class="lines">
882
984
 
883
985
 
884
- 125
885
- 126
886
- 127</pre>
986
+ 130
987
+ 131
988
+ 132</pre>
887
989
  </td>
888
990
  <td>
889
- <pre class="code"><span class="info file"># File 'lib/mangrove/option.rb', line 125</span>
991
+ <pre class="code"><span class="info file"># File 'lib/mangrove/option.rb', line 130</span>
890
992
 
891
993
  <span class='kw'>def</span> <span class='id identifier rubyid_unwrap!'>unwrap!</span>
892
- <span class='id identifier rubyid_raise'>raise</span> <span class='const'><span class='object_link'><a href="../Option.html" title="Mangrove::Option (module)">Option</a></span></span><span class='op'>::</span><span class='const'><span class='object_link'><a href="ControlSignal.html" title="Mangrove::Option::ControlSignal (class)">ControlSignal</a></span></span><span class='comma'>,</span> <span class='const'><span class='object_link'><a href="../Result.html" title="Mangrove::Result (module)">Result</a></span></span><span class='op'>::</span><span class='const'><span class='object_link'><a href="../Result/Err.html" title="Mangrove::Result::Err (class)">Err</a></span></span><span class='period'>.</span><span class='id identifier rubyid_new'><span class='object_link'><a href="../Result/Err.html#initialize-instance_method" title="Mangrove::Result::Err#initialize (method)">new</a></span></span><span class='lparen'>(</span><span class='tstring'><span class='tstring_beg'>&quot;</span><span class='tstring_content'>called `Option#unwrap!` on an `None` value: </span><span class='embexpr_beg'>#{</span><span class='kw'>self</span><span class='embexpr_end'>}</span><span class='tstring_end'>&quot;</span></span><span class='rparen'>)</span>
994
+ <span class='id identifier rubyid_raise'>raise</span> <span class='const'><span class='object_link'><a href="../Option.html" title="Mangrove::Option (module)">Option</a></span></span><span class='op'>::</span><span class='const'><span class='object_link'><a href="ControlSignal.html" title="Mangrove::Option::ControlSignal (class)">ControlSignal</a></span></span><span class='comma'>,</span> <span class='tstring'><span class='tstring_beg'>&quot;</span><span class='tstring_content'>called `Option#unwrap!` on an `None` value: </span><span class='embexpr_beg'>#{</span><span class='kw'>self</span><span class='embexpr_end'>}</span><span class='tstring_end'>&quot;</span></span>
893
995
  <span class='kw'>end</span></pre>
894
996
  </td>
895
997
  </tr>
@@ -948,12 +1050,12 @@
948
1050
  <pre class="lines">
949
1051
 
950
1052
 
951
- 120
952
- 121
953
- 122</pre>
1053
+ 125
1054
+ 126
1055
+ 127</pre>
954
1056
  </td>
955
1057
  <td>
956
- <pre class="code"><span class="info file"># File 'lib/mangrove/option.rb', line 120</span>
1058
+ <pre class="code"><span class="info file"># File 'lib/mangrove/option.rb', line 125</span>
957
1059
 
958
1060
  <span class='kw'>def</span> <span class='id identifier rubyid_unwrap_or'>unwrap_or</span><span class='lparen'>(</span><span class='id identifier rubyid_default'>default</span><span class='rparen'>)</span>
959
1061
  <span class='id identifier rubyid_default'>default</span>
@@ -968,7 +1070,7 @@
968
1070
  </div>
969
1071
 
970
1072
  <div id="footer">
971
- Generated on Tue Sep 12 17:51:33 2023 by
1073
+ Generated on Wed Oct 18 11:45:16 2023 by
972
1074
  <a href="https://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
973
1075
  0.9.34 (ruby-3.2.2).
974
1076
  </div>