facets 2.5.1 → 2.5.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- data/CHANGES +113 -13
- data/MANIFEST +23 -19
- data/RELEASE +22 -22
- data/VERSION +1 -1
- data/doc/{archive → changelogs}/CHANGELOG-0.10.30 +0 -0
- data/doc/{archive → changelogs}/CHANGELOG-1.8.54 +0 -0
- data/doc/{archive → changelogs}/CHANGELOG-2.4.5 +0 -0
- data/doc/log/basic_stats/index.html +4 -4
- data/doc/rdoc/core/classes/Array.html +148 -148
- data/doc/rdoc/core/classes/Binding.html +45 -45
- data/doc/rdoc/core/classes/Class.html +38 -38
- data/doc/rdoc/core/classes/Comparable.html +26 -26
- data/doc/rdoc/core/classes/Enumerable.html +224 -139
- data/doc/rdoc/core/classes/Enumerable/Enumerator.html +126 -13
- data/doc/rdoc/core/classes/Enumerator.html +123 -13
- data/doc/rdoc/core/classes/Exception.html +8 -8
- data/doc/rdoc/core/classes/File.html +58 -58
- data/doc/rdoc/core/classes/FileTest.html +4 -4
- data/doc/rdoc/core/classes/Float.html +8 -8
- data/doc/rdoc/core/classes/Functor.html +12 -12
- data/doc/rdoc/core/classes/Hash.html +289 -266
- data/doc/rdoc/core/classes/Indexable.html +110 -110
- data/doc/rdoc/core/classes/Integer.html +2 -2
- data/doc/rdoc/core/classes/Kernel.html +329 -329
- data/doc/rdoc/core/classes/Lazy/Promise.html +1 -1
- data/doc/rdoc/core/classes/MatchData.html +15 -15
- data/doc/rdoc/core/classes/Module.html +161 -161
- data/doc/rdoc/core/classes/NilClass.html +23 -23
- data/doc/rdoc/core/classes/Numeric.html +27 -27
- data/doc/rdoc/core/classes/Object.html +8 -8
- data/doc/rdoc/core/classes/ObjectSpace.html +5 -5
- data/doc/rdoc/core/classes/Proc.html +22 -22
- data/doc/rdoc/core/classes/Regexp.html +1 -1
- data/doc/rdoc/core/classes/Stackable.html +31 -31
- data/doc/rdoc/core/classes/String.html +270 -270
- data/doc/rdoc/core/classes/Symbol.html +1 -1
- data/doc/rdoc/core/classes/TrueClass.html +8 -8
- data/doc/rdoc/core/classes/UnboundMethod.html +12 -12
- data/doc/rdoc/core/created.rid +1 -1
- data/doc/rdoc/core/files/lib/core/facets/hash/dearray_values_rb.html +92 -0
- data/doc/rdoc/core/files/lib/core/facets/to_hash_rb.html +2 -1
- data/doc/rdoc/core/fr_file_index.html +1 -0
- data/doc/rdoc/core/fr_method_index.html +401 -385
- data/doc/{archive → release-notes}/RELEASE-2.0.5 +0 -0
- data/doc/{archive → release-notes}/RELEASE-2.1.0 +0 -0
- data/doc/{archive → release-notes}/RELEASE-2.1.1 +0 -0
- data/doc/{archive → release-notes}/RELEASE-2.1.2 +0 -0
- data/doc/{archive → release-notes}/RELEASE-2.1.3 +0 -0
- data/doc/{archive → release-notes}/RELEASE-2.2.0 +0 -0
- data/doc/{archive → release-notes}/RELEASE-2.2.1 +0 -0
- data/doc/{archive → release-notes}/RELEASE-2.3.0 +0 -0
- data/doc/{archive → release-notes}/RELEASE-2.4.0 +0 -0
- data/doc/{archive → release-notes}/RELEASE-2.4.1 +0 -0
- data/doc/{archive → release-notes}/RELEASE-2.4.2 +0 -0
- data/doc/{archive → release-notes}/RELEASE-2.4.3 +0 -0
- data/doc/{archive → release-notes}/RELEASE-2.4.4 +0 -0
- data/doc/{archive → release-notes}/RELEASE-2.4.5 +0 -0
- data/doc/{archive → release-notes}/RELEASE-2.5.0 +0 -0
- data/lib/core/facets/hash/dearray_values.rb +46 -0
- data/lib/core/facets/to_hash.rb +109 -74
- data/task/setup.rake +17 -9
- data/test/core/hash/test_dearray_values.rb +19 -0
- data/test/core/test_to_hash.rb +116 -24
- metadata +26 -21
@@ -86,7 +86,7 @@ look true to Ruby, even if the actual result object is nil or false.
|
|
86
86
|
</p>
|
87
87
|
<p>
|
88
88
|
If you want to test the result for truth, get the unwrapped result object
|
89
|
-
via <a href="../Kernel.html#
|
89
|
+
via <a href="../Kernel.html#M000368">Kernel.demand</a>.
|
90
90
|
</p>
|
91
91
|
</div>
|
92
92
|
|
@@ -82,9 +82,9 @@ Object
|
|
82
82
|
|
83
83
|
|
84
84
|
<div class="sectiontitle">Methods</div>
|
85
|
-
<span style="padding-right: 5px;"><a href="#
|
86
|
-
<span style="padding-right: 5px;"><a href="#
|
87
|
-
<span style="padding-right: 5px;"><a href="#
|
85
|
+
<span style="padding-right: 5px;"><a href="#M000165">match</a></span>
|
86
|
+
<span style="padding-right: 5px;"><a href="#M000166">matchset</a></span>
|
87
|
+
<span style="padding-right: 5px;"><a href="#M000167">matchtree</a></span>
|
88
88
|
|
89
89
|
|
90
90
|
|
@@ -94,11 +94,11 @@ Object
|
|
94
94
|
<div class="sectiontitle">Public Instance methods</div>
|
95
95
|
<div class="method">
|
96
96
|
<div class="title">
|
97
|
-
<a name="
|
97
|
+
<a name="M000165"></a><b>match</b>(index=0)
|
98
98
|
</div>
|
99
99
|
<div class="description">
|
100
100
|
<p>
|
101
|
-
Return the primary <a href="MatchData.html#
|
101
|
+
Return the primary <a href="MatchData.html#M000165">match</a> string. This
|
102
102
|
is equivalent to +md[0]+.
|
103
103
|
</p>
|
104
104
|
<pre>
|
@@ -110,8 +110,8 @@ CREDIT: Martin DeMello
|
|
110
110
|
</p>
|
111
111
|
</div>
|
112
112
|
<div class="sourcecode">
|
113
|
-
<p class="source-link">[ <a href="javascript:toggleSource('
|
114
|
-
<div id="
|
113
|
+
<p class="source-link">[ <a href="javascript:toggleSource('M000165_source')" id="l_M000165_source">+</a> ]</p>
|
114
|
+
<div id="M000165_source" class="dyn-source">
|
115
115
|
<pre>
|
116
116
|
<span class="ruby-comment cmt"># File lib/core/facets/matchdata/match.rb, line 10</span>
|
117
117
|
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">match</span>(<span class="ruby-identifier">index</span>=<span class="ruby-value">0</span>)
|
@@ -123,12 +123,12 @@ CREDIT: Martin DeMello
|
|
123
123
|
</div>
|
124
124
|
<div class="method">
|
125
125
|
<div class="title">
|
126
|
-
<a name="
|
126
|
+
<a name="M000166"></a><b>matchset</b>()
|
127
127
|
</div>
|
128
128
|
<div class="description">
|
129
129
|
<p>
|
130
|
-
Returns [ pre_match, <a href="MatchData.html#
|
131
|
-
post_match ]. (see <a href="MatchData.html#
|
130
|
+
Returns [ pre_match, <a href="MatchData.html#M000167">matchtree</a>,
|
131
|
+
post_match ]. (see <a href="MatchData.html#M000167">matchtree</a>)
|
132
132
|
</p>
|
133
133
|
<pre>
|
134
134
|
md = /(bb)(cc(dd))(ee)/.match "XXaabbccddeeffXX"
|
@@ -140,8 +140,8 @@ CREDIT: Trans
|
|
140
140
|
</p>
|
141
141
|
</div>
|
142
142
|
<div class="sourcecode">
|
143
|
-
<p class="source-link">[ <a href="javascript:toggleSource('
|
144
|
-
<div id="
|
143
|
+
<p class="source-link">[ <a href="javascript:toggleSource('M000166_source')" id="l_M000166_source">+</a> ]</p>
|
144
|
+
<div id="M000166_source" class="dyn-source">
|
145
145
|
<pre>
|
146
146
|
<span class="ruby-comment cmt"># File lib/core/facets/matchdata/matchset.rb, line 11</span>
|
147
147
|
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">matchset</span>
|
@@ -153,7 +153,7 @@ CREDIT: Trans
|
|
153
153
|
</div>
|
154
154
|
<div class="method">
|
155
155
|
<div class="title">
|
156
|
-
<a name="
|
156
|
+
<a name="M000167"></a><b>matchtree</b>(index=0)
|
157
157
|
</div>
|
158
158
|
<div class="description">
|
159
159
|
<p>
|
@@ -170,8 +170,8 @@ CREDIT: Trans
|
|
170
170
|
</p>
|
171
171
|
</div>
|
172
172
|
<div class="sourcecode">
|
173
|
-
<p class="source-link">[ <a href="javascript:toggleSource('
|
174
|
-
<div id="
|
173
|
+
<p class="source-link">[ <a href="javascript:toggleSource('M000167_source')" id="l_M000167_source">+</a> ]</p>
|
174
|
+
<div id="M000167_source" class="dyn-source">
|
175
175
|
<pre>
|
176
176
|
<span class="ruby-comment cmt"># File lib/core/facets/matchdata/matchset.rb, line 24</span>
|
177
177
|
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">matchtree</span>(<span class="ruby-identifier">index</span>=<span class="ruby-value">0</span>)
|
@@ -106,7 +106,7 @@ Object
|
|
106
106
|
|
107
107
|
<div class="description"><p>
|
108
108
|
It would nice if we could the following. Then the middle portion of the <a
|
109
|
-
href="Module.html#
|
109
|
+
href="Module.html#M000180">Comparable</a> method would not be needed. But I
|
110
110
|
fear it might break others code.
|
111
111
|
</p>
|
112
112
|
<pre>
|
@@ -125,41 +125,41 @@ fear it might break others code.
|
|
125
125
|
|
126
126
|
|
127
127
|
<div class="sectiontitle">Methods</div>
|
128
|
-
<span style="padding-right: 5px;"><a href="#
|
129
|
-
<span style="padding-right: 5px;"><a href="#
|
130
|
-
<span style="padding-right: 5px;"><a href="#
|
131
|
-
<span style="padding-right: 5px;"><a href="#
|
132
|
-
<span style="padding-right: 5px;"><a href="#
|
133
|
-
<span style="padding-right: 5px;"><a href="#
|
134
|
-
<span style="padding-right: 5px;"><a href="#
|
135
|
-
<span style="padding-right: 5px;"><a href="#
|
136
|
-
<span style="padding-right: 5px;"><a href="#
|
137
|
-
<span style="padding-right: 5px;"><a href="#
|
138
|
-
<span style="padding-right: 5px;"><a href="#
|
139
|
-
<span style="padding-right: 5px;"><a href="#
|
140
|
-
<span style="padding-right: 5px;"><a href="#
|
141
|
-
<span style="padding-right: 5px;"><a href="#
|
142
|
-
<span style="padding-right: 5px;"><a href="#
|
143
|
-
<span style="padding-right: 5px;"><a href="#
|
144
|
-
<span style="padding-right: 5px;"><a href="#
|
145
|
-
<span style="padding-right: 5px;"><a href="#
|
146
|
-
<span style="padding-right: 5px;"><a href="#
|
147
|
-
<span style="padding-right: 5px;"><a href="#
|
148
|
-
<span style="padding-right: 5px;"><a href="#
|
149
|
-
<span style="padding-right: 5px;"><a href="#
|
150
|
-
<span style="padding-right: 5px;"><a href="#
|
151
|
-
<span style="padding-right: 5px;"><a href="#
|
152
|
-
<span style="padding-right: 5px;"><a href="#
|
153
|
-
<span style="padding-right: 5px;"><a href="#
|
154
|
-
<span style="padding-right: 5px;"><a href="#
|
155
|
-
<span style="padding-right: 5px;"><a href="#
|
156
|
-
<span style="padding-right: 5px;"><a href="#
|
157
|
-
<span style="padding-right: 5px;"><a href="#
|
158
|
-
<span style="padding-right: 5px;"><a href="#
|
159
|
-
<span style="padding-right: 5px;"><a href="#
|
160
|
-
<span style="padding-right: 5px;"><a href="#
|
161
|
-
<span style="padding-right: 5px;"><a href="#
|
162
|
-
<span style="padding-right: 5px;"><a href="#
|
128
|
+
<span style="padding-right: 5px;"><a href="#M000190">*</a></span>
|
129
|
+
<span style="padding-right: 5px;"><a href="#M000188">+</a></span>
|
130
|
+
<span style="padding-right: 5px;"><a href="#M000189">-</a></span>
|
131
|
+
<span style="padding-right: 5px;"><a href="#M000180">Comparable</a></span>
|
132
|
+
<span style="padding-right: 5px;"><a href="#M000204">abstract</a></span>
|
133
|
+
<span style="padding-right: 5px;"><a href="#M000205">alias_method_chain</a></span>
|
134
|
+
<span style="padding-right: 5px;"><a href="#M000192">all_instance_methods</a></span>
|
135
|
+
<span style="padding-right: 5px;"><a href="#M000182">ancestor?</a></span>
|
136
|
+
<span style="padding-right: 5px;"><a href="#M000213">basename</a></span>
|
137
|
+
<span style="padding-right: 5px;"><a href="#M000179">class_def</a></span>
|
138
|
+
<span style="padding-right: 5px;"><a href="#M000199">class_load</a></span>
|
139
|
+
<span style="padding-right: 5px;"><a href="#M000198">class_require</a></span>
|
140
|
+
<span style="padding-right: 5px;"><a href="#M000184">conflict?</a></span>
|
141
|
+
<span style="padding-right: 5px;"><a href="#M000209">extend</a></span>
|
142
|
+
<span style="padding-right: 5px;"><a href="#M000193">instance_method_defined?</a></span>
|
143
|
+
<span style="padding-right: 5px;"><a href="#M000208">integrate</a></span>
|
144
|
+
<span style="padding-right: 5px;"><a href="#M000201">is</a></span>
|
145
|
+
<span style="padding-right: 5px;"><a href="#M000200">is?</a></span>
|
146
|
+
<span style="padding-right: 5px;"><a href="#M000183">methodize</a></span>
|
147
|
+
<span style="padding-right: 5px;"><a href="#M000203">modspace</a></span>
|
148
|
+
<span style="padding-right: 5px;"><a href="#M000196">module_load</a></span>
|
149
|
+
<span style="padding-right: 5px;"><a href="#M000195">module_method_defined?</a></span>
|
150
|
+
<span style="padding-right: 5px;"><a href="#M000197">module_require</a></span>
|
151
|
+
<span style="padding-right: 5px;"><a href="#M000202">nesting</a></span>
|
152
|
+
<span style="padding-right: 5px;"><a href="#M000191">pathize</a></span>
|
153
|
+
<span style="padding-right: 5px;"><a href="#M000181">prepend</a></span>
|
154
|
+
<span style="padding-right: 5px;"><a href="#M000186">private_conflict?</a></span>
|
155
|
+
<span style="padding-right: 5px;"><a href="#M000187">protected_conflict?</a></span>
|
156
|
+
<span style="padding-right: 5px;"><a href="#M000185">public_conflict?</a></span>
|
157
|
+
<span style="padding-right: 5px;"><a href="#M000207">revisal</a></span>
|
158
|
+
<span style="padding-right: 5px;"><a href="#M000206">revise</a></span>
|
159
|
+
<span style="padding-right: 5px;"><a href="#M000194">singleton_method_defined?</a></span>
|
160
|
+
<span style="padding-right: 5px;"><a href="#M000210">spacename</a></span>
|
161
|
+
<span style="padding-right: 5px;"><a href="#M000212">wrap</a></span>
|
162
|
+
<span style="padding-right: 5px;"><a href="#M000211">wrap_method</a></span>
|
163
163
|
|
164
164
|
|
165
165
|
|
@@ -169,7 +169,7 @@ fear it might break others code.
|
|
169
169
|
<div class="sectiontitle">Public Instance methods</div>
|
170
170
|
<div class="method">
|
171
171
|
<div class="title">
|
172
|
-
<a name="
|
172
|
+
<a name="M000190"></a><b>*</b>(rename_map)
|
173
173
|
</div>
|
174
174
|
<div class="description">
|
175
175
|
<p>
|
@@ -191,8 +191,8 @@ Thomas Sawyer, Robert Dober
|
|
191
191
|
</p>
|
192
192
|
</div>
|
193
193
|
<div class="sourcecode">
|
194
|
-
<p class="source-link">[ <a href="javascript:toggleSource('
|
195
|
-
<div id="
|
194
|
+
<p class="source-link">[ <a href="javascript:toggleSource('M000190_source')" id="l_M000190_source">+</a> ]</p>
|
195
|
+
<div id="M000190_source" class="dyn-source">
|
196
196
|
<pre>
|
197
197
|
<span class="ruby-comment cmt"># File lib/core/facets/module/op.rb, line 80</span>
|
198
198
|
<span class="ruby-keyword kw">def</span> <span class="ruby-operator">*</span>(<span class="ruby-identifier">rename_map</span>)
|
@@ -211,7 +211,7 @@ Thomas Sawyer, Robert Dober
|
|
211
211
|
</div>
|
212
212
|
<div class="method">
|
213
213
|
<div class="title">
|
214
|
-
<a name="
|
214
|
+
<a name="M000188"></a><b>+</b>(other)
|
215
215
|
</div>
|
216
216
|
<div class="description">
|
217
217
|
<p>
|
@@ -253,8 +253,8 @@ CREDIT: Thomas Sawyer, Robert Dober
|
|
253
253
|
</p>
|
254
254
|
</div>
|
255
255
|
<div class="sourcecode">
|
256
|
-
<p class="source-link">[ <a href="javascript:toggleSource('
|
257
|
-
<div id="
|
256
|
+
<p class="source-link">[ <a href="javascript:toggleSource('M000188_source')" id="l_M000188_source">+</a> ]</p>
|
257
|
+
<div id="M000188_source" class="dyn-source">
|
258
258
|
<pre>
|
259
259
|
<span class="ruby-comment cmt"># File lib/core/facets/module/op.rb, line 35</span>
|
260
260
|
<span class="ruby-keyword kw">def</span> <span class="ruby-operator">+</span>(<span class="ruby-identifier">other</span>)
|
@@ -270,7 +270,7 @@ CREDIT: Thomas Sawyer, Robert Dober
|
|
270
270
|
</div>
|
271
271
|
<div class="method">
|
272
272
|
<div class="title">
|
273
|
-
<a name="
|
273
|
+
<a name="M000189"></a><b>-</b>(other)
|
274
274
|
</div>
|
275
275
|
<div class="description">
|
276
276
|
<p>
|
@@ -284,8 +284,8 @@ CREDIT: Thomas Sawyer, Robert Dober
|
|
284
284
|
</p>
|
285
285
|
</div>
|
286
286
|
<div class="sourcecode">
|
287
|
-
<p class="source-link">[ <a href="javascript:toggleSource('
|
288
|
-
<div id="
|
287
|
+
<p class="source-link">[ <a href="javascript:toggleSource('M000189_source')" id="l_M000189_source">+</a> ]</p>
|
288
|
+
<div id="M000189_source" class="dyn-source">
|
289
289
|
<pre>
|
290
290
|
<span class="ruby-comment cmt"># File lib/core/facets/module/op.rb, line 49</span>
|
291
291
|
<span class="ruby-keyword kw">def</span> <span class="ruby-operator">-</span>(<span class="ruby-identifier">other</span>)
|
@@ -309,7 +309,7 @@ CREDIT: Thomas Sawyer, Robert Dober
|
|
309
309
|
</div>
|
310
310
|
<div class="method">
|
311
311
|
<div class="title">
|
312
|
-
<a name="
|
312
|
+
<a name="M000180"></a><b>Comparable</b>(*accessors)
|
313
313
|
</div>
|
314
314
|
<div class="description">
|
315
315
|
<p>
|
@@ -319,7 +319,7 @@ Automatically generate sorting defintions base on attribute fields.
|
|
319
319
|
include SortOn(:a, :b)
|
320
320
|
</pre>
|
321
321
|
<p>
|
322
|
-
<a href="Module.html#
|
322
|
+
<a href="Module.html#M000201">is</a> equivalent to including a module
|
323
323
|
containing:
|
324
324
|
</p>
|
325
325
|
<pre>
|
@@ -331,8 +331,8 @@ containing:
|
|
331
331
|
</pre>
|
332
332
|
</div>
|
333
333
|
<div class="sourcecode">
|
334
|
-
<p class="source-link">[ <a href="javascript:toggleSource('
|
335
|
-
<div id="
|
334
|
+
<p class="source-link">[ <a href="javascript:toggleSource('M000180_source')" id="l_M000180_source">+</a> ]</p>
|
335
|
+
<div id="M000180_source" class="dyn-source">
|
336
336
|
<pre>
|
337
337
|
<span class="ruby-comment cmt"># File lib/core/facets/comparable/comparable.rb, line 28</span>
|
338
338
|
<span class="ruby-keyword kw">def</span> <span class="ruby-constant">Comparable</span>(<span class="ruby-operator">*</span><span class="ruby-identifier">accessors</span>)
|
@@ -353,12 +353,12 @@ containing:
|
|
353
353
|
</div>
|
354
354
|
<div class="method">
|
355
355
|
<div class="title">
|
356
|
-
<a name="
|
356
|
+
<a name="M000204"></a><b>abstract</b>( *sym )
|
357
357
|
</div>
|
358
358
|
<div class="description">
|
359
359
|
<p>
|
360
|
-
Create an <a href="Module.html#
|
361
|
-
href="Module.html#
|
360
|
+
Create an <a href="Module.html#M000204">abstract</a> method. If it <a
|
361
|
+
href="Module.html#M000201">is</a> not overridden, it will raise a TypeError
|
362
362
|
when called.
|
363
363
|
</p>
|
364
364
|
<pre>
|
@@ -374,8 +374,8 @@ CREDIT: Trans
|
|
374
374
|
</p>
|
375
375
|
</div>
|
376
376
|
<div class="sourcecode">
|
377
|
-
<p class="source-link">[ <a href="javascript:toggleSource('
|
378
|
-
<div id="
|
377
|
+
<p class="source-link">[ <a href="javascript:toggleSource('M000204_source')" id="l_M000204_source">+</a> ]</p>
|
378
|
+
<div id="M000204_source" class="dyn-source">
|
379
379
|
<pre>
|
380
380
|
<span class="ruby-comment cmt"># File lib/core/facets/module/abstract.rb, line 15</span>
|
381
381
|
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">abstract</span>( <span class="ruby-operator">*</span><span class="ruby-identifier">sym</span> )
|
@@ -389,7 +389,7 @@ CREDIT: Trans
|
|
389
389
|
</div>
|
390
390
|
<div class="method">
|
391
391
|
<div class="title">
|
392
|
-
<a name="
|
392
|
+
<a name="M000205"></a><b>alias_method_chain</b>(target, feature) {|aliased_target, punctuation| ...}
|
393
393
|
</div>
|
394
394
|
<div class="description">
|
395
395
|
<p>
|
@@ -415,7 +415,7 @@ Query and bang methods (foo?, foo!) keep the same punctuation:
|
|
415
415
|
alias_method_chain :foo?, :feature
|
416
416
|
</pre>
|
417
417
|
<p>
|
418
|
-
<a href="Module.html#
|
418
|
+
<a href="Module.html#M000201">is</a> equivalent to
|
419
419
|
</p>
|
420
420
|
<pre>
|
421
421
|
alias_method :foo_without_feature?, :foo?
|
@@ -429,8 +429,8 @@ CREDIT: Bitsweat, Rails Team
|
|
429
429
|
</p>
|
430
430
|
</div>
|
431
431
|
<div class="sourcecode">
|
432
|
-
<p class="source-link">[ <a href="javascript:toggleSource('
|
433
|
-
<div id="
|
432
|
+
<p class="source-link">[ <a href="javascript:toggleSource('M000205_source')" id="l_M000205_source">+</a> ]</p>
|
433
|
+
<div id="M000205_source" class="dyn-source">
|
434
434
|
<pre>
|
435
435
|
<span class="ruby-comment cmt"># File lib/core/facets/module/alias_method_chain.rb, line 27</span>
|
436
436
|
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">alias_method_chain</span>(<span class="ruby-identifier">target</span>, <span class="ruby-identifier">feature</span>)
|
@@ -459,7 +459,7 @@ CREDIT: Bitsweat, Rails Team
|
|
459
459
|
</div>
|
460
460
|
<div class="method">
|
461
461
|
<div class="title">
|
462
|
-
<a name="
|
462
|
+
<a name="M000192"></a><b>all_instance_methods</b>(include_super=true)
|
463
463
|
</div>
|
464
464
|
<div class="description">
|
465
465
|
<p>
|
@@ -472,15 +472,15 @@ List all instance methods, equivalent to
|
|
472
472
|
</pre>
|
473
473
|
<p>
|
474
474
|
TODO: Better name for <a
|
475
|
-
href="Module.html#
|
475
|
+
href="Module.html#M000192">all_instance_methods</a>?
|
476
476
|
</p>
|
477
477
|
<p>
|
478
478
|
CREDIT: Trans
|
479
479
|
</p>
|
480
480
|
</div>
|
481
481
|
<div class="sourcecode">
|
482
|
-
<p class="source-link">[ <a href="javascript:toggleSource('
|
483
|
-
<div id="
|
482
|
+
<p class="source-link">[ <a href="javascript:toggleSource('M000192_source')" id="l_M000192_source">+</a> ]</p>
|
483
|
+
<div id="M000192_source" class="dyn-source">
|
484
484
|
<pre>
|
485
485
|
<span class="ruby-comment cmt"># File lib/core/facets/module/instance_methods.rb, line 13</span>
|
486
486
|
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">all_instance_methods</span>(<span class="ruby-identifier">include_super</span>=<span class="ruby-keyword kw">true</span>)
|
@@ -494,7 +494,7 @@ CREDIT: Trans
|
|
494
494
|
</div>
|
495
495
|
<div class="method">
|
496
496
|
<div class="title">
|
497
|
-
<a name="
|
497
|
+
<a name="M000182"></a><b>ancestor?</b>( mod )
|
498
498
|
</div>
|
499
499
|
<div class="description">
|
500
500
|
<p>
|
@@ -508,8 +508,8 @@ Is a given class or module an ancestor of this class or module?
|
|
508
508
|
</pre>
|
509
509
|
</div>
|
510
510
|
<div class="sourcecode">
|
511
|
-
<p class="source-link">[ <a href="javascript:toggleSource('
|
512
|
-
<div id="
|
511
|
+
<p class="source-link">[ <a href="javascript:toggleSource('M000182_source')" id="l_M000182_source">+</a> ]</p>
|
512
|
+
<div id="M000182_source" class="dyn-source">
|
513
513
|
<pre>
|
514
514
|
<span class="ruby-comment cmt"># File lib/core/facets/module/ancestor.rb, line 11</span>
|
515
515
|
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">ancestor?</span>( <span class="ruby-identifier">mod</span> )
|
@@ -521,7 +521,7 @@ Is a given class or module an ancestor of this class or module?
|
|
521
521
|
</div>
|
522
522
|
<div class="method">
|
523
523
|
<div class="title">
|
524
|
-
<a name="
|
524
|
+
<a name="M000213"></a><b>basename</b>()
|
525
525
|
</div>
|
526
526
|
<div class="description">
|
527
527
|
<p>
|
@@ -538,7 +538,7 @@ Returns the root name of the module/class.
|
|
538
538
|
</pre>
|
539
539
|
<p>
|
540
540
|
For anonymous modules this will provide a <a
|
541
|
-
href="Module.html#
|
541
|
+
href="Module.html#M000213">basename</a> based on Module#inspect.
|
542
542
|
</p>
|
543
543
|
<pre>
|
544
544
|
m = Module.new
|
@@ -550,8 +550,8 @@ CREDIT: Trans
|
|
550
550
|
</p>
|
551
551
|
</div>
|
552
552
|
<div class="sourcecode">
|
553
|
-
<p class="source-link">[ <a href="javascript:toggleSource('
|
554
|
-
<div id="
|
553
|
+
<p class="source-link">[ <a href="javascript:toggleSource('M000213_source')" id="l_M000213_source">+</a> ]</p>
|
554
|
+
<div id="M000213_source" class="dyn-source">
|
555
555
|
<pre>
|
556
556
|
<span class="ruby-comment cmt"># File lib/core/facets/module/basename.rb, line 22</span>
|
557
557
|
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">basename</span>
|
@@ -567,7 +567,7 @@ CREDIT: Trans
|
|
567
567
|
</div>
|
568
568
|
<div class="method">
|
569
569
|
<div class="title">
|
570
|
-
<a name="
|
570
|
+
<a name="M000179"></a><b>class_def</b>(name, &blk)
|
571
571
|
</div>
|
572
572
|
<div class="description">
|
573
573
|
<p>
|
@@ -578,8 +578,8 @@ CREDIT: WhyTheLuckyStiff
|
|
578
578
|
</p>
|
579
579
|
</div>
|
580
580
|
<div class="sourcecode">
|
581
|
-
<p class="source-link">[ <a href="javascript:toggleSource('
|
582
|
-
<div id="
|
581
|
+
<p class="source-link">[ <a href="javascript:toggleSource('M000179_source')" id="l_M000179_source">+</a> ]</p>
|
582
|
+
<div id="M000179_source" class="dyn-source">
|
583
583
|
<pre>
|
584
584
|
<span class="ruby-comment cmt"># File lib/core/facets/metaid.rb, line 82</span>
|
585
585
|
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">class_def</span> <span class="ruby-identifier">name</span>, <span class="ruby-operator">&</span><span class="ruby-identifier">blk</span>
|
@@ -591,27 +591,27 @@ CREDIT: WhyTheLuckyStiff
|
|
591
591
|
</div>
|
592
592
|
<div class="method">
|
593
593
|
<div class="title">
|
594
|
-
<a name="
|
594
|
+
<a name="M000199"></a><b>class_load</b>( path )
|
595
595
|
</div>
|
596
596
|
<div class="description">
|
597
597
|
<p>
|
598
|
-
Alias for <a href="Module.html#
|
598
|
+
Alias for <a href="Module.html#M000196">module_load</a>
|
599
599
|
</p>
|
600
600
|
</div>
|
601
601
|
</div>
|
602
602
|
<div class="method">
|
603
603
|
<div class="title">
|
604
|
-
<a name="
|
604
|
+
<a name="M000198"></a><b>class_require</b>( path )
|
605
605
|
</div>
|
606
606
|
<div class="description">
|
607
607
|
<p>
|
608
|
-
Alias for <a href="Module.html#
|
608
|
+
Alias for <a href="Module.html#M000197">module_require</a>
|
609
609
|
</p>
|
610
610
|
</div>
|
611
611
|
</div>
|
612
612
|
<div class="method">
|
613
613
|
<div class="title">
|
614
|
-
<a name="
|
614
|
+
<a name="M000184"></a><b>conflict?</b>(other)
|
615
615
|
</div>
|
616
616
|
<div class="description">
|
617
617
|
<p>
|
@@ -635,8 +635,8 @@ CREDIT: Thomas Sawyer, Robert Dober
|
|
635
635
|
</p>
|
636
636
|
</div>
|
637
637
|
<div class="sourcecode">
|
638
|
-
<p class="source-link">[ <a href="javascript:toggleSource('
|
639
|
-
<div id="
|
638
|
+
<p class="source-link">[ <a href="javascript:toggleSource('M000184_source')" id="l_M000184_source">+</a> ]</p>
|
639
|
+
<div id="M000184_source" class="dyn-source">
|
640
640
|
<pre>
|
641
641
|
<span class="ruby-comment cmt"># File lib/core/facets/module/conflict.rb, line 20</span>
|
642
642
|
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">conflict?</span>(<span class="ruby-identifier">other</span>)
|
@@ -656,11 +656,11 @@ CREDIT: Thomas Sawyer, Robert Dober
|
|
656
656
|
</div>
|
657
657
|
<div class="method">
|
658
658
|
<div class="title">
|
659
|
-
<a name="
|
659
|
+
<a name="M000209"></a><b>extend</b>(mod=nil, &blk)
|
660
660
|
</div>
|
661
661
|
<div class="sourcecode">
|
662
|
-
<p class="source-link">[ <a href="javascript:toggleSource('
|
663
|
-
<div id="
|
662
|
+
<p class="source-link">[ <a href="javascript:toggleSource('M000209_source')" id="l_M000209_source">+</a> ]</p>
|
663
|
+
<div id="M000209_source" class="dyn-source">
|
664
664
|
<pre>
|
665
665
|
<span class="ruby-comment cmt"># File lib/core/facets/module/extend.rb, line 5</span>
|
666
666
|
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">extend</span>(<span class="ruby-identifier">mod</span>=<span class="ruby-keyword kw">nil</span>, <span class="ruby-operator">&</span><span class="ruby-identifier">blk</span>)
|
@@ -673,11 +673,11 @@ CREDIT: Thomas Sawyer, Robert Dober
|
|
673
673
|
</div>
|
674
674
|
<div class="method">
|
675
675
|
<div class="title">
|
676
|
-
<a name="
|
676
|
+
<a name="M000193"></a><b>instance_method_defined?</b>(meth)
|
677
677
|
</div>
|
678
678
|
<div class="description">
|
679
679
|
<p>
|
680
|
-
Query whether a public instance method <a href="Module.html#
|
680
|
+
Query whether a public instance method <a href="Module.html#M000201">is</a>
|
681
681
|
defined for the module.
|
682
682
|
</p>
|
683
683
|
<p>
|
@@ -685,8 +685,8 @@ CREDIT: Gavin Sinclair, Noah Gibbs
|
|
685
685
|
</p>
|
686
686
|
</div>
|
687
687
|
<div class="sourcecode">
|
688
|
-
<p class="source-link">[ <a href="javascript:toggleSource('
|
689
|
-
<div id="
|
688
|
+
<p class="source-link">[ <a href="javascript:toggleSource('M000193_source')" id="l_M000193_source">+</a> ]</p>
|
689
|
+
<div id="M000193_source" class="dyn-source">
|
690
690
|
<pre>
|
691
691
|
<span class="ruby-comment cmt"># File lib/core/facets/module/instance_methods.rb, line 23</span>
|
692
692
|
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">instance_method_defined?</span>(<span class="ruby-identifier">meth</span>)
|
@@ -698,18 +698,18 @@ CREDIT: Gavin Sinclair, Noah Gibbs
|
|
698
698
|
</div>
|
699
699
|
<div class="method">
|
700
700
|
<div class="title">
|
701
|
-
<a name="
|
701
|
+
<a name="M000208"></a><b>integrate</b>(mod, &block)
|
702
702
|
</div>
|
703
703
|
<div class="description">
|
704
704
|
<p>
|
705
|
-
Using <a href="Module.html#
|
706
|
-
href="Module.html#
|
707
|
-
included <a href="Module.html#
|
705
|
+
Using <a href="Module.html#M000208">integrate</a> <a
|
706
|
+
href="Module.html#M000201">is</a> just like using include except the module
|
707
|
+
included <a href="Module.html#M000201">is</a> a reconstruction of the one
|
708
708
|
given altered by the commands given in the block.
|
709
709
|
</p>
|
710
710
|
<p>
|
711
711
|
Convenient commands available are: rename, redef, remove, nodef and <a
|
712
|
-
href="Module.html#
|
712
|
+
href="Module.html#M000212">wrap</a>. But any module method can be used.
|
713
713
|
</p>
|
714
714
|
<pre>
|
715
715
|
module W
|
@@ -728,9 +728,9 @@ href="Module.html#M000206">wrap</a>. But any module method can be used.
|
|
728
728
|
x.y #=> missing method error
|
729
729
|
</pre>
|
730
730
|
<p>
|
731
|
-
This <a href="Module.html#
|
732
|
-
href="Module.html#
|
733
|
-
href="Module.html#
|
731
|
+
This <a href="Module.html#M000201">is</a> like <a
|
732
|
+
href="Module.html#M000207">revisal</a>, but <a
|
733
|
+
href="Module.html#M000207">revisal</a> only returns the reconstructred
|
734
734
|
module. It does not include it.
|
735
735
|
</p>
|
736
736
|
<p>
|
@@ -738,8 +738,8 @@ CREDIT: Trans
|
|
738
738
|
</p>
|
739
739
|
</div>
|
740
740
|
<div class="sourcecode">
|
741
|
-
<p class="source-link">[ <a href="javascript:toggleSource('
|
742
|
-
<div id="
|
741
|
+
<p class="source-link">[ <a href="javascript:toggleSource('M000208_source')" id="l_M000208_source">+</a> ]</p>
|
742
|
+
<div id="M000208_source" class="dyn-source">
|
743
743
|
<pre>
|
744
744
|
<span class="ruby-comment cmt"># File lib/core/facets/module/revise.rb, line 51</span>
|
745
745
|
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">integrate</span>(<span class="ruby-identifier">mod</span>, <span class="ruby-operator">&</span><span class="ruby-identifier">block</span>)
|
@@ -754,16 +754,16 @@ CREDIT: Trans
|
|
754
754
|
</div>
|
755
755
|
<div class="method">
|
756
756
|
<div class="title">
|
757
|
-
<a name="
|
757
|
+
<a name="M000201"></a><b>is</b>(*mods)
|
758
758
|
</div>
|
759
759
|
<div class="description">
|
760
760
|
<p>
|
761
|
-
alias_method :<a href="Module.html#
|
761
|
+
alias_method :<a href="Module.html#M000201">is</a>, :include
|
762
762
|
</p>
|
763
763
|
</div>
|
764
764
|
<div class="sourcecode">
|
765
|
-
<p class="source-link">[ <a href="javascript:toggleSource('
|
766
|
-
<div id="
|
765
|
+
<p class="source-link">[ <a href="javascript:toggleSource('M000201_source')" id="l_M000201_source">+</a> ]</p>
|
766
|
+
<div id="M000201_source" class="dyn-source">
|
767
767
|
<pre>
|
768
768
|
<span class="ruby-comment cmt"># File lib/core/facets/module/is.rb, line 27</span>
|
769
769
|
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">is</span>(<span class="ruby-operator">*</span><span class="ruby-identifier">mods</span>)
|
@@ -785,7 +785,7 @@ alias_method :<a href="Module.html#M000195">is</a>, :include
|
|
785
785
|
</div>
|
786
786
|
<div class="method">
|
787
787
|
<div class="title">
|
788
|
-
<a name="
|
788
|
+
<a name="M000200"></a><b>is?</b>(base)
|
789
789
|
</div>
|
790
790
|
<div class="description">
|
791
791
|
<p>
|
@@ -802,8 +802,8 @@ CREDIT: Trans
|
|
802
802
|
</p>
|
803
803
|
</div>
|
804
804
|
<div class="sourcecode">
|
805
|
-
<p class="source-link">[ <a href="javascript:toggleSource('
|
806
|
-
<div id="
|
805
|
+
<p class="source-link">[ <a href="javascript:toggleSource('M000200_source')" id="l_M000200_source">+</a> ]</p>
|
806
|
+
<div id="M000200_source" class="dyn-source">
|
807
807
|
<pre>
|
808
808
|
<span class="ruby-comment cmt"># File lib/core/facets/module/is.rb, line 13</span>
|
809
809
|
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">is?</span>(<span class="ruby-identifier">base</span>)
|
@@ -815,7 +815,7 @@ CREDIT: Trans
|
|
815
815
|
</div>
|
816
816
|
<div class="method">
|
817
817
|
<div class="title">
|
818
|
-
<a name="
|
818
|
+
<a name="M000183"></a><b>methodize</b>()
|
819
819
|
</div>
|
820
820
|
<div class="description">
|
821
821
|
<p>
|
@@ -826,8 +826,8 @@ Translate a module name to a suitable method name.
|
|
826
826
|
</pre>
|
827
827
|
</div>
|
828
828
|
<div class="sourcecode">
|
829
|
-
<p class="source-link">[ <a href="javascript:toggleSource('
|
830
|
-
<div id="
|
829
|
+
<p class="source-link">[ <a href="javascript:toggleSource('M000183_source')" id="l_M000183_source">+</a> ]</p>
|
830
|
+
<div id="M000183_source" class="dyn-source">
|
831
831
|
<pre>
|
832
832
|
<span class="ruby-comment cmt"># File lib/core/facets/module/methodize.rb, line 9</span>
|
833
833
|
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">methodize</span>
|
@@ -839,7 +839,7 @@ Translate a module name to a suitable method name.
|
|
839
839
|
</div>
|
840
840
|
<div class="method">
|
841
841
|
<div class="title">
|
842
|
-
<a name="
|
842
|
+
<a name="M000203"></a><b>modspace</b>()
|
843
843
|
</div>
|
844
844
|
<div class="description">
|
845
845
|
<p>
|
@@ -854,15 +854,15 @@ Returns the module‘s container module.
|
|
854
854
|
Example::Demo.modspace #=> Example
|
855
855
|
</pre>
|
856
856
|
<p>
|
857
|
-
See also <a href="Module.html#
|
857
|
+
See also <a href="Module.html#M000213">Module#basename</a>.
|
858
858
|
</p>
|
859
859
|
<p>
|
860
860
|
CREDIT: Trans
|
861
861
|
</p>
|
862
862
|
</div>
|
863
863
|
<div class="sourcecode">
|
864
|
-
<p class="source-link">[ <a href="javascript:toggleSource('
|
865
|
-
<div id="
|
864
|
+
<p class="source-link">[ <a href="javascript:toggleSource('M000203_source')" id="l_M000203_source">+</a> ]</p>
|
865
|
+
<div id="M000203_source" class="dyn-source">
|
866
866
|
<pre>
|
867
867
|
<span class="ruby-comment cmt"># File lib/core/facets/module/modspace.rb, line 16</span>
|
868
868
|
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">modspace</span>
|
@@ -875,7 +875,7 @@ CREDIT: Trans
|
|
875
875
|
</div>
|
876
876
|
<div class="method">
|
877
877
|
<div class="title">
|
878
|
-
<a name="
|
878
|
+
<a name="M000196"></a><b>module_load</b>( path )
|
879
879
|
</div>
|
880
880
|
<div class="description">
|
881
881
|
<p>
|
@@ -887,11 +887,11 @@ CREDIT: Trans
|
|
887
887
|
</div>
|
888
888
|
<div class="aka">
|
889
889
|
This method is also aliased as
|
890
|
-
<a href="Module.html#
|
890
|
+
<a href="Module.html#M000199">class_load</a>
|
891
891
|
</div>
|
892
892
|
<div class="sourcecode">
|
893
|
-
<p class="source-link">[ <a href="javascript:toggleSource('
|
894
|
-
<div id="
|
893
|
+
<p class="source-link">[ <a href="javascript:toggleSource('M000196_source')" id="l_M000196_source">+</a> ]</p>
|
894
|
+
<div id="M000196_source" class="dyn-source">
|
895
895
|
<pre>
|
896
896
|
<span class="ruby-comment cmt"># File lib/core/facets/module/module_load.rb, line 9</span>
|
897
897
|
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">module_load</span>( <span class="ruby-identifier">path</span> )
|
@@ -913,7 +913,7 @@ CREDIT: Trans
|
|
913
913
|
</div>
|
914
914
|
<div class="method">
|
915
915
|
<div class="title">
|
916
|
-
<a name="
|
916
|
+
<a name="M000195"></a><b>module_method_defined?</b>(meth)
|
917
917
|
</div>
|
918
918
|
<div class="description">
|
919
919
|
<p>
|
@@ -923,7 +923,7 @@ Alias for singleton_method_defined?
|
|
923
923
|
</div>
|
924
924
|
<div class="method">
|
925
925
|
<div class="title">
|
926
|
-
<a name="
|
926
|
+
<a name="M000197"></a><b>module_require</b>( path )
|
927
927
|
</div>
|
928
928
|
<div class="description">
|
929
929
|
<p>
|
@@ -935,11 +935,11 @@ CREDIT: Trans
|
|
935
935
|
</div>
|
936
936
|
<div class="aka">
|
937
937
|
This method is also aliased as
|
938
|
-
<a href="Module.html#
|
938
|
+
<a href="Module.html#M000198">class_require</a>
|
939
939
|
</div>
|
940
940
|
<div class="sourcecode">
|
941
|
-
<p class="source-link">[ <a href="javascript:toggleSource('
|
942
|
-
<div id="
|
941
|
+
<p class="source-link">[ <a href="javascript:toggleSource('M000197_source')" id="l_M000197_source">+</a> ]</p>
|
942
|
+
<div id="M000197_source" class="dyn-source">
|
943
943
|
<pre>
|
944
944
|
<span class="ruby-comment cmt"># File lib/core/facets/module/module_load.rb, line 27</span>
|
945
945
|
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">module_require</span>( <span class="ruby-identifier">path</span> )
|
@@ -971,11 +971,11 @@ CREDIT: Trans
|
|
971
971
|
</div>
|
972
972
|
<div class="method">
|
973
973
|
<div class="title">
|
974
|
-
<a name="
|
974
|
+
<a name="M000202"></a><b>nesting</b>()
|
975
975
|
</div>
|
976
976
|
<div class="description">
|
977
977
|
<p>
|
978
|
-
Show a modules <a href="Module.html#
|
978
|
+
Show a modules <a href="Module.html#M000202">nesting</a> in module
|
979
979
|
namespaces.
|
980
980
|
</p>
|
981
981
|
<pre>
|
@@ -986,8 +986,8 @@ CREDIT: Trans
|
|
986
986
|
</p>
|
987
987
|
</div>
|
988
988
|
<div class="sourcecode">
|
989
|
-
<p class="source-link">[ <a href="javascript:toggleSource('
|
990
|
-
<div id="
|
989
|
+
<p class="source-link">[ <a href="javascript:toggleSource('M000202_source')" id="l_M000202_source">+</a> ]</p>
|
990
|
+
<div id="M000202_source" class="dyn-source">
|
991
991
|
<pre>
|
992
992
|
<span class="ruby-comment cmt"># File lib/core/facets/module/nesting.rb, line 9</span>
|
993
993
|
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">nesting</span>
|
@@ -1003,7 +1003,7 @@ CREDIT: Trans
|
|
1003
1003
|
</div>
|
1004
1004
|
<div class="method">
|
1005
1005
|
<div class="title">
|
1006
|
-
<a name="
|
1006
|
+
<a name="M000191"></a><b>pathize</b>()
|
1007
1007
|
</div>
|
1008
1008
|
<div class="description">
|
1009
1009
|
<p>
|
@@ -1018,8 +1018,8 @@ Examples
|
|
1018
1018
|
</pre>
|
1019
1019
|
</div>
|
1020
1020
|
<div class="sourcecode">
|
1021
|
-
<p class="source-link">[ <a href="javascript:toggleSource('
|
1022
|
-
<div id="
|
1021
|
+
<p class="source-link">[ <a href="javascript:toggleSource('M000191_source')" id="l_M000191_source">+</a> ]</p>
|
1022
|
+
<div id="M000191_source" class="dyn-source">
|
1023
1023
|
<pre>
|
1024
1024
|
<span class="ruby-comment cmt"># File lib/core/facets/module/pathize.rb, line 11</span>
|
1025
1025
|
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">pathize</span>
|
@@ -1037,7 +1037,7 @@ Examples
|
|
1037
1037
|
</div>
|
1038
1038
|
<div class="method">
|
1039
1039
|
<div class="title">
|
1040
|
-
<a name="
|
1040
|
+
<a name="M000181"></a><b>prepend</b>(aspect)
|
1041
1041
|
</div>
|
1042
1042
|
<div class="description">
|
1043
1043
|
<p>
|
@@ -1062,8 +1062,8 @@ CREDIT Trans
|
|
1062
1062
|
</p>
|
1063
1063
|
</div>
|
1064
1064
|
<div class="sourcecode">
|
1065
|
-
<p class="source-link">[ <a href="javascript:toggleSource('
|
1066
|
-
<div id="
|
1065
|
+
<p class="source-link">[ <a href="javascript:toggleSource('M000181_source')" id="l_M000181_source">+</a> ]</p>
|
1066
|
+
<div id="M000181_source" class="dyn-source">
|
1067
1067
|
<pre>
|
1068
1068
|
<span class="ruby-comment cmt"># File lib/core/facets/module/prepend.rb, line 20</span>
|
1069
1069
|
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">prepend</span>(<span class="ruby-identifier">aspect</span>)
|
@@ -1076,7 +1076,7 @@ CREDIT Trans
|
|
1076
1076
|
</div>
|
1077
1077
|
<div class="method">
|
1078
1078
|
<div class="title">
|
1079
|
-
<a name="
|
1079
|
+
<a name="M000186"></a><b>private_conflict?</b>(other)
|
1080
1080
|
</div>
|
1081
1081
|
<div class="description">
|
1082
1082
|
<p>
|
@@ -1084,8 +1084,8 @@ Like conflict?, but checks only private methods.
|
|
1084
1084
|
</p>
|
1085
1085
|
</div>
|
1086
1086
|
<div class="sourcecode">
|
1087
|
-
<p class="source-link">[ <a href="javascript:toggleSource('
|
1088
|
-
<div id="
|
1087
|
+
<p class="source-link">[ <a href="javascript:toggleSource('M000186_source')" id="l_M000186_source">+</a> ]</p>
|
1088
|
+
<div id="M000186_source" class="dyn-source">
|
1089
1089
|
<pre>
|
1090
1090
|
<span class="ruby-comment cmt"># File lib/core/facets/module/conflict.rb, line 46</span>
|
1091
1091
|
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">private_conflict?</span>(<span class="ruby-identifier">other</span>)
|
@@ -1100,7 +1100,7 @@ Like conflict?, but checks only private methods.
|
|
1100
1100
|
</div>
|
1101
1101
|
<div class="method">
|
1102
1102
|
<div class="title">
|
1103
|
-
<a name="
|
1103
|
+
<a name="M000187"></a><b>protected_conflict?</b>(other)
|
1104
1104
|
</div>
|
1105
1105
|
<div class="description">
|
1106
1106
|
<p>
|
@@ -1108,8 +1108,8 @@ Like conflict?, but checks only protected methods.
|
|
1108
1108
|
</p>
|
1109
1109
|
</div>
|
1110
1110
|
<div class="sourcecode">
|
1111
|
-
<p class="source-link">[ <a href="javascript:toggleSource('
|
1112
|
-
<div id="
|
1111
|
+
<p class="source-link">[ <a href="javascript:toggleSource('M000187_source')" id="l_M000187_source">+</a> ]</p>
|
1112
|
+
<div id="M000187_source" class="dyn-source">
|
1113
1113
|
<pre>
|
1114
1114
|
<span class="ruby-comment cmt"># File lib/core/facets/module/conflict.rb, line 54</span>
|
1115
1115
|
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">protected_conflict?</span>(<span class="ruby-identifier">other</span>)
|
@@ -1124,7 +1124,7 @@ Like conflict?, but checks only protected methods.
|
|
1124
1124
|
</div>
|
1125
1125
|
<div class="method">
|
1126
1126
|
<div class="title">
|
1127
|
-
<a name="
|
1127
|
+
<a name="M000185"></a><b>public_conflict?</b>(other)
|
1128
1128
|
</div>
|
1129
1129
|
<div class="description">
|
1130
1130
|
<p>
|
@@ -1132,8 +1132,8 @@ Like conflict?, but checks only public methods.
|
|
1132
1132
|
</p>
|
1133
1133
|
</div>
|
1134
1134
|
<div class="sourcecode">
|
1135
|
-
<p class="source-link">[ <a href="javascript:toggleSource('
|
1136
|
-
<div id="
|
1135
|
+
<p class="source-link">[ <a href="javascript:toggleSource('M000185_source')" id="l_M000185_source">+</a> ]</p>
|
1136
|
+
<div id="M000185_source" class="dyn-source">
|
1137
1137
|
<pre>
|
1138
1138
|
<span class="ruby-comment cmt"># File lib/core/facets/module/conflict.rb, line 38</span>
|
1139
1139
|
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">public_conflict?</span>(<span class="ruby-identifier">other</span>)
|
@@ -1148,17 +1148,17 @@ Like conflict?, but checks only public methods.
|
|
1148
1148
|
</div>
|
1149
1149
|
<div class="method">
|
1150
1150
|
<div class="title">
|
1151
|
-
<a name="
|
1151
|
+
<a name="M000207"></a><b>revisal</b>(&blk)
|
1152
1152
|
</div>
|
1153
1153
|
<div class="description">
|
1154
1154
|
<p>
|
1155
|
-
Alias for <a href="Module.html#
|
1155
|
+
Alias for <a href="Module.html#M000206">revise</a>
|
1156
1156
|
</p>
|
1157
1157
|
</div>
|
1158
1158
|
</div>
|
1159
1159
|
<div class="method">
|
1160
1160
|
<div class="title">
|
1161
|
-
<a name="
|
1161
|
+
<a name="M000206"></a><b>revise</b>(&blk)
|
1162
1162
|
</div>
|
1163
1163
|
<div class="description">
|
1164
1164
|
<p>
|
@@ -1171,11 +1171,11 @@ CREDIT: Trans
|
|
1171
1171
|
</div>
|
1172
1172
|
<div class="aka">
|
1173
1173
|
This method is also aliased as
|
1174
|
-
<a href="Module.html#
|
1174
|
+
<a href="Module.html#M000207">revisal</a>
|
1175
1175
|
</div>
|
1176
1176
|
<div class="sourcecode">
|
1177
|
-
<p class="source-link">[ <a href="javascript:toggleSource('
|
1178
|
-
<div id="
|
1177
|
+
<p class="source-link">[ <a href="javascript:toggleSource('M000206_source')" id="l_M000206_source">+</a> ]</p>
|
1178
|
+
<div id="M000206_source" class="dyn-source">
|
1179
1179
|
<pre>
|
1180
1180
|
<span class="ruby-comment cmt"># File lib/core/facets/module/revise.rb, line 13</span>
|
1181
1181
|
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">revise</span>(<span class="ruby-operator">&</span><span class="ruby-identifier">blk</span>)
|
@@ -1190,12 +1190,12 @@ CREDIT: Trans
|
|
1190
1190
|
</div>
|
1191
1191
|
<div class="method">
|
1192
1192
|
<div class="title">
|
1193
|
-
<a name="
|
1193
|
+
<a name="M000194"></a><b>singleton_method_defined?</b>(meth)
|
1194
1194
|
</div>
|
1195
1195
|
<div class="description">
|
1196
1196
|
<p>
|
1197
1197
|
Query whether a normal (singleton) method <a
|
1198
|
-
href="Module.html#
|
1198
|
+
href="Module.html#M000201">is</a> defined for the module.
|
1199
1199
|
</p>
|
1200
1200
|
<p>
|
1201
1201
|
CREDIT: Gavin Sinclair, Noah Gibbs
|
@@ -1203,11 +1203,11 @@ CREDIT: Gavin Sinclair, Noah Gibbs
|
|
1203
1203
|
</div>
|
1204
1204
|
<div class="aka">
|
1205
1205
|
This method is also aliased as
|
1206
|
-
<a href="Module.html#
|
1206
|
+
<a href="Module.html#M000195">module_method_defined?</a>
|
1207
1207
|
</div>
|
1208
1208
|
<div class="sourcecode">
|
1209
|
-
<p class="source-link">[ <a href="javascript:toggleSource('
|
1210
|
-
<div id="
|
1209
|
+
<p class="source-link">[ <a href="javascript:toggleSource('M000194_source')" id="l_M000194_source">+</a> ]</p>
|
1210
|
+
<div id="M000194_source" class="dyn-source">
|
1211
1211
|
<pre>
|
1212
1212
|
<span class="ruby-comment cmt"># File lib/core/facets/module/instance_methods.rb, line 31</span>
|
1213
1213
|
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">singleton_method_defined?</span>(<span class="ruby-identifier">meth</span>)
|
@@ -1219,7 +1219,7 @@ CREDIT: Gavin Sinclair, Noah Gibbs
|
|
1219
1219
|
</div>
|
1220
1220
|
<div class="method">
|
1221
1221
|
<div class="title">
|
1222
|
-
<a name="
|
1222
|
+
<a name="M000210"></a><b>spacename</b>()
|
1223
1223
|
</div>
|
1224
1224
|
<div class="description">
|
1225
1225
|
<p>
|
@@ -1238,15 +1238,15 @@ Returns the name of module‘s container module.
|
|
1238
1238
|
This used to be called <tt>dirname</tt>.
|
1239
1239
|
</p>
|
1240
1240
|
<p>
|
1241
|
-
See also <a href="Module.html#
|
1241
|
+
See also <a href="Module.html#M000213">Module#basename</a>.
|
1242
1242
|
</p>
|
1243
1243
|
<p>
|
1244
1244
|
CREDIT: Trans
|
1245
1245
|
</p>
|
1246
1246
|
</div>
|
1247
1247
|
<div class="sourcecode">
|
1248
|
-
<p class="source-link">[ <a href="javascript:toggleSource('
|
1249
|
-
<div id="
|
1248
|
+
<p class="source-link">[ <a href="javascript:toggleSource('M000210_source')" id="l_M000210_source">+</a> ]</p>
|
1249
|
+
<div id="M000210_source" class="dyn-source">
|
1250
1250
|
<pre>
|
1251
1251
|
<span class="ruby-comment cmt"># File lib/core/facets/module/spacename.rb, line 19</span>
|
1252
1252
|
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">spacename</span>
|
@@ -1259,22 +1259,22 @@ CREDIT: Trans
|
|
1259
1259
|
</div>
|
1260
1260
|
<div class="method">
|
1261
1261
|
<div class="title">
|
1262
|
-
<a name="
|
1262
|
+
<a name="M000212"></a><b>wrap</b>( sym, &blk )
|
1263
1263
|
</div>
|
1264
1264
|
<div class="description">
|
1265
1265
|
<p>
|
1266
|
-
Alias for <a href="Module.html#
|
1266
|
+
Alias for <a href="Module.html#M000211">wrap_method</a>
|
1267
1267
|
</p>
|
1268
1268
|
</div>
|
1269
1269
|
</div>
|
1270
1270
|
<div class="method">
|
1271
1271
|
<div class="title">
|
1272
|
-
<a name="
|
1272
|
+
<a name="M000211"></a><b>wrap_method</b>( sym, &blk )
|
1273
1273
|
</div>
|
1274
1274
|
<div class="description">
|
1275
1275
|
<p>
|
1276
1276
|
Creates a new method wrapping the previous of the same name. Reference to
|
1277
|
-
the old method <a href="Module.html#
|
1277
|
+
the old method <a href="Module.html#M000201">is</a> passed into the new
|
1278
1278
|
definition block as the first parameter.
|
1279
1279
|
</p>
|
1280
1280
|
<pre>
|
@@ -1285,7 +1285,7 @@ definition block as the first parameter.
|
|
1285
1285
|
</pre>
|
1286
1286
|
<p>
|
1287
1287
|
Keep in mind that this can not be used to <a
|
1288
|
-
href="Module.html#
|
1288
|
+
href="Module.html#M000212">wrap</a> methods that take a block.
|
1289
1289
|
</p>
|
1290
1290
|
<p>
|
1291
1291
|
CREDIT: Trans
|
@@ -1293,11 +1293,11 @@ CREDIT: Trans
|
|
1293
1293
|
</div>
|
1294
1294
|
<div class="aka">
|
1295
1295
|
This method is also aliased as
|
1296
|
-
<a href="Module.html#
|
1296
|
+
<a href="Module.html#M000212">wrap</a>
|
1297
1297
|
</div>
|
1298
1298
|
<div class="sourcecode">
|
1299
|
-
<p class="source-link">[ <a href="javascript:toggleSource('
|
1300
|
-
<div id="
|
1299
|
+
<p class="source-link">[ <a href="javascript:toggleSource('M000211_source')" id="l_M000211_source">+</a> ]</p>
|
1300
|
+
<div id="M000211_source" class="dyn-source">
|
1301
1301
|
<pre>
|
1302
1302
|
<span class="ruby-comment cmt"># File lib/core/facets/module/wrap_method.rb, line 20</span>
|
1303
1303
|
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">wrap_method</span>( <span class="ruby-identifier">sym</span>, <span class="ruby-operator">&</span><span class="ruby-identifier">blk</span> )
|