mack_ruby_core_extensions 0.1.24 → 0.1.25

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.
@@ -88,15 +88,15 @@
88
88
  <h3 class="section-bar">Methods</h3>
89
89
 
90
90
  <div class="name-list">
91
- <a href="#M000025">class_parents</a>&nbsp;&nbsp;
92
- <a href="#M000030">ivar_cache</a>&nbsp;&nbsp;
93
- <a href="#M000031">ivar_cache_clear</a>&nbsp;&nbsp;
94
- <a href="#M000032">namespaces</a>&nbsp;&nbsp;
95
- <a href="#M000027">needs_method</a>&nbsp;&nbsp;
96
- <a href="#M000028">running_time</a>&nbsp;&nbsp;
97
- <a href="#M000029">send_with_chain</a>&nbsp;&nbsp;
98
- <a href="#M000026">to_param</a>&nbsp;&nbsp;
99
- <a href="#M000024">with_options</a>&nbsp;&nbsp;
91
+ <a href="#M000027">class_parents</a>&nbsp;&nbsp;
92
+ <a href="#M000032">ivar_cache</a>&nbsp;&nbsp;
93
+ <a href="#M000033">ivar_cache_clear</a>&nbsp;&nbsp;
94
+ <a href="#M000034">namespaces</a>&nbsp;&nbsp;
95
+ <a href="#M000029">needs_method</a>&nbsp;&nbsp;
96
+ <a href="#M000030">running_time</a>&nbsp;&nbsp;
97
+ <a href="#M000031">send_with_chain</a>&nbsp;&nbsp;
98
+ <a href="#M000028">to_param</a>&nbsp;&nbsp;
99
+ <a href="#M000026">with_options</a>&nbsp;&nbsp;
100
100
  </div>
101
101
  </div>
102
102
 
@@ -118,11 +118,11 @@
118
118
  <div id="methods">
119
119
  <h3 class="section-bar">Public Class methods</h3>
120
120
 
121
- <div id="method-M000027" class="method-detail">
122
- <a name="M000027"></a>
121
+ <div id="method-M000029" class="method-detail">
122
+ <a name="M000029"></a>
123
123
 
124
124
  <div class="method-heading">
125
- <a href="#M000027" class="method-signature">
125
+ <a href="#M000029" class="method-signature">
126
126
  <span class="method-name">needs_method</span><span class="method-args">(meth)</span>
127
127
  </a>
128
128
  </div>
@@ -136,8 +136,8 @@ for creating interfaces and you want to stub out methods that others need
136
136
  to implement.
137
137
  </p>
138
138
  <p><a class="source-toggle" href="#"
139
- onclick="toggleCode('M000027-source');return false;">[Source]</a></p>
140
- <div class="method-source-code" id="M000027-source">
139
+ onclick="toggleCode('M000029-source');return false;">[Source]</a></p>
140
+ <div class="method-source-code" id="M000029-source">
141
141
  <pre>
142
142
  <span class="ruby-comment cmt"># File lib/extensions/object.rb, line 21</span>
143
143
  21: <span class="ruby-keyword kw">def</span> <span class="ruby-keyword kw">self</span>.<span class="ruby-identifier">needs_method</span>(<span class="ruby-identifier">meth</span>)
@@ -152,11 +152,11 @@ to implement.
152
152
 
153
153
  <h3 class="section-bar">Public Instance methods</h3>
154
154
 
155
- <div id="method-M000025" class="method-detail">
156
- <a name="M000025"></a>
155
+ <div id="method-M000027" class="method-detail">
156
+ <a name="M000027"></a>
157
157
 
158
158
  <div class="method-heading">
159
- <a href="#M000025" class="method-signature">
159
+ <a href="#M000027" class="method-signature">
160
160
  <span class="method-name">class_parents</span><span class="method-args">()</span>
161
161
  </a>
162
162
  </div>
@@ -166,8 +166,8 @@ to implement.
166
166
  See <a href="Class.html">Class</a> parents for more information.
167
167
  </p>
168
168
  <p><a class="source-toggle" href="#"
169
- onclick="toggleCode('M000025-source');return false;">[Source]</a></p>
170
- <div class="method-source-code" id="M000025-source">
169
+ onclick="toggleCode('M000027-source');return false;">[Source]</a></p>
170
+ <div class="method-source-code" id="M000027-source">
171
171
  <pre>
172
172
  <span class="ruby-comment cmt"># File lib/extensions/object.rb, line 8</span>
173
173
  8: <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">class_parents</span>
@@ -178,18 +178,18 @@ See <a href="Class.html">Class</a> parents for more information.
178
178
  </div>
179
179
  </div>
180
180
 
181
- <div id="method-M000030" class="method-detail">
182
- <a name="M000030"></a>
181
+ <div id="method-M000032" class="method-detail">
182
+ <a name="M000032"></a>
183
183
 
184
184
  <div class="method-heading">
