doc/rdoc/more/classes/Proc.html in facets-2.4.3 vs doc/rdoc/more/classes/Proc.html in facets-2.4.4

- old
+ new

@@ -79,28 +79,28 @@ <div class="sectiontitle">Methods</div> <ul> - <li><a href="#M000379">partial</a></li> - <li><a href="#M000380">to_openobject</a></li> + <li><a href="#M000392">partial</a></li> + <li><a href="#M000393">to_openobject</a></li> </ul> <div class="sectiontitle">Public Instance methods</div> <div class="method"> <div class="title"> - <a name="M000379"></a><b>partial</b>(*args) + <a name="M000392"></a><b>partial</b>(*args) </div> <div class="description"> <p> Convert a <a href="Proc.html">Proc</a> object into new <a -href="Proc.html#M000379">partial</a> <a href="Proc.html">Proc</a> object. +href="Proc.html#M000392">partial</a> <a href="Proc.html">Proc</a> object. </p> <pre> a = proc { |a,b,c| a+b+c } b = a.partial(__, 2, __) b[1,3] #=&gt; 6 @@ -115,12 +115,12 @@ TODO: Parhaps ArgumentError would suffice, and we don&#8216;t need <a href="MissingArgument.html">MissingArgument</a>? </p> </div> <div class="sourcecode"> - <p class="source-link">[ <a href="javascript:toggleSource('M000379_source')" id="l_M000379_source">show source</a> ]</p> - <div id="M000379_source" class="dyn-source"> + <p class="source-link">[ <a href="javascript:toggleSource('M000392_source')" id="l_M000392_source">show source</a> ]</p> + <div id="M000392_source" class="dyn-source"> <pre> <span class="ruby-comment cmt"># File lib/more/facets/partial.rb, line 27</span> <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">partial</span>(<span class="ruby-operator">*</span><span class="ruby-identifier">args</span>) <span class="ruby-constant">Proc</span>.<span class="ruby-identifier">new</span> <span class="ruby-keyword kw">do</span> <span class="ruby-operator">|</span><span class="ruby-operator">*</span><span class="ruby-identifier">spice</span><span class="ruby-operator">|</span> <span class="ruby-identifier">result</span> = <span class="ruby-identifier">args</span>.<span class="ruby-identifier">collect</span> <span class="ruby-keyword kw">do</span> <span class="ruby-operator">|</span><span class="ruby-identifier">a</span><span class="ruby-operator">|</span> @@ -133,11 +133,11 @@ </div> </div> </div> <div class="method"> <div class="title"> - <a name="M000380"></a><b>to_openobject</b>() + <a name="M000393"></a><b>to_openobject</b>() </div> <div class="description"> <p> Translates a <a href="Proc.html">Proc</a> into an <a href="OpenObject.html">OpenObject</a>. By droping an <a @@ -158,13 +158,13 @@ NOTE The <a href="Proc.html">Proc</a> must have an arity of one &#8212;no more and no less. </p> </div> <div class="sourcecode"> - <p class="source-link">[ <a href="javascript:toggleSource('M000380_source')" id="l_M000380_source">show source</a> ]</p> - <div id="M000380_source" class="dyn-source"> + <p class="source-link">[ <a href="javascript:toggleSource('M000393_source')" id="l_M000393_source">show source</a> ]</p> + <div id="M000393_source" class="dyn-source"> <pre> -<span class="ruby-comment cmt"># File lib/more/facets/openobject.rb, line 255</span> +<span class="ruby-comment cmt"># File lib/more/facets/openobject.rb, line 260</span> <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">to_openobject</span> <span class="ruby-identifier">raise</span> <span class="ruby-constant">ArgumentError</span>, <span class="ruby-value str">'bad arity for converting Proc to openobject'</span> <span class="ruby-keyword kw">if</span> <span class="ruby-identifier">arity</span> <span class="ruby-operator">!=</span> <span class="ruby-value">1</span> <span class="ruby-identifier">o</span> = <span class="ruby-constant">OpenObject</span>.<span class="ruby-identifier">new</span> <span class="ruby-keyword kw">self</span>.<span class="ruby-identifier">call</span>( <span class="ruby-identifier">o</span> ) <span class="ruby-identifier">o</span> \ No newline at end of file