marked-conductor 1.0.9 → 1.0.11
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/.irbrc +2 -0
- data/CHANGELOG.md +23 -0
- data/README.rdoc +1 -1
- data/bin/conductor +98 -67
- data/html/Array.html +160 -0
- data/html/Conductor/Command.html +271 -0
- data/html/Conductor/Condition.html +791 -0
- data/html/Conductor/Config.html +170 -0
- data/html/Conductor/Env.html +220 -0
- data/html/Conductor/Script.html +288 -0
- data/html/Conductor.html +355 -0
- data/html/FalseClass.html +138 -0
- data/html/Hash.html +160 -0
- data/html/Object.html +138 -0
- data/html/README_rdoc.html +86 -0
- data/html/String.html +440 -0
- data/html/TrueClass.html +138 -0
- data/html/created.rid +14 -0
- data/html/css/fonts.css +167 -0
- data/html/css/rdoc.css +687 -0
- data/html/fonts/Lato-Light.ttf +0 -0
- data/html/fonts/Lato-LightItalic.ttf +0 -0
- data/html/fonts/Lato-Regular.ttf +0 -0
- data/html/fonts/Lato-RegularItalic.ttf +0 -0
- data/html/fonts/SourceCodePro-Bold.ttf +0 -0
- data/html/fonts/SourceCodePro-Regular.ttf +0 -0
- data/html/images/add.png +0 -0
- data/html/images/arrow_up.png +0 -0
- data/html/images/brick.png +0 -0
- data/html/images/brick_link.png +0 -0
- data/html/images/bug.png +0 -0
- data/html/images/bullet_black.png +0 -0
- data/html/images/bullet_toggle_minus.png +0 -0
- data/html/images/bullet_toggle_plus.png +0 -0
- data/html/images/date.png +0 -0
- data/html/images/delete.png +0 -0
- data/html/images/find.png +0 -0
- data/html/images/loadingAnimation.gif +0 -0
- data/html/images/macFFBgHack.png +0 -0
- data/html/images/package.png +0 -0
- data/html/images/page_green.png +0 -0
- data/html/images/page_white_text.png +0 -0
- data/html/images/page_white_width.png +0 -0
- data/html/images/plugin.png +0 -0
- data/html/images/ruby.png +0 -0
- data/html/images/tag_blue.png +0 -0
- data/html/images/tag_green.png +0 -0
- data/html/images/transparent.png +0 -0
- data/html/images/wrench.png +0 -0
- data/html/images/wrench_orange.png +0 -0
- data/html/images/zoom.png +0 -0
- data/html/index.html +105 -0
- data/html/js/darkfish.js +97 -0
- data/html/js/navigation.js +105 -0
- data/html/js/navigation.js.gz +0 -0
- data/html/js/search.js +110 -0
- data/html/js/search_index.js +1 -0
- data/html/js/search_index.js.gz +0 -0
- data/html/js/searcher.js +229 -0
- data/html/js/searcher.js.gz +0 -0
- data/html/table_of_contents.html +345 -0
- data/lib/conductor/condition.rb +25 -10
- data/lib/conductor/env.rb +18 -7
- data/lib/conductor/script.rb +40 -18
- data/lib/conductor/string.rb +58 -6
- data/lib/conductor/version.rb +1 -1
- data/lib/conductor.rb +1 -0
- data/marked-conductor.gemspec +3 -3
- metadata +89 -32
data/html/String.html
ADDED
@@ -0,0 +1,440 @@
|
|
1
|
+
<!DOCTYPE html>
|
2
|
+
|
3
|
+
<html>
|
4
|
+
<head>
|
5
|
+
<meta charset="UTF-8">
|
6
|
+
|
7
|
+
<title>class String - Marked Conductor</title>
|
8
|
+
|
9
|
+
<script type="text/javascript">
|
10
|
+
var rdoc_rel_prefix = "./";
|
11
|
+
var index_rel_prefix = "./";
|
12
|
+
</script>
|
13
|
+
|
14
|
+
<script src="./js/navigation.js" defer></script>
|
15
|
+
<script src="./js/search.js" defer></script>
|
16
|
+
<script src="./js/search_index.js" defer></script>
|
17
|
+
<script src="./js/searcher.js" defer></script>
|
18
|
+
<script src="./js/darkfish.js" defer></script>
|
19
|
+
|
20
|
+
<link href="./css/fonts.css" rel="stylesheet">
|
21
|
+
<link href="./css/rdoc.css" rel="stylesheet">
|
22
|
+
|
23
|
+
|
24
|
+
<body id="top" role="document" class="class">
|
25
|
+
<nav role="navigation">
|
26
|
+
<div id="project-navigation">
|
27
|
+
<div id="home-section" role="region" title="Quick navigation" class="nav-section">
|
28
|
+
<h2>
|
29
|
+
<a href="./index.html" rel="home">Home</a>
|
30
|
+
</h2>
|
31
|
+
|
32
|
+
<div id="table-of-contents-navigation">
|
33
|
+
<a href="./table_of_contents.html#pages">Pages</a>
|
34
|
+
<a href="./table_of_contents.html#classes">Classes</a>
|
35
|
+
<a href="./table_of_contents.html#methods">Methods</a>
|
36
|
+
</div>
|
37
|
+
</div>
|
38
|
+
|
39
|
+
<div id="search-section" role="search" class="project-section initially-hidden">
|
40
|
+
<form action="#" method="get" accept-charset="utf-8">
|
41
|
+
<div id="search-field-wrapper">
|
42
|
+
<input id="search-field" role="combobox" aria-label="Search"
|
43
|
+
aria-autocomplete="list" aria-controls="search-results"
|
44
|
+
type="text" name="search" placeholder="Search (/) for a class, method, ..." spellcheck="false"
|
45
|
+
title="Type to search, Up and Down to navigate, Enter to load">
|
46
|
+
</div>
|
47
|
+
|
48
|
+
<ul id="search-results" aria-label="Search Results"
|
49
|
+
aria-busy="false" aria-expanded="false"
|
50
|
+
aria-atomic="false" class="initially-hidden"></ul>
|
51
|
+
</form>
|
52
|
+
</div>
|
53
|
+
|
54
|
+
</div>
|
55
|
+
|
56
|
+
|
57
|
+
|
58
|
+
<div id="class-metadata">
|
59
|
+
|
60
|
+
|
61
|
+
<div id="parent-class-section" class="nav-section">
|
62
|
+
<h3>Parent</h3>
|
63
|
+
|
64
|
+
<p class="link"><a href="Object.html">Object</a>
|
65
|
+
</div>
|
66
|
+
|
67
|
+
|
68
|
+
|
69
|
+
|
70
|
+
<!-- Method Quickref -->
|
71
|
+
<div id="method-list-section" class="nav-section">
|
72
|
+
<h3>Methods</h3>
|
73
|
+
|
74
|
+
<ul class="link-list" role="directory">
|
75
|
+
<li ><a href="#method-i-bool-3F">#bool?</a>
|
76
|
+
<li ><a href="#method-i-bool_to_symbol">#bool_to_symbol</a>
|
77
|
+
<li ><a href="#method-i-date-3F">#date?</a>
|
78
|
+
<li ><a href="#method-i-meta-3F">#meta?</a>
|
79
|
+
<li ><a href="#method-i-number-3F">#number?</a>
|
80
|
+
<li ><a href="#method-i-strip_time">#strip_time</a>
|
81
|
+
<li ><a href="#method-i-time-3F">#time?</a>
|
82
|
+
<li ><a href="#method-i-to_bool">#to_bool</a>
|
83
|
+
<li ><a href="#method-i-to_bool-21">#to_bool!</a>
|
84
|
+
<li ><a href="#method-i-to_date">#to_date</a>
|
85
|
+
<li ><a href="#method-i-to_day">#to_day</a>
|
86
|
+
<li ><a href="#method-i-yaml-3F">#yaml?</a>
|
87
|
+
</ul>
|
88
|
+
</div>
|
89
|
+
|
90
|
+
</div>
|
91
|
+
</nav>
|
92
|
+
|
93
|
+
<main role="main" aria-labelledby="class-String">
|
94
|
+
<h1 id="class-String" class="class">
|
95
|
+
class String
|
96
|
+
</h1>
|
97
|
+
|
98
|
+
<section class="description">
|
99
|
+
|
100
|
+
<p><a href="String.html"><code>String</code></a> helpers</p>
|
101
|
+
|
102
|
+
</section>
|
103
|
+
|
104
|
+
<section id="5Buntitled-5D" class="documentation-section">
|
105
|
+
|
106
|
+
|
107
|
+
|
108
|
+
|
109
|
+
|
110
|
+
<section id="public-instance-5Buntitled-5D-method-details" class="method-section">
|
111
|
+
<header>
|
112
|
+
<h3>Public Instance Methods</h3>
|
113
|
+
</header>
|
114
|
+
|
115
|
+
<div id="method-i-bool-3F" class="method-detail ">
|
116
|
+
<div class="method-header">
|
117
|
+
<div class="method-heading">
|
118
|
+
<span class="method-name">bool?</span><span
|
119
|
+
class="method-args">()</span>
|
120
|
+
<span class="method-click-advice">click to toggle source</span>
|
121
|
+
</div>
|
122
|
+
</div>
|
123
|
+
|
124
|
+
<div class="method-description">
|
125
|
+
<p>Test if a string is a boolean</p>
|
126
|
+
|
127
|
+
<p>@return [Boolean] test result</p>
|
128
|
+
|
129
|
+
<div class="method-source-code" id="bool-3F-source">
|
130
|
+
<pre><span class="ruby-comment"># File lib/conductor/string.rb, line 77</span>
|
131
|
+
<span class="ruby-keyword">def</span> <span class="ruby-identifier ruby-title">bool?</span>
|
132
|
+
<span class="ruby-identifier">dup</span>.<span class="ruby-identifier">force_encoding</span>(<span class="ruby-string">"utf-8"</span>).<span class="ruby-identifier">match?</span>(<span class="ruby-regexp">/^(?:y(?:es)?|no?|t(?:rue)?|f(?:alse)?)$/</span>)
|
133
|
+
<span class="ruby-keyword">end</span></pre>
|
134
|
+
</div>
|
135
|
+
</div>
|
136
|
+
|
137
|
+
|
138
|
+
</div>
|
139
|
+
|
140
|
+
<div id="method-i-bool_to_symbol" class="method-detail ">
|
141
|
+
<div class="method-header">
|
142
|
+
<div class="method-heading">
|
143
|
+
<span class="method-name">bool_to_symbol</span><span
|
144
|
+
class="method-args">()</span>
|
145
|
+
<span class="method-click-advice">click to toggle source</span>
|
146
|
+
</div>
|
147
|
+
</div>
|
148
|
+
|
149
|
+
<div class="method-description">
|
150
|
+
<p>Convert a string boolean to symbol</p>
|
151
|
+
|
152
|
+
<p>@return [Symbol] symbolized version</p>
|
153
|
+
|
154
|
+
<div class="method-source-code" id="bool_to_symbol-source">
|
155
|
+
<pre><span class="ruby-comment"># File lib/conductor/string.rb, line 10</span>
|
156
|
+
<span class="ruby-keyword">def</span> <span class="ruby-identifier ruby-title">bool_to_symbol</span>
|
157
|
+
<span class="ruby-keyword">case</span> <span class="ruby-keyword">self</span>
|
158
|
+
<span class="ruby-keyword">when</span> <span class="ruby-regexp">/(NOT|!!)/</span>
|
159
|
+
<span class="ruby-value">:not</span>
|
160
|
+
<span class="ruby-keyword">when</span> <span class="ruby-regexp">/(AND|&&)/</span>
|
161
|
+
<span class="ruby-value">:and</span>
|
162
|
+
<span class="ruby-keyword">else</span>
|
163
|
+
<span class="ruby-value">:or</span>
|
164
|
+
<span class="ruby-keyword">end</span>
|
165
|
+
<span class="ruby-keyword">end</span></pre>
|
166
|
+
</div>
|
167
|
+
</div>
|
168
|
+
|
169
|
+
|
170
|
+
</div>
|
171
|
+
|
172
|
+
<div id="method-i-date-3F" class="method-detail ">
|
173
|
+
<div class="method-header">
|
174
|
+
<div class="method-heading">
|
175
|
+
<span class="method-name">date?</span><span
|
176
|
+
class="method-args">()</span>
|
177
|
+
<span class="method-click-advice">click to toggle source</span>
|
178
|
+
</div>
|
179
|
+
</div>
|
180
|
+
|
181
|
+
<div class="method-description">
|
182
|
+
<p>Test a string to see if it’s a UTC date</p>
|
183
|
+
|
184
|
+
<p>@return [Boolean] test result</p>
|
185
|
+
|
186
|
+
<div class="method-source-code" id="date-3F-source">
|
187
|
+
<pre><span class="ruby-comment"># File lib/conductor/string.rb, line 26</span>
|
188
|
+
<span class="ruby-keyword">def</span> <span class="ruby-identifier ruby-title">date?</span>
|
189
|
+
<span class="ruby-identifier">dup</span>.<span class="ruby-identifier">force_encoding</span>(<span class="ruby-string">"utf-8"</span>).<span class="ruby-identifier">match?</span>(<span class="ruby-regexp">/^\d{4}-\d{2}-\d{2}( \d\d:\d\d)?$/</span>)
|
190
|
+
<span class="ruby-keyword">end</span></pre>
|
191
|
+
</div>
|
192
|
+
</div>
|
193
|
+
|
194
|
+
|
195
|
+
</div>
|
196
|
+
|
197
|
+
<div id="method-i-meta-3F" class="method-detail ">
|
198
|
+
<div class="method-header">
|
199
|
+
<div class="method-heading">
|
200
|
+
<span class="method-name">meta?</span><span
|
201
|
+
class="method-args">()</span>
|
202
|
+
<span class="method-click-advice">click to toggle source</span>
|
203
|
+
</div>
|
204
|
+
</div>
|
205
|
+
|
206
|
+
<div class="method-description">
|
207
|
+
<p>Test if a string starts with MMD metadata</p>
|
208
|
+
|
209
|
+
<p>@return [Boolean] test result</p>
|
210
|
+
|
211
|
+
<div class="method-source-code" id="meta-3F-source">
|
212
|
+
<pre><span class="ruby-comment"># File lib/conductor/string.rb, line 95</span>
|
213
|
+
<span class="ruby-keyword">def</span> <span class="ruby-identifier ruby-title">meta?</span>
|
214
|
+
<span class="ruby-identifier">dup</span>.<span class="ruby-identifier">force_encoding</span>(<span class="ruby-string">'utf-8'</span>).<span class="ruby-identifier">match?</span>(<span class="ruby-regexp">/^\w+: +\S+/m</span>)
|
215
|
+
<span class="ruby-keyword">end</span></pre>
|
216
|
+
</div>
|
217
|
+
</div>
|
218
|
+
|
219
|
+
|
220
|
+
</div>
|
221
|
+
|
222
|
+
<div id="method-i-number-3F" class="method-detail ">
|
223
|
+
<div class="method-header">
|
224
|
+
<div class="method-heading">
|
225
|
+
<span class="method-name">number?</span><span
|
226
|
+
class="method-args">()</span>
|
227
|
+
<span class="method-click-advice">click to toggle source</span>
|
228
|
+
</div>
|
229
|
+
</div>
|
230
|
+
|
231
|
+
<div class="method-description">
|
232
|
+
<p>Test if a string is a number</p>
|
233
|
+
|
234
|
+
<p>@return [Boolean] test result</p>
|
235
|
+
|
236
|
+
<div class="method-source-code" id="number-3F-source">
|
237
|
+
<pre><span class="ruby-comment"># File lib/conductor/string.rb, line 68</span>
|
238
|
+
<span class="ruby-keyword">def</span> <span class="ruby-identifier ruby-title">number?</span>
|
239
|
+
<span class="ruby-identifier">to_f</span>.<span class="ruby-identifier">positive?</span>
|
240
|
+
<span class="ruby-keyword">end</span></pre>
|
241
|
+
</div>
|
242
|
+
</div>
|
243
|
+
|
244
|
+
|
245
|
+
</div>
|
246
|
+
|
247
|
+
<div id="method-i-strip_time" class="method-detail ">
|
248
|
+
<div class="method-header">
|
249
|
+
<div class="method-heading">
|
250
|
+
<span class="method-name">strip_time</span><span
|
251
|
+
class="method-args">()</span>
|
252
|
+
<span class="method-click-advice">click to toggle source</span>
|
253
|
+
</div>
|
254
|
+
</div>
|
255
|
+
|
256
|
+
<div class="method-description">
|
257
|
+
<p>Remove time from string</p>
|
258
|
+
|
259
|
+
<p>@return [String] string with time removed</p>
|
260
|
+
|
261
|
+
<div class="method-source-code" id="strip_time-source">
|
262
|
+
<pre><span class="ruby-comment"># File lib/conductor/string.rb, line 54</span>
|
263
|
+
<span class="ruby-keyword">def</span> <span class="ruby-identifier ruby-title">strip_time</span>
|
264
|
+
<span class="ruby-identifier">dup</span>.<span class="ruby-identifier">force_encoding</span>(<span class="ruby-string">"utf-8"</span>).<span class="ruby-identifier">sub</span>(<span class="ruby-regexp">/ \d{1,2}(:\d\d)? *([ap]m)?/i</span>, <span class="ruby-string">""</span>)
|
265
|
+
<span class="ruby-keyword">end</span></pre>
|
266
|
+
</div>
|
267
|
+
</div>
|
268
|
+
|
269
|
+
|
270
|
+
</div>
|
271
|
+
|
272
|
+
<div id="method-i-time-3F" class="method-detail ">
|
273
|
+
<div class="method-header">
|
274
|
+
<div class="method-heading">
|
275
|
+
<span class="method-name">time?</span><span
|
276
|
+
class="method-args">()</span>
|
277
|
+
<span class="method-click-advice">click to toggle source</span>
|
278
|
+
</div>
|
279
|
+
</div>
|
280
|
+
|
281
|
+
<div class="method-description">
|
282
|
+
<p>Test a string to see if it includes a time</p>
|
283
|
+
|
284
|
+
<p>@return [Boolean] test result</p>
|
285
|
+
|
286
|
+
<div class="method-source-code" id="time-3F-source">
|
287
|
+
<pre><span class="ruby-comment"># File lib/conductor/string.rb, line 35</span>
|
288
|
+
<span class="ruby-keyword">def</span> <span class="ruby-identifier ruby-title">time?</span>
|
289
|
+
<span class="ruby-identifier">dup</span>.<span class="ruby-identifier">force_encoding</span>(<span class="ruby-string">"utf-8"</span>).<span class="ruby-identifier">match</span>(<span class="ruby-regexp">/ \d{1,2}(:\d\d)? *([ap]m)?/i</span>)
|
290
|
+
<span class="ruby-keyword">end</span></pre>
|
291
|
+
</div>
|
292
|
+
</div>
|
293
|
+
|
294
|
+
|
295
|
+
</div>
|
296
|
+
|
297
|
+
<div id="method-i-to_bool" class="method-detail ">
|
298
|
+
<div class="method-header">
|
299
|
+
<div class="method-heading">
|
300
|
+
<span class="method-name">to_bool</span><span
|
301
|
+
class="method-args">()</span>
|
302
|
+
<span class="method-click-advice">click to toggle source</span>
|
303
|
+
</div>
|
304
|
+
</div>
|
305
|
+
|
306
|
+
<div class="method-description">
|
307
|
+
<p>Returns a bool representation of the string.</p>
|
308
|
+
|
309
|
+
<p>@return [Boolean] Bool representation of the object.</p>
|
310
|
+
|
311
|
+
<div class="method-source-code" id="to_bool-source">
|
312
|
+
<pre><span class="ruby-comment"># File lib/conductor/string.rb, line 114</span>
|
313
|
+
<span class="ruby-keyword">def</span> <span class="ruby-identifier ruby-title">to_bool</span>
|
314
|
+
<span class="ruby-keyword">case</span> <span class="ruby-keyword">self</span>.<span class="ruby-identifier">force_encoding</span>(<span class="ruby-string">'utf-8'</span>)
|
315
|
+
<span class="ruby-keyword">when</span> <span class="ruby-regexp">/^[yt]/i</span>
|
316
|
+
<span class="ruby-keyword">true</span>
|
317
|
+
<span class="ruby-keyword">else</span>
|
318
|
+
<span class="ruby-keyword">false</span>
|
319
|
+
<span class="ruby-keyword">end</span>
|
320
|
+
<span class="ruby-keyword">end</span></pre>
|
321
|
+
</div>
|
322
|
+
</div>
|
323
|
+
|
324
|
+
|
325
|
+
</div>
|
326
|
+
|
327
|
+
<div id="method-i-to_bool-21" class="method-detail ">
|
328
|
+
<div class="method-header">
|
329
|
+
<div class="method-heading">
|
330
|
+
<span class="method-name">to_bool!</span><span
|
331
|
+
class="method-args">()</span>
|
332
|
+
<span class="method-click-advice">click to toggle source</span>
|
333
|
+
</div>
|
334
|
+
</div>
|
335
|
+
|
336
|
+
<div class="method-description">
|
337
|
+
<p>Destructive version of <a href="String.html#method-i-to_bool"><code>to_bool</code></a></p>
|
338
|
+
|
339
|
+
<p>@see <a href="String.html#method-i-to_bool"><code>to_bool</code></a></p>
|
340
|
+
|
341
|
+
<div class="method-source-code" id="to_bool-21-source">
|
342
|
+
<pre><span class="ruby-comment"># File lib/conductor/string.rb, line 105</span>
|
343
|
+
<span class="ruby-keyword">def</span> <span class="ruby-identifier ruby-title">to_bool!</span>
|
344
|
+
<span class="ruby-identifier">replace</span> <span class="ruby-identifier">to_bool</span>
|
345
|
+
<span class="ruby-keyword">end</span></pre>
|
346
|
+
</div>
|
347
|
+
</div>
|
348
|
+
|
349
|
+
|
350
|
+
</div>
|
351
|
+
|
352
|
+
<div id="method-i-to_date" class="method-detail ">
|
353
|
+
<div class="method-header">
|
354
|
+
<div class="method-heading">
|
355
|
+
<span class="method-name">to_date</span><span
|
356
|
+
class="method-args">()</span>
|
357
|
+
<span class="method-click-advice">click to toggle source</span>
|
358
|
+
</div>
|
359
|
+
</div>
|
360
|
+
|
361
|
+
<div class="method-description">
|
362
|
+
<p>Convert a natural language string to a Date</p>
|
363
|
+
|
364
|
+
<pre class="ruby"><span class="ruby-identifier">object</span>
|
365
|
+
</pre>
|
366
|
+
|
367
|
+
<p>@return [Date] Resulting Date object</p>
|
368
|
+
|
369
|
+
<div class="method-source-code" id="to_date-source">
|
370
|
+
<pre><span class="ruby-comment"># File lib/conductor/string.rb, line 45</span>
|
371
|
+
<span class="ruby-keyword">def</span> <span class="ruby-identifier ruby-title">to_date</span>
|
372
|
+
<span class="ruby-constant">Chronic</span>.<span class="ruby-identifier">parse</span>(<span class="ruby-identifier">dup</span>.<span class="ruby-identifier">force_encoding</span>(<span class="ruby-string">"utf-8"</span>))
|
373
|
+
<span class="ruby-keyword">end</span></pre>
|
374
|
+
</div>
|
375
|
+
</div>
|
376
|
+
|
377
|
+
|
378
|
+
</div>
|
379
|
+
|
380
|
+
<div id="method-i-to_day" class="method-detail ">
|
381
|
+
<div class="method-header">
|
382
|
+
<div class="method-heading">
|
383
|
+
<span class="method-name">to_day</span><span
|
384
|
+
class="method-args">(time = :end)</span>
|
385
|
+
<span class="method-click-advice">click to toggle source</span>
|
386
|
+
</div>
|
387
|
+
</div>
|
388
|
+
|
389
|
+
<div class="method-description">
|
390
|
+
|
391
|
+
|
392
|
+
<div class="method-source-code" id="to_day-source">
|
393
|
+
<pre><span class="ruby-comment"># File lib/conductor/string.rb, line 58</span>
|
394
|
+
<span class="ruby-keyword">def</span> <span class="ruby-identifier ruby-title">to_day</span>(<span class="ruby-identifier">time</span> = <span class="ruby-value">:end</span>)
|
395
|
+
<span class="ruby-identifier">t</span> = <span class="ruby-identifier">time</span> <span class="ruby-operator">==</span> <span class="ruby-value">:end</span> <span class="ruby-operator">?</span> <span class="ruby-string">"23:59"</span> <span class="ruby-operator">:</span> <span class="ruby-string">"00:00"</span>
|
396
|
+
<span class="ruby-constant">Chronic</span>.<span class="ruby-identifier">parse</span>(<span class="ruby-node">"#{strip_time} #{t}"</span>)
|
397
|
+
<span class="ruby-keyword">end</span></pre>
|
398
|
+
</div>
|
399
|
+
</div>
|
400
|
+
|
401
|
+
|
402
|
+
</div>
|
403
|
+
|
404
|
+
<div id="method-i-yaml-3F" class="method-detail ">
|
405
|
+
<div class="method-header">
|
406
|
+
<div class="method-heading">
|
407
|
+
<span class="method-name">yaml?</span><span
|
408
|
+
class="method-args">()</span>
|
409
|
+
<span class="method-click-advice">click to toggle source</span>
|
410
|
+
</div>
|
411
|
+
</div>
|
412
|
+
|
413
|
+
<div class="method-description">
|
414
|
+
<p>Test if string starts with YAML</p>
|
415
|
+
|
416
|
+
<p>@return [Boolean] test result</p>
|
417
|
+
|
418
|
+
<div class="method-source-code" id="yaml-3F-source">
|
419
|
+
<pre><span class="ruby-comment"># File lib/conductor/string.rb, line 86</span>
|
420
|
+
<span class="ruby-keyword">def</span> <span class="ruby-identifier ruby-title">yaml?</span>
|
421
|
+
<span class="ruby-identifier">dup</span>.<span class="ruby-identifier">force_encoding</span>(<span class="ruby-string">'utf-8'</span>).<span class="ruby-identifier">match?</span>(<span class="ruby-regexp">/^---/m</span>)
|
422
|
+
<span class="ruby-keyword">end</span></pre>
|
423
|
+
</div>
|
424
|
+
</div>
|
425
|
+
|
426
|
+
|
427
|
+
</div>
|
428
|
+
|
429
|
+
</section>
|
430
|
+
|
431
|
+
</section>
|
432
|
+
</main>
|
433
|
+
|
434
|
+
|
435
|
+
<footer id="validator-badges" role="contentinfo">
|
436
|
+
<p><a href="https://validator.w3.org/check/referer">Validate</a>
|
437
|
+
<p>Generated by <a href="https://ruby.github.io/rdoc/">RDoc</a> 6.6.2.
|
438
|
+
<p>Based on <a href="http://deveiate.org/projects/Darkfish-RDoc/">Darkfish</a> by <a href="http://deveiate.org">Michael Granger</a>.
|
439
|
+
</footer>
|
440
|
+
|
data/html/TrueClass.html
ADDED
@@ -0,0 +1,138 @@
|
|
1
|
+
<!DOCTYPE html>
|
2
|
+
|
3
|
+
<html>
|
4
|
+
<head>
|
5
|
+
<meta charset="UTF-8">
|
6
|
+
|
7
|
+
<title>class TrueClass - Marked Conductor</title>
|
8
|
+
|
9
|
+
<script type="text/javascript">
|
10
|
+
var rdoc_rel_prefix = "./";
|
11
|
+
var index_rel_prefix = "./";
|
12
|
+
</script>
|
13
|
+
|
14
|
+
<script src="./js/navigation.js" defer></script>
|
15
|
+
<script src="./js/search.js" defer></script>
|
16
|
+
<script src="./js/search_index.js" defer></script>
|
17
|
+
<script src="./js/searcher.js" defer></script>
|
18
|
+
<script src="./js/darkfish.js" defer></script>
|
19
|
+
|
20
|
+
<link href="./css/fonts.css" rel="stylesheet">
|
21
|
+
<link href="./css/rdoc.css" rel="stylesheet">
|
22
|
+
|
23
|
+
|
24
|
+
<body id="top" role="document" class="class">
|
25
|
+
<nav role="navigation">
|
26
|
+
<div id="project-navigation">
|
27
|
+
<div id="home-section" role="region" title="Quick navigation" class="nav-section">
|
28
|
+
<h2>
|
29
|
+
<a href="./index.html" rel="home">Home</a>
|
30
|
+
</h2>
|
31
|
+
|
32
|
+
<div id="table-of-contents-navigation">
|
33
|
+
<a href="./table_of_contents.html#pages">Pages</a>
|
34
|
+
<a href="./table_of_contents.html#classes">Classes</a>
|
35
|
+
<a href="./table_of_contents.html#methods">Methods</a>
|
36
|
+
</div>
|
37
|
+
</div>
|
38
|
+
|
39
|
+
<div id="search-section" role="search" class="project-section initially-hidden">
|
40
|
+
<form action="#" method="get" accept-charset="utf-8">
|
41
|
+
<div id="search-field-wrapper">
|
42
|
+
<input id="search-field" role="combobox" aria-label="Search"
|
43
|
+
aria-autocomplete="list" aria-controls="search-results"
|
44
|
+
type="text" name="search" placeholder="Search (/) for a class, method, ..." spellcheck="false"
|
45
|
+
title="Type to search, Up and Down to navigate, Enter to load">
|
46
|
+
</div>
|
47
|
+
|
48
|
+
<ul id="search-results" aria-label="Search Results"
|
49
|
+
aria-busy="false" aria-expanded="false"
|
50
|
+
aria-atomic="false" class="initially-hidden"></ul>
|
51
|
+
</form>
|
52
|
+
</div>
|
53
|
+
|
54
|
+
</div>
|
55
|
+
|
56
|
+
|
57
|
+
|
58
|
+
<div id="class-metadata">
|
59
|
+
|
60
|
+
|
61
|
+
<div id="parent-class-section" class="nav-section">
|
62
|
+
<h3>Parent</h3>
|
63
|
+
|
64
|
+
<p class="link"><a href="Object.html">Object</a>
|
65
|
+
</div>
|
66
|
+
|
67
|
+
|
68
|
+
|
69
|
+
|
70
|
+
<!-- Method Quickref -->
|
71
|
+
<div id="method-list-section" class="nav-section">
|
72
|
+
<h3>Methods</h3>
|
73
|
+
|
74
|
+
<ul class="link-list" role="directory">
|
75
|
+
<li ><a href="#method-i-bool-3F">#bool?</a>
|
76
|
+
</ul>
|
77
|
+
</div>
|
78
|
+
|
79
|
+
</div>
|
80
|
+
</nav>
|
81
|
+
|
82
|
+
<main role="main" aria-labelledby="class-TrueClass">
|
83
|
+
<h1 id="class-TrueClass" class="class">
|
84
|
+
class TrueClass
|
85
|
+
</h1>
|
86
|
+
|
87
|
+
<section class="description">
|
88
|
+
|
89
|
+
<p>True class</p>
|
90
|
+
|
91
|
+
</section>
|
92
|
+
|
93
|
+
<section id="5Buntitled-5D" class="documentation-section">
|
94
|
+
|
95
|
+
|
96
|
+
|
97
|
+
|
98
|
+
|
99
|
+
<section id="public-instance-5Buntitled-5D-method-details" class="method-section">
|
100
|
+
<header>
|
101
|
+
<h3>Public Instance Methods</h3>
|
102
|
+
</header>
|
103
|
+
|
104
|
+
<div id="method-i-bool-3F" class="method-detail ">
|
105
|
+
<div class="method-header">
|
106
|
+
<div class="method-heading">
|
107
|
+
<span class="method-name">bool?</span><span
|
108
|
+
class="method-args">()</span>
|
109
|
+
<span class="method-click-advice">click to toggle source</span>
|
110
|
+
</div>
|
111
|
+
</div>
|
112
|
+
|
113
|
+
<div class="method-description">
|
114
|
+
|
115
|
+
|
116
|
+
<div class="method-source-code" id="bool-3F-source">
|
117
|
+
<pre><span class="ruby-comment"># File lib/conductor/boolean.rb, line 5</span>
|
118
|
+
<span class="ruby-keyword">def</span> <span class="ruby-identifier ruby-title">bool?</span>
|
119
|
+
<span class="ruby-keyword">true</span>
|
120
|
+
<span class="ruby-keyword">end</span></pre>
|
121
|
+
</div>
|
122
|
+
</div>
|
123
|
+
|
124
|
+
|
125
|
+
</div>
|
126
|
+
|
127
|
+
</section>
|
128
|
+
|
129
|
+
</section>
|
130
|
+
</main>
|
131
|
+
|
132
|
+
|
133
|
+
<footer id="validator-badges" role="contentinfo">
|
134
|
+
<p><a href="https://validator.w3.org/check/referer">Validate</a>
|
135
|
+
<p>Generated by <a href="https://ruby.github.io/rdoc/">RDoc</a> 6.6.2.
|
136
|
+
<p>Based on <a href="http://deveiate.org/projects/Darkfish-RDoc/">Darkfish</a> by <a href="http://deveiate.org">Michael Granger</a>.
|
137
|
+
</footer>
|
138
|
+
|
data/html/created.rid
ADDED
@@ -0,0 +1,14 @@
|
|
1
|
+
Mon, 29 Apr 2024 09:46:47 -0500
|
2
|
+
README.rdoc Sun, 28 Apr 2024 13:21:34 -0500
|
3
|
+
lib/conductor.rb Sun, 28 Apr 2024 13:46:38 -0500
|
4
|
+
lib/conductor/array.rb Sat, 27 Apr 2024 11:54:28 -0500
|
5
|
+
lib/conductor/boolean.rb Thu, 25 Apr 2024 14:25:59 -0500
|
6
|
+
lib/conductor/command.rb Sat, 27 Apr 2024 11:54:28 -0500
|
7
|
+
lib/conductor/condition.rb Mon, 29 Apr 2024 09:19:15 -0500
|
8
|
+
lib/conductor/config.rb Sat, 27 Apr 2024 11:54:28 -0500
|
9
|
+
lib/conductor/env.rb Mon, 29 Apr 2024 09:28:21 -0500
|
10
|
+
lib/conductor/hash.rb Sat, 27 Apr 2024 11:54:28 -0500
|
11
|
+
lib/conductor/script.rb Sun, 28 Apr 2024 16:21:49 -0500
|
12
|
+
lib/conductor/string.rb Mon, 29 Apr 2024 09:46:03 -0500
|
13
|
+
lib/conductor/version.rb Sun, 28 Apr 2024 14:06:10 -0500
|
14
|
+
bin/conductor Sun, 28 Apr 2024 16:24:45 -0500
|