mack-facets 0.6.1.2 → 0.7.0
Sign up to get free protection for your applications and to get access to all the features.
- data/doc/classes/Array.html +60 -60
- data/doc/classes/Class.html +18 -18
- data/doc/classes/Hash.html +18 -18
- data/doc/classes/Kernel.html +12 -12
- data/doc/classes/Mack/Utils/BlankSlate.html +113 -0
- data/doc/classes/Mack/Utils/Inflector.html +47 -47
- data/doc/classes/Mack/Utils/RegistryList.html +74 -74
- data/doc/classes/Mack/Utils/RegistryMap.html +74 -74
- data/doc/classes/Math.html +18 -18
- data/doc/classes/Module.html +12 -12
- data/doc/classes/NilClass.html +6 -6
- data/doc/classes/Object.html +68 -68
- data/doc/classes/String.html +54 -54
- data/doc/classes/Symbol.html +6 -6
- data/doc/classes/Time.html +174 -0
- data/doc/created.rid +1 -1
- data/doc/files/lib/mack-facets/extensions/time_rb.html +108 -0
- data/doc/files/lib/mack-facets/utils/blank_slate_rb.html +101 -0
- data/doc/files/lib/mack-facets_rb.html +3 -2
- data/doc/fr_class_index.html +2 -0
- data/doc/fr_file_index.html +2 -0
- data/doc/fr_method_index.html +74 -72
- data/lib/mack-facets.rb +6 -4
- data/lib/mack-facets/extensions/time.rb +25 -0
- data/lib/mack-facets/utils/blank_slate.rb +3 -0
- metadata +10 -4
data/doc/classes/Array.html
CHANGED
@@ -88,15 +88,15 @@
|
|
88
88
|
<h3 class="section-bar">Methods</h3>
|
89
89
|
|
90
90
|
<div class="name-list">
|
91
|
-
<a href="#
|
92
|
-
<a href="#
|
93
|
-
<a href="#
|
94
|
-
<a href="#
|
95
|
-
<a href="#
|
96
|
-
<a href="#
|
97
|
-
<a href="#
|
98
|
-
<a href="#
|
99
|
-
<a href="#
|
91
|
+
<a href="#M000014">count</a>
|
92
|
+
<a href="#M000015">invert</a>
|
93
|
+
<a href="#M000007">parse_splat_args</a>
|
94
|
+
<a href="#M000010">pick_random</a>
|
95
|
+
<a href="#M000011">random_each</a>
|
96
|
+
<a href="#M000008">randomize</a>
|
97
|
+
<a href="#M000009">randomize!</a>
|
98
|
+
<a href="#M000012">subset?</a>
|
99
|
+
<a href="#M000013">superset?</a>
|
100
100
|
</div>
|
101
101
|
</div>
|
102
102
|
|
@@ -118,26 +118,26 @@
|
|
118
118
|
<div id="methods">
|
119
119
|
<h3 class="section-bar">Public Instance methods</h3>
|
120
120
|
|
121
|
-
<div id="method-
|
122
|
-
<a name="
|
121
|
+
<div id="method-M000014" class="method-detail">
|
122
|
+
<a name="M000014"></a>
|
123
123
|
|
124
124
|
<div class="method-heading">
|
125
|
-
<a href="#
|
125
|
+
<a href="#M000014" class="method-signature">
|
126
126
|
<span class="method-name">count</span><span class="method-args">()</span>
|
127
127
|
</a>
|
128
128
|
</div>
|
129
129
|
|
130
130
|
<div class="method-description">
|
131
131
|
<p>
|
132
|
-
This will give you a <a href="Array.html#
|
132
|
+
This will give you a <a href="Array.html#M000014">count</a>, as a <a
|
133
133
|
href="Hash.html">Hash</a>, of all the values in the <a
|
134
134
|
href="Array.html">Array</a>. %w{spam spam eggs ham eggs spam}.<a
|
135
|
-
href="Array.html#
|
135
|
+
href="Array.html#M000014">count</a> # => {"eggs" => 2,
|
136
136
|
"ham" => 1, "spam" => 3}
|
137
137
|
</p>
|
138
138
|
<p><a class="source-toggle" href="#"
|
139
|
-
onclick="toggleCode('
|
140
|
-
<div class="method-source-code" id="
|
139
|
+
onclick="toggleCode('M000014-source');return false;">[Source]</a></p>
|
140
|
+
<div class="method-source-code" id="M000014-source">
|
141
141
|
<pre>
|
142
142
|
<span class="ruby-comment cmt"># File lib/mack-facets/extensions/array.rb, line 76</span>
|
143
143
|
76: <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">count</span>
|
@@ -150,25 +150,25 @@ href="Array.html#M000012">count</a> # => {"eggs" => 2,
|
|
150
150
|
</div>
|
151
151
|
</div>
|
152
152
|
|
153
|
-
<div id="method-
|
154
|
-
<a name="
|
153
|
+
<div id="method-M000015" class="method-detail">
|
154
|
+
<a name="M000015"></a>
|
155
155
|
|
156
156
|
<div class="method-heading">
|
157
|
-
<a href="#
|
157
|
+
<a href="#M000015" class="method-signature">
|
158
158
|
<span class="method-name">invert</span><span class="method-args">()</span>
|
159
159
|
</a>
|
160
160
|
</div>
|
161
161
|
|
162
162
|
<div class="method-description">
|
163
163
|
<p>
|
164
|
-
This will <a href="Array.html#
|
164
|
+
This will <a href="Array.html#M000015">invert</a> the index and the values
|
165
165
|
and return a <a href="Hash.html">Hash</a> of the results. %w{red yellow
|
166
|
-
orange}.<a href="Array.html#
|
166
|
+
orange}.<a href="Array.html#M000015">invert</a> # => {"red"
|
167
167
|
=> 0, "orange" => 2, "yellow" => 1}
|
168
168
|
</p>
|
169
169
|
<p><a class="source-toggle" href="#"
|
170
|
-
onclick="toggleCode('
|
171
|
-
<div class="method-source-code" id="
|
170
|
+
onclick="toggleCode('M000015-source');return false;">[Source]</a></p>
|
171
|
+
<div class="method-source-code" id="M000015-source">
|
172
172
|
<pre>
|
173
173
|
<span class="ruby-comment cmt"># File lib/mack-facets/extensions/array.rb, line 84</span>
|
174
174
|
84: <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">invert</span>
|
@@ -181,11 +181,11 @@ orange}.<a href="Array.html#M000013">invert</a> # => {"red"
|
|
181
181
|
</div>
|
182
182
|
</div>
|
183
183
|
|
184
|
-
<div id="method-
|
185
|
-
<a name="
|
184
|
+
<div id="method-M000007" class="method-detail">
|
185
|
+
<a name="M000007"></a>
|
186
186
|
|
187
187
|
<div class="method-heading">
|
188
|
-
<a href="#
|
188
|
+
<a href="#M000007" class="method-signature">
|
189
189
|
<span class="method-name">parse_splat_args</span><span class="method-args">()</span>
|
190
190
|
</a>
|
191
191
|
</div>
|
@@ -202,15 +202,15 @@ foo(*args)
|
|
202
202
|
end The problem is when you use the * like that everything that comes in is
|
203
203
|
an array. Here are a few problems with this: foo([1,2,3]) When you pass an
|
204
204
|
array into this type of method you get the following nested array:
|
205
|
-
[[1,2,3]] The <a href="Array.html#
|
205
|
+
[[1,2,3]] The <a href="Array.html#M000007">parse_splat_args</a> method, if
|
206
206
|
called, would do this: args.parse_splat_args # => [1,2,3] Now say you
|
207
207
|
called this method like such: foo(1) args would be [1]
|
208
208
|
args.parse_splat_args # => 1 Finally foo args.parse_splat_args # =>
|
209
209
|
nil
|
210
210
|
</p>
|
211
211
|
<p><a class="source-toggle" href="#"
|
212
|
-
onclick="toggleCode('
|
213
|
-
<div class="method-source-code" id="
|
212
|
+
onclick="toggleCode('M000007-source');return false;">[Source]</a></p>
|
213
|
+
<div class="method-source-code" id="M000007-source">
|
214
214
|
<pre>
|
215
215
|
<span class="ruby-comment cmt"># File lib/mack-facets/extensions/array.rb, line 21</span>
|
216
216
|
21: <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">parse_splat_args</span>
|
@@ -231,11 +231,11 @@ nil
|
|
231
231
|
</div>
|
232
232
|
</div>
|
233
233
|
|
234
|
-
<div id="method-
|
235
|
-
<a name="
|
234
|
+
<div id="method-M000010" class="method-detail">
|
235
|
+
<a name="M000010"></a>
|
236
236
|
|
237
237
|
<div class="method-heading">
|
238
|
-
<a href="#
|
238
|
+
<a href="#M000010" class="method-signature">
|
239
239
|
<span class="method-name">pick_random</span><span class="method-args">()</span>
|
240
240
|
</a>
|
241
241
|
</div>
|
@@ -245,8 +245,8 @@ nil
|
|
245
245
|
This will pick a random value from the array
|
246
246
|
</p>
|
247
247
|
<p><a class="source-toggle" href="#"
|
248
|
-
onclick="toggleCode('
|
249
|
-
<div class="method-source-code" id="
|
248
|
+
onclick="toggleCode('M000010-source');return false;">[Source]</a></p>
|
249
|
+
<div class="method-source-code" id="M000010-source">
|
250
250
|
<pre>
|
251
251
|
<span class="ruby-comment cmt"># File lib/mack-facets/extensions/array.rb, line 54</span>
|
252
252
|
54: <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">pick_random</span>
|
@@ -257,11 +257,11 @@ This will pick a random value from the array
|
|
257
257
|
</div>
|
258
258
|
</div>
|
259
259
|
|
260
|
-
<div id="method-
|
261
|
-
<a name="
|
260
|
+
<div id="method-M000011" class="method-detail">
|
261
|
+
<a name="M000011"></a>
|
262
262
|
|
263
263
|
<div class="method-heading">
|
264
|
-
<a href="#
|
264
|
+
<a href="#M000011" class="method-signature">
|
265
265
|
<span class="method-name">random_each</span><span class="method-args">() {|x| ...}</span>
|
266
266
|
</a>
|
267
267
|
</div>
|
@@ -271,8 +271,8 @@ This will pick a random value from the array
|
|
271
271
|
This allows you to easily recurse of the array randomly.
|
272
272
|
</p>
|
273
273
|
<p><a class="source-toggle" href="#"
|
274
|
-
onclick="toggleCode('
|
275
|
-
<div class="method-source-code" id="
|
274
|
+
onclick="toggleCode('M000011-source');return false;">[Source]</a></p>
|
275
|
+
<div class="method-source-code" id="M000011-source">
|
276
276
|
<pre>
|
277
277
|
<span class="ruby-comment cmt"># File lib/mack-facets/extensions/array.rb, line 59</span>
|
278
278
|
59: <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">random_each</span>
|
@@ -283,11 +283,11 @@ This allows you to easily recurse of the array randomly.
|
|
283
283
|
</div>
|
284
284
|
</div>
|
285
285
|
|
286
|
-
<div id="method-
|
287
|
-
<a name="
|
286
|
+
<div id="method-M000008" class="method-detail">
|
287
|
+
<a name="M000008"></a>
|
288
288
|
|
289
289
|
<div class="method-heading">
|
290
|
-
<a href="#
|
290
|
+
<a href="#M000008" class="method-signature">
|
291
291
|
<span class="method-name">randomize</span><span class="method-args">() {|x, y| ...}</span>
|
292
292
|
</a>
|
293
293
|
</div>
|
@@ -297,8 +297,8 @@ This allows you to easily recurse of the array randomly.
|
|
297
297
|
This will return a new instance of the array sorted randomly.
|
298
298
|
</p>
|
299
299
|
<p><a class="source-toggle" href="#"
|
300
|
-
onclick="toggleCode('
|
301
|
-
<div class="method-source-code" id="
|
300
|
+
onclick="toggleCode('M000008-source');return false;">[Source]</a></p>
|
301
|
+
<div class="method-source-code" id="M000008-source">
|
302
302
|
<pre>
|
303
303
|
<span class="ruby-comment cmt"># File lib/mack-facets/extensions/array.rb, line 36</span>
|
304
304
|
36: <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">randomize</span>(<span class="ruby-operator">&</span><span class="ruby-identifier">block</span>)
|
@@ -313,23 +313,23 @@ This will return a new instance of the array sorted randomly.
|
|
313
313
|
</div>
|
314
314
|
</div>
|
315
315
|
|
316
|
-
<div id="method-
|
317
|
-
<a name="
|
316
|
+
<div id="method-M000009" class="method-detail">
|
317
|
+
<a name="M000009"></a>
|
318
318
|
|
319
319
|
<div class="method-heading">
|
320
|
-
<a href="#
|
320
|
+
<a href="#M000009" class="method-signature">
|
321
321
|
<span class="method-name">randomize!</span><span class="method-args">(&block)</span>
|
322
322
|
</a>
|
323
323
|
</div>
|
324
324
|
|
325
325
|
<div class="method-description">
|
326
326
|
<p>
|
327
|
-
This calls the <a href="Array.html#
|
327
|
+
This calls the <a href="Array.html#M000008">randomize</a> method, but will
|
328
328
|
permantly replace the existing array.
|
329
329
|
</p>
|
330
330
|
<p><a class="source-toggle" href="#"
|
331
|
-
onclick="toggleCode('
|
332
|
-
<div class="method-source-code" id="
|
331
|
+
onclick="toggleCode('M000009-source');return false;">[Source]</a></p>
|
332
|
+
<div class="method-source-code" id="M000009-source">
|
333
333
|
<pre>
|
334
334
|
<span class="ruby-comment cmt"># File lib/mack-facets/extensions/array.rb, line 45</span>
|
335
335
|
45: <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">randomize!</span>(<span class="ruby-operator">&</span><span class="ruby-identifier">block</span>)
|
@@ -344,19 +344,19 @@ permantly replace the existing array.
|
|
344
344
|
</div>
|
345
345
|
</div>
|
346
346
|
|
347
|
-
<div id="method-
|
348
|
-
<a name="
|
347
|
+
<div id="method-M000012" class="method-detail">
|
348
|
+
<a name="M000012"></a>
|
349
349
|
|
350
350
|
<div class="method-heading">
|
351
|
-
<a href="#
|
351
|
+
<a href="#M000012" class="method-signature">
|
352
352
|
<span class="method-name">subset?</span><span class="method-args">(other)</span>
|
353
353
|
</a>
|
354
354
|
</div>
|
355
355
|
|
356
356
|
<div class="method-description">
|
357
357
|
<p><a class="source-toggle" href="#"
|
358
|
-
onclick="toggleCode('
|
359
|
-
<div class="method-source-code" id="
|
358
|
+
onclick="toggleCode('M000012-source');return false;">[Source]</a></p>
|
359
|
+
<div class="method-source-code" id="M000012-source">
|
360
360
|
<pre>
|
361
361
|
<span class="ruby-comment cmt"># File lib/mack-facets/extensions/array.rb, line 63</span>
|
362
362
|
63: <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">subset?</span>(<span class="ruby-identifier">other</span>)
|
@@ -370,19 +370,19 @@ permantly replace the existing array.
|
|
370
370
|
</div>
|
371
371
|
</div>
|
372
372
|
|
373
|
-
<div id="method-
|
374
|
-
<a name="
|
373
|
+
<div id="method-M000013" class="method-detail">
|
374
|
+
<a name="M000013"></a>
|
375
375
|
|
376
376
|
<div class="method-heading">
|
377
|
-
<a href="#
|
377
|
+
<a href="#M000013" class="method-signature">
|
378
378
|
<span class="method-name">superset?</span><span class="method-args">(other)</span>
|
379
379
|
</a>
|
380
380
|
</div>
|
381
381
|
|
382
382
|
<div class="method-description">
|
383
383
|
<p><a class="source-toggle" href="#"
|
384
|
-
onclick="toggleCode('
|
385
|
-
<div class="method-source-code" id="
|
384
|
+
onclick="toggleCode('M000013-source');return false;">[Source]</a></p>
|
385
|
+
<div class="method-source-code" id="M000013-source">
|
386
386
|
<pre>
|
387
387
|
<span class="ruby-comment cmt"># File lib/mack-facets/extensions/array.rb, line 70</span>
|
388
388
|
70: <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">superset?</span>(<span class="ruby-identifier">other</span>)
|
data/doc/classes/Class.html
CHANGED
@@ -88,9 +88,9 @@
|
|
88
88
|
<h3 class="section-bar">Methods</h3>
|
89
89
|
|
90
90
|
<div class="name-list">
|
91
|
-
<a href="#
|
92
|
-
<a href="#
|
93
|
-
<a href="#
|
91
|
+
<a href="#M000019">class_is_a?</a>
|
92
|
+
<a href="#M000018">new_instance_of</a>
|
93
|
+
<a href="#M000020">parents</a>
|
94
94
|
</div>
|
95
95
|
</div>
|
96
96
|
|
@@ -112,11 +112,11 @@
|
|
112
112
|
<div id="methods">
|
113
113
|
<h3 class="section-bar">Public Class methods</h3>
|
114
114
|
|
115
|
-
<div id="method-
|
116
|
-
<a name="
|
115
|
+
<div id="method-M000018" class="method-detail">
|
116
|
+
<a name="M000018"></a>
|
117
117
|
|
118
118
|
<div class="method-heading">
|
119
|
-
<a href="#
|
119
|
+
<a href="#M000018" class="method-signature">
|
120
120
|
<span class="method-name">new_instance_of</span><span class="method-args">(klass_name)</span>
|
121
121
|
</a>
|
122
122
|
</div>
|
@@ -134,8 +134,8 @@ Examples:
|
|
134
134
|
Class.new_instance_of("Animals::Dog") => #<Animals::Dog:0x376a2c>
|
135
135
|
</pre>
|
136
136
|
<p><a class="source-toggle" href="#"
|
137
|
-
onclick="toggleCode('
|
138
|
-
<div class="method-source-code" id="
|
137
|
+
onclick="toggleCode('M000018-source');return false;">[Source]</a></p>
|
138
|
+
<div class="method-source-code" id="M000018-source">
|
139
139
|
<pre>
|
140
140
|
<span class="ruby-comment cmt"># File lib/mack-facets/extensions/class.rb, line 8</span>
|
141
141
|
8: <span class="ruby-keyword kw">def</span> <span class="ruby-keyword kw">self</span>.<span class="ruby-identifier">new_instance_of</span>(<span class="ruby-identifier">klass_name</span>)
|
@@ -148,11 +148,11 @@ Examples:
|
|
148
148
|
|
149
149
|
<h3 class="section-bar">Public Instance methods</h3>
|
150
150
|
|
151
|
-
<div id="method-
|
152
|
-
<a name="
|
151
|
+
<div id="method-M000019" class="method-detail">
|
152
|
+
<a name="M000019"></a>
|
153
153
|
|
154
154
|
<div class="method-heading">
|
155
|
-
<a href="#
|
155
|
+
<a href="#M000019" class="method-signature">
|
156
156
|
<span class="method-name">class_is_a?</span><span class="method-args">(klass_name)</span>
|
157
157
|
</a>
|
158
158
|
</div>
|
@@ -163,8 +163,8 @@ This will through the ancestor tree of object and tell you if that object
|
|
163
163
|
is of the specified type.
|
164
164
|
</p>
|
165
165
|
<p><a class="source-toggle" href="#"
|
166
|
-
onclick="toggleCode('
|
167
|
-
<div class="method-source-code" id="
|
166
|
+
onclick="toggleCode('M000019-source');return false;">[Source]</a></p>
|
167
|
+
<div class="method-source-code" id="M000019-source">
|
168
168
|
<pre>
|
169
169
|
<span class="ruby-comment cmt"># File lib/mack-facets/extensions/class.rb, line 14</span>
|
170
170
|
14: <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">class_is_a?</span>(<span class="ruby-identifier">klass_name</span>)
|
@@ -180,11 +180,11 @@ is of the specified type.
|
|
180
180
|
</div>
|
181
181
|
</div>
|
182
182
|
|
183
|
-
<div id="method-
|
184
|
-
<a name="
|
183
|
+
<div id="method-M000020" class="method-detail">
|
184
|
+
<a name="M000020"></a>
|
185
185
|
|
186
186
|
<div class="method-heading">
|
187
|
-
<a href="#
|
187
|
+
<a href="#M000020" class="method-signature">
|
188
188
|
<span class="method-name">parents</span><span class="method-args">()</span>
|
189
189
|
</a>
|
190
190
|
</div>
|
@@ -202,8 +202,8 @@ Examples:
|
|
202
202
|
Fruit.parents # => [Object]
|
203
203
|
</pre>
|
204
204
|
<p><a class="source-toggle" href="#"
|
205
|
-
onclick="toggleCode('
|
206
|
-
<div class="method-source-code" id="
|
205
|
+
onclick="toggleCode('M000020-source');return false;">[Source]</a></p>
|
206
|
+
<div class="method-source-code" id="M000020-source">
|
207
207
|
<pre>
|
208
208
|
<span class="ruby-comment cmt"># File lib/mack-facets/extensions/class.rb, line 29</span>
|
209
209
|
29: <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">parents</span>
|
data/doc/classes/Hash.html
CHANGED
@@ -88,9 +88,9 @@
|
|
88
88
|
<h3 class="section-bar">Methods</h3>
|
89
89
|
|
90
90
|
<div class="name-list">
|
91
|
-
<a href="#
|
92
|
-
<a href="#
|
93
|
-
<a href="#
|
91
|
+
<a href="#M000005">-</a>
|
92
|
+
<a href="#M000004">join</a>
|
93
|
+
<a href="#M000006">to_params</a>
|
94
94
|
</div>
|
95
95
|
</div>
|
96
96
|
|
@@ -112,11 +112,11 @@
|
|
112
112
|
<div id="methods">
|
113
113
|
<h3 class="section-bar">Public Instance methods</h3>
|
114
114
|
|
115
|
-
<div id="method-
|
116
|
-
<a name="
|
115
|
+
<div id="method-M000005" class="method-detail">
|
116
|
+
<a name="M000005"></a>
|
117
117
|
|
118
118
|
<div class="method-heading">
|
119
|
-
<a href="#
|
119
|
+
<a href="#M000005" class="method-signature">
|
120
120
|
<span class="method-name">-</span><span class="method-args">(ars)</span>
|
121
121
|
</a>
|
122
122
|
</div>
|
@@ -126,8 +126,8 @@
|
|
126
126
|
Deletes the key(s) passed in from the hash.
|
127
127
|
</p>
|
128
128
|
<p><a class="source-toggle" href="#"
|
129
|
-
onclick="toggleCode('
|
130
|
-
<div class="method-source-code" id="
|
129
|
+
onclick="toggleCode('M000005-source');return false;">[Source]</a></p>
|
130
|
+
<div class="method-source-code" id="M000005-source">
|
131
131
|
<pre>
|
132
132
|
<span class="ruby-comment cmt"># File lib/mack-facets/extensions/hash.rb, line 14</span>
|
133
133
|
14: <span class="ruby-keyword kw">def</span> <span class="ruby-operator">-</span>(<span class="ruby-identifier">ars</span>)
|
@@ -139,19 +139,19 @@ Deletes the key(s) passed in from the hash.
|
|
139
139
|
</div>
|
140
140
|
</div>
|
141
141
|
|
142
|
-
<div id="method-
|
143
|
-
<a name="
|
142
|
+
<div id="method-M000004" class="method-detail">
|
143
|
+
<a name="M000004"></a>
|
144
144
|
|
145
145
|
<div class="method-heading">
|
146
|
-
<a href="#
|
146
|
+
<a href="#M000004" class="method-signature">
|
147
147
|
<span class="method-name">join</span><span class="method-args">(pair_string, join_string)</span>
|
148
148
|
</a>
|
149
149
|
</div>
|
150
150
|
|
151
151
|
<div class="method-description">
|
152
152
|
<p><a class="source-toggle" href="#"
|
153
|
-
onclick="toggleCode('
|
154
|
-
<div class="method-source-code" id="
|
153
|
+
onclick="toggleCode('M000004-source');return false;">[Source]</a></p>
|
154
|
+
<div class="method-source-code" id="M000004-source">
|
155
155
|
<pre>
|
156
156
|
<span class="ruby-comment cmt"># File lib/mack-facets/extensions/hash.rb, line 4</span>
|
157
157
|
4: <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">join</span>(<span class="ruby-identifier">pair_string</span>, <span class="ruby-identifier">join_string</span>)
|
@@ -167,11 +167,11 @@ Deletes the key(s) passed in from the hash.
|
|
167
167
|
</div>
|
168
168
|
</div>
|
169
169
|
|
170
|
-
<div id="method-
|
171
|
-
<a name="
|
170
|
+
<div id="method-M000006" class="method-detail">
|
171
|
+
<a name="M000006"></a>
|
172
172
|
|
173
173
|
<div class="method-heading">
|
174
|
-
<a href="#
|
174
|
+
<a href="#M000006" class="method-signature">
|
175
175
|
<span class="method-name">to_params</span><span class="method-args">(escape = true)</span>
|
176
176
|
</a>
|
177
177
|
</div>
|
@@ -182,8 +182,8 @@ Converts a hash to query string parameters. An optional boolean escapes the
|
|
182
182
|
values if true, which is the default.
|
183
183
|
</p>
|
184
184
|
<p><a class="source-toggle" href="#"
|
185
|
-
onclick="toggleCode('
|
186
|
-
<div class="method-source-code" id="
|
185
|
+
onclick="toggleCode('M000006-source');return false;">[Source]</a></p>
|
186
|
+
<div class="method-source-code" id="M000006-source">
|
187
187
|
<pre>
|
188
188
|
<span class="ruby-comment cmt"># File lib/mack-facets/extensions/hash.rb, line 21</span>
|
189
189
|
21: <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">to_params</span>(<span class="ruby-identifier">escape</span> = <span class="ruby-keyword kw">true</span>)
|