mack_ruby_core_extensions 0.0.3 → 0.0.4
Sign up to get free protection for your applications and to get access to all the features.
- data/doc/classes/Array.html +74 -74
- data/doc/classes/Class.html +40 -27
- data/doc/classes/Float.html +6 -6
- data/doc/classes/Hash.html +18 -18
- data/doc/classes/Kernel.html +12 -12
- data/doc/classes/Mack/Utils/Inflector.html +56 -56
- data/doc/classes/Math.html +18 -18
- data/doc/classes/MethodNotImplemented.html +6 -6
- data/doc/classes/Module.html +12 -12
- data/doc/classes/NilClass.html +6 -6
- data/doc/classes/Object.html +42 -42
- data/doc/classes/String.html +402 -375
- data/doc/created.rid +1 -1
- data/doc/files/lib/extensions/class_rb.html +1 -1
- data/doc/files/lib/extensions/string_rb.html +1 -1
- data/doc/fr_class_index.html +0 -1
- data/doc/fr_file_index.html +0 -1
- data/doc/fr_method_index.html +65 -66
- data/lib/extensions/class.rb +8 -3
- data/lib/extensions/string.rb +5 -0
- data/test/extensions/class_test.rb +7 -15
- data/test/extensions/string_test.rb +5 -4
- data/test/test_helper.rb +15 -1
- metadata +1 -5
- data/doc/classes/Dir.html +0 -190
- data/doc/files/lib/extensions/dir_rb.html +0 -101
- data/lib/extensions/dir.rb +0 -25
- data/test/extensions/dir_test.rb +0 -15
data/doc/classes/Object.html
CHANGED
@@ -88,13 +88,13 @@
|
|
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="#
|
91
|
+
<a href="#M000027">ivar_cache</a>
|
92
|
+
<a href="#M000028">ivar_cache_clear</a>
|
93
|
+
<a href="#M000029">namespaces</a>
|
94
|
+
<a href="#M000024">needs_method</a>
|
95
|
+
<a href="#M000025">running_time</a>
|
96
|
+
<a href="#M000026">send_with_chain</a>
|
97
|
+
<a href="#M000023">to_param</a>
|
98
98
|
</div>
|
99
99
|
</div>
|
100
100
|
|
@@ -116,19 +116,19 @@
|
|
116
116
|
<div id="methods">
|
117
117
|
<h3 class="section-bar">Public Class methods</h3>
|
118
118
|
|
119
|
-
<div id="method-
|
120
|
-
<a name="
|
119
|
+
<div id="method-M000024" class="method-detail">
|
120
|
+
<a name="M000024"></a>
|
121
121
|
|
122
122
|
<div class="method-heading">
|
123
|
-
<a href="#
|
123
|
+
<a href="#M000024" class="method-signature">
|
124
124
|
<span class="method-name">needs_method</span><span class="method-args">(meth)</span>
|
125
125
|
</a>
|
126
126
|
</div>
|
127
127
|
|
128
128
|
<div class="method-description">
|
129
129
|
<p><a class="source-toggle" href="#"
|
130
|
-
onclick="toggleCode('
|
131
|
-
<div class="method-source-code" id="
|
130
|
+
onclick="toggleCode('M000024-source');return false;">[Source]</a></p>
|
131
|
+
<div class="method-source-code" id="M000024-source">
|
132
132
|
<pre>
|
133
133
|
<span class="ruby-comment cmt"># File lib/extensions/object.rb, line 9</span>
|
134
134
|
9: <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>)
|
@@ -143,19 +143,19 @@
|
|
143
143
|
|
144
144
|
<h3 class="section-bar">Public Instance methods</h3>
|
145
145
|
|
146
|
-
<div id="method-
|
147
|
-
<a name="
|
146
|
+
<div id="method-M000027" class="method-detail">
|
147
|
+
<a name="M000027"></a>
|
148
148
|
|
149
149
|
<div class="method-heading">
|
150
|
-
<a href="#
|
150
|
+
<a href="#M000027" class="method-signature">
|
151
151
|
<span class="method-name">ivar_cache</span><span class="method-args">(var_name = nil) {|| ...}</span>
|
152
152
|
</a>
|
153
153
|
</div>
|
154
154
|
|
155
155
|
<div class="method-description">
|
156
156
|
<p><a class="source-toggle" href="#"
|
157
|
-
onclick="toggleCode('
|
158
|
-
<div class="method-source-code" id="
|
157
|
+
onclick="toggleCode('M000027-source');return false;">[Source]</a></p>
|
158
|
+
<div class="method-source-code" id="M000027-source">
|
159
159
|
<pre>
|
160
160
|
<span class="ruby-comment cmt"># File lib/extensions/object.rb, line 75</span>
|
161
161
|
75: <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">&</span><span class="ruby-identifier">block</span>)
|
@@ -174,19 +174,19 @@
|
|
174
174
|
</div>
|
175
175
|
</div>
|
176
176
|
|
177
|
-
<div id="method-
|
178
|
-
<a name="
|
177
|
+
<div id="method-M000028" class="method-detail">
|
178
|
+
<a name="M000028"></a>
|
179
179
|
|
180
180
|
<div class="method-heading">
|
181
|
-
<a href="#
|
181
|
+
<a href="#M000028" class="method-signature">
|
182
182
|
<span class="method-name">ivar_cache_clear</span><span class="method-args">(var_name = nil) {|if block_given?| ...}</span>
|
183
183
|
</a>
|
184
184
|
</div>
|
185
185
|
|
186
186
|
<div class="method-description">
|
187
187
|
<p><a class="source-toggle" href="#"
|
188
|
-
onclick="toggleCode('
|
189
|
-
<div class="method-source-code" id="
|
188
|
+
onclick="toggleCode('M000028-source');return false;">[Source]</a></p>
|
189
|
+
<div class="method-source-code" id="M000028-source">
|
190
190
|
<pre>
|
191
191
|
<span class="ruby-comment cmt"># File lib/extensions/object.rb, line 87</span>
|
192
192
|
87: <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">&</span><span class="ruby-identifier">block</span>)
|
@@ -202,19 +202,19 @@
|
|
202
202
|
</div>
|
203
203
|
</div>
|
204
204
|
|
205
|
-
<div id="method-
|
206
|
-
<a name="
|
205
|
+
<div id="method-M000029" class="method-detail">
|
206
|
+
<a name="M000029"></a>
|
207
207
|
|
208
208
|
<div class="method-heading">
|
209
|
-
<a href="#
|
209
|
+
<a href="#M000029" class="method-signature">
|
210
210
|
<span class="method-name">namespaces</span><span class="method-args">()</span>
|
211
211
|
</a>
|
212
212
|
</div>
|
213
213
|
|
214
214
|
<div class="method-description">
|
215
215
|
<p><a class="source-toggle" href="#"
|
216
|
-
onclick="toggleCode('
|
217
|
-
<div class="method-source-code" id="
|
216
|
+
onclick="toggleCode('M000029-source');return false;">[Source]</a></p>
|
217
|
+
<div class="method-source-code" id="M000029-source">
|
218
218
|
<pre>
|
219
219
|
<span class="ruby-comment cmt"># File lib/extensions/object.rb, line 96</span>
|
220
220
|
96: <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">namespaces</span>
|
@@ -234,19 +234,19 @@
|
|
234
234
|
</div>
|
235
235
|
</div>
|
236
236
|
|
237
|
-
<div id="method-
|
238
|
-
<a name="
|
237
|
+
<div id="method-M000025" class="method-detail">
|
238
|
+
<a name="M000025"></a>
|
239
239
|
|
240
240
|
<div class="method-heading">
|
241
|
-
<a href="#
|
241
|
+
<a href="#M000025" class="method-signature">
|
242
242
|
<span class="method-name">running_time</span><span class="method-args">(message = "", logger = nil) {|if block_given?| ...}</span>
|
243
243
|
</a>
|
244
244
|
</div>
|
245
245
|
|
246
246
|
<div class="method-description">
|
247
247
|
<p><a class="source-toggle" href="#"
|
248
|
-
onclick="toggleCode('
|
249
|
-
<div class="method-source-code" id="
|
248
|
+
onclick="toggleCode('M000025-source');return false;">[Source]</a></p>
|
249
|
+
<div class="method-source-code" id="M000025-source">
|
250
250
|
<pre>
|
251
251
|
<span class="ruby-comment cmt"># File lib/extensions/object.rb, line 15</span>
|
252
252
|
15: <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">""</span>, <span class="ruby-identifier">logger</span> = <span class="ruby-keyword kw">nil</span>)
|
@@ -274,19 +274,19 @@
|
|
274
274
|
</div>
|
275
275
|
</div>
|
276
276
|
|
277
|
-
<div id="method-
|
278
|
-
<a name="
|
277
|
+
<div id="method-M000026" class="method-detail">
|
278
|
+
<a name="M000026"></a>
|
279
279
|
|
280
280
|
<div class="method-heading">
|
281
|
-
<a href="#
|
281
|
+
<a href="#M000026" class="method-signature">
|
282
282
|
<span class="method-name">send_with_chain</span><span class="method-args">(methods, *args)</span>
|
283
283
|
</a>
|
284
284
|
</div>
|
285
285
|
|
286
286
|
<div class="method-description">
|
287
287
|
<p><a class="source-toggle" href="#"
|
288
|
-
onclick="toggleCode('
|
289
|
-
<div class="method-source-code" id="
|
288
|
+
onclick="toggleCode('M000026-source');return false;">[Source]</a></p>
|
289
|
+
<div class="method-source-code" id="M000026-source">
|
290
290
|
<pre>
|
291
291
|
<span class="ruby-comment cmt"># File lib/extensions/object.rb, line 36</span>
|
292
292
|
36: <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>)
|
@@ -300,11 +300,11 @@
|
|
300
300
|
</div>
|
301
301
|
</div>
|
302
302
|
|
303
|
-
<div id="method-
|
304
|
-
<a name="
|
303
|
+
<div id="method-M000023" class="method-detail">
|
304
|
+
<a name="M000023"></a>
|
305
305
|
|
306
306
|
<div class="method-heading">
|
307
|
-
<a href="#
|
307
|
+
<a href="#M000023" class="method-signature">
|
308
308
|
<span class="method-name">to_param</span><span class="method-args">()</span>
|
309
309
|
</a>
|
310
310
|
</div>
|
@@ -316,8 +316,8 @@ can be overridden in an <a href="Object.html">Object</a> to provlde custom
|
|
316
316
|
handling of parameters.
|
317
317
|
</p>
|
318
318
|
<p><a class="source-toggle" href="#"
|
319
|
-
onclick="toggleCode('
|
320
|
-
<div class="method-source-code" id="
|
319
|
+
onclick="toggleCode('M000023-source');return false;">[Source]</a></p>
|
320
|
+
<div class="method-source-code" id="M000023-source">
|
321
321
|
<pre>
|
322
322
|
<span class="ruby-comment cmt"># File lib/extensions/object.rb, line 5</span>
|
323
323
|
5: <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">to_param</span>
|