doc/classes/Mack/Utils/RegistryMap.html in mack-facets-0.6.1.2 vs doc/classes/Mack/Utils/RegistryMap.html in mack-facets-0.7.0
- old
+ new
@@ -99,21 +99,21 @@
<div id="method-list">
<h3 class="section-bar">Methods</h3>
<div class="name-list">
- <a href="#M000048">add</a>
- <a href="#M000053">add</a>
- <a href="#M000051">clear!</a>
- <a href="#M000046">initial_state</a>
- <a href="#M000056">move_to_bottom</a>
- <a href="#M000055">move_to_top</a>
- <a href="#M000050">registered_items</a>
- <a href="#M000049">remove</a>
- <a href="#M000054">remove</a>
- <a href="#M000052">reset!</a>
- <a href="#M000047">reset!</a>
+ <a href="#M000050">add</a>
+ <a href="#M000055">add</a>
+ <a href="#M000053">clear!</a>
+ <a href="#M000048">initial_state</a>
+ <a href="#M000058">move_to_bottom</a>
+ <a href="#M000057">move_to_top</a>
+ <a href="#M000052">registered_items</a>
+ <a href="#M000051">remove</a>
+ <a href="#M000056">remove</a>
+ <a href="#M000054">reset!</a>
+ <a href="#M000049">reset!</a>
</div>
</div>
</div>
@@ -155,81 +155,81 @@
<!-- if method_list -->
<div id="methods">
<h3 class="section-bar">Public Class methods</h3>
- <div id="method-M000053" class="method-detail">
- <a name="M000053"></a>
+ <div id="method-M000055" class="method-detail">
+ <a name="M000055"></a>
<div class="method-heading">
- <a href="#M000053" class="method-signature">
+ <a href="#M000055" class="method-signature">
<span class="method-name">add</span><span class="method-args">(tag, klass, position = -1)</span>
</a>
</div>
<div class="method-description">
<p>
Adds an object to the list at a specified position. By default the position
is last.
</p>
<p><a class="source-toggle" href="#"
- onclick="toggleCode('M000053-source');return false;">[Source]</a></p>
- <div class="method-source-code" id="M000053-source">
+ onclick="toggleCode('M000055-source');return false;">[Source]</a></p>
+ <div class="method-source-code" id="M000055-source">
<pre>
<span class="ruby-comment cmt"># File lib/mack-facets/utils/registry_map.rb, line 70</span>
70: <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">add</span>(<span class="ruby-identifier">tag</span>, <span class="ruby-identifier">klass</span>, <span class="ruby-identifier">position</span> = <span class="ruby-value">-1</span>)
71: <span class="ruby-keyword kw">self</span>.<span class="ruby-identifier">instance</span>.<span class="ruby-identifier">add</span>(<span class="ruby-identifier">tag</span>, <span class="ruby-identifier">klass</span>, <span class="ruby-identifier">position</span>)
72: <span class="ruby-keyword kw">end</span>
</pre>
</div>
</div>
</div>
- <div id="method-M000051" class="method-detail">
- <a name="M000051"></a>
+ <div id="method-M000053" class="method-detail">
+ <a name="M000053"></a>
<div class="method-heading">
- <a href="#M000051" class="method-signature">
+ <a href="#M000053" class="method-signature">
<span class="method-name">clear!</span><span class="method-args">()</span>
</a>
</div>
<div class="method-description">
<p>
Emptys out the list of <a
-href="RegistryMap.html#M000050">registered_items</a>.
+href="RegistryMap.html#M000052">registered_items</a>.
</p>
<p><a class="source-toggle" href="#"
- onclick="toggleCode('M000051-source');return false;">[Source]</a></p>
- <div class="method-source-code" id="M000051-source">
+ onclick="toggleCode('M000053-source');return false;">[Source]</a></p>
+ <div class="method-source-code" id="M000053-source">
<pre>
<span class="ruby-comment cmt"># File lib/mack-facets/utils/registry_map.rb, line 60</span>
60: <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">clear!</span>
61: <span class="ruby-identifier">registered_items</span>.<span class="ruby-identifier">clear</span>
62: <span class="ruby-keyword kw">end</span>
</pre>
</div>
</div>
</div>
- <div id="method-M000056" class="method-detail">
- <a name="M000056"></a>
+ <div id="method-M000058" class="method-detail">
+ <a name="M000058"></a>
<div class="method-heading">
- <a href="#M000056" class="method-signature">
+ <a href="#M000058" class="method-signature">
<span class="method-name">move_to_bottom</span><span class="method-args">(tag, klass)</span>
</a>
</div>
<div class="method-description">
<p>
Moves an object to the bottom of the <a
-href="RegistryMap.html#M000050">registered_items</a> list.
+href="RegistryMap.html#M000052">registered_items</a> list.
</p>
<p><a class="source-toggle" href="#"
- onclick="toggleCode('M000056-source');return false;">[Source]</a></p>
- <div class="method-source-code" id="M000056-source">
+ onclick="toggleCode('M000058-source');return false;">[Source]</a></p>
+ <div class="method-source-code" id="M000058-source">
<pre>
<span class="ruby-comment cmt"># File lib/mack-facets/utils/registry_map.rb, line 85</span>
85: <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">move_to_bottom</span>(<span class="ruby-identifier">tag</span>, <span class="ruby-identifier">klass</span>)
86: <span class="ruby-identifier">remove</span>(<span class="ruby-identifier">tag</span>, <span class="ruby-identifier">klass</span>)
87: <span class="ruby-keyword kw">self</span>.<span class="ruby-identifier">instance</span>.<span class="ruby-identifier">add</span>(<span class="ruby-identifier">tag</span>, <span class="ruby-identifier">klass</span>)
@@ -237,107 +237,107 @@
</pre>
</div>
</div>
</div>
- <div id="method-M000055" class="method-detail">
- <a name="M000055"></a>
+ <div id="method-M000057" class="method-detail">
+ <a name="M000057"></a>
<div class="method-heading">
- <a href="#M000055" class="method-signature">
+ <a href="#M000057" class="method-signature">
<span class="method-name">move_to_top</span><span class="method-args">(tag, klass)</span>
</a>
</div>
<div class="method-description">
<p>
Moves an object to the top of the <a
-href="RegistryMap.html#M000050">registered_items</a> list.
+href="RegistryMap.html#M000052">registered_items</a> list.
</p>
<p><a class="source-toggle" href="#"
- onclick="toggleCode('M000055-source');return false;">[Source]</a></p>
- <div class="method-source-code" id="M000055-source">
+ onclick="toggleCode('M000057-source');return false;">[Source]</a></p>
+ <div class="method-source-code" id="M000057-source">
<pre>
<span class="ruby-comment cmt"># File lib/mack-facets/utils/registry_map.rb, line 80</span>
80: <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">move_to_top</span>(<span class="ruby-identifier">tag</span>, <span class="ruby-identifier">klass</span>)
81: <span class="ruby-keyword kw">self</span>.<span class="ruby-identifier">instance</span>.<span class="ruby-identifier">add</span>(<span class="ruby-identifier">tag</span>, <span class="ruby-identifier">klass</span>, <span class="ruby-value">0</span>)
82: <span class="ruby-keyword kw">end</span>
</pre>
</div>
</div>
</div>
- <div id="method-M000050" class="method-detail">
- <a name="M000050"></a>
+ <div id="method-M000052" class="method-detail">
+ <a name="M000052"></a>
<div class="method-heading">
- <a href="#M000050" class="method-signature">
+ <a href="#M000052" class="method-signature">
<span class="method-name">registered_items</span><span class="method-args">()</span>
</a>
</div>
<div class="method-description">
<p>
Returns the list of registered items.
</p>
<p><a class="source-toggle" href="#"
- onclick="toggleCode('M000050-source');return false;">[Source]</a></p>
- <div class="method-source-code" id="M000050-source">
+ onclick="toggleCode('M000052-source');return false;">[Source]</a></p>
+ <div class="method-source-code" id="M000052-source">
<pre>
<span class="ruby-comment cmt"># File lib/mack-facets/utils/registry_map.rb, line 55</span>
55: <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">registered_items</span>
56: <span class="ruby-keyword kw">self</span>.<span class="ruby-identifier">instance</span>.<span class="ruby-identifier">registered_items</span>
57: <span class="ruby-keyword kw">end</span>
</pre>
</div>
</div>
</div>
- <div id="method-M000054" class="method-detail">
- <a name="M000054"></a>
+ <div id="method-M000056" class="method-detail">
+ <a name="M000056"></a>
<div class="method-heading">
- <a href="#M000054" class="method-signature">
+ <a href="#M000056" class="method-signature">
<span class="method-name">remove</span><span class="method-args">(tag, klass)</span>
</a>
</div>
<div class="method-description">
<p>
Removes an object from the list.
</p>
<p><a class="source-toggle" href="#"
- onclick="toggleCode('M000054-source');return false;">[Source]</a></p>
- <div class="method-source-code" id="M000054-source">
+ onclick="toggleCode('M000056-source');return false;">[Source]</a></p>
+ <div class="method-source-code" id="M000056-source">
<pre>
<span class="ruby-comment cmt"># File lib/mack-facets/utils/registry_map.rb, line 75</span>
75: <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">remove</span>(<span class="ruby-identifier">tag</span>, <span class="ruby-identifier">klass</span>)
76: <span class="ruby-keyword kw">self</span>.<span class="ruby-identifier">instance</span>.<span class="ruby-identifier">remove</span>(<span class="ruby-identifier">tag</span>, <span class="ruby-identifier">klass</span>)
77: <span class="ruby-keyword kw">end</span>
</pre>
</div>
</div>
</div>
- <div id="method-M000052" class="method-detail">
- <a name="M000052"></a>
+ <div id="method-M000054" class="method-detail">
+ <a name="M000054"></a>
<div class="method-heading">
- <a href="#M000052" class="method-signature">
+ <a href="#M000054" class="method-signature">
<span class="method-name">reset!</span><span class="method-args">()</span>
</a>
</div>
<div class="method-description">
<p>
-Resets the <a href="RegistryMap.html#M000050">registered_items</a> list to
+Resets the <a href="RegistryMap.html#M000052">registered_items</a> list to
the list specified by the <a
-href="RegistryMap.html#M000046">initial_state</a> method.
+href="RegistryMap.html#M000048">initial_state</a> method.
</p>
<p><a class="source-toggle" href="#"
- onclick="toggleCode('M000052-source');return false;">[Source]</a></p>
- <div class="method-source-code" id="M000052-source">
+ onclick="toggleCode('M000054-source');return false;">[Source]</a></p>
+ <div class="method-source-code" id="M000054-source">
<pre>
<span class="ruby-comment cmt"># File lib/mack-facets/utils/registry_map.rb, line 65</span>
65: <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">reset!</span>
66: <span class="ruby-keyword kw">self</span>.<span class="ruby-identifier">instance</span>.<span class="ruby-identifier">reset!</span>
67: <span class="ruby-keyword kw">end</span>
@@ -346,27 +346,27 @@
</div>
</div>
<h3 class="section-bar">Public Instance methods</h3>
- <div id="method-M000048" class="method-detail">
- <a name="M000048"></a>
+ <div id="method-M000050" class="method-detail">
+ <a name="M000050"></a>
<div class="method-heading">
- <a href="#M000048" class="method-signature">
+ <a href="#M000050" class="method-signature">
<span class="method-name">add</span><span class="method-args">(tag, klass, position = -1)</span>
</a>
</div>
<div class="method-description">
<p>
Adds an object to the list at a specified position. By default the position
is last.
</p>
<p><a class="source-toggle" href="#"
- onclick="toggleCode('M000048-source');return false;">[Source]</a></p>
- <div class="method-source-code" id="M000048-source">
+ onclick="toggleCode('M000050-source');return false;">[Source]</a></p>
+ <div class="method-source-code" id="M000050-source">
<pre>
<span class="ruby-comment cmt"># File lib/mack-facets/utils/registry_map.rb, line 36</span>
36: <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">add</span>(<span class="ruby-identifier">tag</span>, <span class="ruby-identifier">klass</span>, <span class="ruby-identifier">position</span> = <span class="ruby-value">-1</span>)
37: <span class="ruby-ivar">@registered_items</span>[<span class="ruby-identifier">tag</span>] <span class="ruby-operator">||=</span> []
38: <span class="ruby-identifier">arr</span> = <span class="ruby-keyword kw">self</span>.<span class="ruby-identifier">registered_items</span>[<span class="ruby-identifier">tag</span>]
@@ -379,54 +379,54 @@
</pre>
</div>
</div>
</div>
- <div id="method-M000046" class="method-detail">
- <a name="M000046"></a>
+ <div id="method-M000048" class="method-detail">
+ <a name="M000048"></a>
<div class="method-heading">
- <a href="#M000046" class="method-signature">
+ <a href="#M000048" class="method-signature">
<span class="method-name">initial_state</span><span class="method-args">()</span>
</a>
</div>
<div class="method-description">
<p>
Override this method to set the initial state of the <a
-href="RegistryMap.html#M000050">registered_items</a> <a
+href="RegistryMap.html#M000052">registered_items</a> <a
href="../../Array.html">Array</a>. By default this list is empty.
</p>
<p><a class="source-toggle" href="#"
- onclick="toggleCode('M000046-source');return false;">[Source]</a></p>
- <div class="method-source-code" id="M000046-source">
+ onclick="toggleCode('M000048-source');return false;">[Source]</a></p>
+ <div class="method-source-code" id="M000048-source">
<pre>
<span class="ruby-comment cmt"># File lib/mack-facets/utils/registry_map.rb, line 26</span>
26: <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">initial_state</span>
27: {}
28: <span class="ruby-keyword kw">end</span>
</pre>
</div>
</div>
</div>
- <div id="method-M000049" class="method-detail">
- <a name="M000049"></a>
+ <div id="method-M000051" class="method-detail">
+ <a name="M000051"></a>
<div class="method-heading">
- <a href="#M000049" class="method-signature">
+ <a href="#M000051" class="method-signature">
<span class="method-name">remove</span><span class="method-args">(tag, klass)</span>
</a>
</div>
<div class="method-description">
<p>
Removes an object from the list.
</p>
<p><a class="source-toggle" href="#"
- onclick="toggleCode('M000049-source');return false;">[Source]</a></p>
- <div class="method-source-code" id="M000049-source">
+ onclick="toggleCode('M000051-source');return false;">[Source]</a></p>
+ <div class="method-source-code" id="M000051-source">
<pre>
<span class="ruby-comment cmt"># File lib/mack-facets/utils/registry_map.rb, line 47</span>
47: <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">remove</span>(<span class="ruby-identifier">tag</span>, <span class="ruby-identifier">klass</span>)
48: <span class="ruby-keyword kw">return</span> <span class="ruby-keyword kw">false</span> <span class="ruby-keyword kw">if</span> <span class="ruby-ivar">@registered_items</span>[<span class="ruby-identifier">tag</span>] <span class="ruby-operator">==</span> <span class="ruby-keyword kw">nil</span>
49: <span class="ruby-keyword kw">self</span>.<span class="ruby-identifier">registered_items</span>[<span class="ruby-identifier">tag</span>].<span class="ruby-identifier">delete</span>(<span class="ruby-identifier">klass</span>)
@@ -434,27 +434,27 @@
</pre>
</div>
</div>
</div>
- <div id="method-M000047" class="method-detail">
- <a name="M000047"></a>
+ <div id="method-M000049" class="method-detail">
+ <a name="M000049"></a>
<div class="method-heading">
- <a href="#M000047" class="method-signature">
+ <a href="#M000049" class="method-signature">
<span class="method-name">reset!</span><span class="method-args">()</span>
</a>
</div>
<div class="method-description">
<p>
-Resets the <a href="RegistryMap.html#M000050">registered_items</a> list to
+Resets the <a href="RegistryMap.html#M000052">registered_items</a> list to
the list specified by the <a
-href="RegistryMap.html#M000046">initial_state</a> method.
+href="RegistryMap.html#M000048">initial_state</a> method.
</p>
<p><a class="source-toggle" href="#"
- onclick="toggleCode('M000047-source');return false;">[Source]</a></p>
- <div class="method-source-code" id="M000047-source">
+ onclick="toggleCode('M000049-source');return false;">[Source]</a></p>
+ <div class="method-source-code" id="M000049-source">
<pre>
<span class="ruby-comment cmt"># File lib/mack-facets/utils/registry_map.rb, line 31</span>
31: <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">reset!</span>
32: <span class="ruby-ivar">@registered_items</span> = <span class="ruby-keyword kw">self</span>.<span class="ruby-identifier">initial_state</span>.<span class="ruby-identifier">dup</span>
33: <span class="ruby-keyword kw">end</span>
\ No newline at end of file