185
- <a href="#M000030" class="method-signature">
185
+ <a href="#M000032" class="method-signature">
186
186
  <span class="method-name">ivar_cache</span><span class="method-args">(var_name = nil) {|| ...}</span>
187
187
  </a>
188
188
  </div>
189
189
 
190
190
  <div class="method-description">
191
191
  <p>
192
- <a href="Object.html#M000030">ivar_cache</a> allows you to cache the
192
+ <a href="Object.html#M000032">ivar_cache</a> allows you to cache the
193
193
  results of the block into an instance variable in a class, and then will
194
194
  serve up that instance variable the next time you call that method again.
195
195
  </p>
@@ -233,8 +233,8 @@ overridden like such:
233
233
  now it will cache it to <tt>@foo_var</tt>
234
234
  </p>
235
235
  <p><a class="source-toggle" href="#"
236
- onclick="toggleCode('M000030-source');return false;">[Source]</a></p>
237
- <div class="method-source-code" id="M000030-source">
236
+ onclick="toggleCode('M000032-source');return false;">[Source]</a></p>
237
+ <div class="method-source-code" id="M000032-source">
238
238
  <pre>
239
239
  <span class="ruby-comment cmt"># File lib/extensions/object.rb, line 94</span>
240
240
  94: <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">ivar_cache</span>(<span class="ruby-identifier">var_name</span> = <span class="ruby-keyword kw">nil</span>, <span class="ruby-operator">&amp;</span><span class="ruby-identifier">block</span>)
@@ -253,19 +253,19 @@ now it will cache it to <tt>@foo_var</tt>
253
253
  </div>
254
254
  </div>
255
255
 
256
- <div id="method-M000031" class="method-detail">
257
- <a name="M000031"></a>
256
+ <div id="method-M000033" class="method-detail">
257
+ <a name="M000033"></a>
258
258
 
259
259
  <div class="method-heading">
260
- <a href="#M000031" class="method-signature">
260
+ <a href="#M000033" class="method-signature">
261
261
  <span class="method-name">ivar_cache_clear</span><span class="method-args">(var_name = nil) {|if block_given?| ...}</span>
262
262
  </a>
263
263
  </div>
264
264
 
265
265
  <div class="method-description">
266
266
  <p><a class="source-toggle" href="#"
267
- onclick="toggleCode('M000031-source');return false;">[Source]</a></p>
268
- <div class="method-source-code" id="M000031-source">
267
+ onclick="toggleCode('M000033-source');return false;">[Source]</a></p>
268
+ <div class="method-source-code" id="M000033-source">
269
269
  <pre>
270
270
  <span class="ruby-comment cmt"># File lib/extensions/object.rb, line 106</span>
271
271
  106: <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">ivar_cache_clear</span>(<span class="ruby-identifier">var_name</span> = <span class="ruby-keyword kw">nil</span>, <span class="ruby-operator">&amp;</span><span class="ruby-identifier">block</span>)
@@ -281,18 +281,18 @@ now it will cache it to <tt>@foo_var</tt>
281
281
  </div>
282
282
  </div>
283
283
 
284
- <div id="method-M000032" class="method-detail">
285
- <a name="M000032"></a>
284
+ <div id="method-M000034" class="method-detail">
285
+ <a name="M000034"></a>
286
286
 
287
287
  <div class="method-heading">
288
- <a href="#M000032" class="method-signature">
288
+ <a href="#M000034" class="method-signature">
289
289
  <span class="method-name">namespaces</span><span class="method-args">()</span>
290
290
  </a>
291
291
  </div>
292
292
 
293
293
  <div class="method-description">
294
294
  <p>
295
- Returns the <a href="Object.html#M000032">namespaces</a> for a particular
295
+ Returns the <a href="Object.html#M000034">namespaces</a> for a particular
296
296
  object.
297
297
  </p>
298
298
  <p>
@@ -302,8 +302,8 @@ Examples:
302
302
  Animals::Dog::Poodle.new.namespaces # =&gt; [&quot;Animals&quot;, &quot;Dog&quot;]
303
303
  </pre>
304
304
  <p><a class="source-toggle" href="#"
305
- onclick="toggleCode('M000032-source');return false;">[Source]</a></p>
306
- <div class="method-source-code" id="M000032-source">
305
+ onclick="toggleCode('M000034-source');return false;">[Source]</a></p>
306
+ <div class="method-source-code" id="M000034-source">
307
307
  <pre>
308
308
  <span class="ruby-comment cmt"># File lib/extensions/object.rb, line 119</span>
309
309
  119: <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">namespaces</span>
@@ -320,11 +320,11 @@ Examples:
320
320
  </div>
321
321
  </div>
322
322
 
323
- <div id="method-M000028" class="method-detail">
324
- <a name="M000028"></a>
323
+ <div id="method-M000030" class="method-detail">
324
+ <a name="M000030"></a>
325
325
 
326
326
  <div class="method-heading">
