docs/Mangrove/Option/None.html in mangrove-0.5.0 vs docs/Mangrove/Option/None.html in mangrove-0.6.0
- old
+ new
@@ -284,10 +284,32 @@
<li class="public ">
<span class="summary_signature">
+ <a href="#transpose-instance_method" title="#transpose (instance method)">#<strong>transpose</strong>(err) ⇒ Mangrove::Result[InnerType, T.type_parameter(:ErrType)] </a>
+
+
+
+ </span>
+
+
+
+
+
+
+
+
+
+ <span class="summary_desc"><div class='inline'></div></span>
+
+</li>
+
+
+ <li class="public ">
+ <span class="summary_signature">
+
<a href="#unwrap!-instance_method" title="#unwrap! (instance method)">#<strong>unwrap!</strong> ⇒ InnerType </a>
</span>
@@ -399,24 +421,24 @@
<tr>
<td>
<pre class="lines">
-102
-103
-104
-105
-106
107
108
109
110
111
-112</pre>
+112
+113
+114
+115
+116
+117</pre>
</td>
<td>
- <pre class="code"><span class="info file"># File 'lib/mangrove/option.rb', line 102</span>
+ <pre class="code"><span class="info file"># File 'lib/mangrove/option.rb', line 107</span>
<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>
<span class='kw'>case</span> <span class='id identifier rubyid_other'>other</span>
<span class='kw'>when</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="Some.html" title="Mangrove::Option::Some (class)">Some</a></span></span>
<span class='kw'>false</span>
@@ -495,16 +517,16 @@
<tr>
<td>
<pre class="lines">
-125
-126
-127</pre>
+130
+131
+132</pre>
</td>
<td>
- <pre class="code"><span class="info file"># File 'lib/mangrove/option.rb', line 125</span>
+ <pre class="code"><span class="info file"># File 'lib/mangrove/option.rb', line 130</span>
<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>
<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>
<span class='kw'>end</span></pre>
</td>
@@ -562,16 +584,16 @@
<tr>
<td>
<pre class="lines">
-141
-142
-143</pre>
+146
+147
+148</pre>
</td>
<td>
- <pre class="code"><span class="info file"># File 'lib/mangrove/option.rb', line 141</span>
+ <pre class="code"><span class="info file"># File 'lib/mangrove/option.rb', line 146</span>
<span class='kw'>def</span> <span class='id identifier rubyid_map_none'>map_none</span><span class='lparen'>(</span><span class='op'>&</span><span class='id identifier rubyid_block'>block</span><span class='rparen'>)</span>
<span class='id identifier rubyid_block'>block</span><span class='period'>.</span><span class='id identifier rubyid_call'>call</span>
<span class='kw'>end</span></pre>
</td>
@@ -629,16 +651,16 @@
<tr>
<td>
<pre class="lines">
-136
-137
-138</pre>
+141
+142
+143</pre>
</td>
<td>
- <pre class="code"><span class="info file"># File 'lib/mangrove/option.rb', line 136</span>
+ <pre class="code"><span class="info file"># File 'lib/mangrove/option.rb', line 141</span>
<span class='kw'>def</span> <span class='id identifier rubyid_map_some'>map_some</span><span class='lparen'>(</span><span class='op'>&</span><span class='id identifier rubyid__block'>_block</span><span class='rparen'>)</span>
<span class='kw'>self</span>
<span class='kw'>end</span></pre>
</td>
@@ -681,14 +703,14 @@
<tr>
<td>
<pre class="lines">
-133</pre>
+138</pre>
</td>
<td>
- <pre class="code"><span class="info file"># File 'lib/mangrove/option.rb', line 133</span>
+ <pre class="code"><span class="info file"># File 'lib/mangrove/option.rb', line 138</span>
<span class='kw'>def</span> <span class='id identifier rubyid_none?'>none?</span> <span class='op'>=</span> <span class='kw'>true</span></pre>
</td>
</tr>
</table>
@@ -729,22 +751,89 @@
<tr>
<td>
<pre class="lines">
-130</pre>
+135</pre>
</td>
<td>
- <pre class="code"><span class="info file"># File 'lib/mangrove/option.rb', line 130</span>
+ <pre class="code"><span class="info file"># File 'lib/mangrove/option.rb', line 135</span>
<span class='kw'>def</span> <span class='id identifier rubyid_some?'>some?</span> <span class='op'>=</span> <span class='kw'>false</span></pre>
</td>
</tr>
</table>
</div>
<div class="method_details ">
+ <h3 class="signature " id="transpose-instance_method">
+
+ #<strong>transpose</strong>(err) ⇒ <tt><span class='object_link'><a href="../Result.html" title="Mangrove::Result (module)">Mangrove::Result</a></span>[<span class='object_link'><a href="#InnerType-constant" title="Mangrove::Option::None::InnerType (constant)">InnerType</a></span>, T.type_parameter(:ErrType)]</tt>
+
+
+
+
+
+</h3><div class="docstring">
+ <div class="discussion">
+
+
+ </div>
+</div>
+<div class="tags">
+ <p class="tag_title">Parameters:</p>
+<ul class="param">
+
+ <li>
+
+ <span class='name'>err</span>
+
+
+ <span class='type'>(<tt>T.type_parameter(:ErrType)</tt>)</span>
+
+
+
+ </li>
+
+</ul>
+
+<p class="tag_title">Returns:</p>
+<ul class="return">
+
+ <li>
+
+
+ <span class='type'>(<tt><span class='object_link'><a href="../Result.html" title="Mangrove::Result (module)">Mangrove::Result</a></span>[<span class='object_link'><a href="#InnerType-constant" title="Mangrove::Option::None::InnerType (constant)">InnerType</a></span>, T.type_parameter(:ErrType)]</tt>)</span>
+
+
+
+ </li>
+
+</ul>
+
+</div><table class="source_code">
+ <tr>
+ <td>
+ <pre class="lines">
+
+
+151
+152
+153</pre>
+ </td>
+ <td>
+ <pre class="code"><span class="info file"># File 'lib/mangrove/option.rb', line 151</span>
+
+<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>
+ <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>
+<span class='kw'>end</span></pre>
+ </td>
+ </tr>
+</table>
+</div>
+
+ <div class="method_details ">
<h3 class="signature " id="unwrap!-instance_method">
#<strong>unwrap!</strong> ⇒ <tt><span class='object_link'><a href="#InnerType-constant" title="Mangrove::Option::None::InnerType (constant)">InnerType</a></span></tt>
@@ -790,16 +879,16 @@
<tr>
<td>
<pre class="lines">
-120
-121
-122</pre>
+125
+126
+127</pre>
</td>
<td>
- <pre class="code"><span class="info file"># File 'lib/mangrove/option.rb', line 120</span>
+ <pre class="code"><span class="info file"># File 'lib/mangrove/option.rb', line 125</span>
<span class='kw'>def</span> <span class='id identifier rubyid_unwrap!'>unwrap!</span>
<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'>"</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'>"</span></span><span class='rparen'>)</span>
<span class='kw'>end</span></pre>
</td>
@@ -857,16 +946,16 @@
<tr>
<td>
<pre class="lines">
-115
-116
-117</pre>
+120
+121
+122</pre>
</td>
<td>
- <pre class="code"><span class="info file"># File 'lib/mangrove/option.rb', line 115</span>
+ <pre class="code"><span class="info file"># File 'lib/mangrove/option.rb', line 120</span>
<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>
<span class='id identifier rubyid_default'>default</span>
<span class='kw'>end</span></pre>
</td>
@@ -877,10 +966,10 @@
</div>
</div>
<div id="footer">
- Generated on Thu Aug 31 15:04:25 2023 by
+ Generated on Fri Sep 1 17:32:57 2023 by
<a href="https://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
0.9.34 (ruby-3.2.2).
</div>
</div>
\ No newline at end of file