facets 2.5.1 → 2.5.2
Sign up to get free protection for your applications and to get access to all the features.
- 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,17 +86,17 @@ Object
|
|
86
86
|
|
87
87
|
|
88
88
|
<div class="sectiontitle">Methods</div>
|
89
|
-
<span style="padding-right: 5px;"><a href="#
|
90
|
-
<span style="padding-right: 5px;"><a href="#
|
91
|
-
<span style="padding-right: 5px;"><a href="#
|
92
|
-
<span style="padding-right: 5px;"><a href="#
|
93
|
-
<span style="padding-right: 5px;"><a href="#
|
94
|
-
<span style="padding-right: 5px;"><a href="#
|
95
|
-
<span style="padding-right: 5px;"><a href="#
|
96
|
-
<span style="padding-right: 5px;"><a href="#
|
97
|
-
<span style="padding-right: 5px;"><a href="#
|
98
|
-
<span style="padding-right: 5px;"><a href="#
|
99
|
-
<span style="padding-right: 5px;"><a href="#
|
89
|
+
<span style="padding-right: 5px;"><a href="#M000246">__DIR__</a></span>
|
90
|
+
<span style="padding-right: 5px;"><a href="#M000245">__FILE__</a></span>
|
91
|
+
<span style="padding-right: 5px;"><a href="#M000244">__LINE__</a></span>
|
92
|
+
<span style="padding-right: 5px;"><a href="#M000247">__callee__</a></span>
|
93
|
+
<span style="padding-right: 5px;"><a href="#M000248">__method__</a></span>
|
94
|
+
<span style="padding-right: 5px;"><a href="#M000243">caller</a></span>
|
95
|
+
<span style="padding-right: 5px;"><a href="#M000253">callstack</a></span>
|
96
|
+
<span style="padding-right: 5px;"><a href="#M000252">defined?</a></span>
|
97
|
+
<span style="padding-right: 5px;"><a href="#M000249">eval</a></span>
|
98
|
+
<span style="padding-right: 5px;"><a href="#M000251">local_variables</a></span>
|
99
|
+
<span style="padding-right: 5px;"><a href="#M000250">self</a></span>
|
100
100
|
|
101
101
|
|
102
102
|
|
@@ -106,7 +106,7 @@ Object
|
|
106
106
|
<div class="sectiontitle">Public Instance methods</div>
|
107
107
|
<div class="method">
|
108
108
|
<div class="title">
|
109
|
-
<a name="
|
109
|
+
<a name="M000246"></a><b>__DIR__</b>()
|
110
110
|
</div>
|
111
111
|
<div class="description">
|
112
112
|
<p>
|
@@ -114,8 +114,8 @@ Return the directory of the file.
|
|
114
114
|
</p>
|
115
115
|
</div>
|
116
116
|
<div class="sourcecode">
|
117
|
-
<p class="source-link">[ <a href="javascript:toggleSource('
|
118
|
-
<div id="
|
117
|
+
<p class="source-link">[ <a href="javascript:toggleSource('M000246_source')" id="l_M000246_source">+</a> ]</p>
|
118
|
+
<div id="M000246_source" class="dyn-source">
|
119
119
|
<pre>
|
120
120
|
<span class="ruby-comment cmt"># File lib/core/facets/binding/caller.rb, line 22</span>
|
121
121
|
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">__DIR__</span>
|
@@ -127,7 +127,7 @@ Return the directory of the file.
|
|
127
127
|
</div>
|
128
128
|
<div class="method">
|
129
129
|
<div class="title">
|
130
|
-
<a name="
|
130
|
+
<a name="M000245"></a><b>__FILE__</b>()
|
131
131
|
</div>
|
132
132
|
<div class="description">
|
133
133
|
<p>
|
@@ -135,8 +135,8 @@ Returns file name.
|
|
135
135
|
</p>
|
136
136
|
</div>
|
137
137
|
<div class="sourcecode">
|
138
|
-
<p class="source-link">[ <a href="javascript:toggleSource('
|
139
|
-
<div id="
|
138
|
+
<p class="source-link">[ <a href="javascript:toggleSource('M000245_source')" id="l_M000245_source">+</a> ]</p>
|
139
|
+
<div id="M000245_source" class="dyn-source">
|
140
140
|
<pre>
|
141
141
|
<span class="ruby-comment cmt"># File lib/core/facets/binding/caller.rb, line 17</span>
|
142
142
|
<span class="ruby-keyword kw">def</span> <span class="ruby-keyword kw">__FILE__</span>
|
@@ -148,7 +148,7 @@ Returns file name.
|
|
148
148
|
</div>
|
149
149
|
<div class="method">
|
150
150
|
<div class="title">
|
151
|
-
<a name="
|
151
|
+
<a name="M000244"></a><b>__LINE__</b>()
|
152
152
|
</div>
|
153
153
|
<div class="description">
|
154
154
|
<p>
|
@@ -156,8 +156,8 @@ Returns line number.
|
|
156
156
|
</p>
|
157
157
|
</div>
|
158
158
|
<div class="sourcecode">
|
159
|
-
<p class="source-link">[ <a href="javascript:toggleSource('
|
160
|
-
<div id="
|
159
|
+
<p class="source-link">[ <a href="javascript:toggleSource('M000244_source')" id="l_M000244_source">+</a> ]</p>
|
160
|
+
<div id="M000244_source" class="dyn-source">
|
161
161
|
<pre>
|
162
162
|
<span class="ruby-comment cmt"># File lib/core/facets/binding/caller.rb, line 12</span>
|
163
163
|
<span class="ruby-keyword kw">def</span> <span class="ruby-keyword kw">__LINE__</span>
|
@@ -169,7 +169,7 @@ Returns line number.
|
|
169
169
|
</div>
|
170
170
|
<div class="method">
|
171
171
|
<div class="title">
|
172
|
-
<a name="
|
172
|
+
<a name="M000247"></a><b>__callee__</b>()
|
173
173
|
</div>
|
174
174
|
<div class="description">
|
175
175
|
<p>
|
@@ -181,8 +181,8 @@ Retreive the current running method.
|
|
181
181
|
</pre>
|
182
182
|
</div>
|
183
183
|
<div class="sourcecode">
|
184
|
-
<p class="source-link">[ <a href="javascript:toggleSource('
|
185
|
-
<div id="
|
184
|
+
<p class="source-link">[ <a href="javascript:toggleSource('M000247_source')" id="l_M000247_source">+</a> ]</p>
|
185
|
+
<div id="M000247_source" class="dyn-source">
|
186
186
|
<pre>
|
187
187
|
<span class="ruby-comment cmt"># File lib/core/facets/binding/caller.rb, line 31</span>
|
188
188
|
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">__callee__</span>
|
@@ -195,7 +195,7 @@ Retreive the current running method.
|
|
195
195
|
</div>
|
196
196
|
<div class="method">
|
197
197
|
<div class="title">
|
198
|
-
<a name="
|
198
|
+
<a name="M000248"></a><b>__method__</b>()
|
199
199
|
</div>
|
200
200
|
<div class="description">
|
201
201
|
<p>
|
@@ -209,8 +209,8 @@ symbol.
|
|
209
209
|
</pre>
|
210
210
|
</div>
|
211
211
|
<div class="sourcecode">
|
212
|
-
<p class="source-link">[ <a href="javascript:toggleSource('
|
213
|
-
<div id="
|
212
|
+
<p class="source-link">[ <a href="javascript:toggleSource('M000248_source')" id="l_M000248_source">+</a> ]</p>
|
213
|
+
<div id="M000248_source" class="dyn-source">
|
214
214
|
<pre>
|
215
215
|
<span class="ruby-comment cmt"># File lib/core/facets/binding/caller.rb, line 43</span>
|
216
216
|
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">__method__</span>
|
@@ -223,7 +223,7 @@ symbol.
|
|
223
223
|
</div>
|
224
224
|
<div class="method">
|
225
225
|
<div class="title">
|
226
|
-
<a name="
|
226
|
+
<a name="M000243"></a><b>caller</b>( skip=0 )
|
227
227
|
</div>
|
228
228
|
<div class="description">
|
229
229
|
<p>
|
@@ -231,8 +231,8 @@ Returns the call stack, same format as Kernel#caller()
|
|
231
231
|
</p>
|
232
232
|
</div>
|
233
233
|
<div class="sourcecode">
|
234
|
-
<p class="source-link">[ <a href="javascript:toggleSource('
|
235
|
-
<div id="
|
234
|
+
<p class="source-link">[ <a href="javascript:toggleSource('M000243_source')" id="l_M000243_source">+</a> ]</p>
|
235
|
+
<div id="M000243_source" class="dyn-source">
|
236
236
|
<pre>
|
237
237
|
<span class="ruby-comment cmt"># File lib/core/facets/binding/caller.rb, line 7</span>
|
238
238
|
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">caller</span>( <span class="ruby-identifier">skip</span>=<span class="ruby-value">0</span> )
|
@@ -244,7 +244,7 @@ Returns the call stack, same format as Kernel#caller()
|
|
244
244
|
</div>
|
245
245
|
<div class="method">
|
246
246
|
<div class="title">
|
247
|
-
<a name="
|
247
|
+
<a name="M000253"></a><b>callstack</b>(level=1)
|
248
248
|
</div>
|
249
249
|
<div class="description">
|
250
250
|
<p>
|
@@ -252,8 +252,8 @@ Returns the call stack, in array format.
|
|
252
252
|
</p>
|
253
253
|
</div>
|
254
254
|
<div class="sourcecode">
|
255
|
-
<p class="source-link">[ <a href="javascript:toggleSource('
|
256
|
-
<div id="
|
255
|
+
<p class="source-link">[ <a href="javascript:toggleSource('M000253_source')" id="l_M000253_source">+</a> ]</p>
|
256
|
+
<div id="M000253_source" class="dyn-source">
|
257
257
|
<pre>
|
258
258
|
<span class="ruby-comment cmt"># File lib/core/facets/kernel/callstack.rb, line 47</span>
|
259
259
|
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">callstack</span>(<span class="ruby-identifier">level</span>=<span class="ruby-value">1</span>)
|
@@ -265,7 +265,7 @@ Returns the call stack, in array format.
|
|
265
265
|
</div>
|
266
266
|
<div class="method">
|
267
267
|
<div class="title">
|
268
|
-
<a name="
|
268
|
+
<a name="M000252"></a><b>defined?</b>(x)
|
269
269
|
</div>
|
270
270
|
<div class="description">
|
271
271
|
<p>
|
@@ -274,8 +274,8 @@ nil if that thing is not defined.
|
|
274
274
|
</p>
|
275
275
|
</div>
|
276
276
|
<div class="sourcecode">
|
277
|
-
<p class="source-link">[ <a href="javascript:toggleSource('
|
278
|
-
<div id="
|
277
|
+
<p class="source-link">[ <a href="javascript:toggleSource('M000252_source')" id="l_M000252_source">+</a> ]</p>
|
278
|
+
<div id="M000252_source" class="dyn-source">
|
279
279
|
<pre>
|
280
280
|
<span class="ruby-comment cmt"># File lib/core/facets/binding/defined.rb, line 7</span>
|
281
281
|
<span class="ruby-keyword kw">def</span> <span class="ruby-keyword kw">defined?</span>(<span class="ruby-identifier">x</span>)
|
@@ -287,7 +287,7 @@ nil if that thing is not defined.
|
|
287
287
|
</div>
|
288
288
|
<div class="method">
|
289
289
|
<div class="title">
|
290
|
-
<a name="
|
290
|
+
<a name="M000249"></a><b>eval</b>(str)
|
291
291
|
</div>
|
292
292
|
<div class="description">
|
293
293
|
<p>
|
@@ -295,8 +295,8 @@ Evaluate a Ruby source code string (or block) in the binding context.
|
|
295
295
|
</p>
|
296
296
|
</div>
|
297
297
|
<div class="sourcecode">
|
298
|
-
<p class="source-link">[ <a href="javascript:toggleSource('
|
299
|
-
<div id="
|
298
|
+
<p class="source-link">[ <a href="javascript:toggleSource('M000249_source')" id="l_M000249_source">+</a> ]</p>
|
299
|
+
<div id="M000249_source" class="dyn-source">
|
300
300
|
<pre>
|
301
301
|
<span class="ruby-comment cmt"># File lib/core/facets/binding/eval.rb, line 7</span>
|
302
302
|
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">eval</span>(<span class="ruby-identifier">str</span>) <span class="ruby-comment cmt">#='', &blk )</span>
|
@@ -312,7 +312,7 @@ Evaluate a Ruby source code string (or block) in the binding context.
|
|
312
312
|
</div>
|
313
313
|
<div class="method">
|
314
314
|
<div class="title">
|
315
|
-
<a name="
|
315
|
+
<a name="M000251"></a><b>local_variables</b>()
|
316
316
|
</div>
|
317
317
|
<div class="description">
|
318
318
|
<p>
|
@@ -324,8 +324,8 @@ Returns the local variables defined in the binding context
|
|
324
324
|
</pre>
|
325
325
|
</div>
|
326
326
|
<div class="sourcecode">
|
327
|
-
<p class="source-link">[ <a href="javascript:toggleSource('
|
328
|
-
<div id="
|
327
|
+
<p class="source-link">[ <a href="javascript:toggleSource('M000251_source')" id="l_M000251_source">+</a> ]</p>
|
328
|
+
<div id="M000251_source" class="dyn-source">
|
329
329
|
<pre>
|
330
330
|
<span class="ruby-comment cmt"># File lib/core/facets/binding/local_variables.rb, line 10</span>
|
331
331
|
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">local_variables</span>()
|
@@ -337,16 +337,16 @@ Returns the local variables defined in the binding context
|
|
337
337
|
</div>
|
338
338
|
<div class="method">
|
339
339
|
<div class="title">
|
340
|
-
<a name="
|
340
|
+
<a name="M000250"></a><b>self</b>()
|
341
341
|
</div>
|
342
342
|
<div class="description">
|
343
343
|
<p>
|
344
|
-
Returns <a href="Binding.html#
|
344
|
+
Returns <a href="Binding.html#M000250">self</a> of the binding context.
|
345
345
|
</p>
|
346
346
|
</div>
|
347
347
|
<div class="sourcecode">
|
348
|
-
<p class="source-link">[ <a href="javascript:toggleSource('
|
349
|
-
<div id="
|
348
|
+
<p class="source-link">[ <a href="javascript:toggleSource('M000250_source')" id="l_M000250_source">+</a> ]</p>
|
349
|
+
<div id="M000250_source" class="dyn-source">
|
350
350
|
<pre>
|
351
351
|
<span class="ruby-comment cmt"># File lib/core/facets/binding/self.rb, line 7</span>
|
352
352
|
<span class="ruby-keyword kw">def</span> <span class="ruby-keyword kw">self</span>()
|
@@ -86,15 +86,15 @@ Object
|
|
86
86
|
|
87
87
|
|
88
88
|
<div class="sectiontitle">Methods</div>
|
89
|
-
<span style="padding-right: 5px;"><a href="#
|
90
|
-
<span style="padding-right: 5px;"><a href="#
|
91
|
-
<span style="padding-right: 5px;"><a href="#
|
92
|
-
<span style="padding-right: 5px;"><a href="#
|
93
|
-
<span style="padding-right: 5px;"><a href="#
|
94
|
-
<span style="padding-right: 5px;"><a href="#
|
95
|
-
<span style="padding-right: 5px;"><a href="#
|
96
|
-
<span style="padding-right: 5px;"><a href="#
|
97
|
-
<span style="padding-right: 5px;"><a href="#
|
89
|
+
<span style="padding-right: 5px;"><a href="#M000215">cattr</a></span>
|
90
|
+
<span style="padding-right: 5px;"><a href="#M000218">cattr_accessor</a></span>
|
91
|
+
<span style="padding-right: 5px;"><a href="#M000216">cattr_reader</a></span>
|
92
|
+
<span style="padding-right: 5px;"><a href="#M000217">cattr_writer</a></span>
|
93
|
+
<span style="padding-right: 5px;"><a href="#M000221">descendents</a></span>
|
94
|
+
<span style="padding-right: 5px;"><a href="#M000219">methodize</a></span>
|
95
|
+
<span style="padding-right: 5px;"><a href="#M000220">pathize</a></span>
|
96
|
+
<span style="padding-right: 5px;"><a href="#M000214">prepend</a></span>
|
97
|
+
<span style="padding-right: 5px;"><a href="#M000222">to_proc</a></span>
|
98
98
|
|
99
99
|
|
100
100
|
|
@@ -104,7 +104,7 @@ Object
|
|
104
104
|
<div class="sectiontitle">Public Instance methods</div>
|
105
105
|
<div class="method">
|
106
106
|
<div class="title">
|
107
|
-
<a name="
|
107
|
+
<a name="M000215"></a><b>cattr</b>( *syms )
|
108
108
|
</div>
|
109
109
|
<div class="description">
|
110
110
|
<p>
|
@@ -122,8 +122,8 @@ CREDIT: David Heinemeier Hansson
|
|
122
122
|
</p>
|
123
123
|
</div>
|
124
124
|
<div class="sourcecode">
|
125
|
-
<p class="source-link">[ <a href="javascript:toggleSource('
|
126
|
-
<div id="
|
125
|
+
<p class="source-link">[ <a href="javascript:toggleSource('M000215_source')" id="l_M000215_source">+</a> ]</p>
|
126
|
+
<div id="M000215_source" class="dyn-source">
|
127
127
|
<pre>
|
128
128
|
<span class="ruby-comment cmt"># File lib/core/facets/class/cattr.rb, line 12</span>
|
129
129
|
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">cattr</span>( <span class="ruby-operator">*</span><span class="ruby-identifier">syms</span> )
|
@@ -140,7 +140,7 @@ CREDIT: David Heinemeier Hansson
|
|
140
140
|
</div>
|
141
141
|
<div class="method">
|
142
142
|
<div class="title">
|
143
|
-
<a name="
|
143
|
+
<a name="M000218"></a><b>cattr_accessor</b>(*syms)
|
144
144
|
</div>
|
145
145
|
<div class="description">
|
146
146
|
<p>
|
@@ -162,8 +162,8 @@ CREDIT: David Heinemeier Hansson
|
|
162
162
|
</p>
|
163
163
|
</div>
|
164
164
|
<div class="sourcecode">
|
165
|
-
<p class="source-link">[ <a href="javascript:toggleSource('
|
166
|
-
<div id="
|
165
|
+
<p class="source-link">[ <a href="javascript:toggleSource('M000218_source')" id="l_M000218_source">+</a> ]</p>
|
166
|
+
<div id="M000218_source" class="dyn-source">
|
167
167
|
<pre>
|
168
168
|
<span class="ruby-comment cmt"># File lib/core/facets/class/cattr.rb, line 102</span>
|
169
169
|
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">cattr_accessor</span>(<span class="ruby-operator">*</span><span class="ruby-identifier">syms</span>)
|
@@ -175,7 +175,7 @@ CREDIT: David Heinemeier Hansson
|
|
175
175
|
</div>
|
176
176
|
<div class="method">
|
177
177
|
<div class="title">
|
178
|
-
<a name="
|
178
|
+
<a name="M000216"></a><b>cattr_reader</b>( *syms )
|
179
179
|
</div>
|
180
180
|
<div class="description">
|
181
181
|
<p>
|
@@ -196,8 +196,8 @@ CREDIT: David Heinemeier Hansson
|
|
196
196
|
</p>
|
197
197
|
</div>
|
198
198
|
<div class="sourcecode">
|
199
|
-
<p class="source-link">[ <a href="javascript:toggleSource('
|
200
|
-
<div id="
|
199
|
+
<p class="source-link">[ <a href="javascript:toggleSource('M000216_source')" id="l_M000216_source">+</a> ]</p>
|
200
|
+
<div id="M000216_source" class="dyn-source">
|
201
201
|
<pre>
|
202
202
|
<span class="ruby-comment cmt"># File lib/core/facets/class/cattr.rb, line 33</span>
|
203
203
|
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">cattr_reader</span>( <span class="ruby-operator">*</span><span class="ruby-identifier">syms</span> )
|
@@ -212,7 +212,7 @@ CREDIT: David Heinemeier Hansson
|
|
212
212
|
</div>
|
213
213
|
<div class="method">
|
214
214
|
<div class="title">
|
215
|
-
<a name="
|
215
|
+
<a name="M000217"></a><b>cattr_writer</b>(*syms)
|
216
216
|
</div>
|
217
217
|
<div class="description">
|
218
218
|
<p>
|
@@ -237,8 +237,8 @@ CREDIT: David Heinemeier Hansson
|
|
237
237
|
</p>
|
238
238
|
</div>
|
239
239
|
<div class="sourcecode">
|
240
|
-
<p class="source-link">[ <a href="javascript:toggleSource('
|
241
|
-
<div id="
|
240
|
+
<p class="source-link">[ <a href="javascript:toggleSource('M000217_source')" id="l_M000217_source">+</a> ]</p>
|
241
|
+
<div id="M000217_source" class="dyn-source">
|
242
242
|
<pre>
|
243
243
|
<span class="ruby-comment cmt"># File lib/core/facets/class/cattr.rb, line 69</span>
|
244
244
|
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">cattr_writer</span>(<span class="ruby-operator">*</span><span class="ruby-identifier">syms</span>)
|
@@ -253,7 +253,7 @@ CREDIT: David Heinemeier Hansson
|
|
253
253
|
</div>
|
254
254
|
<div class="method">
|
255
255
|
<div class="title">
|
256
|
-
<a name="
|
256
|
+
<a name="M000221"></a><b>descendents</b>()
|
257
257
|
</div>
|
258
258
|
<div class="description">
|
259
259
|
<p>
|
@@ -270,8 +270,8 @@ NOTE: This is a intesive operation. Do not expect it to be super fast.
|
|
270
270
|
</p>
|
271
271
|
</div>
|
272
272
|
<div class="sourcecode">
|
273
|
-
<p class="source-link">[ <a href="javascript:toggleSource('
|
274
|
-
<div id="
|
273
|
+
<p class="source-link">[ <a href="javascript:toggleSource('M000221_source')" id="l_M000221_source">+</a> ]</p>
|
274
|
+
<div id="M000221_source" class="dyn-source">
|
275
275
|
<pre>
|
276
276
|
<span class="ruby-comment cmt"># File lib/core/facets/class/descendents.rb, line 12</span>
|
277
277
|
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">descendents</span>
|
@@ -289,7 +289,7 @@ NOTE: This is a intesive operation. Do not expect it to be super fast.
|
|
289
289
|
</div>
|
290
290
|
<div class="method">
|
291
291
|
<div class="title">
|
292
|
-
<a name="
|
292
|
+
<a name="M000219"></a><b>methodize</b>()
|
293
293
|
</div>
|
294
294
|
<div class="description">
|
295
295
|
<p>
|
@@ -300,8 +300,8 @@ Translate a class name to a suitable method name.
|
|
300
300
|
</pre>
|
301
301
|
</div>
|
302
302
|
<div class="sourcecode">
|
303
|
-
<p class="source-link">[ <a href="javascript:toggleSource('
|
304
|
-
<div id="
|
303
|
+
<p class="source-link">[ <a href="javascript:toggleSource('M000219_source')" id="l_M000219_source">+</a> ]</p>
|
304
|
+
<div id="M000219_source" class="dyn-source">
|
305
305
|
<pre>
|
306
306
|
<span class="ruby-comment cmt"># File lib/core/facets/class/methodize.rb, line 9</span>
|
307
307
|
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">methodize</span>
|
@@ -313,7 +313,7 @@ Translate a class name to a suitable method name.
|
|
313
313
|
</div>
|
314
314
|
<div class="method">
|
315
315
|
<div class="title">
|
316
|
-
<a name="
|
316
|
+
<a name="M000220"></a><b>pathize</b>()
|
317
317
|
</div>
|
318
318
|
<div class="description">
|
319
319
|
<p>
|
@@ -324,8 +324,8 @@ Converts a class name to a unix path.
|
|
324
324
|
</pre>
|
325
325
|
</div>
|
326
326
|
<div class="sourcecode">
|
327
|
-
<p class="source-link">[ <a href="javascript:toggleSource('
|
328
|
-
<div id="
|
327
|
+
<p class="source-link">[ <a href="javascript:toggleSource('M000220_source')" id="l_M000220_source">+</a> ]</p>
|
328
|
+
<div id="M000220_source" class="dyn-source">
|
329
329
|
<pre>
|
330
330
|
<span class="ruby-comment cmt"># File lib/core/facets/class/pathize.rb, line 9</span>
|
331
331
|
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">pathize</span>
|
@@ -337,7 +337,7 @@ Converts a class name to a unix path.
|
|
337
337
|
</div>
|
338
338
|
<div class="method">
|
339
339
|
<div class="title">
|
340
|
-
<a name="
|
340
|
+
<a name="M000214"></a><b>prepend</b>( aspect )
|
341
341
|
</div>
|
342
342
|
<div class="description">
|
343
343
|
<p>
|
@@ -370,13 +370,13 @@ CREDIT: Trans
|
|
370
370
|
</p>
|
371
371
|
<p>
|
372
372
|
TODO: Perhaps rename this to preallocate, b/c of the way it works. It is
|
373
|
-
not really a clean <a href="Class.html#
|
374
|
-
<a href="Module.html#
|
373
|
+
not really a clean <a href="Class.html#M000214">prepend</a>, like that of
|
374
|
+
<a href="Module.html#M000181">Module#prepend</a>.
|
375
375
|
</p>
|
376
376
|
</div>
|
377
377
|
<div class="sourcecode">
|
378
|
-
<p class="source-link">[ <a href="javascript:toggleSource('
|
379
|
-
<div id="
|
378
|
+
<p class="source-link">[ <a href="javascript:toggleSource('M000214_source')" id="l_M000214_source">+</a> ]</p>
|
379
|
+
<div id="M000214_source" class="dyn-source">
|
380
380
|
<pre>
|
381
381
|
<span class="ruby-comment cmt"># File lib/core/facets/class/prepend.rb, line 30</span>
|
382
382
|
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">prepend</span>( <span class="ruby-identifier">aspect</span> )
|
@@ -401,7 +401,7 @@ not really a clean <a href="Class.html#M000208">prepend</a>, like that of
|
|
401
401
|
</div>
|
402
402
|
<div class="method">
|
403
403
|
<div class="title">
|
404
|
-
<a name="
|
404
|
+
<a name="M000222"></a><b>to_proc</b>()
|
405
405
|
</div>
|
406
406
|
<div class="description">
|
407
407
|
<p>
|
@@ -425,8 +425,8 @@ CREDIT: Daniel Schierbeck
|
|
425
425
|
</p>
|
426
426
|
</div>
|
427
427
|
<div class="sourcecode">
|
428
|
-
<p class="source-link">[ <a href="javascript:toggleSource('
|
429
|
-
<div id="
|
428
|
+
<p class="source-link">[ <a href="javascript:toggleSource('M000222_source')" id="l_M000222_source">+</a> ]</p>
|
429
|
+
<div id="M000222_source" class="dyn-source">
|
430
430
|
<pre>
|
431
431
|
<span class="ruby-comment cmt"># File lib/core/facets/class/to_proc.rb, line 18</span>
|
432
432
|
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">to_proc</span>
|
@@ -75,12 +75,12 @@
|
|
75
75
|
|
76
76
|
|
77
77
|
<div class="sectiontitle">Methods</div>
|
78
|
-
<span style="padding-right: 5px;"><a href="#
|
79
|
-
<span style="padding-right: 5px;"><a href="#
|
80
|
-
<span style="padding-right: 5px;"><a href="#
|
81
|
-
<span style="padding-right: 5px;"><a href="#
|
82
|
-
<span style="padding-right: 5px;"><a href="#
|
83
|
-
<span style="padding-right: 5px;"><a href="#
|
78
|
+
<span style="padding-right: 5px;"><a href="#M000427">at_least</a></span>
|
79
|
+
<span style="padding-right: 5px;"><a href="#M000428">at_most</a></span>
|
80
|
+
<span style="padding-right: 5px;"><a href="#M000432">bound</a></span>
|
81
|
+
<span style="padding-right: 5px;"><a href="#M000429">cap</a></span>
|
82
|
+
<span style="padding-right: 5px;"><a href="#M000431">clip</a></span>
|
83
|
+
<span style="padding-right: 5px;"><a href="#M000430">cmp</a></span>
|
84
84
|
|
85
85
|
|
86
86
|
|
@@ -90,7 +90,7 @@
|
|
90
90
|
<div class="sectiontitle">Public Instance methods</div>
|
91
91
|
<div class="method">
|
92
92
|
<div class="title">
|
93
|
-
<a name="
|
93
|
+
<a name="M000427"></a><b>at_least</b>(lower)
|
94
94
|
</div>
|
95
95
|
<div class="description">
|
96
96
|
<p>
|
@@ -105,8 +105,8 @@ CREDIT: Florian Gross
|
|
105
105
|
</p>
|
106
106
|
</div>
|
107
107
|
<div class="sourcecode">
|
108
|
-
<p class="source-link">[ <a href="javascript:toggleSource('
|
109
|
-
<div id="
|
108
|
+
<p class="source-link">[ <a href="javascript:toggleSource('M000427_source')" id="l_M000427_source">+</a> ]</p>
|
109
|
+
<div id="M000427_source" class="dyn-source">
|
110
110
|
<pre>
|
111
111
|
<span class="ruby-comment cmt"># File lib/core/facets/comparable/cap.rb, line 10</span>
|
112
112
|
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">at_least</span>(<span class="ruby-identifier">lower</span>)
|
@@ -118,7 +118,7 @@ CREDIT: Florian Gross
|
|
118
118
|
</div>
|
119
119
|
<div class="method">
|
120
120
|
<div class="title">
|
121
|
-
<a name="
|
121
|
+
<a name="M000428"></a><b>at_most</b>(upper)
|
122
122
|
</div>
|
123
123
|
<div class="description">
|
124
124
|
<p>
|
@@ -134,11 +134,11 @@ CREDIT: Florian Gross
|
|
134
134
|
</div>
|
135
135
|
<div class="aka">
|
136
136
|
This method is also aliased as
|
137
|
-
<a href="Comparable.html#
|
137
|
+
<a href="Comparable.html#M000429">cap</a>
|
138
138
|
</div>
|
139
139
|
<div class="sourcecode">
|
140
|
-
<p class="source-link">[ <a href="javascript:toggleSource('
|
141
|
-
<div id="
|
140
|
+
<p class="source-link">[ <a href="javascript:toggleSource('M000428_source')" id="l_M000428_source">+</a> ]</p>
|
141
|
+
<div id="M000428_source" class="dyn-source">
|
142
142
|
<pre>
|
143
143
|
<span class="ruby-comment cmt"># File lib/core/facets/comparable/cap.rb, line 21</span>
|
144
144
|
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">at_most</span>(<span class="ruby-identifier">upper</span>)
|
@@ -150,34 +150,34 @@ CREDIT: Florian Gross
|
|
150
150
|
</div>
|
151
151
|
<div class="method">
|
152
152
|
<div class="title">
|
153
|
-
<a name="
|
153
|
+
<a name="M000432"></a><b>bound</b>(lower, upper=nil)
|
154
154
|
</div>
|
155
155
|
<div class="description">
|
156
156
|
<p>
|
157
|
-
Alias for <a href="Comparable.html#
|
157
|
+
Alias for <a href="Comparable.html#M000431">clip</a>
|
158
158
|
</p>
|
159
159
|
</div>
|
160
160
|
</div>
|
161
161
|
<div class="method">
|
162
162
|
<div class="title">
|
163
|
-
<a name="
|
163
|
+
<a name="M000429"></a><b>cap</b>(upper)
|
164
164
|
</div>
|
165
165
|
<div class="description">
|
166
166
|
<p>
|
167
|
-
Alias for <a href="Comparable.html#
|
167
|
+
Alias for <a href="Comparable.html#M000428">at_most</a>
|
168
168
|
</p>
|
169
169
|
</div>
|
170
170
|
</div>
|
171
171
|
<div class="method">
|
172
172
|
<div class="title">
|
173
|
-
<a name="
|
173
|
+
<a name="M000431"></a><b>clip</b>(lower, upper=nil)
|
174
174
|
</div>
|
175
175
|
<div class="description">
|
176
176
|
<p>
|
177
177
|
Returns self if above the given lower <a
|
178
|
-
href="Comparable.html#
|
178
|
+
href="Comparable.html#M000432">bound</a>, or within the given lower and
|
179
179
|
upper bounds, otherwise returns the the <a
|
180
|
-
href="Comparable.html#
|
180
|
+
href="Comparable.html#M000432">bound</a> of which the value falls outside.
|
181
181
|
</p>
|
182
182
|
<pre>
|
183
183
|
4.clip(3) #=> 4
|
@@ -192,11 +192,11 @@ CREDIT Florian Gross, Trans
|
|
192
192
|
</div>
|
193
193
|
<div class="aka">
|
194
194
|
This method is also aliased as
|
195
|
-
<a href="Comparable.html#
|
195
|
+
<a href="Comparable.html#M000432">bound</a>
|
196
196
|
</div>
|
197
197
|
<div class="sourcecode">
|
198
|
-
<p class="source-link">[ <a href="javascript:toggleSource('
|
199
|
-
<div id="
|
198
|
+
<p class="source-link">[ <a href="javascript:toggleSource('M000431_source')" id="l_M000431_source">+</a> ]</p>
|
199
|
+
<div id="M000431_source" class="dyn-source">
|
200
200
|
<pre>
|
201
201
|
<span class="ruby-comment cmt"># File lib/core/facets/comparable/clip.rb, line 16</span>
|
202
202
|
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">clip</span>(<span class="ruby-identifier">lower</span>, <span class="ruby-identifier">upper</span>=<span class="ruby-keyword kw">nil</span>)
|
@@ -211,7 +211,7 @@ CREDIT Florian Gross, Trans
|
|
211
211
|
</div>
|
212
212
|
<div class="method">
|
213
213
|
<div class="title">
|
214
|
-
<a name="
|
214
|
+
<a name="M000430"></a><b>cmp</b>(o)
|
215
215
|
</div>
|
216
216
|
<div class="description">
|
217
217
|
<p>
|
@@ -231,8 +231,8 @@ CREDIT: Peter Vanbroekhoven
|
|
231
231
|
</p>
|
232
232
|
</div>
|
233
233
|
<div class="sourcecode">
|
234
|
-
<p class="source-link">[ <a href="javascript:toggleSource('
|
235
|
-
<div id="
|
234
|
+
<p class="source-link">[ <a href="javascript:toggleSource('M000430_source')" id="l_M000430_source">+</a> ]</p>
|
235
|
+
<div id="M000430_source" class="dyn-source">
|
236
236
|
<pre>
|
237
237
|
<span class="ruby-comment cmt"># File lib/core/facets/comparable/cmp.rb, line 14</span>
|
238
238
|
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">cmp</span>(<span class="ruby-identifier">o</span>)
|