doing 2.1.24 → 2.1.28

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