doc/rdoc/more/classes/Proc.html in facets-2.4.5 vs doc/rdoc/more/classes/Proc.html in facets-2.5.0

- old
+ new

@@ -78,27 +78,27 @@ <div class="sectiontitle">Methods</div> - <span style="padding-right: 5px;"><a href="#M000390">partial</a></span> - <span style="padding-right: 5px;"><a href="#M000391">to_openobject</a></span> + <span style="padding-right: 5px;"><a href="#M000317">partial</a></span> + <span style="padding-right: 5px;"><a href="#M000318">to_openobject</a></span> <div class="sectiontitle">Public Instance methods</div> <div class="method"> <div class="title"> - <a name="M000390"></a><b>partial</b>(*args) + <a name="M000317"></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#M000390">partial</a> <a href="Proc.html">Proc</a> object. +href="Proc.html#M000317">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 @@ -113,12 +113,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('M000390_source')" id="l_M000390_source">+</a> ]</p> - <div id="M000390_source" class="dyn-source"> + <p class="source-link">[ <a href="javascript:toggleSource('M000317_source')" id="l_M000317_source">+</a> ]</p> + <div id="M000317_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> @@ -131,11 +131,11 @@ </div> </div> </div> <div class="method"> <div class="title"> - <a name="M000391"></a><b>to_openobject</b>() + <a name="M000318"></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 @@ -156,11 +156,11 @@ 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('M000391_source')" id="l_M000391_source">+</a> ]</p> - <div id="M000391_source" class="dyn-source"> + <p class="source-link">[ <a href="javascript:toggleSource('M000318_source')" id="l_M000318_source">+</a> ]</p> + <div id="M000318_source" class="dyn-source"> <pre> <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> \ No newline at end of file