327
- <a href="#M000028" class="method-signature">
327
+ <a href="#M000030" class="method-signature">
328
328
  <span class="method-name">running_time</span><span class="method-args">(message = &quot;&quot;, logger = nil) {|if block_given?| ...}</span>
329
329
  </a>
330
330
  </div>
@@ -336,8 +336,8 @@ things like Rake tasks, etc&#8230; where you would like to know how long
336
336
  it, or a section of it took to run.
337
337
  </p>
338
338
  <p><a class="source-toggle" href="#"
339
- onclick="toggleCode('M000028-source');return false;">[Source]</a></p>
340
- <div class="method-source-code" id="M000028-source">
339
+ onclick="toggleCode('M000030-source');return false;">[Source]</a></p>
340
+ <div class="method-source-code" id="M000030-source">
341
341
  <pre>
342
342
  <span class="ruby-comment cmt"># File lib/extensions/object.rb, line 30</span>
343
343
  30: <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">running_time</span>(<span class="ruby-identifier">message</span> = <span class="ruby-value str">&quot;&quot;</span>, <span class="ruby-identifier">logger</span> = <span class="ruby-keyword kw">nil</span>)
@@ -365,11 +365,11 @@ it, or a section of it took to run.
365
365
  </div>
366
366
  </div>
367
367
 
368
- <div id="method-M000029" class="method-detail">
369
- <a name="M000029"></a>
368
+ <div id="method-M000031" class="method-detail">
369
+ <a name="M000031"></a>
370
370
 
371
371
  <div class="method-heading">
372
- <a href="#M000029" class="method-signature">
372
+ <a href="#M000031" class="method-signature">
373
373
  <span class="method-name">send_with_chain</span><span class="method-args">(methods, *args)</span>
374
374
  </a>
375
375
  </div>
@@ -392,8 +392,8 @@ This would be the equivalent:
392
392
  Fruit.new.get_citrus.get_orange.class
393
393
  </pre>
394
394
  <p><a class="source-toggle" href="#"
395
- onclick="toggleCode('M000029-source');return false;">[Source]</a></p>
396
- <div class="method-source-code" id="M000029-source">
395
+ onclick="toggleCode('M000031-source');return false;">[Source]</a></p>
396
+ <div class="method-source-code" id="M000031-source">
397
397
  <pre>
398
398
  <span class="ruby-comment cmt"># File lib/extensions/object.rb, line 58</span>
399
399
  58: <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">send_with_chain</span>(<span class="ruby-identifier">methods</span>, <span class="ruby-operator">*</span><span class="ruby-identifier">args</span>)
@@ -406,11 +406,11 @@ This would be the equivalent:
406
406
  </div>
407
407
  </div>
408
408
 
409
- <div id="method-M000026" class="method-detail">
410
- <a name="M000026"></a>
409
+ <div id="method-M000028" class="method-detail">
410
+ <a name="M000028"></a>
411
411
 
412
412
  <div class="method-heading">
413
- <a href="#M000026" class="method-signature">
413
+ <a href="#M000028" class="method-signature">
414
414
  <span class="method-name">to_param</span><span class="method-args">()</span>
415
415
  </a>
416
416
  </div>
@@ -422,8 +422,8 @@ can be overridden in an <a href="Object.html">Object</a> to provlde custom
422
422
  handling of parameters.
423
423
  </p>
424
424
  <p><a class="source-toggle" href="#"
425
- onclick="toggleCode('M000026-source');return false;">[Source]</a></p>
426
- <div class="method-source-code" id="M000026-source">
425
+ onclick="toggleCode('M000028-source');return false;">[Source]</a></p>
426
+ <div class="method-source-code" id="M000028-source">
427
427
  <pre>
428
428
  <span class="ruby-comment cmt"># File lib/extensions/object.rb, line 14</span>
429
429
  14: <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">to_param</span>
@@ -434,19 +434,19 @@ handling of parameters.
434
434
  </div>
435
435
  </div>
436
436
 
437
- <div id="method-M000024" class="method-detail">
438
- <a name="M000024"></a>
437
+ <div id="method-M000026" class="method-detail">
438
+ <a name="M000026"></a>
439
439
 
440
440
  <div class="method-heading">
441
- <a href="#M000024" class="method-signature">
441
+ <a href="#M000026" class="method-signature">
442
442
  <span class="method-name">with_options</span><span class="method-args">(options) {|Mack::Utils::OptionMerger.new(self, options)| ...}</span>
443
443
  </a>
444
444
  </div>
445
445
 
446
446
  <div class="method-description">
447
447
  <p><a class="source-toggle" href="#"
448
- onclick="toggleCode('M000024-source');return false;">[Source]</a></p>
449
- <div class="method-source-code" id="M000024-source">
448
+ onclick="toggleCode('M000026-source');return false;">[Source]</a></p>
449
+ <div class="method-source-code" id="M000026-source">
450
450
  <pre>
451
451
  <span class="ruby-comment cmt"># File lib/extensions/object.rb, line 3</span>
452
452
  3: <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">with_options</span>(<span class="ruby-identifier">options</span>)