docs/Mangrove/Result/Ok.html in mangrove-0.7.2 vs docs/Mangrove/Result/Ok.html in mangrove-0.8.0

- old
+ new

@@ -212,10 +212,32 @@ <li class="public "> <span class="summary_signature"> + <a href="#expect_with!-instance_method" title="#expect_with! (instance method)">#<strong>expect_with!</strong>(&amp;_block) &#x21d2; OkType </a> + + + + </span> + + + + + + + + + + <span class="summary_desc"><div class='inline'></div></span> + +</li> + + + <li class="public "> + <span class="summary_signature"> + <a href="#initialize-instance_method" title="#initialize (instance method)">#<strong>initialize</strong>(inner) &#x21d2; void </a> </span> @@ -428,16 +450,16 @@ <tr> <td> <pre class="lines"> -74 -75 -76</pre> +77 +78 +79</pre> </td> <td> - <pre class="code"><span class="info file"># File 'lib/mangrove/result.rb', line 74</span> + <pre class="code"><span class="info file"># File 'lib/mangrove/result.rb', line 77</span> <span class='kw'>def</span> <span class='id identifier rubyid_initialize'>initialize</span><span class='lparen'>(</span><span class='id identifier rubyid_inner'>inner</span><span class='rparen'>)</span> <span class='ivar'>@inner</span> <span class='op'>=</span> <span class='id identifier rubyid_inner'>inner</span> <span class='kw'>end</span></pre> </td> @@ -502,23 +524,23 @@ <tr> <td> <pre class="lines"> -79 -80 -81 82 83 84 85 86 87 -88</pre> +88 +89 +90 +91</pre> </td> <td> - <pre class="code"><span class="info file"># File 'lib/mangrove/result.rb', line 79</span> + <pre class="code"><span class="info file"># File 'lib/mangrove/result.rb', line 82</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="../Result.html" title="Mangrove::Result (module)">Result</a></span></span><span class='op'>::</span><span class='const'><span class='object_link'><a href="" title="Mangrove::Result::Ok (class)">Ok</a></span></span> <span class='id identifier rubyid_other'>other</span><span class='period'>.</span><span class='id identifier rubyid_instance_variable_get'>instance_variable_get</span><span class='lparen'>(</span><span class='symbol'>:@inner</span><span class='rparen'>)</span> <span class='op'>==</span> <span class='ivar'>@inner</span> @@ -568,14 +590,14 @@ <tr> <td> <pre class="lines"> -109</pre> +117</pre> </td> <td> - <pre class="code"><span class="info file"># File 'lib/mangrove/result.rb', line 109</span> + <pre class="code"><span class="info file"># File 'lib/mangrove/result.rb', line 117</span> <span class='kw'>def</span> <span class='id identifier rubyid_err?'>err?</span> <span class='op'>=</span> <span class='kw'>false</span></pre> </td> </tr> </table> @@ -631,26 +653,93 @@ <tr> <td> <pre class="lines"> -101 -102 -103</pre> +104 +105 +106</pre> </td> <td> - <pre class="code"><span class="info file"># File 'lib/mangrove/result.rb', line 101</span> + <pre class="code"><span class="info file"># File 'lib/mangrove/result.rb', line 104</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='ivar'>@inner</span> <span class='kw'>end</span></pre> </td> </tr> </table> </div> <div class="method_details "> + <h3 class="signature " id="expect_with!-instance_method"> + + #<strong>expect_with!</strong>(&amp;_block) &#x21d2; <tt><span class='object_link'><a href="#OkType-constant" title="Mangrove::Result::Ok::OkType (constant)">OkType</a></span></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'>_block</span> + + + <span class='type'>(<tt>T.proc.returns(T.untyped)</tt>)</span> + + + + </li> + +</ul> + +<p class="tag_title">Returns:</p> +<ul class="return"> + + <li> + + + <span class='type'>(<tt><span class='object_link'><a href="#OkType-constant" title="Mangrove::Result::Ok::OkType (constant)">OkType</a></span></tt>)</span> + + + + </li> + +</ul> + +</div><table class="source_code"> + <tr> + <td> + <pre class="lines"> + + +109 +110 +111</pre> + </td> + <td> + <pre class="code"><span class="info file"># File 'lib/mangrove/result.rb', line 109</span> + +<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> + <span class='ivar'>@inner</span> +<span class='kw'>end</span></pre> + </td> + </tr> +</table> +</div> + + <div class="method_details "> <h3 class="signature " id="map_err-instance_method"> #<strong>map_err</strong>(&amp;_block) &#x21d2; <tt><span class='object_link'><a href="../Result.html" title="Mangrove::Result (module)">Result</a></span>[<span class='object_link'><a href="#OkType-constant" title="Mangrove::Result::Ok::OkType (constant)">OkType</a></span>, <span class='object_link'><a href="#ErrType-constant" title="Mangrove::Result::Ok::ErrType (constant)">ErrType</a></span>]</tt> @@ -698,16 +787,16 @@ <tr> <td> <pre class="lines"> -117 -118 -119</pre> +125 +126 +127</pre> </td> <td> - <pre class="code"><span class="info file"># File 'lib/mangrove/result.rb', line 117</span> + <pre class="code"><span class="info file"># File 'lib/mangrove/result.rb', line 125</span> <span class='kw'>def</span> <span class='id identifier rubyid_map_err'>map_err</span><span class='lparen'>(</span><span class='op'>&amp;</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> @@ -765,16 +854,16 @@ <tr> <td> <pre class="lines"> -112 -113 -114</pre> +120 +121 +122</pre> </td> <td> - <pre class="code"><span class="info file"># File 'lib/mangrove/result.rb', line 112</span> + <pre class="code"><span class="info file"># File 'lib/mangrove/result.rb', line 120</span> <span class='kw'>def</span> <span class='id identifier rubyid_map_ok'>map_ok</span><span class='lparen'>(</span><span class='op'>&amp;</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='lparen'>(</span><span class='ivar'>@inner</span><span class='rparen'>)</span> <span class='kw'>end</span></pre> </td> @@ -817,14 +906,14 @@ <tr> <td> <pre class="lines"> -106</pre> +114</pre> </td> <td> - <pre class="code"><span class="info file"># File 'lib/mangrove/result.rb', line 106</span> + <pre class="code"><span class="info file"># File 'lib/mangrove/result.rb', line 114</span> <span class='kw'>def</span> <span class='id identifier rubyid_ok?'>ok?</span> <span class='op'>=</span> <span class='kw'>true</span></pre> </td> </tr> </table> @@ -865,16 +954,16 @@ <tr> <td> <pre class="lines"> -91 -92 -93</pre> +94 +95 +96</pre> </td> <td> - <pre class="code"><span class="info file"># File 'lib/mangrove/result.rb', line 91</span> + <pre class="code"><span class="info file"># File 'lib/mangrove/result.rb', line 94</span> <span class='kw'>def</span> <span class='id identifier rubyid_ok_inner'>ok_inner</span> <span class='ivar'>@inner</span> <span class='kw'>end</span></pre> </td> @@ -917,16 +1006,16 @@ <tr> <td> <pre class="lines"> -122 -123 -124</pre> +130 +131 +132</pre> </td> <td> - <pre class="code"><span class="info file"># File 'lib/mangrove/result.rb', line 122</span> + <pre class="code"><span class="info file"># File 'lib/mangrove/result.rb', line 130</span> <span class='kw'>def</span> <span class='id identifier rubyid_to_s'>to_s</span> <span class='tstring'><span class='tstring_beg'>&quot;</span><span class='embexpr_beg'>#{</span><span class='kw'>super</span><span class='embexpr_end'>}</span><span class='tstring_content'>: inner=`</span><span class='embexpr_beg'>#{</span><span class='ivar'>@inner</span><span class='embexpr_end'>}</span><span class='tstring_content'>`</span><span class='tstring_end'>&quot;</span></span> <span class='kw'>end</span></pre> </td> @@ -969,16 +1058,16 @@ <tr> <td> <pre class="lines"> -96 -97 -98</pre> +99 +100 +101</pre> </td> <td> - <pre class="code"><span class="info file"># File 'lib/mangrove/result.rb', line 96</span> + <pre class="code"><span class="info file"># File 'lib/mangrove/result.rb', line 99</span> <span class='kw'>def</span> <span class='id identifier rubyid_unwrap!'>unwrap!</span> <span class='ivar'>@inner</span> <span class='kw'>end</span></pre> </td> @@ -989,10 +1078,10 @@ </div> </div> <div id="footer"> - Generated on Fri Sep 15 12:06:26 2023 by + Generated on Wed Oct 18 11:45:16 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