doc/rdoc/more/classes/CacheDecorator.html in facets-2.4.3 vs doc/rdoc/more/classes/CacheDecorator.html in facets-2.4.4
- old
+ new
@@ -95,11 +95,11 @@
x.cached.tick #=> 2
x.tick #=> 4
x.cached.tick #=> 2
</pre>
<p>
-You can also use to <a href="CacheDecorator.html#M000662">cache</a> a
+You can also use to <a href="CacheDecorator.html#M000698">cache</a> a
collections of objects to gain code speed ups.
</p>
<pre>
points = points.collect{|point| Cache.cache(point)}
</pre>
@@ -120,30 +120,30 @@
<div class="sectiontitle">Methods</div>
<ul>
- <li><a href="#M000662">cache</a></li>
- <li><a href="#M000660">method_missing</a></li>
- <li><a href="#M000659">new</a></li>
- <li><a href="#M000661">self</a></li>
- <li><a href="#M000663">uncache</a></li>
+ <li><a href="#M000698">cache</a></li>
+ <li><a href="#M000696">method_missing</a></li>
+ <li><a href="#M000695">new</a></li>
+ <li><a href="#M000697">self</a></li>
+ <li><a href="#M000699">uncache</a></li>
</ul>
<div class="sectiontitle">Public Class methods</div>
<div class="method">
<div class="title">
- <a name="M000662"></a><b>cache</b>(object)
+ <a name="M000698"></a><b>cache</b>(object)
</div>
<div class="sourcecode">
- <p class="source-link">[ <a href="javascript:toggleSource('M000662_source')" id="l_M000662_source">show source</a> ]</p>
- <div id="M000662_source" class="dyn-source">
+ <p class="source-link">[ <a href="javascript:toggleSource('M000698_source')" id="l_M000698_source">show source</a> ]</p>
+ <div id="M000698_source" class="dyn-source">
<pre>
<span class="ruby-comment cmt"># File lib/more/facets/cachedecorator.rb, line 104</span>
<span class="ruby-keyword kw">def</span> <span class="ruby-keyword kw">self</span>.<span class="ruby-identifier">cache</span>(<span class="ruby-identifier">object</span>)
<span class="ruby-constant">Cache</span>.<span class="ruby-identifier">new</span>(<span class="ruby-identifier">object</span>)
<span class="ruby-keyword kw">end</span>
@@ -151,15 +151,15 @@
</div>
</div>
</div>
<div class="method">
<div class="title">
- <a name="M000659"></a><b>new</b>(object)
+ <a name="M000695"></a><b>new</b>(object)
</div>
<div class="sourcecode">
- <p class="source-link">[ <a href="javascript:toggleSource('M000659_source')" id="l_M000659_source">show source</a> ]</p>
- <div id="M000659_source" class="dyn-source">
+ <p class="source-link">[ <a href="javascript:toggleSource('M000695_source')" id="l_M000695_source">show source</a> ]</p>
+ <div id="M000695_source" class="dyn-source">
<pre>
<span class="ruby-comment cmt"># File lib/more/facets/cachedecorator.rb, line 92</span>
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">initialize</span>(<span class="ruby-identifier">object</span>)
<span class="ruby-ivar">@self</span> = <span class="ruby-identifier">object</span>
<span class="ruby-ivar">@cache</span> = {}
@@ -168,15 +168,15 @@
</div>
</div>
</div>
<div class="method">
<div class="title">
- <a name="M000663"></a><b>uncache</b>(cached_object)
+ <a name="M000699"></a><b>uncache</b>(cached_object)
</div>
<div class="sourcecode">
- <p class="source-link">[ <a href="javascript:toggleSource('M000663_source')" id="l_M000663_source">show source</a> ]</p>
- <div id="M000663_source" class="dyn-source">
+ <p class="source-link">[ <a href="javascript:toggleSource('M000699_source')" id="l_M000699_source">show source</a> ]</p>
+ <div id="M000699_source" class="dyn-source">
<pre>
<span class="ruby-comment cmt"># File lib/more/facets/cachedecorator.rb, line 108</span>
<span class="ruby-keyword kw">def</span> <span class="ruby-keyword kw">self</span>.<span class="ruby-identifier">uncache</span>(<span class="ruby-identifier">cached_object</span>)
<span class="ruby-identifier">cached_object</span>.<span class="ruby-identifier">self</span>
<span class="ruby-keyword kw">end</span>
@@ -185,15 +185,15 @@
</div>
</div>
<div class="sectiontitle">Public Instance methods</div>
<div class="method">
<div class="title">
- <a name="M000660"></a><b>method_missing</b>(method_name, *args, &block)
+ <a name="M000696"></a><b>method_missing</b>(method_name, *args, &block)
</div>
<div class="sourcecode">
- <p class="source-link">[ <a href="javascript:toggleSource('M000660_source')" id="l_M000660_source">show source</a> ]</p>
- <div id="M000660_source" class="dyn-source">
+ <p class="source-link">[ <a href="javascript:toggleSource('M000696_source')" id="l_M000696_source">show source</a> ]</p>
+ <div id="M000696_source" class="dyn-source">
<pre>
<span class="ruby-comment cmt"># File lib/more/facets/cachedecorator.rb, line 97</span>
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">method_missing</span>(<span class="ruby-identifier">method_name</span>, <span class="ruby-operator">*</span><span class="ruby-identifier">args</span>, <span class="ruby-operator">&</span><span class="ruby-identifier">block</span>)
<span class="ruby-comment cmt"># Not thread-safe! Speed is important in caches... ;]</span>
<span class="ruby-ivar">@cache</span>[[<span class="ruby-identifier">method_name</span>, <span class="ruby-identifier">args</span>, <span class="ruby-identifier">block</span>]] <span class="ruby-operator">||=</span> <span class="ruby-ivar">@self</span>.<span class="ruby-identifier">__send__</span>(<span class="ruby-identifier">method_name</span>, <span class="ruby-operator">*</span><span class="ruby-identifier">args</span>, <span class="ruby-operator">&</span><span class="ruby-identifier">block</span>)
@@ -202,14 +202,14 @@
</div>
</div>
</div>
<div class="method">
<div class="title">
- <a name="M000661"></a><b>self</b>()
+ <a name="M000697"></a><b>self</b>()
</div>
<div class="sourcecode">
- <p class="source-link">[ <a href="javascript:toggleSource('M000661_source')" id="l_M000661_source">show source</a> ]</p>
- <div id="M000661_source" class="dyn-source">
+ <p class="source-link">[ <a href="javascript:toggleSource('M000697_source')" id="l_M000697_source">show source</a> ]</p>
+ <div id="M000697_source" class="dyn-source">
<pre>
<span class="ruby-comment cmt"># File lib/more/facets/cachedecorator.rb, line 102</span>
<span class="ruby-keyword kw">def</span> <span class="ruby-keyword kw">self</span>; <span class="ruby-ivar">@self</span>; <span class="ruby-keyword kw">end</span>
</pre>
</div>
\ No newline at end of file