doing 2.1.25 → 2.1.29
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.
- checksums.yaml +4 -4
- data/.yardoc/checksums +15 -20
- data/.yardoc/object_types +0 -0
- data/.yardoc/objects/root.dat +0 -0
- data/CHANGELOG.md +322 -108
- data/Dockerfile +5 -5
- data/Dockerfile-2.6 +5 -5
- data/Dockerfile-2.7 +5 -4
- data/Dockerfile-3.0 +5 -4
- data/Gemfile.lock +1 -1
- data/README.md +1 -1
- data/Rakefile +2 -3
- data/bin/commands/add_section.rb +15 -0
- data/bin/commands/again.rb +57 -0
- data/bin/commands/archive.rb +55 -0
- data/bin/commands/cancel.rb +60 -0
- data/bin/commands/changes.rb +83 -0
- data/bin/commands/choose.rb +9 -0
- data/bin/commands/colors.rb +21 -0
- data/bin/commands/commands.rb +89 -0
- data/bin/commands/commands_accepting.rb +76 -0
- data/bin/commands/completion.rb +27 -0
- data/bin/commands/config.rb +245 -0
- data/bin/commands/done.rb +235 -0
- data/bin/commands/finish.rb +126 -0
- data/bin/commands/flag.rb +90 -0
- data/bin/commands/grep.rb +108 -0
- data/bin/commands/import.rb +71 -0
- data/bin/commands/install_fzf.rb +17 -0
- data/bin/commands/last.rb +81 -0
- data/bin/commands/meanwhile.rb +76 -0
- data/bin/commands/note.rb +91 -0
- data/bin/commands/now.rb +145 -0
- data/bin/commands/on.rb +65 -0
- data/bin/commands/open.rb +53 -0
- data/bin/commands/plugins.rb +23 -0
- data/bin/commands/recent.rb +77 -0
- data/bin/commands/redo.rb +26 -0
- data/bin/commands/reset.rb +73 -0
- data/bin/commands/rotate.rb +42 -0
- data/bin/commands/sections.rb +11 -0
- data/bin/commands/select.rb +105 -0
- data/bin/commands/show.rb +185 -0
- data/bin/commands/since.rb +63 -0
- data/bin/commands/tag.rb +149 -0
- data/bin/commands/tag_dir.rb +29 -0
- data/bin/commands/tags.rb +66 -0
- data/bin/commands/template.rb +61 -0
- data/bin/commands/today.rb +64 -0
- data/bin/commands/undo.rb +49 -0
- data/bin/commands/view.rb +201 -0
- data/bin/commands/views.rb +11 -0
- data/bin/commands/yesterday.rb +72 -0
- data/bin/doing +241 -3706
- data/docs/doc/Array.html +3 -502
- data/docs/doc/BooleanTermParser/Clause.html +1 -1
- data/docs/doc/BooleanTermParser/Operator.html +1 -1
- data/docs/doc/BooleanTermParser/Query.html +1 -1
- data/docs/doc/BooleanTermParser/QueryParser.html +1 -1
- data/docs/doc/BooleanTermParser/QueryTransformer.html +1 -1
- data/docs/doc/BooleanTermParser.html +1 -1
- data/docs/doc/Doing/Color.html +62 -56
- data/docs/doc/Doing/Completion.html +1 -1
- data/docs/doc/Doing/Configuration.html +36 -1
- data/docs/doc/Doing/Errors/DoingNoTraceError.html +1 -1
- data/docs/doc/Doing/Errors/DoingRuntimeError.html +1 -1
- data/docs/doc/Doing/Errors/DoingStandardError.html +1 -1
- data/docs/doc/Doing/Errors/EmptyInput.html +1 -1
- data/docs/doc/Doing/Errors/NoResults.html +1 -1
- data/docs/doc/Doing/Errors/PluginException.html +1 -1
- data/docs/doc/Doing/Errors/UserCancelled.html +1 -1
- data/docs/doc/Doing/Errors/WrongCommand.html +1 -1
- data/docs/doc/Doing/Errors.html +1 -1
- data/docs/doc/Doing/Hooks.html +1 -1
- data/docs/doc/Doing/Item.html +1 -1
- data/docs/doc/Doing/Items.html +2 -2
- data/docs/doc/Doing/LogAdapter.html +1 -1
- data/docs/doc/Doing/Note.html +2 -2
- data/docs/doc/Doing/Pager.html +1 -1
- data/docs/doc/Doing/Plugins.html +1 -1
- data/docs/doc/Doing/Prompt.html +46 -1
- data/docs/doc/Doing/Section.html +1 -1
- data/docs/doc/Doing/TemplateString.html +2 -2
- data/docs/doc/Doing/Types.html +41 -1
- data/docs/doc/Doing/Util/Backup.html +1 -1
- data/docs/doc/Doing/Util.html +1 -1
- data/docs/doc/Doing/WWID.html +10 -10
- data/docs/doc/Doing.html +3 -3
- data/docs/doc/FalseClass.html +235 -0
- data/docs/doc/GLI/Commands/Help.html +1 -1
- data/docs/doc/GLI/Commands/MarkdownDocumentListener.html +1 -1
- data/docs/doc/GLI/Commands.html +1 -1
- data/docs/doc/GLI.html +1 -1
- data/docs/doc/Hash.html +1 -1
- data/docs/doc/Numeric.html +1 -1
- data/docs/doc/Object.html +203 -0
- data/docs/doc/PhraseParser/Operator.html +1 -1
- data/docs/doc/PhraseParser/PhraseClause.html +1 -1
- data/docs/doc/PhraseParser/Query.html +1 -1
- data/docs/doc/PhraseParser/QueryParser.html +1 -1
- data/docs/doc/PhraseParser/QueryTransformer.html +1 -1
- data/docs/doc/PhraseParser/TermClause.html +1 -1
- data/docs/doc/PhraseParser.html +1 -1
- data/docs/doc/Status.html +1 -1
- data/docs/doc/String.html +287 -3155
- data/docs/doc/Symbol.html +40 -6
- data/docs/doc/Time.html +1 -1
- data/docs/doc/TrueClass.html +235 -0
- data/docs/doc/_index.html +5 -10
- data/docs/doc/class_list.html +1 -1
- data/docs/doc/file.README.html +2 -2
- data/docs/doc/index.html +2 -2
- data/docs/doc/method_list.html +289 -681
- data/docs/doc/top-level-namespace.html +2 -2
- data/doing.rdoc +306 -205
- data/lib/completion/_doing.zsh +35 -35
- data/lib/completion/doing.bash +30 -30
- data/lib/completion/doing.fish +88 -78
- data/lib/doing/array/array.rb +4 -0
- data/lib/doing/array/nested_hash.rb +17 -0
- data/lib/doing/{array.rb → array/tags.rb} +7 -25
- data/lib/doing/changelog/change.rb +26 -11
- data/lib/doing/changelog/changes.rb +31 -4
- data/lib/doing/{array_chronify.rb → chronify/array.rb} +0 -0
- data/lib/doing/chronify/chronify.rb +5 -0
- data/lib/doing/{numeric_chronify.rb → chronify/numeric.rb} +0 -0
- data/lib/doing/{string_chronify.rb → chronify/string.rb} +0 -0
- data/lib/doing/colors.rb +115 -54
- data/lib/doing/configuration.rb +5 -0
- data/lib/doing/good.rb +8 -0
- data/lib/doing/help_monkey_patch.rb +6 -5
- data/lib/doing/item.rb +5 -5
- data/lib/doing/items.rb +2 -2
- data/lib/doing/log_adapter.rb +35 -2
- data/lib/doing/normalize.rb +188 -0
- data/lib/doing/pager.rb +1 -0
- data/lib/doing/plugins/export/dayone_export.rb +1 -1
- data/lib/doing/plugins/export/html_export.rb +1 -1
- data/lib/doing/plugins/export/json_export.rb +1 -1
- data/lib/doing/plugins/export/markdown_export.rb +1 -1
- data/lib/doing/plugins/export/template_export.rb +3 -1
- data/lib/doing/prompt.rb +9 -3
- data/lib/doing/string/highlight.rb +95 -0
- data/lib/doing/string/query.rb +129 -0
- data/lib/doing/string/string.rb +12 -0
- data/lib/doing/string/tags.rb +164 -0
- data/lib/doing/string/transform.rb +168 -0
- data/lib/doing/string/truncate.rb +75 -0
- data/lib/doing/string/url.rb +82 -0
- data/lib/doing/template_string.rb +0 -22
- data/lib/doing/types.rb +8 -0
- data/lib/doing/util.rb +13 -9
- data/lib/doing/version.rb +1 -1
- data/lib/doing/wwid.rb +53 -35
- data/lib/doing.rb +4 -6
- data/lib/examples/commands/wiki.rb +6 -7
- data/lib/examples/plugins/wiki_export/wiki_export.rb +1 -1
- data/lib/helpers/threaded_tests.rb +39 -20
- data/scripts/deploy.rb +107 -0
- data/scripts/runtests.sh +4 -0
- metadata +63 -8
- data/lib/doing/string.rb +0 -765
- data/lib/doing/symbol.rb +0 -28
data/docs/doc/String.html
CHANGED
|
@@ -87,11 +87,6 @@
|
|
|
87
87
|
|
|
88
88
|
|
|
89
89
|
|
|
90
|
-
<dl>
|
|
91
|
-
<dt>Includes:</dt>
|
|
92
|
-
<dd><span class='object_link'><a href="Doing/Color.html" title="Doing::Color (module)">Doing::Color</a></span></dd>
|
|
93
|
-
</dl>
|
|
94
|
-
|
|
95
90
|
|
|
96
91
|
|
|
97
92
|
|
|
@@ -99,8 +94,8 @@
|
|
|
99
94
|
|
|
100
95
|
<dl>
|
|
101
96
|
<dt>Defined in:</dt>
|
|
102
|
-
<dd>lib/doing/
|
|
103
|
-
lib/doing/good.rb,<br /> lib/doing/
|
|
97
|
+
<dd>lib/doing/colors.rb<span class="defines">,<br />
|
|
98
|
+
lib/doing/good.rb,<br /> lib/doing/normalize.rb</span>
|
|
104
99
|
</dd>
|
|
105
100
|
</dl>
|
|
106
101
|
|
|
@@ -108,7 +103,7 @@
|
|
|
108
103
|
|
|
109
104
|
<h2>Overview</h2><div class="docstring">
|
|
110
105
|
<div class="discussion">
|
|
111
|
-
<p>
|
|
106
|
+
<p>String to symbol conversion</p>
|
|
112
107
|
|
|
113
108
|
|
|
114
109
|
</div>
|
|
@@ -123,12 +118,6 @@
|
|
|
123
118
|
|
|
124
119
|
|
|
125
120
|
|
|
126
|
-
<h2>Constant Summary</h2>
|
|
127
|
-
|
|
128
|
-
<h3 class="inherited">Constants included
|
|
129
|
-
from <span class='object_link'><a href="Doing/Color.html" title="Doing::Color (module)">Doing::Color</a></span></h3>
|
|
130
|
-
<p class="inherited"><span class='object_link'><a href="Doing/Color.html#ATTRIBUTES-constant" title="Doing::Color::ATTRIBUTES (constant)">Doing::Color::ATTRIBUTES</a></span>, <span class='object_link'><a href="Doing/Color.html#ATTRIBUTE_NAMES-constant" title="Doing::Color::ATTRIBUTE_NAMES (constant)">Doing::Color::ATTRIBUTE_NAMES</a></span>, <span class='object_link'><a href="Doing/Color.html#COLORED_REGEXP-constant" title="Doing::Color::COLORED_REGEXP (constant)">Doing::Color::COLORED_REGEXP</a></span></p>
|
|
131
|
-
|
|
132
121
|
|
|
133
122
|
|
|
134
123
|
|
|
@@ -144,7 +133,7 @@
|
|
|
144
133
|
<li class="public ">
|
|
145
134
|
<span class="summary_signature">
|
|
146
135
|
|
|
147
|
-
<a href="#
|
|
136
|
+
<a href="#good%3F-instance_method" title="#good? (instance method)">#<strong>good?</strong> ⇒ Boolean </a>
|
|
148
137
|
|
|
149
138
|
|
|
150
139
|
|
|
@@ -158,7 +147,7 @@
|
|
|
158
147
|
|
|
159
148
|
|
|
160
149
|
|
|
161
|
-
<span class="summary_desc"><div class='inline'><p>
|
|
150
|
+
<span class="summary_desc"><div class='inline'><p>Tests if object is nil or empty.</p>
|
|
162
151
|
</div></span>
|
|
163
152
|
|
|
164
153
|
</li>
|
|
@@ -167,7 +156,7 @@
|
|
|
167
156
|
<li class="public ">
|
|
168
157
|
<span class="summary_signature">
|
|
169
158
|
|
|
170
|
-
<a href="#
|
|
159
|
+
<a href="#normalize_age-instance_method" title="#normalize_age (instance method)">#<strong>normalize_age</strong>(default = :newest) ⇒ Symbol </a>
|
|
171
160
|
|
|
172
161
|
|
|
173
162
|
|
|
@@ -181,7 +170,7 @@
|
|
|
181
170
|
|
|
182
171
|
|
|
183
172
|
|
|
184
|
-
<span class="summary_desc"><div class='inline'><p>
|
|
173
|
+
<span class="summary_desc"><div class='inline'><p>Convert an age string to a qualified type.</p>
|
|
185
174
|
</div></span>
|
|
186
175
|
|
|
187
176
|
</li>
|
|
@@ -190,7 +179,7 @@
|
|
|
190
179
|
<li class="public ">
|
|
191
180
|
<span class="summary_signature">
|
|
192
181
|
|
|
193
|
-
<a href="#
|
|
182
|
+
<a href="#normalize_age!-instance_method" title="#normalize_age! (instance method)">#<strong>normalize_age!</strong>(default = :newest) ⇒ Object </a>
|
|
194
183
|
|
|
195
184
|
|
|
196
185
|
|
|
@@ -212,7 +201,7 @@
|
|
|
212
201
|
<li class="public ">
|
|
213
202
|
<span class="summary_signature">
|
|
214
203
|
|
|
215
|
-
<a href="#
|
|
204
|
+
<a href="#normalize_bool-instance_method" title="#normalize_bool (instance method)">#<strong>normalize_bool</strong>(default = :and) ⇒ Object </a>
|
|
216
205
|
|
|
217
206
|
|
|
218
207
|
|
|
@@ -226,7 +215,7 @@
|
|
|
226
215
|
|
|
227
216
|
|
|
228
217
|
|
|
229
|
-
<span class="summary_desc"><div class='inline'><p>
|
|
218
|
+
<span class="summary_desc"><div class='inline'><p>Convert a boolean string to a symbol.</p>
|
|
230
219
|
</div></span>
|
|
231
220
|
|
|
232
221
|
</li>
|
|
@@ -235,7 +224,7 @@
|
|
|
235
224
|
<li class="public ">
|
|
236
225
|
<span class="summary_signature">
|
|
237
226
|
|
|
238
|
-
<a href="#
|
|
227
|
+
<a href="#normalize_bool!-instance_method" title="#normalize_bool! (instance method)">#<strong>normalize_bool!</strong>(default = :and) ⇒ Object </a>
|
|
239
228
|
|
|
240
229
|
|
|
241
230
|
|
|
@@ -249,8 +238,7 @@
|
|
|
249
238
|
|
|
250
239
|
|
|
251
240
|
|
|
252
|
-
<span class="summary_desc"><div class='inline'
|
|
253
|
-
</div></span>
|
|
241
|
+
<span class="summary_desc"><div class='inline'></div></span>
|
|
254
242
|
|
|
255
243
|
</li>
|
|
256
244
|
|
|
@@ -258,7 +246,7 @@
|
|
|
258
246
|
<li class="public ">
|
|
259
247
|
<span class="summary_signature">
|
|
260
248
|
|
|
261
|
-
<a href="#
|
|
249
|
+
<a href="#normalize_case-instance_method" title="#normalize_case (instance method)">#<strong>normalize_case</strong>(default = :smart) ⇒ Object </a>
|
|
262
250
|
|
|
263
251
|
|
|
264
252
|
|
|
@@ -272,7 +260,7 @@
|
|
|
272
260
|
|
|
273
261
|
|
|
274
262
|
|
|
275
|
-
<span class="summary_desc"><div class='inline'><p>
|
|
263
|
+
<span class="summary_desc"><div class='inline'><p>Convert a case sensitivity string to a symbol.</p>
|
|
276
264
|
</div></span>
|
|
277
265
|
|
|
278
266
|
</li>
|
|
@@ -281,7 +269,7 @@
|
|
|
281
269
|
<li class="public ">
|
|
282
270
|
<span class="summary_signature">
|
|
283
271
|
|
|
284
|
-
<a href="#
|
|
272
|
+
<a href="#normalize_case!-instance_method" title="#normalize_case! (instance method)">#<strong>normalize_case!</strong>(default = :smart) ⇒ Object </a>
|
|
285
273
|
|
|
286
274
|
|
|
287
275
|
|
|
@@ -295,8 +283,7 @@
|
|
|
295
283
|
|
|
296
284
|
|
|
297
285
|
|
|
298
|
-
<span class="summary_desc"><div class='inline'
|
|
299
|
-
</div></span>
|
|
286
|
+
<span class="summary_desc"><div class='inline'></div></span>
|
|
300
287
|
|
|
301
288
|
</li>
|
|
302
289
|
|
|
@@ -304,7 +291,7 @@
|
|
|
304
291
|
<li class="public ">
|
|
305
292
|
<span class="summary_signature">
|
|
306
293
|
|
|
307
|
-
<a href="#
|
|
294
|
+
<a href="#normalize_color-instance_method" title="#normalize_color (instance method)">#<strong>normalize_color</strong> ⇒ String </a>
|
|
308
295
|
|
|
309
296
|
|
|
310
297
|
|
|
@@ -318,7 +305,7 @@
|
|
|
318
305
|
|
|
319
306
|
|
|
320
307
|
|
|
321
|
-
<span class="summary_desc"><div class='inline'><p>
|
|
308
|
+
<span class="summary_desc"><div class='inline'><p>Normalize a color name, removing underscores, replacing "bright" with "bold", and converting bgbold to boldbg.</p>
|
|
322
309
|
</div></span>
|
|
323
310
|
|
|
324
311
|
</li>
|
|
@@ -327,7 +314,7 @@
|
|
|
327
314
|
<li class="public ">
|
|
328
315
|
<span class="summary_signature">
|
|
329
316
|
|
|
330
|
-
<a href="#
|
|
317
|
+
<a href="#normalize_matching-instance_method" title="#normalize_matching (instance method)">#<strong>normalize_matching</strong>(default = :pattern) ⇒ Object </a>
|
|
331
318
|
|
|
332
319
|
|
|
333
320
|
|
|
@@ -341,7 +328,8 @@
|
|
|
341
328
|
|
|
342
329
|
|
|
343
330
|
|
|
344
|
-
<span class="summary_desc"><div class='inline'
|
|
331
|
+
<span class="summary_desc"><div class='inline'><p>Convert a matching configuration string to a symbol.</p>
|
|
332
|
+
</div></span>
|
|
345
333
|
|
|
346
334
|
</li>
|
|
347
335
|
|
|
@@ -349,7 +337,7 @@
|
|
|
349
337
|
<li class="public ">
|
|
350
338
|
<span class="summary_signature">
|
|
351
339
|
|
|
352
|
-
<a href="#
|
|
340
|
+
<a href="#normalize_matching!-instance_method" title="#normalize_matching! (instance method)">#<strong>normalize_matching!</strong>(default = :pattern) ⇒ Object </a>
|
|
353
341
|
|
|
354
342
|
|
|
355
343
|
|
|
@@ -363,8 +351,7 @@
|
|
|
363
351
|
|
|
364
352
|
|
|
365
353
|
|
|
366
|
-
<span class="summary_desc"><div class='inline'
|
|
367
|
-
</div></span>
|
|
354
|
+
<span class="summary_desc"><div class='inline'></div></span>
|
|
368
355
|
|
|
369
356
|
</li>
|
|
370
357
|
|
|
@@ -372,7 +359,7 @@
|
|
|
372
359
|
<li class="public ">
|
|
373
360
|
<span class="summary_signature">
|
|
374
361
|
|
|
375
|
-
<a href="#
|
|
362
|
+
<a href="#normalize_order-instance_method" title="#normalize_order (instance method)">#<strong>normalize_order</strong>(default = :asc) ⇒ Object </a>
|
|
376
363
|
|
|
377
364
|
|
|
378
365
|
|
|
@@ -394,7 +381,7 @@
|
|
|
394
381
|
<li class="public ">
|
|
395
382
|
<span class="summary_signature">
|
|
396
383
|
|
|
397
|
-
<a href="#
|
|
384
|
+
<a href="#normalize_order!-instance_method" title="#normalize_order! (instance method)">#<strong>normalize_order!</strong>(default = :asc) ⇒ Symbol </a>
|
|
398
385
|
|
|
399
386
|
|
|
400
387
|
|
|
@@ -408,7 +395,7 @@
|
|
|
408
395
|
|
|
409
396
|
|
|
410
397
|
|
|
411
|
-
<span class="summary_desc"><div class='inline'><p>Convert
|
|
398
|
+
<span class="summary_desc"><div class='inline'><p>Convert a sort order string to a qualified type.</p>
|
|
412
399
|
</div></span>
|
|
413
400
|
|
|
414
401
|
</li>
|
|
@@ -417,7 +404,7 @@
|
|
|
417
404
|
<li class="public ">
|
|
418
405
|
<span class="summary_signature">
|
|
419
406
|
|
|
420
|
-
<a href="#
|
|
407
|
+
<a href="#normalize_tag_sort-instance_method" title="#normalize_tag_sort (instance method)">#<strong>normalize_tag_sort</strong>(default = :name) ⇒ Symbol </a>
|
|
421
408
|
|
|
422
409
|
|
|
423
410
|
|
|
@@ -431,7 +418,7 @@
|
|
|
431
418
|
|
|
432
419
|
|
|
433
420
|
|
|
434
|
-
<span class="summary_desc"><div class='inline'><p>
|
|
421
|
+
<span class="summary_desc"><div class='inline'><p>Convert tag sort string to a qualified type.</p>
|
|
435
422
|
</div></span>
|
|
436
423
|
|
|
437
424
|
</li>
|
|
@@ -440,7 +427,7 @@
|
|
|
440
427
|
<li class="public ">
|
|
441
428
|
<span class="summary_signature">
|
|
442
429
|
|
|
443
|
-
<a href="#
|
|
430
|
+
<a href="#normalize_tag_sort!-instance_method" title="#normalize_tag_sort! (instance method)">#<strong>normalize_tag_sort!</strong>(default = :name) ⇒ Object </a>
|
|
444
431
|
|
|
445
432
|
|
|
446
433
|
|
|
@@ -462,7 +449,7 @@
|
|
|
462
449
|
<li class="public ">
|
|
463
450
|
<span class="summary_signature">
|
|
464
451
|
|
|
465
|
-
<a href="#
|
|
452
|
+
<a href="#normalize_trigger-instance_method" title="#normalize_trigger (instance method)">#<strong>normalize_trigger</strong> ⇒ String </a>
|
|
466
453
|
|
|
467
454
|
|
|
468
455
|
|
|
@@ -476,7 +463,8 @@
|
|
|
476
463
|
|
|
477
464
|
|
|
478
465
|
|
|
479
|
-
<span class="summary_desc"><div class='inline'
|
|
466
|
+
<span class="summary_desc"><div class='inline'><p>Adds ?: to any parentheticals in a regular expression to avoid match groups.</p>
|
|
467
|
+
</div></span>
|
|
480
468
|
|
|
481
469
|
</li>
|
|
482
470
|
|
|
@@ -484,7 +472,7 @@
|
|
|
484
472
|
<li class="public ">
|
|
485
473
|
<span class="summary_signature">
|
|
486
474
|
|
|
487
|
-
<a href="#
|
|
475
|
+
<a href="#normalize_trigger!-instance_method" title="#normalize_trigger! (instance method)">#<strong>normalize_trigger!</strong> ⇒ Object </a>
|
|
488
476
|
|
|
489
477
|
|
|
490
478
|
|
|
@@ -498,8 +486,7 @@
|
|
|
498
486
|
|
|
499
487
|
|
|
500
488
|
|
|
501
|
-
<span class="summary_desc"><div class='inline'
|
|
502
|
-
</div></span>
|
|
489
|
+
<span class="summary_desc"><div class='inline'></div></span>
|
|
503
490
|
|
|
504
491
|
</li>
|
|
505
492
|
|
|
@@ -507,7 +494,7 @@
|
|
|
507
494
|
<li class="public ">
|
|
508
495
|
<span class="summary_signature">
|
|
509
496
|
|
|
510
|
-
<a href="#
|
|
497
|
+
<a href="#validate_color-instance_method" title="#validate_color (instance method)">#<strong>validate_color</strong> ⇒ String </a>
|
|
511
498
|
|
|
512
499
|
|
|
513
500
|
|
|
@@ -521,2783 +508,246 @@
|
|
|
521
508
|
|
|
522
509
|
|
|
523
510
|
|
|
524
|
-
<span class="summary_desc"><div class='inline'
|
|
511
|
+
<span class="summary_desc"><div class='inline'><p>Extract the longest valid %color name from a string.</p>
|
|
512
|
+
</div></span>
|
|
525
513
|
|
|
526
514
|
</li>
|
|
527
515
|
|
|
528
516
|
|
|
529
|
-
|
|
530
|
-
|
|
531
|
-
|
|
532
|
-
|
|
533
|
-
|
|
517
|
+
</ul>
|
|
518
|
+
|
|
519
|
+
|
|
520
|
+
|
|
521
|
+
|
|
522
|
+
<div id="instance_method_details" class="method_details_list">
|
|
523
|
+
<h2>Instance Method Details</h2>
|
|
534
524
|
|
|
535
525
|
|
|
536
|
-
|
|
526
|
+
<div class="method_details first">
|
|
527
|
+
<h3 class="signature first" id="good?-instance_method">
|
|
537
528
|
|
|
529
|
+
#<strong>good?</strong> ⇒ <tt>Boolean</tt>
|
|
538
530
|
|
|
531
|
+
|
|
539
532
|
|
|
533
|
+
|
|
540
534
|
|
|
535
|
+
</h3><div class="docstring">
|
|
536
|
+
<div class="discussion">
|
|
537
|
+
<p>Tests if object is nil or empty</p>
|
|
538
|
+
|
|
539
|
+
|
|
540
|
+
</div>
|
|
541
|
+
</div>
|
|
542
|
+
<div class="tags">
|
|
541
543
|
|
|
544
|
+
<p class="tag_title">Returns:</p>
|
|
545
|
+
<ul class="return">
|
|
542
546
|
|
|
547
|
+
<li>
|
|
548
|
+
|
|
549
|
+
|
|
550
|
+
<span class='type'>(<tt>Boolean</tt>)</span>
|
|
551
|
+
|
|
552
|
+
|
|
553
|
+
|
|
554
|
+
—
|
|
555
|
+
<div class='inline'><p>true if object is defined and
|
|
556
|
+
has content</p>
|
|
557
|
+
</div>
|
|
558
|
+
|
|
559
|
+
</li>
|
|
543
560
|
|
|
561
|
+
</ul>
|
|
544
562
|
|
|
563
|
+
</div>
|
|
564
|
+
</div>
|
|
565
|
+
|
|
566
|
+
<div class="method_details ">
|
|
567
|
+
<h3 class="signature " id="normalize_age-instance_method">
|
|
545
568
|
|
|
546
|
-
|
|
547
|
-
</div></span>
|
|
569
|
+
#<strong>normalize_age</strong>(default = :newest) ⇒ <tt><span class='object_link'><a href="Symbol.html" title="Symbol (class)">Symbol</a></span></tt>
|
|
548
570
|
|
|
549
|
-
</li>
|
|
550
571
|
|
|
551
|
-
|
|
552
|
-
<li class="public ">
|
|
553
|
-
<span class="summary_signature">
|
|
554
|
-
|
|
555
|
-
<a href="#ignore_case-instance_method" title="#ignore_case (instance method)">#<strong>ignore_case</strong>(search, case_type) ⇒ Object </a>
|
|
556
|
-
|
|
572
|
+
|
|
557
573
|
|
|
558
|
-
|
|
559
|
-
</span>
|
|
560
574
|
|
|
575
|
+
</h3><div class="docstring">
|
|
576
|
+
<div class="discussion">
|
|
577
|
+
<p>Convert an age string to a qualified type</p>
|
|
578
|
+
|
|
579
|
+
|
|
580
|
+
</div>
|
|
581
|
+
</div>
|
|
582
|
+
<div class="tags">
|
|
561
583
|
|
|
584
|
+
<p class="tag_title">Returns:</p>
|
|
585
|
+
<ul class="return">
|
|
562
586
|
|
|
587
|
+
<li>
|
|
588
|
+
|
|
589
|
+
|
|
590
|
+
<span class='type'>(<tt><span class='object_link'><a href="Symbol.html" title="Symbol (class)">Symbol</a></span></tt>)</span>
|
|
591
|
+
|
|
592
|
+
|
|
593
|
+
|
|
594
|
+
—
|
|
595
|
+
<div class='inline'><p>:oldest or :newest</p>
|
|
596
|
+
</div>
|
|
597
|
+
|
|
598
|
+
</li>
|
|
563
599
|
|
|
600
|
+
</ul>
|
|
601
|
+
|
|
602
|
+
</div>
|
|
603
|
+
</div>
|
|
604
|
+
|
|
605
|
+
<div class="method_details ">
|
|
606
|
+
<h3 class="signature " id="normalize_age!-instance_method">
|
|
564
607
|
|
|
608
|
+
#<strong>normalize_age!</strong>(default = :newest) ⇒ <tt><span class='object_link'><a href="Object.html" title="Object (class)">Object</a></span></tt>
|
|
565
609
|
|
|
610
|
+
|
|
566
611
|
|
|
567
612
|
|
|
568
613
|
|
|
569
|
-
|
|
614
|
+
</h3><div class="docstring">
|
|
615
|
+
<div class="discussion">
|
|
616
|
+
|
|
617
|
+
|
|
618
|
+
</div>
|
|
619
|
+
</div>
|
|
620
|
+
<div class="tags">
|
|
570
621
|
|
|
571
|
-
</li>
|
|
572
622
|
|
|
573
|
-
|
|
574
|
-
|
|
575
|
-
<span class="summary_signature">
|
|
623
|
+
<p class="tag_title">See Also:</p>
|
|
624
|
+
<ul class="see">
|
|
576
625
|
|
|
577
|
-
<a href="#
|
|
626
|
+
<li><span class='object_link'><a href="#normalize_age-instance_method" title="String#normalize_age (method)">#normalize_age</a></span></li>
|
|
578
627
|
|
|
628
|
+
</ul>
|
|
579
629
|
|
|
630
|
+
</div>
|
|
631
|
+
</div>
|
|
580
632
|
|
|
581
|
-
|
|
582
|
-
|
|
583
|
-
|
|
584
|
-
|
|
585
|
-
|
|
586
|
-
|
|
633
|
+
<div class="method_details ">
|
|
634
|
+
<h3 class="signature " id="normalize_bool-instance_method">
|
|
587
635
|
|
|
636
|
+
#<strong>normalize_bool</strong>(default = :and) ⇒ <tt><span class='object_link'><a href="Object.html" title="Object (class)">Object</a></span></tt>
|
|
588
637
|
|
|
589
638
|
|
|
590
639
|
|
|
591
|
-
|
|
640
|
+
|
|
592
641
|
|
|
593
|
-
</
|
|
642
|
+
</h3><div class="docstring">
|
|
643
|
+
<div class="discussion">
|
|
644
|
+
<p>Convert a boolean string to a symbol</p>
|
|
594
645
|
|
|
595
|
-
|
|
596
|
-
<li class="public ">
|
|
597
|
-
<span class="summary_signature">
|
|
598
|
-
|
|
599
|
-
<a href="#is_rx%3F-instance_method" title="#is_rx? (instance method)">#<strong>is_rx?</strong> ⇒ Boolean </a>
|
|
600
|
-
|
|
601
646
|
|
|
602
|
-
|
|
603
|
-
|
|
604
|
-
|
|
647
|
+
</div>
|
|
648
|
+
</div>
|
|
649
|
+
<div class="tags">
|
|
605
650
|
|
|
651
|
+
<p class="tag_title">Returns:</p>
|
|
652
|
+
<ul class="return">
|
|
606
653
|
|
|
654
|
+
<li>
|
|
655
|
+
|
|
656
|
+
|
|
657
|
+
<span class='type'></span>
|
|
658
|
+
|
|
659
|
+
|
|
660
|
+
|
|
661
|
+
|
|
662
|
+
<div class='inline'><p>Symbol :and, :or, or :not</p>
|
|
663
|
+
</div>
|
|
664
|
+
|
|
665
|
+
</li>
|
|
607
666
|
|
|
667
|
+
</ul>
|
|
668
|
+
|
|
669
|
+
</div>
|
|
670
|
+
</div>
|
|
671
|
+
|
|
672
|
+
<div class="method_details ">
|
|
673
|
+
<h3 class="signature " id="normalize_bool!-instance_method">
|
|
608
674
|
|
|
675
|
+
#<strong>normalize_bool!</strong>(default = :and) ⇒ <tt><span class='object_link'><a href="Object.html" title="Object (class)">Object</a></span></tt>
|
|
609
676
|
|
|
677
|
+
|
|
610
678
|
|
|
611
679
|
|
|
612
680
|
|
|
613
|
-
|
|
614
|
-
|
|
681
|
+
</h3><div class="docstring">
|
|
682
|
+
<div class="discussion">
|
|
683
|
+
|
|
684
|
+
|
|
685
|
+
</div>
|
|
686
|
+
</div>
|
|
687
|
+
<div class="tags">
|
|
615
688
|
|
|
616
|
-
</li>
|
|
617
689
|
|
|
618
|
-
|
|
619
|
-
|
|
620
|
-
<span class="summary_signature">
|
|
690
|
+
<p class="tag_title">See Also:</p>
|
|
691
|
+
<ul class="see">
|
|
621
692
|
|
|
622
|
-
<a href="#
|
|
693
|
+
<li><span class='object_link'><a href="#normalize_bool-instance_method" title="String#normalize_bool (method)">#normalize_bool</a></span></li>
|
|
623
694
|
|
|
695
|
+
</ul>
|
|
624
696
|
|
|
697
|
+
</div>
|
|
698
|
+
</div>
|
|
625
699
|
|
|
626
|
-
|
|
627
|
-
|
|
628
|
-
|
|
629
|
-
|
|
700
|
+
<div class="method_details ">
|
|
701
|
+
<h3 class="signature " id="normalize_case-instance_method">
|
|
630
702
|
|
|
703
|
+
#<strong>normalize_case</strong>(default = :smart) ⇒ <tt><span class='object_link'><a href="Object.html" title="Object (class)">Object</a></span></tt>
|
|
631
704
|
|
|
705
|
+
|
|
632
706
|
|
|
707
|
+
|
|
633
708
|
|
|
709
|
+
</h3><div class="docstring">
|
|
710
|
+
<div class="discussion">
|
|
711
|
+
<p>Convert a case sensitivity string to a symbol</p>
|
|
712
|
+
|
|
634
713
|
|
|
714
|
+
</div>
|
|
715
|
+
</div>
|
|
716
|
+
<div class="tags">
|
|
635
717
|
|
|
636
|
-
|
|
637
|
-
|
|
718
|
+
<p class="tag_title">Returns:</p>
|
|
719
|
+
<ul class="return">
|
|
638
720
|
|
|
639
|
-
|
|
640
|
-
|
|
721
|
+
<li>
|
|
641
722
|
|
|
642
|
-
|
|
643
|
-
|
|
644
|
-
|
|
645
|
-
|
|
646
|
-
|
|
723
|
+
|
|
724
|
+
<span class='type'></span>
|
|
725
|
+
|
|
726
|
+
|
|
727
|
+
|
|
728
|
+
|
|
729
|
+
<div class='inline'><p>Symbol :smart, :sensitive, :ignore</p>
|
|
730
|
+
</div>
|
|
731
|
+
|
|
732
|
+
</li>
|
|
733
|
+
|
|
734
|
+
</ul>
|
|
647
735
|
|
|
736
|
+
</div>
|
|
737
|
+
</div>
|
|
648
738
|
|
|
649
|
-
|
|
739
|
+
<div class="method_details ">
|
|
740
|
+
<h3 class="signature " id="normalize_case!-instance_method">
|
|
650
741
|
|
|
742
|
+
#<strong>normalize_case!</strong>(default = :smart) ⇒ <tt><span class='object_link'><a href="Object.html" title="Object (class)">Object</a></span></tt>
|
|
651
743
|
|
|
744
|
+
|
|
652
745
|
|
|
653
|
-
|
|
654
|
-
|
|
655
|
-
|
|
656
|
-
|
|
657
|
-
|
|
658
|
-
|
|
659
|
-
<span class="summary_desc"><div class='inline'><p>Turn raw urls into HTML links.</p>
|
|
660
|
-
</div></span>
|
|
661
|
-
|
|
662
|
-
</li>
|
|
663
|
-
|
|
664
|
-
|
|
665
|
-
<li class="public ">
|
|
666
|
-
<span class="summary_signature">
|
|
667
|
-
|
|
668
|
-
<a href="#link_urls!-instance_method" title="#link_urls! (instance method)">#<strong>link_urls!</strong>(**opt) ⇒ Object </a>
|
|
669
|
-
|
|
670
|
-
|
|
671
|
-
|
|
672
|
-
</span>
|
|
673
|
-
|
|
674
|
-
|
|
675
|
-
|
|
676
|
-
|
|
677
|
-
|
|
678
|
-
|
|
679
|
-
|
|
680
|
-
|
|
681
|
-
|
|
682
|
-
<span class="summary_desc"><div class='inline'></div></span>
|
|
683
|
-
|
|
684
|
-
</li>
|
|
685
|
-
|
|
686
|
-
|
|
687
|
-
<li class="public ">
|
|
688
|
-
<span class="summary_signature">
|
|
689
|
-
|
|
690
|
-
<a href="#normalize_age-instance_method" title="#normalize_age (instance method)">#<strong>normalize_age</strong>(default = :newest) ⇒ Symbol </a>
|
|
691
|
-
|
|
692
|
-
|
|
693
|
-
|
|
694
|
-
</span>
|
|
695
|
-
|
|
696
|
-
|
|
697
|
-
|
|
698
|
-
|
|
699
|
-
|
|
700
|
-
|
|
701
|
-
|
|
702
|
-
|
|
703
|
-
|
|
704
|
-
<span class="summary_desc"><div class='inline'><p>Convert an age string to a qualified type.</p>
|
|
705
|
-
</div></span>
|
|
706
|
-
|
|
707
|
-
</li>
|
|
708
|
-
|
|
709
|
-
|
|
710
|
-
<li class="public ">
|
|
711
|
-
<span class="summary_signature">
|
|
712
|
-
|
|
713
|
-
<a href="#normalize_age!-instance_method" title="#normalize_age! (instance method)">#<strong>normalize_age!</strong>(default = :newest) ⇒ Object </a>
|
|
714
|
-
|
|
715
|
-
|
|
716
|
-
|
|
717
|
-
</span>
|
|
718
|
-
|
|
719
|
-
|
|
720
|
-
|
|
721
|
-
|
|
722
|
-
|
|
723
|
-
|
|
724
|
-
|
|
725
|
-
|
|
726
|
-
|
|
727
|
-
<span class="summary_desc"><div class='inline'></div></span>
|
|
728
|
-
|
|
729
|
-
</li>
|
|
730
|
-
|
|
731
|
-
|
|
732
|
-
<li class="public ">
|
|
733
|
-
<span class="summary_signature">
|
|
734
|
-
|
|
735
|
-
<a href="#normalize_bool-instance_method" title="#normalize_bool (instance method)">#<strong>normalize_bool</strong>(default = :and) ⇒ Object </a>
|
|
736
|
-
|
|
737
|
-
|
|
738
|
-
|
|
739
|
-
</span>
|
|
740
|
-
|
|
741
|
-
|
|
742
|
-
|
|
743
|
-
|
|
744
|
-
|
|
745
|
-
|
|
746
|
-
|
|
747
|
-
|
|
748
|
-
|
|
749
|
-
<span class="summary_desc"><div class='inline'><p>Convert a boolean string to a symbol.</p>
|
|
750
|
-
</div></span>
|
|
751
|
-
|
|
752
|
-
</li>
|
|
753
|
-
|
|
754
|
-
|
|
755
|
-
<li class="public ">
|
|
756
|
-
<span class="summary_signature">
|
|
757
|
-
|
|
758
|
-
<a href="#normalize_bool!-instance_method" title="#normalize_bool! (instance method)">#<strong>normalize_bool!</strong>(default = :and) ⇒ Object </a>
|
|
759
|
-
|
|
760
|
-
|
|
761
|
-
|
|
762
|
-
</span>
|
|
763
|
-
|
|
764
|
-
|
|
765
|
-
|
|
766
|
-
|
|
767
|
-
|
|
768
|
-
|
|
769
|
-
|
|
770
|
-
|
|
771
|
-
|
|
772
|
-
<span class="summary_desc"><div class='inline'></div></span>
|
|
773
|
-
|
|
774
|
-
</li>
|
|
775
|
-
|
|
776
|
-
|
|
777
|
-
<li class="public ">
|
|
778
|
-
<span class="summary_signature">
|
|
779
|
-
|
|
780
|
-
<a href="#normalize_case-instance_method" title="#normalize_case (instance method)">#<strong>normalize_case</strong>(default = :smart) ⇒ Object </a>
|
|
781
|
-
|
|
782
|
-
|
|
783
|
-
|
|
784
|
-
</span>
|
|
785
|
-
|
|
786
|
-
|
|
787
|
-
|
|
788
|
-
|
|
789
|
-
|
|
790
|
-
|
|
791
|
-
|
|
792
|
-
|
|
793
|
-
|
|
794
|
-
<span class="summary_desc"><div class='inline'><p>Convert a case sensitivity string to a symbol.</p>
|
|
795
|
-
</div></span>
|
|
796
|
-
|
|
797
|
-
</li>
|
|
798
|
-
|
|
799
|
-
|
|
800
|
-
<li class="public ">
|
|
801
|
-
<span class="summary_signature">
|
|
802
|
-
|
|
803
|
-
<a href="#normalize_case!-instance_method" title="#normalize_case! (instance method)">#<strong>normalize_case!</strong> ⇒ Object </a>
|
|
804
|
-
|
|
805
|
-
|
|
806
|
-
|
|
807
|
-
</span>
|
|
808
|
-
|
|
809
|
-
|
|
810
|
-
|
|
811
|
-
|
|
812
|
-
|
|
813
|
-
|
|
814
|
-
|
|
815
|
-
|
|
816
|
-
|
|
817
|
-
<span class="summary_desc"><div class='inline'></div></span>
|
|
818
|
-
|
|
819
|
-
</li>
|
|
820
|
-
|
|
821
|
-
|
|
822
|
-
<li class="public ">
|
|
823
|
-
<span class="summary_signature">
|
|
824
|
-
|
|
825
|
-
<a href="#normalize_matching-instance_method" title="#normalize_matching (instance method)">#<strong>normalize_matching</strong>(default = :pattern) ⇒ Object </a>
|
|
826
|
-
|
|
827
|
-
|
|
828
|
-
|
|
829
|
-
</span>
|
|
830
|
-
|
|
831
|
-
|
|
832
|
-
|
|
833
|
-
|
|
834
|
-
|
|
835
|
-
|
|
836
|
-
|
|
837
|
-
|
|
838
|
-
|
|
839
|
-
<span class="summary_desc"><div class='inline'><p>Convert a matching configuration string to a symbol.</p>
|
|
840
|
-
</div></span>
|
|
841
|
-
|
|
842
|
-
</li>
|
|
843
|
-
|
|
844
|
-
|
|
845
|
-
<li class="public ">
|
|
846
|
-
<span class="summary_signature">
|
|
847
|
-
|
|
848
|
-
<a href="#normalize_matching!-instance_method" title="#normalize_matching! (instance method)">#<strong>normalize_matching!</strong>(default = :pattern) ⇒ Object </a>
|
|
849
|
-
|
|
850
|
-
|
|
851
|
-
|
|
852
|
-
</span>
|
|
853
|
-
|
|
854
|
-
|
|
855
|
-
|
|
856
|
-
|
|
857
|
-
|
|
858
|
-
|
|
859
|
-
|
|
860
|
-
|
|
861
|
-
|
|
862
|
-
<span class="summary_desc"><div class='inline'></div></span>
|
|
863
|
-
|
|
864
|
-
</li>
|
|
865
|
-
|
|
866
|
-
|
|
867
|
-
<li class="public ">
|
|
868
|
-
<span class="summary_signature">
|
|
869
|
-
|
|
870
|
-
<a href="#normalize_order-instance_method" title="#normalize_order (instance method)">#<strong>normalize_order</strong>(default = 'asc') ⇒ Object </a>
|
|
871
|
-
|
|
872
|
-
|
|
873
|
-
|
|
874
|
-
</span>
|
|
875
|
-
|
|
876
|
-
|
|
877
|
-
|
|
878
|
-
|
|
879
|
-
|
|
880
|
-
|
|
881
|
-
|
|
882
|
-
|
|
883
|
-
|
|
884
|
-
<span class="summary_desc"><div class='inline'></div></span>
|
|
885
|
-
|
|
886
|
-
</li>
|
|
887
|
-
|
|
888
|
-
|
|
889
|
-
<li class="public ">
|
|
890
|
-
<span class="summary_signature">
|
|
891
|
-
|
|
892
|
-
<a href="#normalize_order!-instance_method" title="#normalize_order! (instance method)">#<strong>normalize_order!</strong>(default = 'asc') ⇒ String </a>
|
|
893
|
-
|
|
894
|
-
|
|
895
|
-
|
|
896
|
-
</span>
|
|
897
|
-
|
|
898
|
-
|
|
899
|
-
|
|
900
|
-
|
|
901
|
-
|
|
902
|
-
|
|
903
|
-
|
|
904
|
-
|
|
905
|
-
|
|
906
|
-
<span class="summary_desc"><div class='inline'><p>Convert a sort order string to a qualified type.</p>
|
|
907
|
-
</div></span>
|
|
908
|
-
|
|
909
|
-
</li>
|
|
910
|
-
|
|
911
|
-
|
|
912
|
-
<li class="public ">
|
|
913
|
-
<span class="summary_signature">
|
|
914
|
-
|
|
915
|
-
<a href="#normalize_trigger-instance_method" title="#normalize_trigger (instance method)">#<strong>normalize_trigger</strong> ⇒ String </a>
|
|
916
|
-
|
|
917
|
-
|
|
918
|
-
|
|
919
|
-
</span>
|
|
920
|
-
|
|
921
|
-
|
|
922
|
-
|
|
923
|
-
|
|
924
|
-
|
|
925
|
-
|
|
926
|
-
|
|
927
|
-
|
|
928
|
-
|
|
929
|
-
<span class="summary_desc"><div class='inline'><p>Adds ?: to any parentheticals in a regular expression to avoid match groups.</p>
|
|
930
|
-
</div></span>
|
|
931
|
-
|
|
932
|
-
</li>
|
|
933
|
-
|
|
934
|
-
|
|
935
|
-
<li class="public ">
|
|
936
|
-
<span class="summary_signature">
|
|
937
|
-
|
|
938
|
-
<a href="#normalize_trigger!-instance_method" title="#normalize_trigger! (instance method)">#<strong>normalize_trigger!</strong> ⇒ Object </a>
|
|
939
|
-
|
|
940
|
-
|
|
941
|
-
|
|
942
|
-
</span>
|
|
943
|
-
|
|
944
|
-
|
|
945
|
-
|
|
946
|
-
|
|
947
|
-
|
|
948
|
-
|
|
949
|
-
|
|
950
|
-
|
|
951
|
-
|
|
952
|
-
<span class="summary_desc"><div class='inline'></div></span>
|
|
953
|
-
|
|
954
|
-
</li>
|
|
955
|
-
|
|
956
|
-
|
|
957
|
-
<li class="public ">
|
|
958
|
-
<span class="summary_signature">
|
|
959
|
-
|
|
960
|
-
<a href="#remove_at-instance_method" title="#remove_at (instance method)">#<strong>remove_at</strong> ⇒ String </a>
|
|
961
|
-
|
|
962
|
-
|
|
963
|
-
|
|
964
|
-
</span>
|
|
965
|
-
|
|
966
|
-
|
|
967
|
-
|
|
968
|
-
|
|
969
|
-
|
|
970
|
-
|
|
971
|
-
|
|
972
|
-
|
|
973
|
-
|
|
974
|
-
<span class="summary_desc"><div class='inline'><p>Removes @ prefix if needed, maintains +/- prefix.</p>
|
|
975
|
-
</div></span>
|
|
976
|
-
|
|
977
|
-
</li>
|
|
978
|
-
|
|
979
|
-
|
|
980
|
-
<li class="public ">
|
|
981
|
-
<span class="summary_signature">
|
|
982
|
-
|
|
983
|
-
<a href="#remove_self_links-instance_method" title="#remove_self_links (instance method)">#<strong>remove_self_links</strong> ⇒ Object </a>
|
|
984
|
-
|
|
985
|
-
|
|
986
|
-
|
|
987
|
-
</span>
|
|
988
|
-
|
|
989
|
-
|
|
990
|
-
|
|
991
|
-
|
|
992
|
-
|
|
993
|
-
|
|
994
|
-
|
|
995
|
-
|
|
996
|
-
|
|
997
|
-
<span class="summary_desc"><div class='inline'><p>Remove <self-linked> formatting.</p>
|
|
998
|
-
</div></span>
|
|
999
|
-
|
|
1000
|
-
</li>
|
|
1001
|
-
|
|
1002
|
-
|
|
1003
|
-
<li class="public ">
|
|
1004
|
-
<span class="summary_signature">
|
|
1005
|
-
|
|
1006
|
-
<a href="#replace_qualified_urls-instance_method" title="#replace_qualified_urls (instance method)">#<strong>replace_qualified_urls</strong>(**options) ⇒ Object </a>
|
|
1007
|
-
|
|
1008
|
-
|
|
1009
|
-
|
|
1010
|
-
</span>
|
|
1011
|
-
|
|
1012
|
-
|
|
1013
|
-
|
|
1014
|
-
|
|
1015
|
-
|
|
1016
|
-
|
|
1017
|
-
|
|
1018
|
-
|
|
1019
|
-
|
|
1020
|
-
<span class="summary_desc"><div class='inline'><p>Replace qualified urls.</p>
|
|
1021
|
-
</div></span>
|
|
1022
|
-
|
|
1023
|
-
</li>
|
|
1024
|
-
|
|
1025
|
-
|
|
1026
|
-
<li class="public ">
|
|
1027
|
-
<span class="summary_signature">
|
|
1028
|
-
|
|
1029
|
-
<a href="#set_type-instance_method" title="#set_type (instance method)">#<strong>set_type</strong>(kind = nil) ⇒ Object </a>
|
|
1030
|
-
|
|
1031
|
-
|
|
1032
|
-
|
|
1033
|
-
</span>
|
|
1034
|
-
|
|
1035
|
-
|
|
1036
|
-
|
|
1037
|
-
|
|
1038
|
-
|
|
1039
|
-
|
|
1040
|
-
|
|
1041
|
-
|
|
1042
|
-
|
|
1043
|
-
<span class="summary_desc"><div class='inline'><p>Convert a string value to an appropriate type.</p>
|
|
1044
|
-
</div></span>
|
|
1045
|
-
|
|
1046
|
-
</li>
|
|
1047
|
-
|
|
1048
|
-
|
|
1049
|
-
<li class="public ">
|
|
1050
|
-
<span class="summary_signature">
|
|
1051
|
-
|
|
1052
|
-
<a href="#simple_wrap-instance_method" title="#simple_wrap (instance method)">#<strong>simple_wrap</strong>(width) ⇒ Object </a>
|
|
1053
|
-
|
|
1054
|
-
|
|
1055
|
-
|
|
1056
|
-
</span>
|
|
1057
|
-
|
|
1058
|
-
|
|
1059
|
-
|
|
1060
|
-
|
|
1061
|
-
|
|
1062
|
-
|
|
1063
|
-
|
|
1064
|
-
|
|
1065
|
-
|
|
1066
|
-
<span class="summary_desc"><div class='inline'></div></span>
|
|
1067
|
-
|
|
1068
|
-
</li>
|
|
1069
|
-
|
|
1070
|
-
|
|
1071
|
-
<li class="public ">
|
|
1072
|
-
<span class="summary_signature">
|
|
1073
|
-
|
|
1074
|
-
<a href="#split_date_range-instance_method" title="#split_date_range (instance method)">#<strong>split_date_range</strong> ⇒ Array<DateTime> </a>
|
|
1075
|
-
|
|
1076
|
-
|
|
1077
|
-
|
|
1078
|
-
</span>
|
|
1079
|
-
|
|
1080
|
-
|
|
1081
|
-
|
|
1082
|
-
|
|
1083
|
-
|
|
1084
|
-
|
|
1085
|
-
|
|
1086
|
-
|
|
1087
|
-
|
|
1088
|
-
<span class="summary_desc"><div class='inline'><p>Splits a range string and returns an array of DateTime objects as [start, end].</p>
|
|
1089
|
-
</div></span>
|
|
1090
|
-
|
|
1091
|
-
</li>
|
|
1092
|
-
|
|
1093
|
-
|
|
1094
|
-
<li class="public ">
|
|
1095
|
-
<span class="summary_signature">
|
|
1096
|
-
|
|
1097
|
-
<a href="#tag-instance_method" title="#tag (instance method)">#<strong>tag</strong>(tag, value: nil, remove: false, rename_to: nil, regex: false, single: false, force: false) ⇒ String </a>
|
|
1098
|
-
|
|
1099
|
-
|
|
1100
|
-
|
|
1101
|
-
</span>
|
|
1102
|
-
|
|
1103
|
-
|
|
1104
|
-
|
|
1105
|
-
|
|
1106
|
-
|
|
1107
|
-
|
|
1108
|
-
|
|
1109
|
-
|
|
1110
|
-
|
|
1111
|
-
<span class="summary_desc"><div class='inline'><p>Add, rename, or remove a tag.</p>
|
|
1112
|
-
</div></span>
|
|
1113
|
-
|
|
1114
|
-
</li>
|
|
1115
|
-
|
|
1116
|
-
|
|
1117
|
-
<li class="public ">
|
|
1118
|
-
<span class="summary_signature">
|
|
1119
|
-
|
|
1120
|
-
<a href="#tag!-instance_method" title="#tag! (instance method)">#<strong>tag!</strong>(tag, **options) ⇒ Object </a>
|
|
1121
|
-
|
|
1122
|
-
|
|
1123
|
-
|
|
1124
|
-
</span>
|
|
1125
|
-
|
|
1126
|
-
|
|
1127
|
-
|
|
1128
|
-
|
|
1129
|
-
|
|
1130
|
-
|
|
1131
|
-
|
|
1132
|
-
|
|
1133
|
-
|
|
1134
|
-
<span class="summary_desc"><div class='inline'><p>Add, rename, or remove a tag in place.</p>
|
|
1135
|
-
</div></span>
|
|
1136
|
-
|
|
1137
|
-
</li>
|
|
1138
|
-
|
|
1139
|
-
|
|
1140
|
-
<li class="public ">
|
|
1141
|
-
<span class="summary_signature">
|
|
1142
|
-
|
|
1143
|
-
<a href="#time_string-instance_method" title="#time_string (instance method)">#<strong>time_string</strong>(format: :dhm) ⇒ Object </a>
|
|
1144
|
-
|
|
1145
|
-
|
|
1146
|
-
|
|
1147
|
-
</span>
|
|
1148
|
-
|
|
1149
|
-
|
|
1150
|
-
|
|
1151
|
-
|
|
1152
|
-
|
|
1153
|
-
|
|
1154
|
-
|
|
1155
|
-
|
|
1156
|
-
|
|
1157
|
-
<span class="summary_desc"><div class='inline'><p>Convert DD:HH:MM to a natural language string.</p>
|
|
1158
|
-
</div></span>
|
|
1159
|
-
|
|
1160
|
-
</li>
|
|
1161
|
-
|
|
1162
|
-
|
|
1163
|
-
<li class="public ">
|
|
1164
|
-
<span class="summary_signature">
|
|
1165
|
-
|
|
1166
|
-
<a href="#to_bool-instance_method" title="#to_bool (instance method)">#<strong>to_bool</strong> ⇒ Object </a>
|
|
1167
|
-
|
|
1168
|
-
|
|
1169
|
-
|
|
1170
|
-
</span>
|
|
1171
|
-
|
|
1172
|
-
|
|
1173
|
-
|
|
1174
|
-
|
|
1175
|
-
|
|
1176
|
-
|
|
1177
|
-
|
|
1178
|
-
|
|
1179
|
-
|
|
1180
|
-
<span class="summary_desc"><div class='inline'></div></span>
|
|
1181
|
-
|
|
1182
|
-
</li>
|
|
1183
|
-
|
|
1184
|
-
|
|
1185
|
-
<li class="public ">
|
|
1186
|
-
<span class="summary_signature">
|
|
1187
|
-
|
|
1188
|
-
<a href="#to_p-instance_method" title="#to_p (instance method)">#<strong>to_p</strong>(number) ⇒ Object </a>
|
|
1189
|
-
|
|
1190
|
-
|
|
1191
|
-
|
|
1192
|
-
</span>
|
|
1193
|
-
|
|
1194
|
-
|
|
1195
|
-
|
|
1196
|
-
|
|
1197
|
-
|
|
1198
|
-
|
|
1199
|
-
|
|
1200
|
-
|
|
1201
|
-
|
|
1202
|
-
<span class="summary_desc"><div class='inline'><p>Pluralize a string based on quantity.</p>
|
|
1203
|
-
</div></span>
|
|
1204
|
-
|
|
1205
|
-
</li>
|
|
1206
|
-
|
|
1207
|
-
|
|
1208
|
-
<li class="public ">
|
|
1209
|
-
<span class="summary_signature">
|
|
1210
|
-
|
|
1211
|
-
<a href="#to_phrase_query-instance_method" title="#to_phrase_query (instance method)">#<strong>to_phrase_query</strong> ⇒ Object </a>
|
|
1212
|
-
|
|
1213
|
-
|
|
1214
|
-
|
|
1215
|
-
</span>
|
|
1216
|
-
|
|
1217
|
-
|
|
1218
|
-
|
|
1219
|
-
|
|
1220
|
-
|
|
1221
|
-
|
|
1222
|
-
|
|
1223
|
-
|
|
1224
|
-
|
|
1225
|
-
<span class="summary_desc"><div class='inline'></div></span>
|
|
1226
|
-
|
|
1227
|
-
</li>
|
|
1228
|
-
|
|
1229
|
-
|
|
1230
|
-
<li class="public ">
|
|
1231
|
-
<span class="summary_signature">
|
|
1232
|
-
|
|
1233
|
-
<a href="#to_query-instance_method" title="#to_query (instance method)">#<strong>to_query</strong> ⇒ Object </a>
|
|
1234
|
-
|
|
1235
|
-
|
|
1236
|
-
|
|
1237
|
-
</span>
|
|
1238
|
-
|
|
1239
|
-
|
|
1240
|
-
|
|
1241
|
-
|
|
1242
|
-
|
|
1243
|
-
|
|
1244
|
-
|
|
1245
|
-
|
|
1246
|
-
|
|
1247
|
-
<span class="summary_desc"><div class='inline'></div></span>
|
|
1248
|
-
|
|
1249
|
-
</li>
|
|
1250
|
-
|
|
1251
|
-
|
|
1252
|
-
<li class="public ">
|
|
1253
|
-
<span class="summary_signature">
|
|
1254
|
-
|
|
1255
|
-
<a href="#to_rx-instance_method" title="#to_rx (instance method)">#<strong>to_rx</strong>(distance: nil, case_type: nil) ⇒ Regexp </a>
|
|
1256
|
-
|
|
1257
|
-
|
|
1258
|
-
|
|
1259
|
-
</span>
|
|
1260
|
-
|
|
1261
|
-
|
|
1262
|
-
|
|
1263
|
-
|
|
1264
|
-
|
|
1265
|
-
|
|
1266
|
-
|
|
1267
|
-
|
|
1268
|
-
|
|
1269
|
-
<span class="summary_desc"><div class='inline'><p>Convert string to fuzzy regex.</p>
|
|
1270
|
-
</div></span>
|
|
1271
|
-
|
|
1272
|
-
</li>
|
|
1273
|
-
|
|
1274
|
-
|
|
1275
|
-
<li class="public ">
|
|
1276
|
-
<span class="summary_signature">
|
|
1277
|
-
|
|
1278
|
-
<a href="#to_seconds-instance_method" title="#to_seconds (instance method)">#<strong>to_seconds</strong> ⇒ Integer </a>
|
|
1279
|
-
|
|
1280
|
-
|
|
1281
|
-
|
|
1282
|
-
</span>
|
|
1283
|
-
|
|
1284
|
-
|
|
1285
|
-
|
|
1286
|
-
|
|
1287
|
-
|
|
1288
|
-
|
|
1289
|
-
|
|
1290
|
-
|
|
1291
|
-
|
|
1292
|
-
<span class="summary_desc"><div class='inline'><p>Convert DD:HH:MM to seconds.</p>
|
|
1293
|
-
</div></span>
|
|
1294
|
-
|
|
1295
|
-
</li>
|
|
1296
|
-
|
|
1297
|
-
|
|
1298
|
-
<li class="public ">
|
|
1299
|
-
<span class="summary_signature">
|
|
1300
|
-
|
|
1301
|
-
<a href="#to_tags-instance_method" title="#to_tags (instance method)">#<strong>to_tags</strong> ⇒ Array </a>
|
|
1302
|
-
|
|
1303
|
-
|
|
1304
|
-
|
|
1305
|
-
</span>
|
|
1306
|
-
|
|
1307
|
-
|
|
1308
|
-
|
|
1309
|
-
|
|
1310
|
-
|
|
1311
|
-
|
|
1312
|
-
|
|
1313
|
-
|
|
1314
|
-
|
|
1315
|
-
<span class="summary_desc"><div class='inline'><p>Convert a list of tags to an array.</p>
|
|
1316
|
-
</div></span>
|
|
1317
|
-
|
|
1318
|
-
</li>
|
|
1319
|
-
|
|
1320
|
-
|
|
1321
|
-
<li class="public ">
|
|
1322
|
-
<span class="summary_signature">
|
|
1323
|
-
|
|
1324
|
-
<a href="#truncate-instance_method" title="#truncate (instance method)">#<strong>truncate</strong>(len, ellipsis: '...') ⇒ Object </a>
|
|
1325
|
-
|
|
1326
|
-
|
|
1327
|
-
|
|
1328
|
-
</span>
|
|
1329
|
-
|
|
1330
|
-
|
|
1331
|
-
|
|
1332
|
-
|
|
1333
|
-
|
|
1334
|
-
|
|
1335
|
-
|
|
1336
|
-
|
|
1337
|
-
|
|
1338
|
-
<span class="summary_desc"><div class='inline'><p>Truncate to nearest word.</p>
|
|
1339
|
-
</div></span>
|
|
1340
|
-
|
|
1341
|
-
</li>
|
|
1342
|
-
|
|
1343
|
-
|
|
1344
|
-
<li class="public ">
|
|
1345
|
-
<span class="summary_signature">
|
|
1346
|
-
|
|
1347
|
-
<a href="#truncate!-instance_method" title="#truncate! (instance method)">#<strong>truncate!</strong>(len, ellipsis: '...') ⇒ Object </a>
|
|
1348
|
-
|
|
1349
|
-
|
|
1350
|
-
|
|
1351
|
-
</span>
|
|
1352
|
-
|
|
1353
|
-
|
|
1354
|
-
|
|
1355
|
-
|
|
1356
|
-
|
|
1357
|
-
|
|
1358
|
-
|
|
1359
|
-
|
|
1360
|
-
|
|
1361
|
-
<span class="summary_desc"><div class='inline'></div></span>
|
|
1362
|
-
|
|
1363
|
-
</li>
|
|
1364
|
-
|
|
1365
|
-
|
|
1366
|
-
<li class="public ">
|
|
1367
|
-
<span class="summary_signature">
|
|
1368
|
-
|
|
1369
|
-
<a href="#truncmiddle-instance_method" title="#truncmiddle (instance method)">#<strong>truncmiddle</strong>(len, ellipsis: '...') ⇒ Object </a>
|
|
1370
|
-
|
|
1371
|
-
|
|
1372
|
-
|
|
1373
|
-
</span>
|
|
1374
|
-
|
|
1375
|
-
|
|
1376
|
-
|
|
1377
|
-
|
|
1378
|
-
|
|
1379
|
-
|
|
1380
|
-
|
|
1381
|
-
|
|
1382
|
-
|
|
1383
|
-
<span class="summary_desc"><div class='inline'><p>Truncate string in the middle.</p>
|
|
1384
|
-
</div></span>
|
|
1385
|
-
|
|
1386
|
-
</li>
|
|
1387
|
-
|
|
1388
|
-
|
|
1389
|
-
<li class="public ">
|
|
1390
|
-
<span class="summary_signature">
|
|
1391
|
-
|
|
1392
|
-
<a href="#truncmiddle!-instance_method" title="#truncmiddle! (instance method)">#<strong>truncmiddle!</strong>(len, ellipsis: '...') ⇒ Object </a>
|
|
1393
|
-
|
|
1394
|
-
|
|
1395
|
-
|
|
1396
|
-
</span>
|
|
1397
|
-
|
|
1398
|
-
|
|
1399
|
-
|
|
1400
|
-
|
|
1401
|
-
|
|
1402
|
-
|
|
1403
|
-
|
|
1404
|
-
|
|
1405
|
-
|
|
1406
|
-
<span class="summary_desc"><div class='inline'></div></span>
|
|
1407
|
-
|
|
1408
|
-
</li>
|
|
1409
|
-
|
|
1410
|
-
|
|
1411
|
-
<li class="public ">
|
|
1412
|
-
<span class="summary_signature">
|
|
1413
|
-
|
|
1414
|
-
<a href="#truthy%3F-instance_method" title="#truthy? (instance method)">#<strong>truthy?</strong> ⇒ Boolean </a>
|
|
1415
|
-
|
|
1416
|
-
|
|
1417
|
-
|
|
1418
|
-
</span>
|
|
1419
|
-
|
|
1420
|
-
|
|
1421
|
-
|
|
1422
|
-
|
|
1423
|
-
|
|
1424
|
-
|
|
1425
|
-
|
|
1426
|
-
|
|
1427
|
-
|
|
1428
|
-
<span class="summary_desc"><div class='inline'><p>Test string for truthiness (0, "f", "false", "n", "no" all return false, case insensitive, otherwise true).</p>
|
|
1429
|
-
</div></span>
|
|
1430
|
-
|
|
1431
|
-
</li>
|
|
1432
|
-
|
|
1433
|
-
|
|
1434
|
-
<li class="public ">
|
|
1435
|
-
<span class="summary_signature">
|
|
1436
|
-
|
|
1437
|
-
<a href="#uncolor-instance_method" title="#uncolor (instance method)">#<strong>uncolor</strong> ⇒ Object </a>
|
|
1438
|
-
|
|
1439
|
-
|
|
1440
|
-
|
|
1441
|
-
</span>
|
|
1442
|
-
|
|
1443
|
-
|
|
1444
|
-
|
|
1445
|
-
|
|
1446
|
-
|
|
1447
|
-
|
|
1448
|
-
|
|
1449
|
-
|
|
1450
|
-
|
|
1451
|
-
<span class="summary_desc"><div class='inline'><p>Remove color escape codes.</p>
|
|
1452
|
-
</div></span>
|
|
1453
|
-
|
|
1454
|
-
</li>
|
|
1455
|
-
|
|
1456
|
-
|
|
1457
|
-
<li class="public ">
|
|
1458
|
-
<span class="summary_signature">
|
|
1459
|
-
|
|
1460
|
-
<a href="#uncolor!-instance_method" title="#uncolor! (instance method)">#<strong>uncolor!</strong> ⇒ Object </a>
|
|
1461
|
-
|
|
1462
|
-
|
|
1463
|
-
|
|
1464
|
-
</span>
|
|
1465
|
-
|
|
1466
|
-
|
|
1467
|
-
|
|
1468
|
-
|
|
1469
|
-
|
|
1470
|
-
|
|
1471
|
-
|
|
1472
|
-
|
|
1473
|
-
|
|
1474
|
-
<span class="summary_desc"><div class='inline'></div></span>
|
|
1475
|
-
|
|
1476
|
-
</li>
|
|
1477
|
-
|
|
1478
|
-
|
|
1479
|
-
<li class="public ">
|
|
1480
|
-
<span class="summary_signature">
|
|
1481
|
-
|
|
1482
|
-
<a href="#validate_color-instance_method" title="#validate_color (instance method)">#<strong>validate_color</strong> ⇒ String </a>
|
|
1483
|
-
|
|
1484
|
-
|
|
1485
|
-
|
|
1486
|
-
</span>
|
|
1487
|
-
|
|
1488
|
-
|
|
1489
|
-
|
|
1490
|
-
|
|
1491
|
-
|
|
1492
|
-
|
|
1493
|
-
<span class="private note title">private</span>
|
|
1494
|
-
|
|
1495
|
-
|
|
1496
|
-
<span class="summary_desc"><div class='inline'><p>Extract the longest valid color from a string.</p>
|
|
1497
|
-
</div></span>
|
|
1498
|
-
|
|
1499
|
-
</li>
|
|
1500
|
-
|
|
1501
|
-
|
|
1502
|
-
<li class="public ">
|
|
1503
|
-
<span class="summary_signature">
|
|
1504
|
-
|
|
1505
|
-
<a href="#wildcard_to_rx-instance_method" title="#wildcard_to_rx (instance method)">#<strong>wildcard_to_rx</strong> ⇒ String </a>
|
|
1506
|
-
|
|
1507
|
-
|
|
1508
|
-
|
|
1509
|
-
</span>
|
|
1510
|
-
|
|
1511
|
-
|
|
1512
|
-
|
|
1513
|
-
|
|
1514
|
-
|
|
1515
|
-
|
|
1516
|
-
|
|
1517
|
-
|
|
1518
|
-
|
|
1519
|
-
<span class="summary_desc"><div class='inline'><p>Convert ? and * wildcards to regular expressions.</p>
|
|
1520
|
-
</div></span>
|
|
1521
|
-
|
|
1522
|
-
</li>
|
|
1523
|
-
|
|
1524
|
-
|
|
1525
|
-
<li class="public ">
|
|
1526
|
-
<span class="summary_signature">
|
|
1527
|
-
|
|
1528
|
-
<a href="#wrap-instance_method" title="#wrap (instance method)">#<strong>wrap</strong>(len, pad: 0, indent: ' ', offset: 0, prefix: '', color: '', after: '', reset: '', pad_first: false) ⇒ Object </a>
|
|
1529
|
-
|
|
1530
|
-
|
|
1531
|
-
|
|
1532
|
-
</span>
|
|
1533
|
-
|
|
1534
|
-
|
|
1535
|
-
|
|
1536
|
-
|
|
1537
|
-
|
|
1538
|
-
|
|
1539
|
-
|
|
1540
|
-
|
|
1541
|
-
|
|
1542
|
-
<span class="summary_desc"><div class='inline'><p>Wrap string at word breaks, respecting tags.</p>
|
|
1543
|
-
</div></span>
|
|
1544
|
-
|
|
1545
|
-
</li>
|
|
1546
|
-
|
|
1547
|
-
|
|
1548
|
-
</ul>
|
|
1549
|
-
|
|
1550
|
-
|
|
1551
|
-
|
|
1552
|
-
|
|
1553
|
-
|
|
1554
|
-
|
|
1555
|
-
|
|
1556
|
-
|
|
1557
|
-
|
|
1558
|
-
|
|
1559
|
-
|
|
1560
|
-
<h3 class="inherited">Methods included from <span class='object_link'><a href="Doing/Color.html" title="Doing::Color (module)">Doing::Color</a></span></h3>
|
|
1561
|
-
<p class="inherited"><span class='object_link'><a href="Doing/Color.html#attributes-class_method" title="Doing::Color.attributes (method)">attributes</a></span>, <span class='object_link'><a href="Doing/Color.html#coloring%3F-class_method" title="Doing::Color.coloring? (method)">coloring?</a></span>, <span class='object_link'><a href="Doing/Color.html#support%3F-instance_method" title="Doing::Color#support? (method)">#support?</a></span></p>
|
|
1562
|
-
|
|
1563
|
-
|
|
1564
|
-
<div id="instance_method_details" class="method_details_list">
|
|
1565
|
-
<h2>Instance Method Details</h2>
|
|
1566
|
-
|
|
1567
|
-
|
|
1568
|
-
<div class="method_details first">
|
|
1569
|
-
<h3 class="signature first" id="add_at-instance_method">
|
|
1570
|
-
|
|
1571
|
-
#<strong>add_at</strong> ⇒ <tt><span class='object_link'><a href="" title="String (class)">String</a></span></tt>
|
|
1572
|
-
|
|
1573
|
-
|
|
1574
|
-
|
|
1575
|
-
|
|
1576
|
-
|
|
1577
|
-
</h3><div class="docstring">
|
|
1578
|
-
<div class="discussion">
|
|
1579
|
-
<p>Add @ prefix to string if needed, maintains +/- prefix</p>
|
|
1580
|
-
|
|
1581
|
-
|
|
1582
|
-
</div>
|
|
1583
|
-
</div>
|
|
1584
|
-
<div class="tags">
|
|
1585
|
-
|
|
1586
|
-
<p class="tag_title">Returns:</p>
|
|
1587
|
-
<ul class="return">
|
|
1588
|
-
|
|
1589
|
-
<li>
|
|
1590
|
-
|
|
1591
|
-
|
|
1592
|
-
<span class='type'>(<tt><span class='object_link'><a href="" title="String (class)">String</a></span></tt>)</span>
|
|
1593
|
-
|
|
1594
|
-
|
|
1595
|
-
|
|
1596
|
-
—
|
|
1597
|
-
<div class='inline'><p>@string</p>
|
|
1598
|
-
</div>
|
|
1599
|
-
|
|
1600
|
-
</li>
|
|
1601
|
-
|
|
1602
|
-
</ul>
|
|
1603
|
-
|
|
1604
|
-
</div>
|
|
1605
|
-
</div>
|
|
1606
|
-
|
|
1607
|
-
<div class="method_details ">
|
|
1608
|
-
<h3 class="signature " id="add_tags-instance_method">
|
|
1609
|
-
|
|
1610
|
-
#<strong>add_tags</strong>(tags, remove: false) ⇒ <tt><span class='object_link'><a href="" title="String (class)">String</a></span></tt>
|
|
1611
|
-
|
|
1612
|
-
|
|
1613
|
-
|
|
1614
|
-
|
|
1615
|
-
|
|
1616
|
-
</h3><div class="docstring">
|
|
1617
|
-
<div class="discussion">
|
|
1618
|
-
<p>Returns the tagged string.</p>
|
|
1619
|
-
|
|
1620
|
-
|
|
1621
|
-
</div>
|
|
1622
|
-
</div>
|
|
1623
|
-
<div class="tags">
|
|
1624
|
-
<p class="tag_title">Parameters:</p>
|
|
1625
|
-
<ul class="param">
|
|
1626
|
-
|
|
1627
|
-
<li>
|
|
1628
|
-
|
|
1629
|
-
<span class='name'>tags</span>
|
|
1630
|
-
|
|
1631
|
-
|
|
1632
|
-
<span class='type'>(<tt><span class='object_link'><a href="" title="String (class)">String</a></span> or <span class='object_link'><a href="Array.html" title="Array (class)">Array</a></span></tt>)</span>
|
|
1633
|
-
|
|
1634
|
-
|
|
1635
|
-
|
|
1636
|
-
—
|
|
1637
|
-
<div class='inline'><p>List of tags to add. @ symbol optional</p>
|
|
1638
|
-
</div>
|
|
1639
|
-
|
|
1640
|
-
</li>
|
|
1641
|
-
|
|
1642
|
-
<li>
|
|
1643
|
-
|
|
1644
|
-
<span class='name'>remove</span>
|
|
1645
|
-
|
|
1646
|
-
|
|
1647
|
-
<span class='type'>(<tt>Boolean</tt>)</span>
|
|
1648
|
-
|
|
1649
|
-
|
|
1650
|
-
<em class="default">(defaults to: <tt>false</tt>)</em>
|
|
1651
|
-
|
|
1652
|
-
|
|
1653
|
-
—
|
|
1654
|
-
<div class='inline'><p>remove tags instead of adding</p>
|
|
1655
|
-
</div>
|
|
1656
|
-
|
|
1657
|
-
</li>
|
|
1658
|
-
|
|
1659
|
-
</ul>
|
|
1660
|
-
|
|
1661
|
-
<p class="tag_title">Returns:</p>
|
|
1662
|
-
<ul class="return">
|
|
1663
|
-
|
|
1664
|
-
<li>
|
|
1665
|
-
|
|
1666
|
-
|
|
1667
|
-
<span class='type'>(<tt><span class='object_link'><a href="" title="String (class)">String</a></span></tt>)</span>
|
|
1668
|
-
|
|
1669
|
-
|
|
1670
|
-
|
|
1671
|
-
—
|
|
1672
|
-
<div class='inline'><p>the tagged string</p>
|
|
1673
|
-
</div>
|
|
1674
|
-
|
|
1675
|
-
</li>
|
|
1676
|
-
|
|
1677
|
-
</ul>
|
|
1678
|
-
|
|
1679
|
-
</div>
|
|
1680
|
-
</div>
|
|
1681
|
-
|
|
1682
|
-
<div class="method_details ">
|
|
1683
|
-
<h3 class="signature " id="add_tags!-instance_method">
|
|
1684
|
-
|
|
1685
|
-
#<strong>add_tags!</strong>(tags, remove: false) ⇒ <tt><span class='object_link'><a href="Object.html" title="Object (class)">Object</a></span></tt>
|
|
1686
|
-
|
|
1687
|
-
|
|
1688
|
-
|
|
1689
|
-
|
|
1690
|
-
|
|
1691
|
-
</h3><div class="docstring">
|
|
1692
|
-
<div class="discussion">
|
|
1693
|
-
|
|
1694
|
-
|
|
1695
|
-
</div>
|
|
1696
|
-
</div>
|
|
1697
|
-
<div class="tags">
|
|
1698
|
-
|
|
1699
|
-
|
|
1700
|
-
<p class="tag_title">See Also:</p>
|
|
1701
|
-
<ul class="see">
|
|
1702
|
-
|
|
1703
|
-
<li><span class='object_link'><a href="#add_tags-instance_method" title="String#add_tags (method)">#add_tags</a></span></li>
|
|
1704
|
-
|
|
1705
|
-
</ul>
|
|
1706
|
-
|
|
1707
|
-
</div>
|
|
1708
|
-
</div>
|
|
1709
|
-
|
|
1710
|
-
<div class="method_details ">
|
|
1711
|
-
<h3 class="signature " id="cap_first-instance_method">
|
|
1712
|
-
|
|
1713
|
-
#<strong>cap_first</strong> ⇒ <tt><span class='object_link'><a href="Object.html" title="Object (class)">Object</a></span></tt>
|
|
1714
|
-
|
|
1715
|
-
|
|
1716
|
-
|
|
1717
|
-
|
|
1718
|
-
|
|
1719
|
-
</h3><div class="docstring">
|
|
1720
|
-
<div class="discussion">
|
|
1721
|
-
<p>Capitalize on the first character on string</p>
|
|
1722
|
-
|
|
1723
|
-
|
|
1724
|
-
</div>
|
|
1725
|
-
</div>
|
|
1726
|
-
<div class="tags">
|
|
1727
|
-
|
|
1728
|
-
<p class="tag_title">Returns:</p>
|
|
1729
|
-
<ul class="return">
|
|
1730
|
-
|
|
1731
|
-
<li>
|
|
1732
|
-
|
|
1733
|
-
|
|
1734
|
-
<span class='type'></span>
|
|
1735
|
-
|
|
1736
|
-
|
|
1737
|
-
|
|
1738
|
-
|
|
1739
|
-
<div class='inline'><p>Capitalized string</p>
|
|
1740
|
-
</div>
|
|
1741
|
-
|
|
1742
|
-
</li>
|
|
1743
|
-
|
|
1744
|
-
</ul>
|
|
1745
|
-
|
|
1746
|
-
</div>
|
|
1747
|
-
</div>
|
|
1748
|
-
|
|
1749
|
-
<div class="method_details ">
|
|
1750
|
-
<h3 class="signature " id="chronify-instance_method">
|
|
1751
|
-
|
|
1752
|
-
#<strong>chronify</strong>(**options) ⇒ <tt>DateTime</tt>
|
|
1753
|
-
|
|
1754
|
-
|
|
1755
|
-
|
|
1756
|
-
|
|
1757
|
-
|
|
1758
|
-
</h3><div class="docstring">
|
|
1759
|
-
<div class="discussion">
|
|
1760
|
-
<p>Converts input string into a Time object when input
|
|
1761
|
-
takes on the following formats:
|
|
1762
|
-
- interval format e.g. '1d2h30m', '45m'
|
|
1763
|
-
etc.
|
|
1764
|
-
- a semantic phrase e.g. 'yesterday
|
|
1765
|
-
5:30pm'
|
|
1766
|
-
- a strftime e.g. '2016-03-15 15:32:04
|
|
1767
|
-
PDT'</p>
|
|
1768
|
-
|
|
1769
|
-
|
|
1770
|
-
</div>
|
|
1771
|
-
</div>
|
|
1772
|
-
<div class="tags">
|
|
1773
|
-
<p class="tag_title">Parameters:</p>
|
|
1774
|
-
<ul class="param">
|
|
1775
|
-
|
|
1776
|
-
<li>
|
|
1777
|
-
|
|
1778
|
-
<span class='name'>options</span>
|
|
1779
|
-
|
|
1780
|
-
|
|
1781
|
-
<span class='type'></span>
|
|
1782
|
-
|
|
1783
|
-
|
|
1784
|
-
|
|
1785
|
-
—
|
|
1786
|
-
<div class='inline'><p>Additional options</p>
|
|
1787
|
-
</div>
|
|
1788
|
-
|
|
1789
|
-
</li>
|
|
1790
|
-
|
|
1791
|
-
</ul>
|
|
1792
|
-
|
|
1793
|
-
|
|
1794
|
-
|
|
1795
|
-
|
|
1796
|
-
<p class="tag_title">Options Hash (<tt>**options</tt>):</p>
|
|
1797
|
-
<ul class="option">
|
|
1798
|
-
|
|
1799
|
-
<li>
|
|
1800
|
-
<span class="name">:future</span>
|
|
1801
|
-
<span class="type">(<tt>Boolean</tt>)</span>
|
|
1802
|
-
<span class="default">
|
|
1803
|
-
|
|
1804
|
-
</span>
|
|
1805
|
-
|
|
1806
|
-
— <div class='inline'><p>assume future date
|
|
1807
|
-
(default: false)</p>
|
|
1808
|
-
</div>
|
|
1809
|
-
|
|
1810
|
-
</li>
|
|
1811
|
-
|
|
1812
|
-
<li>
|
|
1813
|
-
<span class="name">:guess</span>
|
|
1814
|
-
<span class="type">(<tt><span class='object_link'><a href="Symbol.html" title="Symbol (class)">Symbol</a></span></tt>)</span>
|
|
1815
|
-
<span class="default">
|
|
1816
|
-
|
|
1817
|
-
</span>
|
|
1818
|
-
|
|
1819
|
-
— <div class='inline'><p>:begin or :end to
|
|
1820
|
-
assume beginning or end of
|
|
1821
|
-
arbitrary time range</p>
|
|
1822
|
-
</div>
|
|
1823
|
-
|
|
1824
|
-
</li>
|
|
1825
|
-
|
|
1826
|
-
</ul>
|
|
1827
|
-
|
|
1828
|
-
|
|
1829
|
-
<p class="tag_title">Returns:</p>
|
|
1830
|
-
<ul class="return">
|
|
1831
|
-
|
|
1832
|
-
<li>
|
|
1833
|
-
|
|
1834
|
-
|
|
1835
|
-
<span class='type'>(<tt>DateTime</tt>)</span>
|
|
1836
|
-
|
|
1837
|
-
|
|
1838
|
-
|
|
1839
|
-
—
|
|
1840
|
-
<div class='inline'><p>result</p>
|
|
1841
|
-
</div>
|
|
1842
|
-
|
|
1843
|
-
</li>
|
|
1844
|
-
|
|
1845
|
-
</ul>
|
|
1846
|
-
<p class="tag_title">Raises:</p>
|
|
1847
|
-
<ul class="raise">
|
|
1848
|
-
|
|
1849
|
-
<li>
|
|
1850
|
-
|
|
1851
|
-
|
|
1852
|
-
<span class='type'>(<tt>Errors::InvalidTimeExpression</tt>)</span>
|
|
1853
|
-
|
|
1854
|
-
|
|
1855
|
-
|
|
1856
|
-
</li>
|
|
1857
|
-
|
|
1858
|
-
</ul>
|
|
1859
|
-
|
|
1860
|
-
</div>
|
|
1861
|
-
</div>
|
|
1862
|
-
|
|
1863
|
-
<div class="method_details ">
|
|
1864
|
-
<h3 class="signature " id="chronify_qty-instance_method">
|
|
1865
|
-
|
|
1866
|
-
#<strong>chronify_qty</strong> ⇒ <tt>Integer</tt>
|
|
1867
|
-
|
|
1868
|
-
|
|
1869
|
-
|
|
1870
|
-
|
|
1871
|
-
|
|
1872
|
-
</h3><div class="docstring">
|
|
1873
|
-
<div class="discussion">
|
|
1874
|
-
<p>Converts simple strings into seconds that can be
|
|
1875
|
-
added to a Time object</p>
|
|
1876
|
-
|
|
1877
|
-
<p>Input string can be HH:MM or XX[dhm]<a href="1d2h30m,%2045m,%201.5d,%201h20m,%20etc.">[XXhm][XXm]</a></p>
|
|
1878
|
-
|
|
1879
|
-
|
|
1880
|
-
</div>
|
|
1881
|
-
</div>
|
|
1882
|
-
<div class="tags">
|
|
1883
|
-
|
|
1884
|
-
<p class="tag_title">Returns:</p>
|
|
1885
|
-
<ul class="return">
|
|
1886
|
-
|
|
1887
|
-
<li>
|
|
1888
|
-
|
|
1889
|
-
|
|
1890
|
-
<span class='type'>(<tt>Integer</tt>)</span>
|
|
1891
|
-
|
|
1892
|
-
|
|
1893
|
-
|
|
1894
|
-
—
|
|
1895
|
-
<div class='inline'><p>seconds</p>
|
|
1896
|
-
</div>
|
|
1897
|
-
|
|
1898
|
-
</li>
|
|
1899
|
-
|
|
1900
|
-
</ul>
|
|
1901
|
-
|
|
1902
|
-
</div>
|
|
1903
|
-
</div>
|
|
1904
|
-
|
|
1905
|
-
<div class="method_details ">
|
|
1906
|
-
<h3 class="signature " id="clean_unlinked_urls-instance_method">
|
|
1907
|
-
|
|
1908
|
-
#<strong>clean_unlinked_urls</strong> ⇒ <tt><span class='object_link'><a href="Object.html" title="Object (class)">Object</a></span></tt>
|
|
1909
|
-
|
|
1910
|
-
|
|
1911
|
-
|
|
1912
|
-
|
|
1913
|
-
|
|
1914
|
-
</h3><div class="docstring">
|
|
1915
|
-
<div class="discussion">
|
|
1916
|
-
<p>Clean up unlinked <urls></p>
|
|
1917
|
-
|
|
1918
|
-
|
|
1919
|
-
</div>
|
|
1920
|
-
</div>
|
|
1921
|
-
<div class="tags">
|
|
1922
|
-
|
|
1923
|
-
|
|
1924
|
-
</div>
|
|
1925
|
-
</div>
|
|
1926
|
-
|
|
1927
|
-
<div class="method_details ">
|
|
1928
|
-
<h3 class="signature " id="compress-instance_method">
|
|
1929
|
-
|
|
1930
|
-
#<strong>compress</strong> ⇒ <tt><span class='object_link'><a href="Object.html" title="Object (class)">Object</a></span></tt>
|
|
1931
|
-
|
|
1932
|
-
|
|
1933
|
-
|
|
1934
|
-
|
|
1935
|
-
|
|
1936
|
-
</h3><div class="docstring">
|
|
1937
|
-
<div class="discussion">
|
|
1938
|
-
<p>Compress multiple spaces to single space</p>
|
|
1939
|
-
|
|
1940
|
-
|
|
1941
|
-
</div>
|
|
1942
|
-
</div>
|
|
1943
|
-
<div class="tags">
|
|
1944
|
-
|
|
1945
|
-
|
|
1946
|
-
</div>
|
|
1947
|
-
</div>
|
|
1948
|
-
|
|
1949
|
-
<div class="method_details ">
|
|
1950
|
-
<h3 class="signature " id="compress!-instance_method">
|
|
1951
|
-
|
|
1952
|
-
#<strong>compress!</strong> ⇒ <tt><span class='object_link'><a href="Object.html" title="Object (class)">Object</a></span></tt>
|
|
1953
|
-
|
|
1954
|
-
|
|
1955
|
-
|
|
1956
|
-
|
|
1957
|
-
|
|
1958
|
-
</h3>
|
|
1959
|
-
</div>
|
|
1960
|
-
|
|
1961
|
-
<div class="method_details ">
|
|
1962
|
-
<h3 class="signature " id="dedup_tags-instance_method">
|
|
1963
|
-
|
|
1964
|
-
#<strong>dedup_tags</strong> ⇒ <tt><span class='object_link'><a href="Object.html" title="Object (class)">Object</a></span></tt>
|
|
1965
|
-
|
|
1966
|
-
|
|
1967
|
-
|
|
1968
|
-
|
|
1969
|
-
|
|
1970
|
-
</h3><div class="docstring">
|
|
1971
|
-
<div class="discussion">
|
|
1972
|
-
<p>Remove duplicate tags, leaving only first occurrence</p>
|
|
1973
|
-
|
|
1974
|
-
|
|
1975
|
-
</div>
|
|
1976
|
-
</div>
|
|
1977
|
-
<div class="tags">
|
|
1978
|
-
|
|
1979
|
-
<p class="tag_title">Returns:</p>
|
|
1980
|
-
<ul class="return">
|
|
1981
|
-
|
|
1982
|
-
<li>
|
|
1983
|
-
|
|
1984
|
-
|
|
1985
|
-
<span class='type'></span>
|
|
1986
|
-
|
|
1987
|
-
|
|
1988
|
-
|
|
1989
|
-
|
|
1990
|
-
<div class='inline'><p>Deduplicated string</p>
|
|
1991
|
-
</div>
|
|
1992
|
-
|
|
1993
|
-
</li>
|
|
1994
|
-
|
|
1995
|
-
</ul>
|
|
1996
|
-
|
|
1997
|
-
</div>
|
|
1998
|
-
</div>
|
|
1999
|
-
|
|
2000
|
-
<div class="method_details ">
|
|
2001
|
-
<h3 class="signature " id="dedup_tags!-instance_method">
|
|
2002
|
-
|
|
2003
|
-
#<strong>dedup_tags!</strong> ⇒ <tt><span class='object_link'><a href="Object.html" title="Object (class)">Object</a></span></tt>
|
|
2004
|
-
|
|
2005
|
-
|
|
2006
|
-
|
|
2007
|
-
|
|
2008
|
-
|
|
2009
|
-
</h3><div class="docstring">
|
|
2010
|
-
<div class="discussion">
|
|
2011
|
-
|
|
2012
|
-
|
|
2013
|
-
</div>
|
|
2014
|
-
</div>
|
|
2015
|
-
<div class="tags">
|
|
2016
|
-
|
|
2017
|
-
|
|
2018
|
-
<p class="tag_title">See Also:</p>
|
|
2019
|
-
<ul class="see">
|
|
2020
|
-
|
|
2021
|
-
<li><span class='object_link'><a href="#dedup_tags-instance_method" title="String#dedup_tags (method)">#dedup_tags</a></span></li>
|
|
2022
|
-
|
|
2023
|
-
</ul>
|
|
2024
|
-
|
|
2025
|
-
</div>
|
|
2026
|
-
</div>
|
|
2027
|
-
|
|
2028
|
-
<div class="method_details ">
|
|
2029
|
-
<h3 class="signature " id="expand_date_tags-instance_method">
|
|
2030
|
-
|
|
2031
|
-
#<strong>expand_date_tags</strong>(additional_tags = nil) ⇒ <tt><span class='object_link'><a href="Object.html" title="Object (class)">Object</a></span></tt>
|
|
2032
|
-
|
|
2033
|
-
|
|
2034
|
-
|
|
2035
|
-
|
|
2036
|
-
|
|
2037
|
-
</h3><div class="docstring">
|
|
2038
|
-
<div class="discussion">
|
|
2039
|
-
<p>Convert (chronify) natural language dates
|
|
2040
|
-
within configured date tags (tags whose value is
|
|
2041
|
-
expected to be a date). Modifies string in place.</p>
|
|
2042
|
-
|
|
2043
|
-
|
|
2044
|
-
</div>
|
|
2045
|
-
</div>
|
|
2046
|
-
<div class="tags">
|
|
2047
|
-
<p class="tag_title">Parameters:</p>
|
|
2048
|
-
<ul class="param">
|
|
2049
|
-
|
|
2050
|
-
<li>
|
|
2051
|
-
|
|
2052
|
-
<span class='name'>additional_tags</span>
|
|
2053
|
-
|
|
2054
|
-
|
|
2055
|
-
<span class='type'>(<tt><span class='object_link'><a href="Array.html" title="Array (class)">Array</a></span></tt>)</span>
|
|
2056
|
-
|
|
2057
|
-
|
|
2058
|
-
<em class="default">(defaults to: <tt>nil</tt>)</em>
|
|
2059
|
-
|
|
2060
|
-
|
|
2061
|
-
—
|
|
2062
|
-
<div class='inline'><p>An array of
|
|
2063
|
-
additional tags to
|
|
2064
|
-
consider date_tags</p>
|
|
2065
|
-
</div>
|
|
2066
|
-
|
|
2067
|
-
</li>
|
|
2068
|
-
|
|
2069
|
-
</ul>
|
|
2070
|
-
|
|
2071
|
-
|
|
2072
|
-
</div>
|
|
2073
|
-
</div>
|
|
2074
|
-
|
|
2075
|
-
<div class="method_details ">
|
|
2076
|
-
<h3 class="signature " id="good?-instance_method">
|
|
2077
|
-
|
|
2078
|
-
#<strong>good?</strong> ⇒ <tt>Boolean</tt>
|
|
2079
|
-
|
|
2080
|
-
|
|
2081
|
-
|
|
2082
|
-
|
|
2083
|
-
|
|
2084
|
-
</h3><div class="docstring">
|
|
2085
|
-
<div class="discussion">
|
|
2086
|
-
<p>Tests if object is nil or empty</p>
|
|
2087
|
-
|
|
2088
|
-
|
|
2089
|
-
</div>
|
|
2090
|
-
</div>
|
|
2091
|
-
<div class="tags">
|
|
2092
|
-
|
|
2093
|
-
<p class="tag_title">Returns:</p>
|
|
2094
|
-
<ul class="return">
|
|
2095
|
-
|
|
2096
|
-
<li>
|
|
2097
|
-
|
|
2098
|
-
|
|
2099
|
-
<span class='type'>(<tt>Boolean</tt>)</span>
|
|
2100
|
-
|
|
2101
|
-
|
|
2102
|
-
|
|
2103
|
-
—
|
|
2104
|
-
<div class='inline'><p>true if object is defined and
|
|
2105
|
-
has content</p>
|
|
2106
|
-
</div>
|
|
2107
|
-
|
|
2108
|
-
</li>
|
|
2109
|
-
|
|
2110
|
-
</ul>
|
|
2111
|
-
|
|
2112
|
-
</div>
|
|
2113
|
-
</div>
|
|
2114
|
-
|
|
2115
|
-
<div class="method_details ">
|
|
2116
|
-
<h3 class="signature " id="highlight_search-instance_method">
|
|
2117
|
-
|
|
2118
|
-
#<strong>highlight_search</strong>(search, distance: nil, negate: false, case_type: nil) ⇒ <tt><span class='object_link'><a href="Object.html" title="Object (class)">Object</a></span></tt>
|
|
2119
|
-
|
|
2120
|
-
|
|
2121
|
-
|
|
2122
|
-
|
|
2123
|
-
|
|
2124
|
-
</h3>
|
|
2125
|
-
</div>
|
|
2126
|
-
|
|
2127
|
-
<div class="method_details ">
|
|
2128
|
-
<h3 class="signature " id="highlight_search!-instance_method">
|
|
2129
|
-
|
|
2130
|
-
#<strong>highlight_search!</strong>(search, distance: nil, negate: false, case_type: nil) ⇒ <tt><span class='object_link'><a href="Object.html" title="Object (class)">Object</a></span></tt>
|
|
2131
|
-
|
|
2132
|
-
|
|
2133
|
-
|
|
2134
|
-
|
|
2135
|
-
|
|
2136
|
-
</h3>
|
|
2137
|
-
</div>
|
|
2138
|
-
|
|
2139
|
-
<div class="method_details ">
|
|
2140
|
-
<h3 class="signature " id="highlight_tags-instance_method">
|
|
2141
|
-
|
|
2142
|
-
#<strong>highlight_tags</strong>(color = 'yellow', last_color: nil) ⇒ <tt><span class='object_link'><a href="" title="String (class)">String</a></span></tt>
|
|
2143
|
-
|
|
2144
|
-
|
|
2145
|
-
|
|
2146
|
-
|
|
2147
|
-
|
|
2148
|
-
</h3><div class="docstring">
|
|
2149
|
-
<div class="discussion">
|
|
2150
|
-
<p>Colorize @tags with ANSI escapes</p>
|
|
2151
|
-
|
|
2152
|
-
|
|
2153
|
-
</div>
|
|
2154
|
-
</div>
|
|
2155
|
-
<div class="tags">
|
|
2156
|
-
<p class="tag_title">Parameters:</p>
|
|
2157
|
-
<ul class="param">
|
|
2158
|
-
|
|
2159
|
-
<li>
|
|
2160
|
-
|
|
2161
|
-
<span class='name'>color</span>
|
|
2162
|
-
|
|
2163
|
-
|
|
2164
|
-
<span class='type'>(<tt><span class='object_link'><a href="" title="String (class)">String</a></span></tt>)</span>
|
|
2165
|
-
|
|
2166
|
-
|
|
2167
|
-
<em class="default">(defaults to: <tt>'yellow'</tt>)</em>
|
|
2168
|
-
|
|
2169
|
-
|
|
2170
|
-
—
|
|
2171
|
-
<div class='inline'><p>color (see #Color)</p>
|
|
2172
|
-
</div>
|
|
2173
|
-
|
|
2174
|
-
</li>
|
|
2175
|
-
|
|
2176
|
-
</ul>
|
|
2177
|
-
|
|
2178
|
-
<p class="tag_title">Returns:</p>
|
|
2179
|
-
<ul class="return">
|
|
2180
|
-
|
|
2181
|
-
<li>
|
|
2182
|
-
|
|
2183
|
-
|
|
2184
|
-
<span class='type'>(<tt><span class='object_link'><a href="" title="String (class)">String</a></span></tt>)</span>
|
|
2185
|
-
|
|
2186
|
-
|
|
2187
|
-
|
|
2188
|
-
—
|
|
2189
|
-
<div class='inline'><p>string with @tags highlighted</p>
|
|
2190
|
-
</div>
|
|
2191
|
-
|
|
2192
|
-
</li>
|
|
2193
|
-
|
|
2194
|
-
</ul>
|
|
2195
|
-
|
|
2196
|
-
</div>
|
|
2197
|
-
</div>
|
|
2198
|
-
|
|
2199
|
-
<div class="method_details ">
|
|
2200
|
-
<h3 class="signature " id="highlight_tags!-instance_method">
|
|
2201
|
-
|
|
2202
|
-
#<strong>highlight_tags!</strong>(color = 'yellow', last_color: nil) ⇒ <tt><span class='object_link'><a href="Object.html" title="Object (class)">Object</a></span></tt>
|
|
2203
|
-
|
|
2204
|
-
|
|
2205
|
-
|
|
2206
|
-
|
|
2207
|
-
|
|
2208
|
-
</h3><div class="docstring">
|
|
2209
|
-
<div class="discussion">
|
|
2210
|
-
|
|
2211
|
-
|
|
2212
|
-
</div>
|
|
2213
|
-
</div>
|
|
2214
|
-
<div class="tags">
|
|
2215
|
-
<p class="tag_title">Parameters:</p>
|
|
2216
|
-
<ul class="param">
|
|
2217
|
-
|
|
2218
|
-
<li>
|
|
2219
|
-
|
|
2220
|
-
<span class='name'>color</span>
|
|
2221
|
-
|
|
2222
|
-
|
|
2223
|
-
<span class='type'>(<tt><span class='object_link'><a href="" title="String (class)">String</a></span></tt>)</span>
|
|
2224
|
-
|
|
2225
|
-
|
|
2226
|
-
<em class="default">(defaults to: <tt>'yellow'</tt>)</em>
|
|
2227
|
-
|
|
2228
|
-
|
|
2229
|
-
—
|
|
2230
|
-
<div class='inline'><p>color (see #Color)</p>
|
|
2231
|
-
</div>
|
|
2232
|
-
|
|
2233
|
-
</li>
|
|
2234
|
-
|
|
2235
|
-
</ul>
|
|
2236
|
-
|
|
2237
|
-
|
|
2238
|
-
</div>
|
|
2239
|
-
</div>
|
|
2240
|
-
|
|
2241
|
-
<div class="method_details ">
|
|
2242
|
-
<h3 class="signature " id="ignore?-instance_method">
|
|
2243
|
-
|
|
2244
|
-
#<strong>ignore?</strong> ⇒ <tt>Boolean</tt>
|
|
2245
|
-
|
|
2246
|
-
|
|
2247
|
-
|
|
2248
|
-
|
|
2249
|
-
|
|
2250
|
-
</h3><div class="docstring">
|
|
2251
|
-
<div class="discussion">
|
|
2252
|
-
<p>Test if line should be ignored</p>
|
|
2253
|
-
|
|
2254
|
-
|
|
2255
|
-
</div>
|
|
2256
|
-
</div>
|
|
2257
|
-
<div class="tags">
|
|
2258
|
-
|
|
2259
|
-
<p class="tag_title">Returns:</p>
|
|
2260
|
-
<ul class="return">
|
|
2261
|
-
|
|
2262
|
-
<li>
|
|
2263
|
-
|
|
2264
|
-
|
|
2265
|
-
<span class='type'>(<tt>Boolean</tt>)</span>
|
|
2266
|
-
|
|
2267
|
-
|
|
2268
|
-
|
|
2269
|
-
—
|
|
2270
|
-
<div class='inline'><p>line is empty or comment</p>
|
|
2271
|
-
</div>
|
|
2272
|
-
|
|
2273
|
-
</li>
|
|
2274
|
-
|
|
2275
|
-
</ul>
|
|
2276
|
-
|
|
2277
|
-
</div>
|
|
2278
|
-
</div>
|
|
2279
|
-
|
|
2280
|
-
<div class="method_details ">
|
|
2281
|
-
<h3 class="signature " id="ignore_case-instance_method">
|
|
2282
|
-
|
|
2283
|
-
#<strong>ignore_case</strong>(search, case_type) ⇒ <tt><span class='object_link'><a href="Object.html" title="Object (class)">Object</a></span></tt>
|
|
2284
|
-
|
|
2285
|
-
|
|
2286
|
-
|
|
2287
|
-
|
|
2288
|
-
|
|
2289
|
-
</h3>
|
|
2290
|
-
</div>
|
|
2291
|
-
|
|
2292
|
-
<div class="method_details ">
|
|
2293
|
-
<h3 class="signature " id="is_range?-instance_method">
|
|
2294
|
-
|
|
2295
|
-
#<strong>is_range?</strong> ⇒ <tt>Boolean</tt>
|
|
2296
|
-
|
|
2297
|
-
|
|
2298
|
-
|
|
2299
|
-
|
|
2300
|
-
|
|
2301
|
-
</h3><div class="docstring">
|
|
2302
|
-
<div class="discussion">
|
|
2303
|
-
|
|
2304
|
-
|
|
2305
|
-
</div>
|
|
2306
|
-
</div>
|
|
2307
|
-
<div class="tags">
|
|
2308
|
-
|
|
2309
|
-
<p class="tag_title">Returns:</p>
|
|
2310
|
-
<ul class="return">
|
|
2311
|
-
|
|
2312
|
-
<li>
|
|
2313
|
-
|
|
2314
|
-
|
|
2315
|
-
<span class='type'>(<tt>Boolean</tt>)</span>
|
|
2316
|
-
|
|
2317
|
-
|
|
2318
|
-
|
|
2319
|
-
</li>
|
|
2320
|
-
|
|
2321
|
-
</ul>
|
|
2322
|
-
|
|
2323
|
-
</div>
|
|
2324
|
-
</div>
|
|
2325
|
-
|
|
2326
|
-
<div class="method_details ">
|
|
2327
|
-
<h3 class="signature " id="is_rx?-instance_method">
|
|
2328
|
-
|
|
2329
|
-
#<strong>is_rx?</strong> ⇒ <tt>Boolean</tt>
|
|
2330
|
-
|
|
2331
|
-
|
|
2332
|
-
|
|
2333
|
-
|
|
2334
|
-
|
|
2335
|
-
</h3><div class="docstring">
|
|
2336
|
-
<div class="discussion">
|
|
2337
|
-
<p>Determines if receiver is surrounded by slashes or starts with single quote</p>
|
|
2338
|
-
|
|
2339
|
-
|
|
2340
|
-
</div>
|
|
2341
|
-
</div>
|
|
2342
|
-
<div class="tags">
|
|
2343
|
-
|
|
2344
|
-
<p class="tag_title">Returns:</p>
|
|
2345
|
-
<ul class="return">
|
|
2346
|
-
|
|
2347
|
-
<li>
|
|
2348
|
-
|
|
2349
|
-
|
|
2350
|
-
<span class='type'>(<tt>Boolean</tt>)</span>
|
|
2351
|
-
|
|
2352
|
-
|
|
2353
|
-
|
|
2354
|
-
—
|
|
2355
|
-
<div class='inline'><p>True if regex, False otherwise.</p>
|
|
2356
|
-
</div>
|
|
2357
|
-
|
|
2358
|
-
</li>
|
|
2359
|
-
|
|
2360
|
-
</ul>
|
|
2361
|
-
|
|
2362
|
-
</div>
|
|
2363
|
-
</div>
|
|
2364
|
-
|
|
2365
|
-
<div class="method_details ">
|
|
2366
|
-
<h3 class="signature " id="last_color-instance_method">
|
|
2367
|
-
|
|
2368
|
-
#<strong>last_color</strong> ⇒ <tt><span class='object_link'><a href="" title="String (class)">String</a></span></tt>
|
|
2369
|
-
|
|
2370
|
-
|
|
2371
|
-
|
|
2372
|
-
|
|
2373
|
-
|
|
2374
|
-
</h3><div class="docstring">
|
|
2375
|
-
<div class="discussion">
|
|
2376
|
-
<p>Returns the last escape sequence from a string.</p>
|
|
2377
|
-
|
|
2378
|
-
<p>Actually returns all escape codes, with the assumption
|
|
2379
|
-
that the result of inserting them will generate the
|
|
2380
|
-
same color as was set at the end of the string.
|
|
2381
|
-
Because you can send modifiers like dark and bold
|
|
2382
|
-
separate from color codes, only using the last code
|
|
2383
|
-
may not render the same style.</p>
|
|
2384
|
-
|
|
2385
|
-
|
|
2386
|
-
</div>
|
|
2387
|
-
</div>
|
|
2388
|
-
<div class="tags">
|
|
2389
|
-
|
|
2390
|
-
<p class="tag_title">Returns:</p>
|
|
2391
|
-
<ul class="return">
|
|
2392
|
-
|
|
2393
|
-
<li>
|
|
2394
|
-
|
|
2395
|
-
|
|
2396
|
-
<span class='type'>(<tt><span class='object_link'><a href="" title="String (class)">String</a></span></tt>)</span>
|
|
2397
|
-
|
|
2398
|
-
|
|
2399
|
-
|
|
2400
|
-
—
|
|
2401
|
-
<div class='inline'><p>All escape codes in string</p>
|
|
2402
|
-
</div>
|
|
2403
|
-
|
|
2404
|
-
</li>
|
|
2405
|
-
|
|
2406
|
-
</ul>
|
|
2407
|
-
|
|
2408
|
-
</div>
|
|
2409
|
-
</div>
|
|
2410
|
-
|
|
2411
|
-
<div class="method_details ">
|
|
2412
|
-
<h3 class="signature " id="link_urls-instance_method">
|
|
2413
|
-
|
|
2414
|
-
#<strong>link_urls</strong>(**opt) ⇒ <tt><span class='object_link'><a href="Object.html" title="Object (class)">Object</a></span></tt>
|
|
2415
|
-
|
|
2416
|
-
|
|
2417
|
-
|
|
2418
|
-
|
|
2419
|
-
|
|
2420
|
-
</h3><div class="docstring">
|
|
2421
|
-
<div class="discussion">
|
|
2422
|
-
<p>Turn raw urls into HTML links</p>
|
|
2423
|
-
|
|
2424
|
-
<p>:html (default)</p>
|
|
2425
|
-
|
|
2426
|
-
|
|
2427
|
-
</div>
|
|
2428
|
-
</div>
|
|
2429
|
-
<div class="tags">
|
|
2430
|
-
<p class="tag_title">Parameters:</p>
|
|
2431
|
-
<ul class="param">
|
|
2432
|
-
|
|
2433
|
-
<li>
|
|
2434
|
-
|
|
2435
|
-
<span class='name'>opt</span>
|
|
2436
|
-
|
|
2437
|
-
|
|
2438
|
-
<span class='type'>(<tt><span class='object_link'><a href="Hash.html" title="Hash (class)">Hash</a></span></tt>)</span>
|
|
2439
|
-
|
|
2440
|
-
|
|
2441
|
-
|
|
2442
|
-
—
|
|
2443
|
-
<div class='inline'><p>Additional Options</p>
|
|
2444
|
-
</div>
|
|
2445
|
-
|
|
2446
|
-
</li>
|
|
2447
|
-
|
|
2448
|
-
</ul>
|
|
2449
|
-
|
|
2450
|
-
|
|
2451
|
-
|
|
2452
|
-
|
|
2453
|
-
<p class="tag_title">Options Hash (<tt>**opt</tt>):</p>
|
|
2454
|
-
<ul class="option">
|
|
2455
|
-
|
|
2456
|
-
<li>
|
|
2457
|
-
<span class="name">:format</span>
|
|
2458
|
-
<span class="type">(<tt><span class='object_link'><a href="Symbol.html" title="Symbol (class)">Symbol</a></span></tt>)</span>
|
|
2459
|
-
<span class="default">
|
|
2460
|
-
|
|
2461
|
-
</span>
|
|
2462
|
-
|
|
2463
|
-
— <div class='inline'><p>can be :markdown or</p>
|
|
2464
|
-
</div>
|
|
2465
|
-
|
|
2466
|
-
</li>
|
|
2467
|
-
|
|
2468
|
-
</ul>
|
|
2469
|
-
|
|
2470
|
-
|
|
2471
|
-
|
|
2472
|
-
</div>
|
|
2473
|
-
</div>
|
|
2474
|
-
|
|
2475
|
-
<div class="method_details ">
|
|
2476
|
-
<h3 class="signature " id="link_urls!-instance_method">
|
|
2477
|
-
|
|
2478
|
-
#<strong>link_urls!</strong>(**opt) ⇒ <tt><span class='object_link'><a href="Object.html" title="Object (class)">Object</a></span></tt>
|
|
2479
|
-
|
|
2480
|
-
|
|
2481
|
-
|
|
2482
|
-
|
|
2483
|
-
|
|
2484
|
-
</h3><div class="docstring">
|
|
2485
|
-
<div class="discussion">
|
|
2486
|
-
|
|
2487
|
-
|
|
2488
|
-
</div>
|
|
2489
|
-
</div>
|
|
2490
|
-
<div class="tags">
|
|
2491
|
-
|
|
2492
|
-
|
|
2493
|
-
<p class="tag_title">See Also:</p>
|
|
2494
|
-
<ul class="see">
|
|
2495
|
-
|
|
2496
|
-
<li><span class='object_link'><a href="#link_urls-instance_method" title="String#link_urls (method)">#link_urls</a></span></li>
|
|
2497
|
-
|
|
2498
|
-
</ul>
|
|
2499
|
-
|
|
2500
|
-
</div>
|
|
2501
|
-
</div>
|
|
2502
|
-
|
|
2503
|
-
<div class="method_details ">
|
|
2504
|
-
<h3 class="signature " id="normalize_age-instance_method">
|
|
2505
|
-
|
|
2506
|
-
#<strong>normalize_age</strong>(default = :newest) ⇒ <tt><span class='object_link'><a href="Symbol.html" title="Symbol (class)">Symbol</a></span></tt>
|
|
2507
|
-
|
|
2508
|
-
|
|
2509
|
-
|
|
2510
|
-
|
|
2511
|
-
|
|
2512
|
-
</h3><div class="docstring">
|
|
2513
|
-
<div class="discussion">
|
|
2514
|
-
<p>Convert an age string to a qualified type</p>
|
|
2515
|
-
|
|
2516
|
-
|
|
2517
|
-
</div>
|
|
2518
|
-
</div>
|
|
2519
|
-
<div class="tags">
|
|
2520
|
-
|
|
2521
|
-
<p class="tag_title">Returns:</p>
|
|
2522
|
-
<ul class="return">
|
|
2523
|
-
|
|
2524
|
-
<li>
|
|
2525
|
-
|
|
2526
|
-
|
|
2527
|
-
<span class='type'>(<tt><span class='object_link'><a href="Symbol.html" title="Symbol (class)">Symbol</a></span></tt>)</span>
|
|
2528
|
-
|
|
2529
|
-
|
|
2530
|
-
|
|
2531
|
-
—
|
|
2532
|
-
<div class='inline'><p>:oldest or :newest</p>
|
|
2533
|
-
</div>
|
|
2534
|
-
|
|
2535
|
-
</li>
|
|
2536
|
-
|
|
2537
|
-
</ul>
|
|
2538
|
-
|
|
2539
|
-
</div>
|
|
2540
|
-
</div>
|
|
2541
|
-
|
|
2542
|
-
<div class="method_details ">
|
|
2543
|
-
<h3 class="signature " id="normalize_age!-instance_method">
|
|
2544
|
-
|
|
2545
|
-
#<strong>normalize_age!</strong>(default = :newest) ⇒ <tt><span class='object_link'><a href="Object.html" title="Object (class)">Object</a></span></tt>
|
|
2546
|
-
|
|
2547
|
-
|
|
2548
|
-
|
|
2549
|
-
|
|
2550
|
-
|
|
2551
|
-
</h3><div class="docstring">
|
|
2552
|
-
<div class="discussion">
|
|
2553
|
-
|
|
2554
|
-
|
|
2555
|
-
</div>
|
|
2556
|
-
</div>
|
|
2557
|
-
<div class="tags">
|
|
2558
|
-
|
|
2559
|
-
|
|
2560
|
-
<p class="tag_title">See Also:</p>
|
|
2561
|
-
<ul class="see">
|
|
2562
|
-
|
|
2563
|
-
<li><span class='object_link'><a href="#normalize_age-instance_method" title="String#normalize_age (method)">#normalize_age</a></span></li>
|
|
2564
|
-
|
|
2565
|
-
</ul>
|
|
2566
|
-
|
|
2567
|
-
</div>
|
|
2568
|
-
</div>
|
|
2569
|
-
|
|
2570
|
-
<div class="method_details ">
|
|
2571
|
-
<h3 class="signature " id="normalize_bool-instance_method">
|
|
2572
|
-
|
|
2573
|
-
#<strong>normalize_bool</strong>(default = :and) ⇒ <tt><span class='object_link'><a href="Object.html" title="Object (class)">Object</a></span></tt>
|
|
2574
|
-
|
|
2575
|
-
|
|
2576
|
-
|
|
2577
|
-
|
|
2578
|
-
|
|
2579
|
-
</h3><div class="docstring">
|
|
2580
|
-
<div class="discussion">
|
|
2581
|
-
<p>Convert a boolean string to a symbol</p>
|
|
2582
|
-
|
|
2583
|
-
|
|
2584
|
-
</div>
|
|
2585
|
-
</div>
|
|
2586
|
-
<div class="tags">
|
|
2587
|
-
|
|
2588
|
-
<p class="tag_title">Returns:</p>
|
|
2589
|
-
<ul class="return">
|
|
2590
|
-
|
|
2591
|
-
<li>
|
|
2592
|
-
|
|
2593
|
-
|
|
2594
|
-
<span class='type'></span>
|
|
2595
|
-
|
|
2596
|
-
|
|
2597
|
-
|
|
2598
|
-
|
|
2599
|
-
<div class='inline'><p>Symbol :and, :or, or :not</p>
|
|
2600
|
-
</div>
|
|
2601
|
-
|
|
2602
|
-
</li>
|
|
2603
|
-
|
|
2604
|
-
</ul>
|
|
2605
|
-
|
|
2606
|
-
</div>
|
|
2607
|
-
</div>
|
|
2608
|
-
|
|
2609
|
-
<div class="method_details ">
|
|
2610
|
-
<h3 class="signature " id="normalize_bool!-instance_method">
|
|
2611
|
-
|
|
2612
|
-
#<strong>normalize_bool!</strong>(default = :and) ⇒ <tt><span class='object_link'><a href="Object.html" title="Object (class)">Object</a></span></tt>
|
|
2613
|
-
|
|
2614
|
-
|
|
2615
|
-
|
|
2616
|
-
|
|
2617
|
-
|
|
2618
|
-
</h3><div class="docstring">
|
|
2619
|
-
<div class="discussion">
|
|
2620
|
-
|
|
2621
|
-
|
|
2622
|
-
</div>
|
|
2623
|
-
</div>
|
|
2624
|
-
<div class="tags">
|
|
2625
|
-
|
|
2626
|
-
|
|
2627
|
-
<p class="tag_title">See Also:</p>
|
|
2628
|
-
<ul class="see">
|
|
2629
|
-
|
|
2630
|
-
<li><span class='object_link'><a href="#normalize_bool-instance_method" title="String#normalize_bool (method)">#normalize_bool</a></span></li>
|
|
2631
|
-
|
|
2632
|
-
</ul>
|
|
2633
|
-
|
|
2634
|
-
</div>
|
|
2635
|
-
</div>
|
|
2636
|
-
|
|
2637
|
-
<div class="method_details ">
|
|
2638
|
-
<h3 class="signature " id="normalize_case-instance_method">
|
|
2639
|
-
|
|
2640
|
-
#<strong>normalize_case</strong>(default = :smart) ⇒ <tt><span class='object_link'><a href="Object.html" title="Object (class)">Object</a></span></tt>
|
|
2641
|
-
|
|
2642
|
-
|
|
2643
|
-
|
|
2644
|
-
|
|
2645
|
-
|
|
2646
|
-
</h3><div class="docstring">
|
|
2647
|
-
<div class="discussion">
|
|
2648
|
-
<p>Convert a case sensitivity string to a symbol</p>
|
|
2649
|
-
|
|
2650
|
-
|
|
2651
|
-
</div>
|
|
2652
|
-
</div>
|
|
2653
|
-
<div class="tags">
|
|
2654
|
-
|
|
2655
|
-
<p class="tag_title">Returns:</p>
|
|
2656
|
-
<ul class="return">
|
|
2657
|
-
|
|
2658
|
-
<li>
|
|
2659
|
-
|
|
2660
|
-
|
|
2661
|
-
<span class='type'></span>
|
|
2662
|
-
|
|
2663
|
-
|
|
2664
|
-
|
|
2665
|
-
|
|
2666
|
-
<div class='inline'><p>Symbol :smart, :sensitive, :ignore</p>
|
|
2667
|
-
</div>
|
|
2668
|
-
|
|
2669
|
-
</li>
|
|
2670
|
-
|
|
2671
|
-
</ul>
|
|
2672
|
-
|
|
2673
|
-
</div>
|
|
2674
|
-
</div>
|
|
2675
|
-
|
|
2676
|
-
<div class="method_details ">
|
|
2677
|
-
<h3 class="signature " id="normalize_case!-instance_method">
|
|
2678
|
-
|
|
2679
|
-
#<strong>normalize_case!</strong> ⇒ <tt><span class='object_link'><a href="Object.html" title="Object (class)">Object</a></span></tt>
|
|
2680
|
-
|
|
2681
|
-
|
|
2682
|
-
|
|
2683
|
-
|
|
2684
|
-
|
|
2685
|
-
</h3><div class="docstring">
|
|
2686
|
-
<div class="discussion">
|
|
2687
|
-
|
|
2688
|
-
|
|
2689
|
-
</div>
|
|
2690
|
-
</div>
|
|
2691
|
-
<div class="tags">
|
|
2692
|
-
|
|
2693
|
-
|
|
2694
|
-
<p class="tag_title">See Also:</p>
|
|
2695
|
-
<ul class="see">
|
|
2696
|
-
|
|
2697
|
-
<li><span class='object_link'><a href="#normalize_case-instance_method" title="String#normalize_case (method)">#normalize_case</a></span></li>
|
|
2698
|
-
|
|
2699
|
-
</ul>
|
|
2700
|
-
|
|
2701
|
-
</div>
|
|
2702
|
-
</div>
|
|
2703
|
-
|
|
2704
|
-
<div class="method_details ">
|
|
2705
|
-
<h3 class="signature " id="normalize_matching-instance_method">
|
|
2706
|
-
|
|
2707
|
-
#<strong>normalize_matching</strong>(default = :pattern) ⇒ <tt><span class='object_link'><a href="Object.html" title="Object (class)">Object</a></span></tt>
|
|
2708
|
-
|
|
2709
|
-
|
|
2710
|
-
|
|
2711
|
-
|
|
2712
|
-
|
|
2713
|
-
</h3><div class="docstring">
|
|
2714
|
-
<div class="discussion">
|
|
2715
|
-
<p>Convert a matching configuration string to a symbol</p>
|
|
2716
|
-
|
|
2717
|
-
|
|
2718
|
-
</div>
|
|
2719
|
-
</div>
|
|
2720
|
-
<div class="tags">
|
|
2721
|
-
<p class="tag_title">Parameters:</p>
|
|
2722
|
-
<ul class="param">
|
|
2723
|
-
|
|
2724
|
-
<li>
|
|
2725
|
-
|
|
2726
|
-
<span class='name'>default</span>
|
|
2727
|
-
|
|
2728
|
-
|
|
2729
|
-
<span class='type'>(<tt><span class='object_link'><a href="Symbol.html" title="Symbol (class)">Symbol</a></span></tt>)</span>
|
|
2730
|
-
|
|
2731
|
-
|
|
2732
|
-
<em class="default">(defaults to: <tt>:pattern</tt>)</em>
|
|
2733
|
-
|
|
2734
|
-
|
|
2735
|
-
—
|
|
2736
|
-
<div class='inline'><p>the default matching
|
|
2737
|
-
type to return if the string
|
|
2738
|
-
doesn't match a known symbol</p>
|
|
2739
|
-
</div>
|
|
2740
|
-
|
|
2741
|
-
</li>
|
|
2742
|
-
|
|
2743
|
-
</ul>
|
|
2744
|
-
|
|
2745
|
-
<p class="tag_title">Returns:</p>
|
|
2746
|
-
<ul class="return">
|
|
2747
|
-
|
|
2748
|
-
<li>
|
|
2749
|
-
|
|
2750
|
-
|
|
2751
|
-
<span class='type'></span>
|
|
2752
|
-
|
|
2753
|
-
|
|
2754
|
-
|
|
2755
|
-
|
|
2756
|
-
<div class='inline'><p>Symbol :fuzzy, :pattern, :exact</p>
|
|
2757
|
-
</div>
|
|
2758
|
-
|
|
2759
|
-
</li>
|
|
2760
|
-
|
|
2761
|
-
</ul>
|
|
2762
|
-
|
|
2763
|
-
</div>
|
|
2764
|
-
</div>
|
|
2765
|
-
|
|
2766
|
-
<div class="method_details ">
|
|
2767
|
-
<h3 class="signature " id="normalize_matching!-instance_method">
|
|
2768
|
-
|
|
2769
|
-
#<strong>normalize_matching!</strong>(default = :pattern) ⇒ <tt><span class='object_link'><a href="Object.html" title="Object (class)">Object</a></span></tt>
|
|
2770
|
-
|
|
2771
|
-
|
|
2772
|
-
|
|
2773
|
-
|
|
2774
|
-
|
|
2775
|
-
</h3><div class="docstring">
|
|
2776
|
-
<div class="discussion">
|
|
2777
|
-
|
|
2778
|
-
|
|
2779
|
-
</div>
|
|
2780
|
-
</div>
|
|
2781
|
-
<div class="tags">
|
|
2782
|
-
|
|
2783
|
-
|
|
2784
|
-
<p class="tag_title">See Also:</p>
|
|
2785
|
-
<ul class="see">
|
|
2786
|
-
|
|
2787
|
-
<li><span class='object_link'><a href="#normalize_matching-instance_method" title="String#normalize_matching (method)">#normalize_matching</a></span></li>
|
|
2788
|
-
|
|
2789
|
-
</ul>
|
|
2790
|
-
|
|
2791
|
-
</div>
|
|
2792
|
-
</div>
|
|
2793
|
-
|
|
2794
|
-
<div class="method_details ">
|
|
2795
|
-
<h3 class="signature " id="normalize_order-instance_method">
|
|
2796
|
-
|
|
2797
|
-
#<strong>normalize_order</strong>(default = 'asc') ⇒ <tt><span class='object_link'><a href="Object.html" title="Object (class)">Object</a></span></tt>
|
|
2798
|
-
|
|
2799
|
-
|
|
2800
|
-
|
|
2801
|
-
|
|
2802
|
-
|
|
2803
|
-
</h3>
|
|
2804
|
-
</div>
|
|
2805
|
-
|
|
2806
|
-
<div class="method_details ">
|
|
2807
|
-
<h3 class="signature " id="normalize_order!-instance_method">
|
|
2808
|
-
|
|
2809
|
-
#<strong>normalize_order!</strong>(default = 'asc') ⇒ <tt><span class='object_link'><a href="" title="String (class)">String</a></span></tt>
|
|
2810
|
-
|
|
2811
|
-
|
|
2812
|
-
|
|
2813
|
-
|
|
2814
|
-
|
|
2815
|
-
</h3><div class="docstring">
|
|
2816
|
-
<div class="discussion">
|
|
2817
|
-
<p>Convert a sort order string to a qualified type</p>
|
|
2818
|
-
|
|
2819
|
-
|
|
2820
|
-
</div>
|
|
2821
|
-
</div>
|
|
2822
|
-
<div class="tags">
|
|
2823
|
-
|
|
2824
|
-
<p class="tag_title">Returns:</p>
|
|
2825
|
-
<ul class="return">
|
|
2826
|
-
|
|
2827
|
-
<li>
|
|
2828
|
-
|
|
2829
|
-
|
|
2830
|
-
<span class='type'>(<tt><span class='object_link'><a href="" title="String (class)">String</a></span></tt>)</span>
|
|
2831
|
-
|
|
2832
|
-
|
|
2833
|
-
|
|
2834
|
-
—
|
|
2835
|
-
<div class='inline'><p>'asc' or 'desc'</p>
|
|
2836
|
-
</div>
|
|
2837
|
-
|
|
2838
|
-
</li>
|
|
2839
|
-
|
|
2840
|
-
</ul>
|
|
2841
|
-
|
|
2842
|
-
</div>
|
|
2843
|
-
</div>
|
|
2844
|
-
|
|
2845
|
-
<div class="method_details ">
|
|
2846
|
-
<h3 class="signature " id="normalize_trigger-instance_method">
|
|
2847
|
-
|
|
2848
|
-
#<strong>normalize_trigger</strong> ⇒ <tt><span class='object_link'><a href="" title="String (class)">String</a></span></tt>
|
|
2849
|
-
|
|
2850
|
-
|
|
2851
|
-
|
|
2852
|
-
|
|
2853
|
-
|
|
2854
|
-
</h3><div class="docstring">
|
|
2855
|
-
<div class="discussion">
|
|
2856
|
-
<p>Adds ?: to any parentheticals in a regular expression
|
|
2857
|
-
to avoid match groups</p>
|
|
2858
|
-
|
|
2859
|
-
|
|
2860
|
-
</div>
|
|
2861
|
-
</div>
|
|
2862
|
-
<div class="tags">
|
|
2863
|
-
|
|
2864
|
-
<p class="tag_title">Returns:</p>
|
|
2865
|
-
<ul class="return">
|
|
2866
|
-
|
|
2867
|
-
<li>
|
|
2868
|
-
|
|
2869
|
-
|
|
2870
|
-
<span class='type'>(<tt><span class='object_link'><a href="" title="String (class)">String</a></span></tt>)</span>
|
|
2871
|
-
|
|
2872
|
-
|
|
2873
|
-
|
|
2874
|
-
—
|
|
2875
|
-
<div class='inline'><p>modified regular expression</p>
|
|
2876
|
-
</div>
|
|
2877
|
-
|
|
2878
|
-
</li>
|
|
2879
|
-
|
|
2880
|
-
</ul>
|
|
2881
|
-
|
|
2882
|
-
</div>
|
|
2883
|
-
</div>
|
|
2884
|
-
|
|
2885
|
-
<div class="method_details ">
|
|
2886
|
-
<h3 class="signature " id="normalize_trigger!-instance_method">
|
|
2887
|
-
|
|
2888
|
-
#<strong>normalize_trigger!</strong> ⇒ <tt><span class='object_link'><a href="Object.html" title="Object (class)">Object</a></span></tt>
|
|
2889
|
-
|
|
2890
|
-
|
|
2891
|
-
|
|
2892
|
-
|
|
2893
|
-
|
|
2894
|
-
</h3><div class="docstring">
|
|
2895
|
-
<div class="discussion">
|
|
2896
|
-
|
|
2897
|
-
|
|
2898
|
-
</div>
|
|
2899
|
-
</div>
|
|
2900
|
-
<div class="tags">
|
|
2901
|
-
|
|
2902
|
-
|
|
2903
|
-
<p class="tag_title">See Also:</p>
|
|
2904
|
-
<ul class="see">
|
|
2905
|
-
|
|
2906
|
-
<li><span class='object_link'><a href="#normalize_trigger-instance_method" title="String#normalize_trigger (method)">#normalize_trigger</a></span></li>
|
|
2907
|
-
|
|
2908
|
-
</ul>
|
|
2909
|
-
|
|
2910
|
-
</div>
|
|
2911
|
-
</div>
|
|
2912
|
-
|
|
2913
|
-
<div class="method_details ">
|
|
2914
|
-
<h3 class="signature " id="remove_at-instance_method">
|
|
2915
|
-
|
|
2916
|
-
#<strong>remove_at</strong> ⇒ <tt><span class='object_link'><a href="" title="String (class)">String</a></span></tt>
|
|
2917
|
-
|
|
2918
|
-
|
|
2919
|
-
|
|
2920
|
-
|
|
2921
|
-
|
|
2922
|
-
</h3><div class="docstring">
|
|
2923
|
-
<div class="discussion">
|
|
2924
|
-
<p>Removes @ prefix if needed, maintains +/- prefix</p>
|
|
2925
|
-
|
|
2926
|
-
|
|
2927
|
-
</div>
|
|
2928
|
-
</div>
|
|
2929
|
-
<div class="tags">
|
|
2930
|
-
|
|
2931
|
-
<p class="tag_title">Returns:</p>
|
|
2932
|
-
<ul class="return">
|
|
2933
|
-
|
|
2934
|
-
<li>
|
|
2935
|
-
|
|
2936
|
-
|
|
2937
|
-
<span class='type'>(<tt><span class='object_link'><a href="" title="String (class)">String</a></span></tt>)</span>
|
|
2938
|
-
|
|
2939
|
-
|
|
2940
|
-
|
|
2941
|
-
—
|
|
2942
|
-
<div class='inline'><p>string without @ prefix</p>
|
|
2943
|
-
</div>
|
|
2944
|
-
|
|
2945
|
-
</li>
|
|
2946
|
-
|
|
2947
|
-
</ul>
|
|
2948
|
-
|
|
2949
|
-
</div>
|
|
2950
|
-
</div>
|
|
2951
|
-
|
|
2952
|
-
<div class="method_details ">
|
|
2953
|
-
<h3 class="signature " id="remove_self_links-instance_method">
|
|
2954
|
-
|
|
2955
|
-
#<strong>remove_self_links</strong> ⇒ <tt><span class='object_link'><a href="Object.html" title="Object (class)">Object</a></span></tt>
|
|
2956
|
-
|
|
2957
|
-
|
|
2958
|
-
|
|
2959
|
-
|
|
2960
|
-
|
|
2961
|
-
</h3><div class="docstring">
|
|
2962
|
-
<div class="discussion">
|
|
2963
|
-
<p>Remove <self-linked> formatting</p>
|
|
2964
|
-
|
|
2965
|
-
|
|
2966
|
-
</div>
|
|
2967
|
-
</div>
|
|
2968
|
-
<div class="tags">
|
|
2969
|
-
|
|
2970
|
-
|
|
2971
|
-
</div>
|
|
2972
|
-
</div>
|
|
2973
|
-
|
|
2974
|
-
<div class="method_details ">
|
|
2975
|
-
<h3 class="signature " id="replace_qualified_urls-instance_method">
|
|
2976
|
-
|
|
2977
|
-
#<strong>replace_qualified_urls</strong>(**options) ⇒ <tt><span class='object_link'><a href="Object.html" title="Object (class)">Object</a></span></tt>
|
|
2978
|
-
|
|
2979
|
-
|
|
2980
|
-
|
|
2981
|
-
|
|
2982
|
-
|
|
2983
|
-
</h3><div class="docstring">
|
|
2984
|
-
<div class="discussion">
|
|
2985
|
-
<p>Replace qualified urls</p>
|
|
2986
|
-
|
|
2987
|
-
|
|
2988
|
-
</div>
|
|
2989
|
-
</div>
|
|
2990
|
-
<div class="tags">
|
|
2991
|
-
|
|
2992
|
-
|
|
2993
|
-
</div>
|
|
2994
|
-
</div>
|
|
2995
|
-
|
|
2996
|
-
<div class="method_details ">
|
|
2997
|
-
<h3 class="signature " id="set_type-instance_method">
|
|
2998
|
-
|
|
2999
|
-
#<strong>set_type</strong>(kind = nil) ⇒ <tt><span class='object_link'><a href="Object.html" title="Object (class)">Object</a></span></tt>
|
|
3000
|
-
|
|
3001
|
-
|
|
3002
|
-
|
|
3003
|
-
|
|
3004
|
-
|
|
3005
|
-
</h3><div class="docstring">
|
|
3006
|
-
<div class="discussion">
|
|
3007
|
-
<p>Convert a string value to an appropriate type. If
|
|
3008
|
-
kind is not specified, '[one, two]' becomes an Array,
|
|
3009
|
-
'1' becomes Integer, '1.5' becomes Float, 'true' or
|
|
3010
|
-
'yes' becomes TrueClass, 'false' or 'no' becomes
|
|
3011
|
-
FalseClass.</p>
|
|
3012
|
-
|
|
3013
|
-
|
|
3014
|
-
</div>
|
|
3015
|
-
</div>
|
|
3016
|
-
<div class="tags">
|
|
3017
|
-
<p class="tag_title">Parameters:</p>
|
|
3018
|
-
<ul class="param">
|
|
3019
|
-
|
|
3020
|
-
<li>
|
|
3021
|
-
|
|
3022
|
-
<span class='name'>kind</span>
|
|
3023
|
-
|
|
3024
|
-
|
|
3025
|
-
<span class='type'>(<tt><span class='object_link'><a href="" title="String (class)">String</a></span></tt>)</span>
|
|
3026
|
-
|
|
3027
|
-
|
|
3028
|
-
<em class="default">(defaults to: <tt>nil</tt>)</em>
|
|
3029
|
-
|
|
3030
|
-
|
|
3031
|
-
—
|
|
3032
|
-
<div class='inline'><p>specify string, array,
|
|
3033
|
-
integer, float, symbol, or boolean
|
|
3034
|
-
(falls back to string if value is
|
|
3035
|
-
not recognized)</p>
|
|
3036
|
-
</div>
|
|
3037
|
-
|
|
3038
|
-
</li>
|
|
3039
|
-
|
|
3040
|
-
</ul>
|
|
3041
|
-
|
|
3042
|
-
<p class="tag_title">Returns:</p>
|
|
3043
|
-
<ul class="return">
|
|
3044
|
-
|
|
3045
|
-
<li>
|
|
3046
|
-
|
|
3047
|
-
|
|
3048
|
-
<span class='type'></span>
|
|
3049
|
-
|
|
3050
|
-
|
|
3051
|
-
|
|
3052
|
-
|
|
3053
|
-
<div class='inline'><p>Converted object type</p>
|
|
3054
|
-
</div>
|
|
3055
|
-
|
|
3056
|
-
</li>
|
|
3057
|
-
|
|
3058
|
-
</ul>
|
|
3059
|
-
|
|
3060
|
-
</div>
|
|
3061
|
-
</div>
|
|
3062
|
-
|
|
3063
|
-
<div class="method_details ">
|
|
3064
|
-
<h3 class="signature " id="simple_wrap-instance_method">
|
|
3065
|
-
|
|
3066
|
-
#<strong>simple_wrap</strong>(width) ⇒ <tt><span class='object_link'><a href="Object.html" title="Object (class)">Object</a></span></tt>
|
|
3067
|
-
|
|
3068
|
-
|
|
3069
|
-
|
|
3070
|
-
|
|
3071
|
-
|
|
3072
|
-
</h3>
|
|
3073
|
-
</div>
|
|
3074
|
-
|
|
3075
|
-
<div class="method_details ">
|
|
3076
|
-
<h3 class="signature " id="split_date_range-instance_method">
|
|
3077
|
-
|
|
3078
|
-
#<strong>split_date_range</strong> ⇒ <tt><span class='object_link'><a href="Array.html" title="Array (class)">Array</a></span><DateTime></tt>
|
|
3079
|
-
|
|
3080
|
-
|
|
3081
|
-
|
|
3082
|
-
|
|
3083
|
-
|
|
3084
|
-
</h3><div class="docstring">
|
|
3085
|
-
<div class="discussion">
|
|
3086
|
-
<p>Splits a range string and returns an array of
|
|
3087
|
-
DateTime objects as [start, end]. If only one date is
|
|
3088
|
-
given, end time is nil.</p>
|
|
3089
|
-
|
|
3090
|
-
|
|
3091
|
-
</div>
|
|
3092
|
-
</div>
|
|
3093
|
-
<div class="tags">
|
|
3094
|
-
|
|
3095
|
-
<div class="examples">
|
|
3096
|
-
<p class="tag_title">Examples:</p>
|
|
3097
|
-
|
|
3098
|
-
|
|
3099
|
-
<p class="example_title"><div class='inline'><p>Process a natural language date range</p>
|
|
3100
|
-
</div></p>
|
|
3101
|
-
|
|
3102
|
-
<pre class="example code"><code><span class='tstring'><span class='tstring_beg'>"</span><span class='tstring_content'>mon 3pm to mon 5pm</span><span class='tstring_end'>"</span></span><span class='period'>.</span><span class='id identifier rubyid_split_date_range'>split_date_range</span></code></pre>
|
|
3103
|
-
|
|
3104
|
-
</div>
|
|
3105
|
-
|
|
3106
|
-
<p class="tag_title">Returns:</p>
|
|
3107
|
-
<ul class="return">
|
|
3108
|
-
|
|
3109
|
-
<li>
|
|
3110
|
-
|
|
3111
|
-
|
|
3112
|
-
<span class='type'>(<tt><span class='object_link'><a href="Array.html" title="Array (class)">Array</a></span><DateTime></tt>)</span>
|
|
3113
|
-
|
|
3114
|
-
|
|
3115
|
-
|
|
3116
|
-
—
|
|
3117
|
-
<div class='inline'><p>Start and end dates as
|
|
3118
|
-
array</p>
|
|
3119
|
-
</div>
|
|
3120
|
-
|
|
3121
|
-
</li>
|
|
3122
|
-
|
|
3123
|
-
</ul>
|
|
3124
|
-
|
|
3125
|
-
</div>
|
|
3126
|
-
</div>
|
|
3127
|
-
|
|
3128
|
-
<div class="method_details ">
|
|
3129
|
-
<h3 class="signature " id="tag-instance_method">
|
|
3130
|
-
|
|
3131
|
-
#<strong>tag</strong>(tag, value: nil, remove: false, rename_to: nil, regex: false, single: false, force: false) ⇒ <tt><span class='object_link'><a href="" title="String (class)">String</a></span></tt>
|
|
3132
|
-
|
|
3133
|
-
|
|
3134
|
-
|
|
3135
|
-
|
|
746
|
+
|
|
3136
747
|
|
|
3137
748
|
</h3><div class="docstring">
|
|
3138
749
|
<div class="discussion">
|
|
3139
|
-
<p>Add, rename, or remove a tag</p>
|
|
3140
|
-
|
|
3141
|
-
|
|
3142
|
-
</div>
|
|
3143
|
-
</div>
|
|
3144
|
-
<div class="tags">
|
|
3145
|
-
<p class="tag_title">Parameters:</p>
|
|
3146
|
-
<ul class="param">
|
|
3147
|
-
|
|
3148
|
-
<li>
|
|
3149
|
-
|
|
3150
|
-
<span class='name'>tag</span>
|
|
3151
|
-
|
|
3152
|
-
|
|
3153
|
-
<span class='type'></span>
|
|
3154
|
-
|
|
3155
|
-
|
|
3156
|
-
|
|
3157
|
-
—
|
|
3158
|
-
<div class='inline'><p>The tag</p>
|
|
3159
|
-
</div>
|
|
3160
|
-
|
|
3161
|
-
</li>
|
|
3162
|
-
|
|
3163
|
-
<li>
|
|
3164
|
-
|
|
3165
|
-
<span class='name'>value</span>
|
|
3166
|
-
|
|
3167
|
-
|
|
3168
|
-
<span class='type'>(<tt><span class='object_link'><a href="" title="String (class)">String</a></span></tt>)</span>
|
|
3169
|
-
|
|
3170
|
-
|
|
3171
|
-
<em class="default">(defaults to: <tt>nil</tt>)</em>
|
|
3172
|
-
|
|
3173
|
-
|
|
3174
|
-
—
|
|
3175
|
-
<div class='inline'><p>Value for tag (@tag(value))</p>
|
|
3176
|
-
</div>
|
|
3177
|
-
|
|
3178
|
-
</li>
|
|
3179
|
-
|
|
3180
|
-
<li>
|
|
3181
|
-
|
|
3182
|
-
<span class='name'>remove</span>
|
|
3183
|
-
|
|
3184
|
-
|
|
3185
|
-
<span class='type'>(<tt>Boolean</tt>)</span>
|
|
3186
|
-
|
|
3187
|
-
|
|
3188
|
-
<em class="default">(defaults to: <tt>false</tt>)</em>
|
|
3189
|
-
|
|
3190
|
-
|
|
3191
|
-
—
|
|
3192
|
-
<div class='inline'><p>Remove the tag instead of adding</p>
|
|
3193
|
-
</div>
|
|
3194
|
-
|
|
3195
|
-
</li>
|
|
3196
|
-
|
|
3197
|
-
<li>
|
|
3198
|
-
|
|
3199
|
-
<span class='name'>rename_to</span>
|
|
3200
|
-
|
|
3201
|
-
|
|
3202
|
-
<span class='type'>(<tt><span class='object_link'><a href="" title="String (class)">String</a></span></tt>)</span>
|
|
3203
|
-
|
|
3204
|
-
|
|
3205
|
-
<em class="default">(defaults to: <tt>nil</tt>)</em>
|
|
3206
|
-
|
|
3207
|
-
|
|
3208
|
-
—
|
|
3209
|
-
<div class='inline'><p>Replace tag with this tag</p>
|
|
3210
|
-
</div>
|
|
3211
|
-
|
|
3212
|
-
</li>
|
|
3213
|
-
|
|
3214
|
-
<li>
|
|
3215
|
-
|
|
3216
|
-
<span class='name'>regex</span>
|
|
3217
|
-
|
|
3218
|
-
|
|
3219
|
-
<span class='type'>(<tt>Boolean</tt>)</span>
|
|
3220
|
-
|
|
3221
|
-
|
|
3222
|
-
<em class="default">(defaults to: <tt>false</tt>)</em>
|
|
3223
|
-
|
|
3224
|
-
|
|
3225
|
-
—
|
|
3226
|
-
<div class='inline'><p>Tag is regular expression</p>
|
|
3227
|
-
</div>
|
|
3228
|
-
|
|
3229
|
-
</li>
|
|
3230
|
-
|
|
3231
|
-
<li>
|
|
3232
|
-
|
|
3233
|
-
<span class='name'>single</span>
|
|
3234
|
-
|
|
3235
|
-
|
|
3236
|
-
<span class='type'>(<tt>Boolean</tt>)</span>
|
|
3237
|
-
|
|
3238
|
-
|
|
3239
|
-
<em class="default">(defaults to: <tt>false</tt>)</em>
|
|
3240
|
-
|
|
3241
|
-
|
|
3242
|
-
—
|
|
3243
|
-
<div class='inline'><p>Operating on a single item (for logging)</p>
|
|
3244
|
-
</div>
|
|
3245
|
-
|
|
3246
|
-
</li>
|
|
3247
|
-
|
|
3248
|
-
<li>
|
|
3249
|
-
|
|
3250
|
-
<span class='name'>force</span>
|
|
3251
|
-
|
|
3252
|
-
|
|
3253
|
-
<span class='type'>(<tt>Boolean</tt>)</span>
|
|
3254
|
-
|
|
3255
|
-
|
|
3256
|
-
<em class="default">(defaults to: <tt>false</tt>)</em>
|
|
3257
|
-
|
|
3258
|
-
|
|
3259
|
-
—
|
|
3260
|
-
<div class='inline'><p>With rename_to, add tag if it doesn't exist</p>
|
|
3261
|
-
</div>
|
|
3262
|
-
|
|
3263
|
-
</li>
|
|
3264
|
-
|
|
3265
|
-
</ul>
|
|
3266
|
-
|
|
3267
|
-
<p class="tag_title">Returns:</p>
|
|
3268
|
-
<ul class="return">
|
|
3269
|
-
|
|
3270
|
-
<li>
|
|
3271
|
-
|
|
3272
|
-
|
|
3273
|
-
<span class='type'>(<tt><span class='object_link'><a href="" title="String (class)">String</a></span></tt>)</span>
|
|
3274
|
-
|
|
3275
|
-
|
|
3276
|
-
|
|
3277
|
-
—
|
|
3278
|
-
<div class='inline'><p>The string with modified tags</p>
|
|
3279
|
-
</div>
|
|
3280
|
-
|
|
3281
|
-
</li>
|
|
3282
|
-
|
|
3283
|
-
</ul>
|
|
3284
|
-
|
|
3285
|
-
</div>
|
|
3286
|
-
</div>
|
|
3287
750
|
|
|
3288
|
-
<div class="method_details ">
|
|
3289
|
-
<h3 class="signature " id="tag!-instance_method">
|
|
3290
|
-
|
|
3291
|
-
#<strong>tag!</strong>(tag, **options) ⇒ <tt><span class='object_link'><a href="Object.html" title="Object (class)">Object</a></span></tt>
|
|
3292
|
-
|
|
3293
|
-
|
|
3294
|
-
|
|
3295
|
-
|
|
3296
|
-
|
|
3297
|
-
</h3><div class="docstring">
|
|
3298
|
-
<div class="discussion">
|
|
3299
|
-
<p>Add, rename, or remove a tag in place</p>
|
|
3300
|
-
|
|
3301
751
|
|
|
3302
752
|
</div>
|
|
3303
753
|
</div>
|
|
@@ -3307,138 +757,17 @@ array</p>
|
|
|
3307
757
|
<p class="tag_title">See Also:</p>
|
|
3308
758
|
<ul class="see">
|
|
3309
759
|
|
|
3310
|
-
<li><span class='object_link'><a href="#
|
|
760
|
+
<li><span class='object_link'><a href="#normalize_case-instance_method" title="String#normalize_case (method)">#normalize_case</a></span></li>
|
|
3311
761
|
|
|
3312
762
|
</ul>
|
|
3313
763
|
|
|
3314
764
|
</div>
|
|
3315
|
-
</div>
|
|
3316
|
-
|
|
3317
|
-
<div class="method_details ">
|
|
3318
|
-
<h3 class="signature " id="time_string-instance_method">
|
|
3319
|
-
|
|
3320
|
-
#<strong>time_string</strong>(format: :dhm) ⇒ <tt><span class='object_link'><a href="Object.html" title="Object (class)">Object</a></span></tt>
|
|
3321
|
-
|
|
3322
|
-
|
|
3323
|
-
|
|
3324
|
-
|
|
3325
|
-
|
|
3326
|
-
</h3><div class="docstring">
|
|
3327
|
-
<div class="discussion">
|
|
3328
|
-
<p>Convert DD:HH:MM to a natural language string</p>
|
|
3329
|
-
|
|
3330
|
-
|
|
3331
|
-
</div>
|
|
3332
|
-
</div>
|
|
3333
|
-
<div class="tags">
|
|
3334
|
-
<p class="tag_title">Parameters:</p>
|
|
3335
|
-
<ul class="param">
|
|
3336
|
-
|
|
3337
|
-
<li>
|
|
3338
|
-
|
|
3339
|
-
<span class='name'>format</span>
|
|
3340
|
-
|
|
3341
|
-
|
|
3342
|
-
<span class='type'>(<tt><span class='object_link'><a href="Symbol.html" title="Symbol (class)">Symbol</a></span></tt>)</span>
|
|
3343
|
-
|
|
3344
|
-
|
|
3345
|
-
<em class="default">(defaults to: <tt>:dhm</tt>)</em>
|
|
3346
|
-
|
|
3347
|
-
|
|
3348
|
-
—
|
|
3349
|
-
<div class='inline'><p>The format to output (:dhm, :hm, :m, :clock, :natural)</p>
|
|
3350
|
-
</div>
|
|
3351
|
-
|
|
3352
|
-
</li>
|
|
3353
|
-
|
|
3354
|
-
</ul>
|
|
3355
|
-
|
|
3356
|
-
|
|
3357
|
-
</div>
|
|
3358
|
-
</div>
|
|
3359
|
-
|
|
3360
|
-
<div class="method_details ">
|
|
3361
|
-
<h3 class="signature " id="to_bool-instance_method">
|
|
3362
|
-
|
|
3363
|
-
#<strong>to_bool</strong> ⇒ <tt><span class='object_link'><a href="Object.html" title="Object (class)">Object</a></span></tt>
|
|
3364
|
-
|
|
3365
|
-
|
|
3366
|
-
|
|
3367
|
-
|
|
3368
|
-
|
|
3369
|
-
</h3>
|
|
3370
|
-
</div>
|
|
3371
|
-
|
|
3372
|
-
<div class="method_details ">
|
|
3373
|
-
<h3 class="signature " id="to_p-instance_method">
|
|
3374
|
-
|
|
3375
|
-
#<strong>to_p</strong>(number) ⇒ <tt><span class='object_link'><a href="Object.html" title="Object (class)">Object</a></span></tt>
|
|
3376
|
-
|
|
3377
|
-
|
|
3378
|
-
|
|
3379
|
-
|
|
3380
|
-
|
|
3381
|
-
</h3><div class="docstring">
|
|
3382
|
-
<div class="discussion">
|
|
3383
|
-
<p>Pluralize a string based on quantity</p>
|
|
3384
|
-
|
|
3385
|
-
|
|
3386
|
-
</div>
|
|
3387
|
-
</div>
|
|
3388
|
-
<div class="tags">
|
|
3389
|
-
<p class="tag_title">Parameters:</p>
|
|
3390
|
-
<ul class="param">
|
|
3391
|
-
|
|
3392
|
-
<li>
|
|
3393
|
-
|
|
3394
|
-
<span class='name'>number</span>
|
|
3395
|
-
|
|
3396
|
-
|
|
3397
|
-
<span class='type'>(<tt>Integer</tt>)</span>
|
|
3398
|
-
|
|
3399
|
-
|
|
3400
|
-
|
|
3401
|
-
—
|
|
3402
|
-
<div class='inline'><p>the quantity of the
|
|
3403
|
-
object the string represents</p>
|
|
3404
|
-
</div>
|
|
3405
|
-
|
|
3406
|
-
</li>
|
|
3407
|
-
|
|
3408
|
-
</ul>
|
|
3409
|
-
|
|
3410
|
-
|
|
3411
|
-
</div>
|
|
3412
|
-
</div>
|
|
3413
|
-
|
|
3414
|
-
<div class="method_details ">
|
|
3415
|
-
<h3 class="signature " id="to_phrase_query-instance_method">
|
|
3416
|
-
|
|
3417
|
-
#<strong>to_phrase_query</strong> ⇒ <tt><span class='object_link'><a href="Object.html" title="Object (class)">Object</a></span></tt>
|
|
3418
|
-
|
|
3419
|
-
|
|
3420
|
-
|
|
3421
|
-
|
|
3422
|
-
|
|
3423
|
-
</h3>
|
|
3424
|
-
</div>
|
|
3425
|
-
|
|
3426
|
-
<div class="method_details ">
|
|
3427
|
-
<h3 class="signature " id="to_query-instance_method">
|
|
3428
|
-
|
|
3429
|
-
#<strong>to_query</strong> ⇒ <tt><span class='object_link'><a href="Object.html" title="Object (class)">Object</a></span></tt>
|
|
3430
|
-
|
|
3431
|
-
|
|
3432
|
-
|
|
3433
|
-
|
|
3434
|
-
|
|
3435
|
-
</h3>
|
|
3436
|
-
</div>
|
|
765
|
+
</div>
|
|
3437
766
|
|
|
3438
767
|
<div class="method_details ">
|
|
3439
|
-
<h3 class="signature " id="
|
|
768
|
+
<h3 class="signature " id="normalize_color-instance_method">
|
|
3440
769
|
|
|
3441
|
-
#<strong>
|
|
770
|
+
#<strong>normalize_color</strong> ⇒ <tt><span class='object_link'><a href="" title="String (class)">String</a></span></tt>
|
|
3442
771
|
|
|
3443
772
|
|
|
3444
773
|
|
|
@@ -3446,75 +775,27 @@ object the string represents</p>
|
|
|
3446
775
|
|
|
3447
776
|
</h3><div class="docstring">
|
|
3448
777
|
<div class="discussion">
|
|
3449
|
-
<p>
|
|
3450
|
-
|
|
3451
|
-
|
|
778
|
+
<p>Normalize a color name, removing underscores,
|
|
779
|
+
replacing "bright" with "bold", and converting
|
|
780
|
+
bgbold to boldbg</p>
|
|
3452
781
|
|
|
3453
782
|
|
|
3454
783
|
</div>
|
|
3455
784
|
</div>
|
|
3456
785
|
<div class="tags">
|
|
3457
786
|
|
|
3458
|
-
<div class="examples">
|
|
3459
|
-
<p class="tag_title">Examples:</p>
|
|
3460
|
-
|
|
3461
|
-
|
|
3462
|
-
<pre class="example code"><code><span class='tstring'><span class='tstring_beg'>"</span><span class='tstring_content'>this word</span><span class='tstring_end'>"</span></span><span class='period'>.</span><span class='id identifier rubyid_to_rx'>to_rx</span><span class='lparen'>(</span><span class='int'>3</span><span class='rparen'>)</span>
|
|
3463
|
-
<span class='comment'># => /t.{0,3}h.{0,3}i.{0,3}s.{0,3}.*?w.{0,3}o.{0,3}r.{0,3}d/</span></code></pre>
|
|
3464
|
-
|
|
3465
|
-
</div>
|
|
3466
|
-
<p class="tag_title">Parameters:</p>
|
|
3467
|
-
<ul class="param">
|
|
3468
|
-
|
|
3469
|
-
<li>
|
|
3470
|
-
|
|
3471
|
-
<span class='name'>distance</span>
|
|
3472
|
-
|
|
3473
|
-
|
|
3474
|
-
<span class='type'>(<tt>Integer</tt>)</span>
|
|
3475
|
-
|
|
3476
|
-
|
|
3477
|
-
<em class="default">(defaults to: <tt>nil</tt>)</em>
|
|
3478
|
-
|
|
3479
|
-
|
|
3480
|
-
—
|
|
3481
|
-
<div class='inline'><p>Allowed distance
|
|
3482
|
-
between characters</p>
|
|
3483
|
-
</div>
|
|
3484
|
-
|
|
3485
|
-
</li>
|
|
3486
|
-
|
|
3487
|
-
<li>
|
|
3488
|
-
|
|
3489
|
-
<span class='name'>case_type</span>
|
|
3490
|
-
|
|
3491
|
-
|
|
3492
|
-
<span class='type'></span>
|
|
3493
|
-
|
|
3494
|
-
|
|
3495
|
-
<em class="default">(defaults to: <tt>nil</tt>)</em>
|
|
3496
|
-
|
|
3497
|
-
|
|
3498
|
-
—
|
|
3499
|
-
<div class='inline'><p>The case type</p>
|
|
3500
|
-
</div>
|
|
3501
|
-
|
|
3502
|
-
</li>
|
|
3503
|
-
|
|
3504
|
-
</ul>
|
|
3505
|
-
|
|
3506
787
|
<p class="tag_title">Returns:</p>
|
|
3507
788
|
<ul class="return">
|
|
3508
789
|
|
|
3509
790
|
<li>
|
|
3510
791
|
|
|
3511
792
|
|
|
3512
|
-
<span class='type'>(<tt>
|
|
793
|
+
<span class='type'>(<tt><span class='object_link'><a href="" title="String (class)">String</a></span></tt>)</span>
|
|
3513
794
|
|
|
3514
795
|
|
|
3515
796
|
|
|
3516
797
|
—
|
|
3517
|
-
<div class='inline'><p>
|
|
798
|
+
<div class='inline'><p>Normalized color name</p>
|
|
3518
799
|
</div>
|
|
3519
800
|
|
|
3520
801
|
</li>
|
|
@@ -3525,9 +806,9 @@ between characters</p>
|
|
|
3525
806
|
</div>
|
|
3526
807
|
|
|
3527
808
|
<div class="method_details ">
|
|
3528
|
-
<h3 class="signature " id="
|
|
809
|
+
<h3 class="signature " id="normalize_matching-instance_method">
|
|
3529
810
|
|
|
3530
|
-
#<strong>
|
|
811
|
+
#<strong>normalize_matching</strong>(default = :pattern) ⇒ <tt><span class='object_link'><a href="Object.html" title="Object (class)">Object</a></span></tt>
|
|
3531
812
|
|
|
3532
813
|
|
|
3533
814
|
|
|
@@ -3535,79 +816,48 @@ between characters</p>
|
|
|
3535
816
|
|
|
3536
817
|
</h3><div class="docstring">
|
|
3537
818
|
<div class="discussion">
|
|
3538
|
-
<p>Convert
|
|
819
|
+
<p>Convert a matching configuration string to a symbol</p>
|
|
3539
820
|
|
|
3540
821
|
|
|
3541
822
|
</div>
|
|
3542
823
|
</div>
|
|
3543
824
|
<div class="tags">
|
|
3544
|
-
|
|
3545
|
-
<
|
|
3546
|
-
<ul class="return">
|
|
825
|
+
<p class="tag_title">Parameters:</p>
|
|
826
|
+
<ul class="param">
|
|
3547
827
|
|
|
3548
828
|
<li>
|
|
3549
829
|
|
|
830
|
+
<span class='name'>default</span>
|
|
3550
831
|
|
|
3551
|
-
<span class='type'>(<tt>Integer</tt>)</span>
|
|
3552
|
-
|
|
3553
|
-
|
|
3554
|
-
|
|
3555
|
-
—
|
|
3556
|
-
<div class='inline'><p>rounded number of seconds</p>
|
|
3557
|
-
</div>
|
|
3558
832
|
|
|
3559
|
-
|
|
3560
|
-
|
|
3561
|
-
</ul>
|
|
3562
|
-
<p class="tag_title">Raises:</p>
|
|
3563
|
-
<ul class="raise">
|
|
3564
|
-
|
|
3565
|
-
<li>
|
|
833
|
+
<span class='type'>(<tt><span class='object_link'><a href="Symbol.html" title="Symbol (class)">Symbol</a></span></tt>)</span>
|
|
3566
834
|
|
|
3567
835
|
|
|
3568
|
-
<
|
|
836
|
+
<em class="default">(defaults to: <tt>:pattern</tt>)</em>
|
|
3569
837
|
|
|
3570
838
|
|
|
839
|
+
—
|
|
840
|
+
<div class='inline'><p>the default matching
|
|
841
|
+
type to return if the string
|
|
842
|
+
doesn't match a known symbol</p>
|
|
843
|
+
</div>
|
|
3571
844
|
|
|
3572
845
|
</li>
|
|
3573
846
|
|
|
3574
847
|
</ul>
|
|
3575
848
|
|
|
3576
|
-
</div>
|
|
3577
|
-
</div>
|
|
3578
|
-
|
|
3579
|
-
<div class="method_details ">
|
|
3580
|
-
<h3 class="signature " id="to_tags-instance_method">
|
|
3581
|
-
|
|
3582
|
-
#<strong>to_tags</strong> ⇒ <tt><span class='object_link'><a href="Array.html" title="Array (class)">Array</a></span></tt>
|
|
3583
|
-
|
|
3584
|
-
|
|
3585
|
-
|
|
3586
|
-
|
|
3587
|
-
|
|
3588
|
-
</h3><div class="docstring">
|
|
3589
|
-
<div class="discussion">
|
|
3590
|
-
<p>Convert a list of tags to an array. Tags can be with
|
|
3591
|
-
or without @ symbols, separated by any character, and
|
|
3592
|
-
can include parenthetical values (with spaces)</p>
|
|
3593
|
-
|
|
3594
|
-
|
|
3595
|
-
</div>
|
|
3596
|
-
</div>
|
|
3597
|
-
<div class="tags">
|
|
3598
|
-
|
|
3599
849
|
<p class="tag_title">Returns:</p>
|
|
3600
850
|
<ul class="return">
|
|
3601
851
|
|
|
3602
852
|
<li>
|
|
3603
853
|
|
|
3604
854
|
|
|
3605
|
-
<span class='type'
|
|
855
|
+
<span class='type'></span>
|
|
3606
856
|
|
|
3607
857
|
|
|
3608
858
|
|
|
3609
|
-
|
|
3610
|
-
<div class='inline'><p>
|
|
859
|
+
|
|
860
|
+
<div class='inline'><p>Symbol :fuzzy, :pattern, :exact</p>
|
|
3611
861
|
</div>
|
|
3612
862
|
|
|
3613
863
|
</li>
|
|
@@ -3618,9 +868,9 @@ can include parenthetical values (with spaces)</p>
|
|
|
3618
868
|
</div>
|
|
3619
869
|
|
|
3620
870
|
<div class="method_details ">
|
|
3621
|
-
<h3 class="signature " id="
|
|
871
|
+
<h3 class="signature " id="normalize_matching!-instance_method">
|
|
3622
872
|
|
|
3623
|
-
#<strong>
|
|
873
|
+
#<strong>normalize_matching!</strong>(default = :pattern) ⇒ <tt><span class='object_link'><a href="Object.html" title="Object (class)">Object</a></span></tt>
|
|
3624
874
|
|
|
3625
875
|
|
|
3626
876
|
|
|
@@ -3628,40 +878,27 @@ can include parenthetical values (with spaces)</p>
|
|
|
3628
878
|
|
|
3629
879
|
</h3><div class="docstring">
|
|
3630
880
|
<div class="discussion">
|
|
3631
|
-
|
|
3632
|
-
|
|
881
|
+
|
|
3633
882
|
|
|
3634
883
|
</div>
|
|
3635
884
|
</div>
|
|
3636
885
|
<div class="tags">
|
|
3637
|
-
<p class="tag_title">Parameters:</p>
|
|
3638
|
-
<ul class="param">
|
|
3639
|
-
|
|
3640
|
-
<li>
|
|
3641
|
-
|
|
3642
|
-
<span class='name'>len</span>
|
|
3643
|
-
|
|
3644
|
-
|
|
3645
|
-
<span class='type'></span>
|
|
3646
|
-
|
|
3647
|
-
|
|
3648
|
-
|
|
3649
|
-
—
|
|
3650
|
-
<div class='inline'><p>The length</p>
|
|
3651
|
-
</div>
|
|
3652
|
-
|
|
3653
|
-
</li>
|
|
3654
886
|
|
|
3655
|
-
</ul>
|
|
3656
887
|
|
|
888
|
+
<p class="tag_title">See Also:</p>
|
|
889
|
+
<ul class="see">
|
|
890
|
+
|
|
891
|
+
<li><span class='object_link'><a href="#normalize_matching-instance_method" title="String#normalize_matching (method)">#normalize_matching</a></span></li>
|
|
892
|
+
|
|
893
|
+
</ul>
|
|
3657
894
|
|
|
3658
895
|
</div>
|
|
3659
896
|
</div>
|
|
3660
897
|
|
|
3661
898
|
<div class="method_details ">
|
|
3662
|
-
<h3 class="signature " id="
|
|
899
|
+
<h3 class="signature " id="normalize_order-instance_method">
|
|
3663
900
|
|
|
3664
|
-
#<strong>
|
|
901
|
+
#<strong>normalize_order</strong>(default = :asc) ⇒ <tt><span class='object_link'><a href="Object.html" title="Object (class)">Object</a></span></tt>
|
|
3665
902
|
|
|
3666
903
|
|
|
3667
904
|
|
|
@@ -3671,9 +908,9 @@ can include parenthetical values (with spaces)</p>
|
|
|
3671
908
|
</div>
|
|
3672
909
|
|
|
3673
910
|
<div class="method_details ">
|
|
3674
|
-
<h3 class="signature " id="
|
|
911
|
+
<h3 class="signature " id="normalize_order!-instance_method">
|
|
3675
912
|
|
|
3676
|
-
#<strong>
|
|
913
|
+
#<strong>normalize_order!</strong>(default = :asc) ⇒ <tt><span class='object_link'><a href="Symbol.html" title="Symbol (class)">Symbol</a></span></tt>
|
|
3677
914
|
|
|
3678
915
|
|
|
3679
916
|
|
|
@@ -3681,69 +918,38 @@ can include parenthetical values (with spaces)</p>
|
|
|
3681
918
|
|
|
3682
919
|
</h3><div class="docstring">
|
|
3683
920
|
<div class="discussion">
|
|
3684
|
-
<p>
|
|
921
|
+
<p>Convert a sort order string to a qualified type</p>
|
|
3685
922
|
|
|
3686
923
|
|
|
3687
924
|
</div>
|
|
3688
925
|
</div>
|
|
3689
926
|
<div class="tags">
|
|
3690
|
-
<p class="tag_title">Parameters:</p>
|
|
3691
|
-
<ul class="param">
|
|
3692
927
|
|
|
3693
|
-
|
|
3694
|
-
|
|
3695
|
-
<span class='name'>len</span>
|
|
3696
|
-
|
|
3697
|
-
|
|
3698
|
-
<span class='type'></span>
|
|
3699
|
-
|
|
3700
|
-
|
|
3701
|
-
|
|
3702
|
-
—
|
|
3703
|
-
<div class='inline'><p>The length</p>
|
|
3704
|
-
</div>
|
|
3705
|
-
|
|
3706
|
-
</li>
|
|
928
|
+
<p class="tag_title">Returns:</p>
|
|
929
|
+
<ul class="return">
|
|
3707
930
|
|
|
3708
931
|
<li>
|
|
3709
932
|
|
|
3710
|
-
<span class='name'>ellipsis</span>
|
|
3711
|
-
|
|
3712
|
-
|
|
3713
|
-
<span class='type'></span>
|
|
3714
933
|
|
|
934
|
+
<span class='type'>(<tt><span class='object_link'><a href="Symbol.html" title="Symbol (class)">Symbol</a></span></tt>)</span>
|
|
3715
935
|
|
|
3716
|
-
<em class="default">(defaults to: <tt>'...'</tt>)</em>
|
|
3717
936
|
|
|
3718
937
|
|
|
3719
938
|
—
|
|
3720
|
-
<div class='inline'><p
|
|
939
|
+
<div class='inline'><p>:asc or :desc</p>
|
|
3721
940
|
</div>
|
|
3722
941
|
|
|
3723
942
|
</li>
|
|
3724
943
|
|
|
3725
944
|
</ul>
|
|
3726
945
|
|
|
3727
|
-
|
|
3728
|
-
</div>
|
|
3729
946
|
</div>
|
|
3730
|
-
|
|
3731
|
-
<div class="method_details ">
|
|
3732
|
-
<h3 class="signature " id="truncmiddle!-instance_method">
|
|
3733
|
-
|
|
3734
|
-
#<strong>truncmiddle!</strong>(len, ellipsis: '...') ⇒ <tt><span class='object_link'><a href="Object.html" title="Object (class)">Object</a></span></tt>
|
|
3735
|
-
|
|
3736
|
-
|
|
3737
|
-
|
|
3738
|
-
|
|
3739
|
-
|
|
3740
|
-
</h3>
|
|
3741
947
|
</div>
|
|
3742
948
|
|
|
3743
949
|
<div class="method_details ">
|
|
3744
|
-
<h3 class="signature " id="
|
|
950
|
+
<h3 class="signature " id="normalize_tag_sort-instance_method">
|
|
3745
951
|
|
|
3746
|
-
#<strong>
|
|
952
|
+
#<strong>normalize_tag_sort</strong>(default = :name) ⇒ <tt><span class='object_link'><a href="Symbol.html" title="Symbol (class)">Symbol</a></span></tt>
|
|
3747
953
|
|
|
3748
954
|
|
|
3749
955
|
|
|
@@ -3751,7 +957,7 @@ can include parenthetical values (with spaces)</p>
|
|
|
3751
957
|
|
|
3752
958
|
</h3><div class="docstring">
|
|
3753
959
|
<div class="discussion">
|
|
3754
|
-
<p>
|
|
960
|
+
<p>Convert tag sort string to a qualified type</p>
|
|
3755
961
|
|
|
3756
962
|
|
|
3757
963
|
</div>
|
|
@@ -3764,12 +970,12 @@ can include parenthetical values (with spaces)</p>
|
|
|
3764
970
|
<li>
|
|
3765
971
|
|
|
3766
972
|
|
|
3767
|
-
<span class='type'>(<tt>
|
|
973
|
+
<span class='type'>(<tt><span class='object_link'><a href="Symbol.html" title="Symbol (class)">Symbol</a></span></tt>)</span>
|
|
3768
974
|
|
|
3769
975
|
|
|
3770
976
|
|
|
3771
977
|
—
|
|
3772
|
-
<div class='inline'><p
|
|
978
|
+
<div class='inline'><p>:name or :time</p>
|
|
3773
979
|
</div>
|
|
3774
980
|
|
|
3775
981
|
</li>
|
|
@@ -3780,9 +986,9 @@ can include parenthetical values (with spaces)</p>
|
|
|
3780
986
|
</div>
|
|
3781
987
|
|
|
3782
988
|
<div class="method_details ">
|
|
3783
|
-
<h3 class="signature " id="
|
|
989
|
+
<h3 class="signature " id="normalize_tag_sort!-instance_method">
|
|
3784
990
|
|
|
3785
|
-
#<strong>
|
|
991
|
+
#<strong>normalize_tag_sort!</strong>(default = :name) ⇒ <tt><span class='object_link'><a href="Object.html" title="Object (class)">Object</a></span></tt>
|
|
3786
992
|
|
|
3787
993
|
|
|
3788
994
|
|
|
@@ -3790,50 +996,27 @@ can include parenthetical values (with spaces)</p>
|
|
|
3790
996
|
|
|
3791
997
|
</h3><div class="docstring">
|
|
3792
998
|
<div class="discussion">
|
|
3793
|
-
|
|
3794
|
-
|
|
999
|
+
|
|
3795
1000
|
|
|
3796
1001
|
</div>
|
|
3797
1002
|
</div>
|
|
3798
1003
|
<div class="tags">
|
|
3799
1004
|
|
|
3800
|
-
<p class="tag_title">Returns:</p>
|
|
3801
|
-
<ul class="return">
|
|
3802
|
-
|
|
3803
|
-
<li>
|
|
3804
|
-
|
|
3805
|
-
|
|
3806
|
-
<span class='type'></span>
|
|
3807
|
-
|
|
3808
|
-
|
|
3809
|
-
|
|
3810
|
-
|
|
3811
|
-
<div class='inline'><p>clean string</p>
|
|
3812
|
-
</div>
|
|
3813
|
-
|
|
3814
|
-
</li>
|
|
3815
|
-
|
|
3816
|
-
</ul>
|
|
3817
1005
|
|
|
3818
|
-
|
|
3819
|
-
|
|
1006
|
+
<p class="tag_title">See Also:</p>
|
|
1007
|
+
<ul class="see">
|
|
3820
1008
|
|
|
3821
|
-
<
|
|
3822
|
-
|
|
3823
|
-
|
|
3824
|
-
#<strong>uncolor!</strong> ⇒ <tt><span class='object_link'><a href="Object.html" title="Object (class)">Object</a></span></tt>
|
|
3825
|
-
|
|
3826
|
-
|
|
3827
|
-
|
|
1009
|
+
<li><span class='object_link'><a href="#normalize_tag_sort-instance_method" title="String#normalize_tag_sort (method)">#normalize_tag_sort</a></span></li>
|
|
1010
|
+
|
|
1011
|
+
</ul>
|
|
3828
1012
|
|
|
3829
|
-
|
|
3830
|
-
</h3>
|
|
1013
|
+
</div>
|
|
3831
1014
|
</div>
|
|
3832
1015
|
|
|
3833
1016
|
<div class="method_details ">
|
|
3834
|
-
<h3 class="signature " id="
|
|
1017
|
+
<h3 class="signature " id="normalize_trigger-instance_method">
|
|
3835
1018
|
|
|
3836
|
-
#<strong>
|
|
1019
|
+
#<strong>normalize_trigger</strong> ⇒ <tt><span class='object_link'><a href="" title="String (class)">String</a></span></tt>
|
|
3837
1020
|
|
|
3838
1021
|
|
|
3839
1022
|
|
|
@@ -3841,15 +1024,8 @@ can include parenthetical values (with spaces)</p>
|
|
|
3841
1024
|
|
|
3842
1025
|
</h3><div class="docstring">
|
|
3843
1026
|
<div class="discussion">
|
|
3844
|
-
<p
|
|
3845
|
-
|
|
3846
|
-
You should avoid using this method if possible, as it may be removed or be changed in the future.
|
|
3847
|
-
</p>
|
|
3848
|
-
<p>Extract the longest valid color from a string.</p>
|
|
3849
|
-
|
|
3850
|
-
<p>Allows %colors to bleed into other text and still
|
|
3851
|
-
be recognized, e.g. %greensomething still finds
|
|
3852
|
-
%green.</p>
|
|
1027
|
+
<p>Adds ?: to any parentheticals in a regular expression
|
|
1028
|
+
to avoid match groups</p>
|
|
3853
1029
|
|
|
3854
1030
|
|
|
3855
1031
|
</div>
|
|
@@ -3867,7 +1043,7 @@ be recognized, e.g. %greensomething still finds
|
|
|
3867
1043
|
|
|
3868
1044
|
|
|
3869
1045
|
—
|
|
3870
|
-
<div class='inline'><p>
|
|
1046
|
+
<div class='inline'><p>modified regular expression</p>
|
|
3871
1047
|
</div>
|
|
3872
1048
|
|
|
3873
1049
|
</li>
|
|
@@ -3878,9 +1054,9 @@ be recognized, e.g. %greensomething still finds
|
|
|
3878
1054
|
</div>
|
|
3879
1055
|
|
|
3880
1056
|
<div class="method_details ">
|
|
3881
|
-
<h3 class="signature " id="
|
|
1057
|
+
<h3 class="signature " id="normalize_trigger!-instance_method">
|
|
3882
1058
|
|
|
3883
|
-
#<strong>
|
|
1059
|
+
#<strong>normalize_trigger!</strong> ⇒ <tt><span class='object_link'><a href="Object.html" title="Object (class)">Object</a></span></tt>
|
|
3884
1060
|
|
|
3885
1061
|
|
|
3886
1062
|
|
|
@@ -3888,39 +1064,27 @@ be recognized, e.g. %greensomething still finds
|
|
|
3888
1064
|
|
|
3889
1065
|
</h3><div class="docstring">
|
|
3890
1066
|
<div class="discussion">
|
|
3891
|
-
|
|
3892
|
-
Uses \S (non-whitespace) instead of . (any character)</p>
|
|
3893
|
-
|
|
1067
|
+
|
|
3894
1068
|
|
|
3895
1069
|
</div>
|
|
3896
1070
|
</div>
|
|
3897
1071
|
<div class="tags">
|
|
3898
1072
|
|
|
3899
|
-
|
|
3900
|
-
<
|
|
3901
|
-
|
|
3902
|
-
|
|
3903
|
-
|
|
3904
|
-
|
|
3905
|
-
|
|
3906
|
-
|
|
3907
|
-
|
|
3908
|
-
|
|
3909
|
-
—
|
|
3910
|
-
<div class='inline'><p>Regular expression string</p>
|
|
3911
|
-
</div>
|
|
3912
|
-
|
|
3913
|
-
</li>
|
|
3914
|
-
|
|
3915
|
-
</ul>
|
|
1073
|
+
|
|
1074
|
+
<p class="tag_title">See Also:</p>
|
|
1075
|
+
<ul class="see">
|
|
1076
|
+
|
|
1077
|
+
<li><span class='object_link'><a href="#normalize_trigger-instance_method" title="String#normalize_trigger (method)">#normalize_trigger</a></span></li>
|
|
1078
|
+
|
|
1079
|
+
</ul>
|
|
3916
1080
|
|
|
3917
1081
|
</div>
|
|
3918
1082
|
</div>
|
|
3919
1083
|
|
|
3920
1084
|
<div class="method_details ">
|
|
3921
|
-
<h3 class="signature " id="
|
|
1085
|
+
<h3 class="signature " id="validate_color-instance_method">
|
|
3922
1086
|
|
|
3923
|
-
#<strong>
|
|
1087
|
+
#<strong>validate_color</strong> ⇒ <tt><span class='object_link'><a href="" title="String (class)">String</a></span></tt>
|
|
3924
1088
|
|
|
3925
1089
|
|
|
3926
1090
|
|
|
@@ -3928,67 +1092,35 @@ Uses \S (non-whitespace) instead of . (any character)</p>
|
|
|
3928
1092
|
|
|
3929
1093
|
</h3><div class="docstring">
|
|
3930
1094
|
<div class="discussion">
|
|
3931
|
-
<p>
|
|
1095
|
+
<p>Extract the longest valid %color name from a string.</p>
|
|
1096
|
+
|
|
1097
|
+
<p>Allows %colors to bleed into other text and still
|
|
1098
|
+
be recognized, e.g. %greensomething still finds
|
|
1099
|
+
%green.</p>
|
|
3932
1100
|
|
|
3933
1101
|
|
|
3934
1102
|
</div>
|
|
3935
1103
|
</div>
|
|
3936
1104
|
<div class="tags">
|
|
3937
|
-
<p class="tag_title">Parameters:</p>
|
|
3938
|
-
<ul class="param">
|
|
3939
|
-
|
|
3940
|
-
<li>
|
|
3941
|
-
|
|
3942
|
-
<span class='name'>len</span>
|
|
3943
|
-
|
|
3944
|
-
|
|
3945
|
-
<span class='type'>(<tt>Integer</tt>)</span>
|
|
3946
|
-
|
|
3947
|
-
|
|
3948
|
-
|
|
3949
|
-
—
|
|
3950
|
-
<div class='inline'><p>The length</p>
|
|
3951
|
-
</div>
|
|
3952
|
-
|
|
3953
|
-
</li>
|
|
3954
1105
|
|
|
3955
|
-
|
|
3956
|
-
|
|
3957
|
-
<span class='name'>offset</span>
|
|
3958
|
-
|
|
3959
|
-
|
|
3960
|
-
<span class='type'>(<tt>Integer</tt>)</span>
|
|
3961
|
-
|
|
3962
|
-
|
|
3963
|
-
<em class="default">(defaults to: <tt>0</tt>)</em>
|
|
3964
|
-
|
|
3965
|
-
|
|
3966
|
-
—
|
|
3967
|
-
<div class='inline'><p>(Optional) The width to pad each subsequent line</p>
|
|
3968
|
-
</div>
|
|
3969
|
-
|
|
3970
|
-
</li>
|
|
1106
|
+
<p class="tag_title">Returns:</p>
|
|
1107
|
+
<ul class="return">
|
|
3971
1108
|
|
|
3972
1109
|
<li>
|
|
3973
1110
|
|
|
3974
|
-
<span class='name'>prefix</span>
|
|
3975
|
-
|
|
3976
1111
|
|
|
3977
1112
|
<span class='type'>(<tt><span class='object_link'><a href="" title="String (class)">String</a></span></tt>)</span>
|
|
3978
1113
|
|
|
3979
1114
|
|
|
3980
|
-
<em class="default">(defaults to: <tt>''</tt>)</em>
|
|
3981
|
-
|
|
3982
1115
|
|
|
3983
1116
|
—
|
|
3984
|
-
<div class='inline'><p>
|
|
1117
|
+
<div class='inline'><p>a valid color name</p>
|
|
3985
1118
|
</div>
|
|
3986
1119
|
|
|
3987
1120
|
</li>
|
|
3988
1121
|
|
|
3989
1122
|
</ul>
|
|
3990
1123
|
|
|
3991
|
-
|
|
3992
1124
|
</div>
|
|
3993
1125
|
</div>
|
|
3994
1126
|
|
|
@@ -3997,7 +1129,7 @@ Uses \S (non-whitespace) instead of . (any character)</p>
|
|
|
3997
1129
|
</div>
|
|
3998
1130
|
|
|
3999
1131
|
<div id="footer">
|
|
4000
|
-
Generated on
|
|
1132
|
+
Generated on Mon Feb 14 14:34:40 2022 by
|
|
4001
1133
|
<a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
|
|
4002
1134
|
0.9.27 (ruby-3.0.1).
|
|
4003
1135
|
</div>
|