mangrove 0.7.2 → 0.8.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +13 -13
- 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 +140 -38
- data/docs/Mangrove/Option/Some.html +106 -17
- data/docs/Mangrove/Option.html +108 -19
- data/docs/Mangrove/Result/ControlSignal.html +1 -1
- data/docs/Mangrove/Result/Err.html +145 -43
- data/docs/Mangrove/Result/Ok.html +127 -38
- data/docs/Mangrove/Result.html +99 -10
- data/docs/Mangrove.html +2 -2
- data/docs/_index.html +1 -1
- data/docs/file.README.html +15 -15
- data/docs/index.html +15 -15
- data/docs/method_list.html +128 -80
- data/docs/top-level-namespace.html +1 -1
- data/lib/mangrove/option.rb +15 -2
- data/lib/mangrove/result.rb +13 -0
- data/lib/mangrove/version.rb +1 -1
- metadata +4 -3
data/docs/index.html
CHANGED
@@ -64,29 +64,29 @@
|
|
64
64
|
|
65
65
|
<p>You can do something like this with the gem.</p>
|
66
66
|
|
67
|
-
<
|
68
|
-
<span class='id identifier rubyid_extend'>extend</span> <span class='const'>T</span><span class='op'>::</span><span class='const'>Sig</span>
|
67
|
+
<p>use ‘rubocop-mangrove“ to statically check rescuing ControlSignal is done</p>
|
69
68
|
|
70
|
-
|
69
|
+
<pre class="code ruby"><code class="ruby"><span class='kw'>class</span> <span class='const'>TransposeExample</span>
|
70
|
+
<span class='id identifier rubyid_extend'>extend</span> <span class='const'>T</span><span class='op'>::</span><span class='const'>Sig</span>
|
71
71
|
|
72
72
|
<span class='id identifier rubyid_sig'>sig</span> <span class='lbrace'>{</span> <span class='id identifier rubyid_params'>params</span><span class='lparen'>(</span><span class='label'>numbers:</span> <span class='const'>T</span><span class='op'>::</span><span class='const'>Enumerable</span><span class='lbracket'>[</span><span class='const'>Integer</span><span class='rbracket'>]</span><span class='rparen'>)</span><span class='period'>.</span><span class='id identifier rubyid_returns'>returns</span><span class='lparen'>(</span><span class='const'><span class='object_link'><a href="Mangrove.html" title="Mangrove (module)">Mangrove</a></span></span><span class='op'>::</span><span class='const'><span class='object_link'><a href="Mangrove/Result.html" title="Mangrove::Result (module)">Result</a></span></span><span class='lbracket'>[</span><span class='const'>T</span><span class='op'>::</span><span class='const'>Array</span><span class='lbracket'>[</span><span class='const'>Integer</span><span class='rbracket'>]</span><span class='comma'>,</span> <span class='const'>String</span><span class='rbracket'>]</span><span class='rparen'>)</span> <span class='rbrace'>}</span>
|
73
73
|
<span class='kw'>def</span> <span class='id identifier rubyid_divide_arguments_by_3'>divide_arguments_by_3</span><span class='lparen'>(</span><span class='id identifier rubyid_numbers'>numbers</span><span class='rparen'>)</span>
|
74
|
-
<span class='
|
74
|
+
<span class='const'><span class='object_link'><a href="Mangrove.html" title="Mangrove (module)">Mangrove</a></span></span><span class='op'>::</span><span class='const'><span class='object_link'><a href="Mangrove/Result.html" title="Mangrove::Result (module)">Result</a></span></span><span class='period'>.</span><span class='id identifier rubyid_from_results'><span class='object_link'><a href="Mangrove/Result.html#from_results-class_method" title="Mangrove::Result.from_results (method)">from_results</a></span></span><span class='lparen'>(</span><span class='id identifier rubyid_numbers'>numbers</span>
|
75
75
|
<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_number'>number</span><span class='op'>|</span>
|
76
76
|
<span class='kw'>if</span> <span class='id identifier rubyid_number'>number</span> <span class='op'>%</span> <span class='int'>3</span> <span class='op'>==</span> <span class='int'>0</span>
|
77
77
|
<span class='const'><span class='object_link'><a href="Mangrove.html" title="Mangrove (module)">Mangrove</a></span></span><span class='op'>::</span><span class='const'><span class='object_link'><a href="Mangrove/Result.html" title="Mangrove::Result (module)">Result</a></span></span><span class='op'>::</span><span class='const'><span class='object_link'><a href="Mangrove/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="Mangrove/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_number'>number</span> <span class='op'>/</span> <span class='int'>3</span><span class='rparen'>)</span>
|
78
78
|
<span class='kw'>else</span>
|
79
79
|
<span class='const'><span class='object_link'><a href="Mangrove.html" title="Mangrove (module)">Mangrove</a></span></span><span class='op'>::</span><span class='const'><span class='object_link'><a href="Mangrove/Result.html" title="Mangrove::Result (module)">Result</a></span></span><span class='op'>::</span><span class='const'><span class='object_link'><a href="Mangrove/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="Mangrove/Result/Err.html#initialize-instance_method" title="Mangrove::Result::Err#initialize (method)">new</a></span></span><span class='lparen'>(</span><span class='tstring'><span class='tstring_beg'>"</span><span class='tstring_content'>number </span><span class='embexpr_beg'>#{</span><span class='id identifier rubyid_number'>number</span><span class='embexpr_end'>}</span><span class='tstring_content'> is not divisible by 3</span><span class='tstring_end'>"</span></span><span class='rparen'>)</span>
|
80
80
|
<span class='kw'>end</span>
|
81
|
-
<span class='rbrace'>}</span>
|
82
|
-
|
83
|
-
|
84
|
-
<span class='const'><span class='object_link'><a href="Mangrove.html" title="Mangrove (module)">Mangrove</a></span></span><span class='op'>::</span><span class='const'><span class='object_link'><a href="Mangrove/Result.html" title="Mangrove::Result (module)">Result</a></span></span><span class='op'>::</span><span class='const'><span class='object_link'><a href="Mangrove/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="Mangrove/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_divided_nubmers'>divided_nubmers</span><span class='rparen'>)</span>
|
81
|
+
<span class='rbrace'>}</span><span class='rparen'>)</span>
|
82
|
+
<span class='kw'>rescue</span> <span class='op'>::</span><span class='const'><span class='object_link'><a href="Mangrove.html" title="Mangrove (module)">Mangrove</a></span></span><span class='op'>::</span><span class='const'><span class='object_link'><a href="Mangrove/ControlFlow.html" title="Mangrove::ControlFlow (module)">ControlFlow</a></span></span><span class='op'>::</span><span class='const'><span class='object_link'><a href="Mangrove/ControlFlow/ControlSignal.html" title="Mangrove::ControlFlow::ControlSignal (module)">ControlSignal</a></span></span> <span class='op'>=></span> <span class='id identifier rubyid_e'>e</span>
|
83
|
+
<span class='const'><span class='object_link'><a href="Mangrove.html" title="Mangrove (module)">Mangrove</a></span></span><span class='op'>::</span><span class='const'><span class='object_link'><a href="Mangrove/Result.html" title="Mangrove::Result (module)">Result</a></span></span><span class='op'>::</span><span class='const'><span class='object_link'><a href="Mangrove/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="Mangrove/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_e'>e</span><span class='period'>.</span><span class='id identifier rubyid_inner_value'>inner_value</span><span class='rparen'>)</span>
|
85
84
|
<span class='kw'>end</span>
|
86
85
|
<span class='kw'>end</span>
|
87
|
-
|
88
|
-
|
89
|
-
<span class='id identifier rubyid_expect'>expect</span><span class='lparen'>(</span><span class='const'>
|
86
|
+
<span class='comment'># rubocop:enable Lint/ConstantDefinitionInBlock
|
87
|
+
</span>
|
88
|
+
<span class='id identifier rubyid_expect'>expect</span><span class='lparen'>(</span><span class='const'>TransposeExample</span><span class='period'>.</span><span class='id identifier rubyid_new'>new</span><span class='period'>.</span><span class='id identifier rubyid_divide_arguments_by_3'>divide_arguments_by_3</span><span class='lparen'>(</span><span class='lbracket'>[</span><span class='int'>3</span><span class='comma'>,</span> <span class='int'>4</span><span class='comma'>,</span> <span class='int'>5</span><span class='rbracket'>]</span><span class='rparen'>)</span><span class='rparen'>)</span><span class='period'>.</span><span class='id identifier rubyid_to'>to</span> <span class='id identifier rubyid_eq'>eq</span> <span class='const'><span class='object_link'><a href="Mangrove.html" title="Mangrove (module)">Mangrove</a></span></span><span class='op'>::</span><span class='const'><span class='object_link'><a href="Mangrove/Result.html" title="Mangrove::Result (module)">Result</a></span></span><span class='op'>::</span><span class='const'><span class='object_link'><a href="Mangrove/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="Mangrove/Result/Err.html#initialize-instance_method" title="Mangrove::Result::Err#initialize (method)">new</a></span></span><span class='lparen'>(</span><span class='lbracket'>[</span><span class='tstring'><span class='tstring_beg'>"</span><span class='tstring_content'>number 4 is not divisible by 3</span><span class='tstring_end'>"</span></span><span class='comma'>,</span> <span class='tstring'><span class='tstring_beg'>"</span><span class='tstring_content'>number 5 is not divisible by 3</span><span class='tstring_end'>"</span></span><span class='rbracket'>]</span><span class='rparen'>)</span>
|
89
|
+
<span class='id identifier rubyid_expect'>expect</span><span class='lparen'>(</span><span class='const'>TransposeExample</span><span class='period'>.</span><span class='id identifier rubyid_new'>new</span><span class='period'>.</span><span class='id identifier rubyid_divide_arguments_by_3'>divide_arguments_by_3</span><span class='lparen'>(</span><span class='lbracket'>[</span><span class='int'>3</span><span class='comma'>,</span> <span class='int'>6</span><span class='comma'>,</span> <span class='int'>9</span><span class='rbracket'>]</span><span class='rparen'>)</span><span class='rparen'>)</span><span class='period'>.</span><span class='id identifier rubyid_to'>to</span> <span class='id identifier rubyid_eq'>eq</span> <span class='const'><span class='object_link'><a href="Mangrove.html" title="Mangrove (module)">Mangrove</a></span></span><span class='op'>::</span><span class='const'><span class='object_link'><a href="Mangrove/Result.html" title="Mangrove::Result (module)">Result</a></span></span><span class='op'>::</span><span class='const'><span class='object_link'><a href="Mangrove/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="Mangrove/Result/Ok.html#initialize-instance_method" title="Mangrove::Result::Ok#initialize (method)">new</a></span></span><span class='lparen'>(</span><span class='lbracket'>[</span><span class='int'>1</span><span class='comma'>,</span> <span class='int'>2</span><span class='comma'>,</span> <span class='int'>3</span><span class='rbracket'>]</span><span class='rparen'>)</span>
|
90
90
|
</code></pre>
|
91
91
|
|
92
92
|
<p>Other examples are available at href="https://github.com/kazzix14/mangrove/tree/main/spec"></a>.</p>
|
@@ -95,11 +95,11 @@
|
|
95
95
|
|
96
96
|
<p>Most features are not implemented.</p>
|
97
97
|
<ul><li>
|
98
|
-
<p>[x] Option Type
|
98
|
+
<p>[x] Option Type</p>
|
99
99
|
</li><li>
|
100
|
-
<p>[x] Result Type
|
100
|
+
<p>[x] Result Type</p>
|
101
101
|
</li><li>
|
102
|
-
<p>[ ] Builder
|
102
|
+
<p>[ ] Builder Type Factory</p>
|
103
103
|
</li><li>
|
104
104
|
<p>[ ] Auto Implementation</p>
|
105
105
|
</li><li>
|
@@ -162,7 +162,7 @@ rake release
|
|
162
162
|
</div></div>
|
163
163
|
|
164
164
|
<div id="footer">
|
165
|
-
Generated on
|
165
|
+
Generated on Wed Oct 18 11:52:43 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.2.2).
|
168
168
|
</div>
|
data/docs/method_list.html
CHANGED
@@ -46,64 +46,64 @@
|
|
46
46
|
|
47
47
|
<li class="odd ">
|
48
48
|
<div class="item">
|
49
|
-
<span class='object_link'><a href="Mangrove/
|
50
|
-
<small>Mangrove::
|
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
|
|
54
54
|
|
55
55
|
<li class="even ">
|
56
56
|
<div class="item">
|
57
|
-
<span class='object_link'><a href="Mangrove/
|
58
|
-
<small>Mangrove::
|
57
|
+
<span class='object_link'><a href="Mangrove/Option/Some.html#==-instance_method" title="Mangrove::Option::Some#== (method)">#==</a></span>
|
58
|
+
<small>Mangrove::Option::Some</small>
|
59
59
|
</div>
|
60
60
|
</li>
|
61
61
|
|
62
62
|
|
63
63
|
<li class="odd ">
|
64
64
|
<div class="item">
|
65
|
-
<span class='object_link'><a href="Mangrove/
|
66
|
-
<small>Mangrove::
|
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/
|
74
|
-
<small>Mangrove::
|
73
|
+
<span class='object_link'><a href="Mangrove/Result/ControlSignal.html#==-instance_method" title="Mangrove::Result::ControlSignal#== (method)">#==</a></span>
|
74
|
+
<small>Mangrove::Result::ControlSignal</small>
|
75
75
|
</div>
|
76
76
|
</li>
|
77
77
|
|
78
78
|
|
79
79
|
<li class="odd ">
|
80
80
|
<div class="item">
|
81
|
-
<span class='object_link'><a href="Mangrove/Option
|
82
|
-
<small>Mangrove::Option
|
81
|
+
<span class='object_link'><a href="Mangrove/Option.html#==-instance_method" title="Mangrove::Option#== (method)">#==</a></span>
|
82
|
+
<small>Mangrove::Option</small>
|
83
83
|
</div>
|
84
84
|
</li>
|
85
85
|
|
86
86
|
|
87
87
|
<li class="even ">
|
88
88
|
<div class="item">
|
89
|
-
<span class='object_link'><a href="Mangrove/Result/
|
90
|
-
<small>Mangrove::Result::
|
89
|
+
<span class='object_link'><a href="Mangrove/Result/Ok.html#==-instance_method" title="Mangrove::Result::Ok#== (method)">#==</a></span>
|
90
|
+
<small>Mangrove::Result::Ok</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/
|
98
|
-
<small>Mangrove::Result::
|
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.html#==-instance_method" title="Mangrove::Option#== (method)">#==</a></span>
|
106
|
-
<small>Mangrove::Option</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/
|
122
|
-
<small>Mangrove::Result::
|
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>
|
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/
|
130
|
-
<small>Mangrove::Result::
|
129
|
+
<span class='object_link'><a href="Mangrove/Result/Ok.html#err%3F-instance_method" title="Mangrove::Result::Ok#err? (method)">#err?</a></span>
|
130
|
+
<small>Mangrove::Result::Ok</small>
|
131
131
|
</div>
|
132
132
|
</li>
|
133
133
|
|
@@ -148,6 +148,22 @@
|
|
148
148
|
</li>
|
149
149
|
|
150
150
|
|
151
|
+
<li class="even ">
|
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>
|
155
|
+
</div>
|
156
|
+
</li>
|
157
|
+
|
158
|
+
|
159
|
+
<li class="odd ">
|
160
|
+
<div class="item">
|
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
|
+
</div>
|
164
|
+
</li>
|
165
|
+
|
166
|
+
|
151
167
|
<li class="even ">
|
152
168
|
<div class="item">
|
153
169
|
<span class='object_link'><a href="Mangrove/Option/Some.html#expect!-instance_method" title="Mangrove::Option::Some#expect! (method)">#expect!</a></span>
|
@@ -166,15 +182,15 @@
|
|
166
182
|
|
167
183
|
<li class="even ">
|
168
184
|
<div class="item">
|
169
|
-
<span class='object_link'><a href="Mangrove/
|
170
|
-
<small>Mangrove::
|
185
|
+
<span class='object_link'><a href="Mangrove/Result.html#expect!-instance_method" title="Mangrove::Result#expect! (method)">#expect!</a></span>
|
186
|
+
<small>Mangrove::Result</small>
|
171
187
|
</div>
|
172
188
|
</li>
|
173
189
|
|
174
190
|
|
175
191
|
<li class="odd ">
|
176
192
|
<div class="item">
|
177
|
-
<span class='object_link'><a href="Mangrove/Result.html#
|
193
|
+
<span class='object_link'><a href="Mangrove/Result.html#expect_with!-instance_method" title="Mangrove::Result#expect_with! (method)">#expect_with!</a></span>
|
178
194
|
<small>Mangrove::Result</small>
|
179
195
|
</div>
|
180
196
|
</li>
|
@@ -182,12 +198,44 @@
|
|
182
198
|
|
183
199
|
<li class="even ">
|
184
200
|
<div class="item">
|
185
|
-
<span class='object_link'><a href="Mangrove/
|
201
|
+
<span class='object_link'><a href="Mangrove/Option/Some.html#expect_with!-instance_method" title="Mangrove::Option::Some#expect_with! (method)">#expect_with!</a></span>
|
202
|
+
<small>Mangrove::Option::Some</small>
|
203
|
+
</div>
|
204
|
+
</li>
|
205
|
+
|
206
|
+
|
207
|
+
<li class="odd ">
|
208
|
+
<div class="item">
|
209
|
+
<span class='object_link'><a href="Mangrove/Result/Err.html#expect_with!-instance_method" title="Mangrove::Result::Err#expect_with! (method)">#expect_with!</a></span>
|
210
|
+
<small>Mangrove::Result::Err</small>
|
211
|
+
</div>
|
212
|
+
</li>
|
213
|
+
|
214
|
+
|
215
|
+
<li class="even ">
|
216
|
+
<div class="item">
|
217
|
+
<span class='object_link'><a href="Mangrove/Option/None.html#expect_with!-instance_method" title="Mangrove::Option::None#expect_with! (method)">#expect_with!</a></span>
|
218
|
+
<small>Mangrove::Option::None</small>
|
219
|
+
</div>
|
220
|
+
</li>
|
221
|
+
|
222
|
+
|
223
|
+
<li class="odd ">
|
224
|
+
<div class="item">
|
225
|
+
<span class='object_link'><a href="Mangrove/Result/Ok.html#expect_with!-instance_method" title="Mangrove::Result::Ok#expect_with! (method)">#expect_with!</a></span>
|
186
226
|
<small>Mangrove::Result::Ok</small>
|
187
227
|
</div>
|
188
228
|
</li>
|
189
229
|
|
190
230
|
|
231
|
+
<li class="even ">
|
232
|
+
<div class="item">
|
233
|
+
<span class='object_link'><a href="Mangrove/Option.html#expect_with!-instance_method" title="Mangrove::Option#expect_with! (method)">#expect_with!</a></span>
|
234
|
+
<small>Mangrove::Option</small>
|
235
|
+
</div>
|
236
|
+
</li>
|
237
|
+
|
238
|
+
|
191
239
|
<li class="odd ">
|
192
240
|
<div class="item">
|
193
241
|
<span class='object_link'><a href="Mangrove/Result.html#from_results-class_method" title="Mangrove::Result.from_results (method)">from_results</a></span>
|
@@ -198,8 +246,8 @@
|
|
198
246
|
|
199
247
|
<li class="even ">
|
200
248
|
<div class="item">
|
201
|
-
<span class='object_link'><a href="Mangrove/Result/
|
202
|
-
<small>Mangrove::Result::
|
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>
|
203
251
|
</div>
|
204
252
|
</li>
|
205
253
|
|
@@ -214,8 +262,8 @@
|
|
214
262
|
|
215
263
|
<li class="even ">
|
216
264
|
<div class="item">
|
217
|
-
<span class='object_link'><a href="Mangrove/
|
218
|
-
<small>Mangrove::
|
265
|
+
<span class='object_link'><a href="Mangrove/Result/Ok.html#initialize-instance_method" title="Mangrove::Result::Ok#initialize (method)">#initialize</a></span>
|
266
|
+
<small>Mangrove::Result::Ok</small>
|
219
267
|
</div>
|
220
268
|
</li>
|
221
269
|
|
@@ -230,8 +278,8 @@
|
|
230
278
|
|
231
279
|
<li class="even ">
|
232
280
|
<div class="item">
|
233
|
-
<span class='object_link'><a href="Mangrove/
|
234
|
-
<small>Mangrove::
|
281
|
+
<span class='object_link'><a href="Mangrove/Option/Some.html#initialize-instance_method" title="Mangrove::Option::Some#initialize (method)">#initialize</a></span>
|
282
|
+
<small>Mangrove::Option::Some</small>
|
235
283
|
</div>
|
236
284
|
</li>
|
237
285
|
|
@@ -246,16 +294,16 @@
|
|
246
294
|
|
247
295
|
<li class="even ">
|
248
296
|
<div class="item">
|
249
|
-
<span class='object_link'><a href="Mangrove/
|
250
|
-
<small>Mangrove::
|
297
|
+
<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>
|
298
|
+
<small>Mangrove::Option::ControlSignal</small>
|
251
299
|
</div>
|
252
300
|
</li>
|
253
301
|
|
254
302
|
|
255
303
|
<li class="odd ">
|
256
304
|
<div class="item">
|
257
|
-
<span class='object_link'><a href="Mangrove/
|
258
|
-
<small>Mangrove::
|
305
|
+
<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>
|
306
|
+
<small>Mangrove::Result::ControlSignal</small>
|
259
307
|
</div>
|
260
308
|
</li>
|
261
309
|
|
@@ -310,88 +358,88 @@
|
|
310
358
|
|
311
359
|
<li class="even ">
|
312
360
|
<div class="item">
|
313
|
-
<span class='object_link'><a href="Mangrove/Result/
|
314
|
-
<small>Mangrove::Result::
|
361
|
+
<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>
|
362
|
+
<small>Mangrove::Result::Err</small>
|
315
363
|
</div>
|
316
364
|
</li>
|
317
365
|
|
318
366
|
|
319
367
|
<li class="odd ">
|
320
368
|
<div class="item">
|
321
|
-
<span class='object_link'><a href="Mangrove/Result
|
322
|
-
<small>Mangrove::Result
|
369
|
+
<span class='object_link'><a href="Mangrove/Result.html#map_ok-instance_method" title="Mangrove::Result#map_ok (method)">#map_ok</a></span>
|
370
|
+
<small>Mangrove::Result</small>
|
323
371
|
</div>
|
324
372
|
</li>
|
325
373
|
|
326
374
|
|
327
375
|
<li class="even ">
|
328
376
|
<div class="item">
|
329
|
-
<span class='object_link'><a href="Mangrove/Result.html#map_ok-instance_method" title="Mangrove::Result#map_ok (method)">#map_ok</a></span>
|
330
|
-
<small>Mangrove::Result</small>
|
377
|
+
<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>
|
378
|
+
<small>Mangrove::Result::Ok</small>
|
331
379
|
</div>
|
332
380
|
</li>
|
333
381
|
|
334
382
|
|
335
383
|
<li class="odd ">
|
336
384
|
<div class="item">
|
337
|
-
<span class='object_link'><a href="Mangrove/Option
|
338
|
-
<small>Mangrove::Option
|
385
|
+
<span class='object_link'><a href="Mangrove/Option.html#map_some-instance_method" title="Mangrove::Option#map_some (method)">#map_some</a></span>
|
386
|
+
<small>Mangrove::Option</small>
|
339
387
|
</div>
|
340
388
|
</li>
|
341
389
|
|
342
390
|
|
343
391
|
<li class="even ">
|
344
392
|
<div class="item">
|
345
|
-
<span class='object_link'><a href="Mangrove/Option/
|
346
|
-
<small>Mangrove::Option::
|
393
|
+
<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>
|
394
|
+
<small>Mangrove::Option::Some</small>
|
347
395
|
</div>
|
348
396
|
</li>
|
349
397
|
|
350
398
|
|
351
399
|
<li class="odd ">
|
352
400
|
<div class="item">
|
353
|
-
<span class='object_link'><a href="Mangrove/Option.html#map_some-instance_method" title="Mangrove::Option#map_some (method)">#map_some</a></span>
|
354
|
-
<small>Mangrove::Option</small>
|
401
|
+
<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>
|
402
|
+
<small>Mangrove::Option::None</small>
|
355
403
|
</div>
|
356
404
|
</li>
|
357
405
|
|
358
406
|
|
359
407
|
<li class="even ">
|
360
408
|
<div class="item">
|
361
|
-
<span class='object_link'><a href="Mangrove/Option
|
362
|
-
<small>Mangrove::Option
|
409
|
+
<span class='object_link'><a href="Mangrove/Option.html#none%3F-instance_method" title="Mangrove::Option#none? (method)">#none?</a></span>
|
410
|
+
<small>Mangrove::Option</small>
|
363
411
|
</div>
|
364
412
|
</li>
|
365
413
|
|
366
414
|
|
367
415
|
<li class="odd ">
|
368
416
|
<div class="item">
|
369
|
-
<span class='object_link'><a href="Mangrove/Option/
|
370
|
-
<small>Mangrove::Option::
|
417
|
+
<span class='object_link'><a href="Mangrove/Option/None.html#none%3F-instance_method" title="Mangrove::Option::None#none? (method)">#none?</a></span>
|
418
|
+
<small>Mangrove::Option::None</small>
|
371
419
|
</div>
|
372
420
|
</li>
|
373
421
|
|
374
422
|
|
375
423
|
<li class="even ">
|
376
424
|
<div class="item">
|
377
|
-
<span class='object_link'><a href="Mangrove/Option.html#none%3F-instance_method" title="Mangrove::Option#none? (method)">#none?</a></span>
|
378
|
-
<small>Mangrove::Option</small>
|
425
|
+
<span class='object_link'><a href="Mangrove/Option/Some.html#none%3F-instance_method" title="Mangrove::Option::Some#none? (method)">#none?</a></span>
|
426
|
+
<small>Mangrove::Option::Some</small>
|
379
427
|
</div>
|
380
428
|
</li>
|
381
429
|
|
382
430
|
|
383
431
|
<li class="odd ">
|
384
432
|
<div class="item">
|
385
|
-
<span class='object_link'><a href="Mangrove/Result
|
386
|
-
<small>Mangrove::Result
|
433
|
+
<span class='object_link'><a href="Mangrove/Result.html#ok%3F-instance_method" title="Mangrove::Result#ok? (method)">#ok?</a></span>
|
434
|
+
<small>Mangrove::Result</small>
|
387
435
|
</div>
|
388
436
|
</li>
|
389
437
|
|
390
438
|
|
391
439
|
<li class="even ">
|
392
440
|
<div class="item">
|
393
|
-
<span class='object_link'><a href="Mangrove/Result.html#ok%3F-instance_method" title="Mangrove::Result#ok? (method)">#ok?</a></span>
|
394
|
-
<small>Mangrove::Result</small>
|
441
|
+
<span class='object_link'><a href="Mangrove/Result/Ok.html#ok%3F-instance_method" title="Mangrove::Result::Ok#ok? (method)">#ok?</a></span>
|
442
|
+
<small>Mangrove::Result::Ok</small>
|
395
443
|
</div>
|
396
444
|
</li>
|
397
445
|
|
@@ -414,8 +462,8 @@
|
|
414
462
|
|
415
463
|
<li class="odd ">
|
416
464
|
<div class="item">
|
417
|
-
<span class='object_link'><a href="Mangrove/Option
|
418
|
-
<small>Mangrove::Option
|
465
|
+
<span class='object_link'><a href="Mangrove/Option.html#some%3F-instance_method" title="Mangrove::Option#some? (method)">#some?</a></span>
|
466
|
+
<small>Mangrove::Option</small>
|
419
467
|
</div>
|
420
468
|
</li>
|
421
469
|
|
@@ -430,48 +478,48 @@
|
|
430
478
|
|
431
479
|
<li class="odd ">
|
432
480
|
<div class="item">
|
433
|
-
<span class='object_link'><a href="Mangrove/Option.html#some%3F-instance_method" title="Mangrove::Option#some? (method)">#some?</a></span>
|
434
|
-
<small>Mangrove::Option</small>
|
481
|
+
<span class='object_link'><a href="Mangrove/Option/None.html#some%3F-instance_method" title="Mangrove::Option::None#some? (method)">#some?</a></span>
|
482
|
+
<small>Mangrove::Option::None</small>
|
435
483
|
</div>
|
436
484
|
</li>
|
437
485
|
|
438
486
|
|
439
487
|
<li class="even ">
|
440
488
|
<div class="item">
|
441
|
-
<span class='object_link'><a href="Mangrove/Result/
|
442
|
-
<small>Mangrove::Result::
|
489
|
+
<span class='object_link'><a href="Mangrove/Result/Ok.html#to_s-instance_method" title="Mangrove::Result::Ok#to_s (method)">#to_s</a></span>
|
490
|
+
<small>Mangrove::Result::Ok</small>
|
443
491
|
</div>
|
444
492
|
</li>
|
445
493
|
|
446
494
|
|
447
495
|
<li class="odd ">
|
448
496
|
<div class="item">
|
449
|
-
<span class='object_link'><a href="Mangrove/Result/
|
450
|
-
<small>Mangrove::Result::
|
497
|
+
<span class='object_link'><a href="Mangrove/Result/Err.html#to_s-instance_method" title="Mangrove::Result::Err#to_s (method)">#to_s</a></span>
|
498
|
+
<small>Mangrove::Result::Err</small>
|
451
499
|
</div>
|
452
500
|
</li>
|
453
501
|
|
454
502
|
|
455
503
|
<li class="even ">
|
456
504
|
<div class="item">
|
457
|
-
<span class='object_link'><a href="Mangrove/Option
|
458
|
-
<small>Mangrove::Option
|
505
|
+
<span class='object_link'><a href="Mangrove/Option.html#transpose-instance_method" title="Mangrove::Option#transpose (method)">#transpose</a></span>
|
506
|
+
<small>Mangrove::Option</small>
|
459
507
|
</div>
|
460
508
|
</li>
|
461
509
|
|
462
510
|
|
463
511
|
<li class="odd ">
|
464
512
|
<div class="item">
|
465
|
-
<span class='object_link'><a href="Mangrove/Option.html#transpose-instance_method" title="Mangrove::Option#transpose (method)">#transpose</a></span>
|
466
|
-
<small>Mangrove::Option</small>
|
513
|
+
<span class='object_link'><a href="Mangrove/Option/Some.html#transpose-instance_method" title="Mangrove::Option::Some#transpose (method)">#transpose</a></span>
|
514
|
+
<small>Mangrove::Option::Some</small>
|
467
515
|
</div>
|
468
516
|
</li>
|
469
517
|
|
470
518
|
|
471
519
|
<li class="even ">
|
472
520
|
<div class="item">
|
473
|
-
<span class='object_link'><a href="Mangrove/Option/
|
474
|
-
<small>Mangrove::Option::
|
521
|
+
<span class='object_link'><a href="Mangrove/Option/None.html#transpose-instance_method" title="Mangrove::Option::None#transpose (method)">#transpose</a></span>
|
522
|
+
<small>Mangrove::Option::None</small>
|
475
523
|
</div>
|
476
524
|
</li>
|
477
525
|
|
@@ -486,16 +534,16 @@
|
|
486
534
|
|
487
535
|
<li class="even ">
|
488
536
|
<div class="item">
|
489
|
-
<span class='object_link'><a href="Mangrove/
|
490
|
-
<small>Mangrove::
|
537
|
+
<span class='object_link'><a href="Mangrove/Result/Ok.html#unwrap!-instance_method" title="Mangrove::Result::Ok#unwrap! (method)">#unwrap!</a></span>
|
538
|
+
<small>Mangrove::Result::Ok</small>
|
491
539
|
</div>
|
492
540
|
</li>
|
493
541
|
|
494
542
|
|
495
543
|
<li class="odd ">
|
496
544
|
<div class="item">
|
497
|
-
<span class='object_link'><a href="Mangrove/Option.html#unwrap!-instance_method" title="Mangrove::Option#unwrap! (method)">#unwrap!</a></span>
|
498
|
-
<small>Mangrove::Option</small>
|
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>
|
499
547
|
</div>
|
500
548
|
</li>
|
501
549
|
|
@@ -518,8 +566,8 @@
|
|
518
566
|
|
519
567
|
<li class="even ">
|
520
568
|
<div class="item">
|
521
|
-
<span class='object_link'><a href="Mangrove/
|
522
|
-
<small>Mangrove::
|
569
|
+
<span class='object_link'><a href="Mangrove/Option.html#unwrap!-instance_method" title="Mangrove::Option#unwrap! (method)">#unwrap!</a></span>
|
570
|
+
<small>Mangrove::Option</small>
|
523
571
|
</div>
|
524
572
|
</li>
|
525
573
|
|
@@ -534,8 +582,8 @@
|
|
534
582
|
|
535
583
|
<li class="even ">
|
536
584
|
<div class="item">
|
537
|
-
<span class='object_link'><a href="Mangrove/Option/
|
538
|
-
<small>Mangrove::Option::
|
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>
|
586
|
+
<small>Mangrove::Option::Some</small>
|
539
587
|
</div>
|
540
588
|
</li>
|
541
589
|
|
@@ -550,8 +598,8 @@
|
|
550
598
|
|
551
599
|
<li class="even ">
|
552
600
|
<div class="item">
|
553
|
-
<span class='object_link'><a href="Mangrove/Option/
|
554
|
-
<small>Mangrove::Option::
|
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>
|
602
|
+
<small>Mangrove::Option::None</small>
|
555
603
|
</div>
|
556
604
|
</li>
|
557
605
|
|
@@ -100,7 +100,7 @@
|
|
100
100
|
</div>
|
101
101
|
|
102
102
|
<div id="footer">
|
103
|
-
Generated on
|
103
|
+
Generated on Wed Oct 18 11:52:43 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>
|