doc/rdoc/more/classes/Proc.html in facets-2.4.4 vs doc/rdoc/more/classes/Proc.html in facets-2.4.5
- old
+ new
@@ -30,16 +30,16 @@
return false;
if( elem.style.display == "block" )
{
elem.style.display = "none"
- link.innerHTML = "show source"
+ link.innerHTML = "+"
}
else
{
elem.style.display = "block"
- link.innerHTML = "hide source"
+ link.innerHTML = "-"
}
}
function openCode( url )
{
@@ -78,29 +78,27 @@
<div class="sectiontitle">Methods</div>
- <ul>
- <li><a href="#M000392">partial</a></li>
- <li><a href="#M000393">to_openobject</a></li>
- </ul>
+ <span style="padding-right: 5px;"><a href="#M000390">partial</a></span>
+ <span style="padding-right: 5px;"><a href="#M000391">to_openobject</a></span>
<div class="sectiontitle">Public Instance methods</div>
<div class="method">
<div class="title">
- <a name="M000392"></a><b>partial</b>(*args)
+ <a name="M000390"></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#M000392">partial</a> <a href="Proc.html">Proc</a> object.
+href="Proc.html#M000390">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] #=> 6
@@ -115,12 +113,12 @@
TODO: Parhaps ArgumentError would suffice, and we don‘t need <a
href="MissingArgument.html">MissingArgument</a>?
</p>
</div>
<div class="sourcecode">
- <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">
+ <p class="source-link">[ <a href="javascript:toggleSource('M000390_source')" id="l_M000390_source">+</a> ]</p>
+ <div id="M000390_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 +131,11 @@
</div>
</div>
</div>
<div class="method">
<div class="title">
- <a name="M000393"></a><b>to_openobject</b>()
+ <a name="M000391"></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,11 +156,11 @@
NOTE The <a href="Proc.html">Proc</a> must have an arity of one —no
more and no less.
</p>
</div>
<div class="sourcecode">
- <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">
+ <p class="source-link">[ <a href="javascript:toggleSource('M000391_source')" id="l_M000391_source">+</a> ]</p>
+ <div id="M000391_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