pueri 0.7.0
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 +7 -0
- data/.gitattributes +194 -0
- data/.github/ISSUE_TEMPLATE/bug_report.md +38 -0
- data/.github/ISSUE_TEMPLATE/feature_request.md +20 -0
- data/.github/ISSUE_TEMPLATE/user_question.md +14 -0
- data/.github/PULL_REQUEST_TEMPLATE.md +14 -0
- data/.github/config.yml +49 -0
- data/.gitignore +252 -0
- data/.rspec +3 -0
- data/.rubocop.yml +10 -0
- data/.travis.yml +22 -0
- data/CHANGELOG.md +26 -0
- data/CODE-OF-CONDUCT.md +78 -0
- data/CONTRIBUTING.md +22 -0
- data/Gemfile +10 -0
- data/Gemfile.lock +82 -0
- data/LICENSE.md +13 -0
- data/README.md +43 -0
- data/Rakefile +8 -0
- data/bin/console +15 -0
- data/bin/setup +8 -0
- data/docs/Pueri.html +231 -0
- data/docs/Pueri/Age.html +600 -0
- data/docs/Pueri/Neuro.html +660 -0
- data/docs/Pueri/Vax.html +698 -0
- data/docs/_index.html +152 -0
- data/docs/class_list.html +51 -0
- data/docs/css/common.css +1 -0
- data/docs/css/full_list.css +58 -0
- data/docs/css/style.css +496 -0
- data/docs/file.README.html +116 -0
- data/docs/file_list.html +56 -0
- data/docs/frames.html +17 -0
- data/docs/index.html +116 -0
- data/docs/js/app.js +303 -0
- data/docs/js/full_list.js +216 -0
- data/docs/js/jquery.js +4 -0
- data/docs/method_list.html +211 -0
- data/docs/top-level-namespace.html +110 -0
- data/lib/pueri.rb +15 -0
- data/lib/pueri/age.rb +161 -0
- data/lib/pueri/neuro.rb +144 -0
- data/lib/pueri/vax.rb +121 -0
- data/lib/pueri/version.rb +17 -0
- data/package.json +16 -0
- data/pueri.gemspec +45 -0
- metadata +163 -0
data/docs/Pueri/Vax.html
ADDED
@@ -0,0 +1,698 @@
|
|
1
|
+
<!DOCTYPE html>
|
2
|
+
<html>
|
3
|
+
<head>
|
4
|
+
<meta charset="utf-8">
|
5
|
+
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
6
|
+
<title>
|
7
|
+
Class: Pueri::Vax
|
8
|
+
|
9
|
+
— Documentation by YARD 0.9.20
|
10
|
+
|
11
|
+
</title>
|
12
|
+
|
13
|
+
<link rel="stylesheet" href="../css/style.css" type="text/css" charset="utf-8" />
|
14
|
+
|
15
|
+
<link rel="stylesheet" href="../css/common.css" type="text/css" charset="utf-8" />
|
16
|
+
|
17
|
+
<script type="text/javascript" charset="utf-8">
|
18
|
+
pathId = "Pueri::Vax";
|
19
|
+
relpath = '../';
|
20
|
+
</script>
|
21
|
+
|
22
|
+
|
23
|
+
<script type="text/javascript" charset="utf-8" src="../js/jquery.js"></script>
|
24
|
+
|
25
|
+
<script type="text/javascript" charset="utf-8" src="../js/app.js"></script>
|
26
|
+
|
27
|
+
|
28
|
+
</head>
|
29
|
+
<body>
|
30
|
+
<div class="nav_wrap">
|
31
|
+
<iframe id="nav" src="../class_list.html?1"></iframe>
|
32
|
+
<div id="resizer"></div>
|
33
|
+
</div>
|
34
|
+
|
35
|
+
<div id="main" tabindex="-1">
|
36
|
+
<div id="header">
|
37
|
+
<div id="menu">
|
38
|
+
|
39
|
+
<a href="../_index.html">Index (V)</a> »
|
40
|
+
<span class='title'><span class='object_link'><a href="../Pueri.html" title="Pueri (module)">Pueri</a></span></span>
|
41
|
+
»
|
42
|
+
<span class="title">Vax</span>
|
43
|
+
|
44
|
+
</div>
|
45
|
+
|
46
|
+
<div id="search">
|
47
|
+
|
48
|
+
<a class="full_list_link" id="class_list_link"
|
49
|
+
href="../class_list.html">
|
50
|
+
|
51
|
+
<svg width="24" height="24">
|
52
|
+
<rect x="0" y="4" width="24" height="4" rx="1" ry="1"></rect>
|
53
|
+
<rect x="0" y="12" width="24" height="4" rx="1" ry="1"></rect>
|
54
|
+
<rect x="0" y="20" width="24" height="4" rx="1" ry="1"></rect>
|
55
|
+
</svg>
|
56
|
+
</a>
|
57
|
+
|
58
|
+
</div>
|
59
|
+
<div class="clear"></div>
|
60
|
+
</div>
|
61
|
+
|
62
|
+
<div id="content"><h1>Class: Pueri::Vax
|
63
|
+
|
64
|
+
|
65
|
+
|
66
|
+
</h1>
|
67
|
+
<div class="box_info">
|
68
|
+
|
69
|
+
<dl>
|
70
|
+
<dt>Inherits:</dt>
|
71
|
+
<dd>
|
72
|
+
<span class="inheritName">Object</span>
|
73
|
+
|
74
|
+
<ul class="fullTree">
|
75
|
+
<li>Object</li>
|
76
|
+
|
77
|
+
<li class="next">Pueri::Vax</li>
|
78
|
+
|
79
|
+
</ul>
|
80
|
+
<a href="#" class="inheritanceTree">show all</a>
|
81
|
+
|
82
|
+
</dd>
|
83
|
+
</dl>
|
84
|
+
|
85
|
+
|
86
|
+
|
87
|
+
|
88
|
+
|
89
|
+
|
90
|
+
|
91
|
+
|
92
|
+
|
93
|
+
|
94
|
+
|
95
|
+
<dl>
|
96
|
+
<dt>Defined in:</dt>
|
97
|
+
<dd>lib/pueri/vax.rb</dd>
|
98
|
+
</dl>
|
99
|
+
|
100
|
+
</div>
|
101
|
+
|
102
|
+
<h2>Overview</h2><div class="docstring">
|
103
|
+
<div class="discussion">
|
104
|
+
|
105
|
+
<p>Gets input from child vaccination calendar for children (PNI) and an age in
|
106
|
+
days. With this, process which vaccines are due by that age.</p>
|
107
|
+
|
108
|
+
|
109
|
+
</div>
|
110
|
+
</div>
|
111
|
+
<div class="tags">
|
112
|
+
|
113
|
+
|
114
|
+
</div>
|
115
|
+
|
116
|
+
|
117
|
+
|
118
|
+
<h2>Instance Attribute Summary <small><a href="#" class="summary_toggle">collapse</a></small></h2>
|
119
|
+
<ul class="summary">
|
120
|
+
|
121
|
+
<li class="public ">
|
122
|
+
<span class="summary_signature">
|
123
|
+
|
124
|
+
<a href="#calendar-instance_method" title="#calendar (instance method)">#<strong>calendar</strong> ⇒ Object </a>
|
125
|
+
|
126
|
+
|
127
|
+
|
128
|
+
</span>
|
129
|
+
|
130
|
+
|
131
|
+
|
132
|
+
|
133
|
+
<span class="note title readonly">readonly</span>
|
134
|
+
|
135
|
+
|
136
|
+
|
137
|
+
|
138
|
+
|
139
|
+
|
140
|
+
|
141
|
+
|
142
|
+
|
143
|
+
<span class="summary_desc"><div class='inline'>
|
144
|
+
<p>Returns the value of attribute calendar.</p>
|
145
|
+
</div></span>
|
146
|
+
|
147
|
+
</li>
|
148
|
+
|
149
|
+
|
150
|
+
<li class="public ">
|
151
|
+
<span class="summary_signature">
|
152
|
+
|
153
|
+
<a href="#header-instance_method" title="#header (instance method)">#<strong>header</strong> ⇒ Object </a>
|
154
|
+
|
155
|
+
|
156
|
+
|
157
|
+
</span>
|
158
|
+
|
159
|
+
|
160
|
+
|
161
|
+
|
162
|
+
<span class="note title readonly">readonly</span>
|
163
|
+
|
164
|
+
|
165
|
+
|
166
|
+
|
167
|
+
|
168
|
+
|
169
|
+
|
170
|
+
|
171
|
+
|
172
|
+
<span class="summary_desc"><div class='inline'>
|
173
|
+
<p>Returns the value of attribute header.</p>
|
174
|
+
</div></span>
|
175
|
+
|
176
|
+
</li>
|
177
|
+
|
178
|
+
|
179
|
+
<li class="public ">
|
180
|
+
<span class="summary_signature">
|
181
|
+
|
182
|
+
<a href="#notes-instance_method" title="#notes (instance method)">#<strong>notes</strong> ⇒ Object </a>
|
183
|
+
|
184
|
+
|
185
|
+
|
186
|
+
</span>
|
187
|
+
|
188
|
+
|
189
|
+
|
190
|
+
|
191
|
+
<span class="note title readonly">readonly</span>
|
192
|
+
|
193
|
+
|
194
|
+
|
195
|
+
|
196
|
+
|
197
|
+
|
198
|
+
|
199
|
+
|
200
|
+
|
201
|
+
<span class="summary_desc"><div class='inline'>
|
202
|
+
<p>Returns the value of attribute notes.</p>
|
203
|
+
</div></span>
|
204
|
+
|
205
|
+
</li>
|
206
|
+
|
207
|
+
|
208
|
+
<li class="public ">
|
209
|
+
<span class="summary_signature">
|
210
|
+
|
211
|
+
<a href="#range-instance_method" title="#range (instance method)">#<strong>range</strong> ⇒ Object </a>
|
212
|
+
|
213
|
+
|
214
|
+
|
215
|
+
</span>
|
216
|
+
|
217
|
+
|
218
|
+
|
219
|
+
|
220
|
+
<span class="note title readonly">readonly</span>
|
221
|
+
|
222
|
+
|
223
|
+
|
224
|
+
|
225
|
+
|
226
|
+
|
227
|
+
|
228
|
+
|
229
|
+
|
230
|
+
<span class="summary_desc"><div class='inline'>
|
231
|
+
<p>Returns the value of attribute range.</p>
|
232
|
+
</div></span>
|
233
|
+
|
234
|
+
</li>
|
235
|
+
|
236
|
+
|
237
|
+
<li class="public ">
|
238
|
+
<span class="summary_signature">
|
239
|
+
|
240
|
+
<a href="#table-instance_method" title="#table (instance method)">#<strong>table</strong> ⇒ Object </a>
|
241
|
+
|
242
|
+
|
243
|
+
|
244
|
+
</span>
|
245
|
+
|
246
|
+
|
247
|
+
|
248
|
+
|
249
|
+
<span class="note title readonly">readonly</span>
|
250
|
+
|
251
|
+
|
252
|
+
|
253
|
+
|
254
|
+
|
255
|
+
|
256
|
+
|
257
|
+
|
258
|
+
|
259
|
+
<span class="summary_desc"><div class='inline'>
|
260
|
+
<p>Returns the value of attribute table.</p>
|
261
|
+
</div></span>
|
262
|
+
|
263
|
+
</li>
|
264
|
+
|
265
|
+
|
266
|
+
</ul>
|
267
|
+
|
268
|
+
|
269
|
+
|
270
|
+
|
271
|
+
|
272
|
+
<h2>
|
273
|
+
Instance Method Summary
|
274
|
+
<small><a href="#" class="summary_toggle">collapse</a></small>
|
275
|
+
</h2>
|
276
|
+
|
277
|
+
<ul class="summary">
|
278
|
+
|
279
|
+
<li class="public ">
|
280
|
+
<span class="summary_signature">
|
281
|
+
|
282
|
+
<a href="#initialize-instance_method" title="#initialize (instance method)">#<strong>initialize</strong>(norm_age) ⇒ Vax </a>
|
283
|
+
|
284
|
+
|
285
|
+
|
286
|
+
</span>
|
287
|
+
|
288
|
+
|
289
|
+
<span class="note title constructor">constructor</span>
|
290
|
+
|
291
|
+
|
292
|
+
|
293
|
+
|
294
|
+
|
295
|
+
|
296
|
+
|
297
|
+
|
298
|
+
<span class="summary_desc"><div class='inline'>
|
299
|
+
<p>A new instance of Vax.</p>
|
300
|
+
</div></span>
|
301
|
+
|
302
|
+
</li>
|
303
|
+
|
304
|
+
|
305
|
+
<li class="public ">
|
306
|
+
<span class="summary_signature">
|
307
|
+
|
308
|
+
<a href="#parse_notes-instance_method" title="#parse_notes (instance method)">#<strong>parse_notes</strong> ⇒ String </a>
|
309
|
+
|
310
|
+
|
311
|
+
|
312
|
+
</span>
|
313
|
+
|
314
|
+
|
315
|
+
|
316
|
+
|
317
|
+
|
318
|
+
|
319
|
+
|
320
|
+
|
321
|
+
|
322
|
+
<span class="summary_desc"><div class='inline'>
|
323
|
+
<p>Retrieves the notes for the vaccination calendar, prettified.</p>
|
324
|
+
</div></span>
|
325
|
+
|
326
|
+
</li>
|
327
|
+
|
328
|
+
|
329
|
+
</ul>
|
330
|
+
|
331
|
+
|
332
|
+
<div id="constructor_details" class="method_details_list">
|
333
|
+
<h2>Constructor Details</h2>
|
334
|
+
|
335
|
+
<div class="method_details first">
|
336
|
+
<h3 class="signature first" id="initialize-instance_method">
|
337
|
+
|
338
|
+
#<strong>initialize</strong>(norm_age) ⇒ <tt><span class='object_link'><a href="" title="Pueri::Vax (class)">Vax</a></span></tt>
|
339
|
+
|
340
|
+
|
341
|
+
|
342
|
+
|
343
|
+
|
344
|
+
</h3><div class="docstring">
|
345
|
+
<div class="discussion">
|
346
|
+
|
347
|
+
<p>Returns a new instance of Vax</p>
|
348
|
+
|
349
|
+
|
350
|
+
</div>
|
351
|
+
</div>
|
352
|
+
<div class="tags">
|
353
|
+
|
354
|
+
|
355
|
+
</div><table class="source_code">
|
356
|
+
<tr>
|
357
|
+
<td>
|
358
|
+
<pre class="lines">
|
359
|
+
|
360
|
+
|
361
|
+
10
|
362
|
+
11
|
363
|
+
12
|
364
|
+
13
|
365
|
+
14</pre>
|
366
|
+
</td>
|
367
|
+
<td>
|
368
|
+
<pre class="code"><span class="info file"># File 'lib/pueri/vax.rb', line 10</span>
|
369
|
+
|
370
|
+
<span class='kw'>def</span> <span class='id identifier rubyid_initialize'>initialize</span><span class='lparen'>(</span><span class='id identifier rubyid_norm_age'>norm_age</span><span class='rparen'>)</span>
|
371
|
+
<span class='id identifier rubyid_init_base'>init_base</span>
|
372
|
+
<span class='ivar'>@range</span> <span class='op'>=</span> <span class='id identifier rubyid_calc_range'>calc_range</span><span class='lparen'>(</span><span class='id identifier rubyid_norm_age'>norm_age</span><span class='rparen'>)</span>
|
373
|
+
<span class='id identifier rubyid_parse_calendar'>parse_calendar</span>
|
374
|
+
<span class='kw'>end</span></pre>
|
375
|
+
</td>
|
376
|
+
</tr>
|
377
|
+
</table>
|
378
|
+
</div>
|
379
|
+
|
380
|
+
</div>
|
381
|
+
|
382
|
+
<div id="instance_attr_details" class="attr_details">
|
383
|
+
<h2>Instance Attribute Details</h2>
|
384
|
+
|
385
|
+
|
386
|
+
<span id=""></span>
|
387
|
+
<div class="method_details first">
|
388
|
+
<h3 class="signature first" id="calendar-instance_method">
|
389
|
+
|
390
|
+
#<strong>calendar</strong> ⇒ <tt>Object</tt> <span class="extras">(readonly)</span>
|
391
|
+
|
392
|
+
|
393
|
+
|
394
|
+
|
395
|
+
|
396
|
+
</h3><div class="docstring">
|
397
|
+
<div class="discussion">
|
398
|
+
|
399
|
+
<p>Returns the value of attribute calendar</p>
|
400
|
+
|
401
|
+
|
402
|
+
</div>
|
403
|
+
</div>
|
404
|
+
<div class="tags">
|
405
|
+
|
406
|
+
|
407
|
+
</div><table class="source_code">
|
408
|
+
<tr>
|
409
|
+
<td>
|
410
|
+
<pre class="lines">
|
411
|
+
|
412
|
+
|
413
|
+
7
|
414
|
+
8
|
415
|
+
9</pre>
|
416
|
+
</td>
|
417
|
+
<td>
|
418
|
+
<pre class="code"><span class="info file"># File 'lib/pueri/vax.rb', line 7</span>
|
419
|
+
|
420
|
+
<span class='kw'>def</span> <span class='id identifier rubyid_calendar'>calendar</span>
|
421
|
+
<span class='ivar'>@calendar</span>
|
422
|
+
<span class='kw'>end</span></pre>
|
423
|
+
</td>
|
424
|
+
</tr>
|
425
|
+
</table>
|
426
|
+
</div>
|
427
|
+
|
428
|
+
|
429
|
+
<span id=""></span>
|
430
|
+
<div class="method_details ">
|
431
|
+
<h3 class="signature " id="header-instance_method">
|
432
|
+
|
433
|
+
#<strong>header</strong> ⇒ <tt>Object</tt> <span class="extras">(readonly)</span>
|
434
|
+
|
435
|
+
|
436
|
+
|
437
|
+
|
438
|
+
|
439
|
+
</h3><div class="docstring">
|
440
|
+
<div class="discussion">
|
441
|
+
|
442
|
+
<p>Returns the value of attribute header</p>
|
443
|
+
|
444
|
+
|
445
|
+
</div>
|
446
|
+
</div>
|
447
|
+
<div class="tags">
|
448
|
+
|
449
|
+
|
450
|
+
</div><table class="source_code">
|
451
|
+
<tr>
|
452
|
+
<td>
|
453
|
+
<pre class="lines">
|
454
|
+
|
455
|
+
|
456
|
+
7
|
457
|
+
8
|
458
|
+
9</pre>
|
459
|
+
</td>
|
460
|
+
<td>
|
461
|
+
<pre class="code"><span class="info file"># File 'lib/pueri/vax.rb', line 7</span>
|
462
|
+
|
463
|
+
<span class='kw'>def</span> <span class='id identifier rubyid_header'>header</span>
|
464
|
+
<span class='ivar'>@header</span>
|
465
|
+
<span class='kw'>end</span></pre>
|
466
|
+
</td>
|
467
|
+
</tr>
|
468
|
+
</table>
|
469
|
+
</div>
|
470
|
+
|
471
|
+
|
472
|
+
<span id=""></span>
|
473
|
+
<div class="method_details ">
|
474
|
+
<h3 class="signature " id="notes-instance_method">
|
475
|
+
|
476
|
+
#<strong>notes</strong> ⇒ <tt>Object</tt> <span class="extras">(readonly)</span>
|
477
|
+
|
478
|
+
|
479
|
+
|
480
|
+
|
481
|
+
|
482
|
+
</h3><div class="docstring">
|
483
|
+
<div class="discussion">
|
484
|
+
|
485
|
+
<p>Returns the value of attribute notes</p>
|
486
|
+
|
487
|
+
|
488
|
+
</div>
|
489
|
+
</div>
|
490
|
+
<div class="tags">
|
491
|
+
|
492
|
+
|
493
|
+
</div><table class="source_code">
|
494
|
+
<tr>
|
495
|
+
<td>
|
496
|
+
<pre class="lines">
|
497
|
+
|
498
|
+
|
499
|
+
7
|
500
|
+
8
|
501
|
+
9</pre>
|
502
|
+
</td>
|
503
|
+
<td>
|
504
|
+
<pre class="code"><span class="info file"># File 'lib/pueri/vax.rb', line 7</span>
|
505
|
+
|
506
|
+
<span class='kw'>def</span> <span class='id identifier rubyid_notes'>notes</span>
|
507
|
+
<span class='ivar'>@notes</span>
|
508
|
+
<span class='kw'>end</span></pre>
|
509
|
+
</td>
|
510
|
+
</tr>
|
511
|
+
</table>
|
512
|
+
</div>
|
513
|
+
|
514
|
+
|
515
|
+
<span id=""></span>
|
516
|
+
<div class="method_details ">
|
517
|
+
<h3 class="signature " id="range-instance_method">
|
518
|
+
|
519
|
+
#<strong>range</strong> ⇒ <tt>Object</tt> <span class="extras">(readonly)</span>
|
520
|
+
|
521
|
+
|
522
|
+
|
523
|
+
|
524
|
+
|
525
|
+
</h3><div class="docstring">
|
526
|
+
<div class="discussion">
|
527
|
+
|
528
|
+
<p>Returns the value of attribute range</p>
|
529
|
+
|
530
|
+
|
531
|
+
</div>
|
532
|
+
</div>
|
533
|
+
<div class="tags">
|
534
|
+
|
535
|
+
|
536
|
+
</div><table class="source_code">
|
537
|
+
<tr>
|
538
|
+
<td>
|
539
|
+
<pre class="lines">
|
540
|
+
|
541
|
+
|
542
|
+
8
|
543
|
+
9
|
544
|
+
10</pre>
|
545
|
+
</td>
|
546
|
+
<td>
|
547
|
+
<pre class="code"><span class="info file"># File 'lib/pueri/vax.rb', line 8</span>
|
548
|
+
|
549
|
+
<span class='kw'>def</span> <span class='id identifier rubyid_range'>range</span>
|
550
|
+
<span class='ivar'>@range</span>
|
551
|
+
<span class='kw'>end</span></pre>
|
552
|
+
</td>
|
553
|
+
</tr>
|
554
|
+
</table>
|
555
|
+
</div>
|
556
|
+
|
557
|
+
|
558
|
+
<span id=""></span>
|
559
|
+
<div class="method_details ">
|
560
|
+
<h3 class="signature " id="table-instance_method">
|
561
|
+
|
562
|
+
#<strong>table</strong> ⇒ <tt>Object</tt> <span class="extras">(readonly)</span>
|
563
|
+
|
564
|
+
|
565
|
+
|
566
|
+
|
567
|
+
|
568
|
+
</h3><div class="docstring">
|
569
|
+
<div class="discussion">
|
570
|
+
|
571
|
+
<p>Returns the value of attribute table</p>
|
572
|
+
|
573
|
+
|
574
|
+
</div>
|
575
|
+
</div>
|
576
|
+
<div class="tags">
|
577
|
+
|
578
|
+
|
579
|
+
</div><table class="source_code">
|
580
|
+
<tr>
|
581
|
+
<td>
|
582
|
+
<pre class="lines">
|
583
|
+
|
584
|
+
|
585
|
+
8
|
586
|
+
9
|
587
|
+
10</pre>
|
588
|
+
</td>
|
589
|
+
<td>
|
590
|
+
<pre class="code"><span class="info file"># File 'lib/pueri/vax.rb', line 8</span>
|
591
|
+
|
592
|
+
<span class='kw'>def</span> <span class='id identifier rubyid_table'>table</span>
|
593
|
+
<span class='ivar'>@table</span>
|
594
|
+
<span class='kw'>end</span></pre>
|
595
|
+
</td>
|
596
|
+
</tr>
|
597
|
+
</table>
|
598
|
+
</div>
|
599
|
+
|
600
|
+
</div>
|
601
|
+
|
602
|
+
|
603
|
+
<div id="instance_method_details" class="method_details_list">
|
604
|
+
<h2>Instance Method Details</h2>
|
605
|
+
|
606
|
+
|
607
|
+
<div class="method_details first">
|
608
|
+
<h3 class="signature first" id="parse_notes-instance_method">
|
609
|
+
|
610
|
+
#<strong>parse_notes</strong> ⇒ <tt>String</tt>
|
611
|
+
|
612
|
+
|
613
|
+
|
614
|
+
|
615
|
+
|
616
|
+
</h3><div class="docstring">
|
617
|
+
<div class="discussion">
|
618
|
+
|
619
|
+
<p>Retrieves the notes for the vaccination calendar, prettified.</p>
|
620
|
+
|
621
|
+
|
622
|
+
</div>
|
623
|
+
</div>
|
624
|
+
<div class="tags">
|
625
|
+
|
626
|
+
<p class="tag_title">Returns:</p>
|
627
|
+
<ul class="return">
|
628
|
+
|
629
|
+
<li>
|
630
|
+
|
631
|
+
|
632
|
+
<span class='type'>(<tt>String</tt>)</span>
|
633
|
+
|
634
|
+
|
635
|
+
|
636
|
+
—
|
637
|
+
<div class='inline'>
|
638
|
+
<p>The notes for the vaccines' calendar.</p>
|
639
|
+
</div>
|
640
|
+
|
641
|
+
</li>
|
642
|
+
|
643
|
+
</ul>
|
644
|
+
|
645
|
+
</div><table class="source_code">
|
646
|
+
<tr>
|
647
|
+
<td>
|
648
|
+
<pre class="lines">
|
649
|
+
|
650
|
+
|
651
|
+
19
|
652
|
+
20
|
653
|
+
21
|
654
|
+
22
|
655
|
+
23
|
656
|
+
24
|
657
|
+
25
|
658
|
+
26
|
659
|
+
27
|
660
|
+
28
|
661
|
+
29
|
662
|
+
30
|
663
|
+
31</pre>
|
664
|
+
</td>
|
665
|
+
<td>
|
666
|
+
<pre class="code"><span class="info file"># File 'lib/pueri/vax.rb', line 19</span>
|
667
|
+
|
668
|
+
<span class='kw'>def</span> <span class='id identifier rubyid_parse_notes'>parse_notes</span>
|
669
|
+
<span class='id identifier rubyid_r'>r</span> <span class='op'>=</span> <span class='tstring'><span class='tstring_beg'>'</span><span class='tstring_end'>'</span></span>
|
670
|
+
<span class='id identifier rubyid_max'>max</span> <span class='op'>=</span> <span class='ivar'>@notes</span><span class='period'>.</span><span class='id identifier rubyid_size'>size</span>
|
671
|
+
<span class='id identifier rubyid_p'>p</span> <span class='op'>=</span> <span class='const'>Pastel</span><span class='period'>.</span><span class='id identifier rubyid_new'>new</span>
|
672
|
+
|
673
|
+
<span class='ivar'>@notes</span><span class='period'>.</span><span class='id identifier rubyid_each_with_index'>each_with_index</span> <span class='kw'>do</span> <span class='op'>|</span><span class='id identifier rubyid_line'>line</span><span class='comma'>,</span> <span class='id identifier rubyid_k'>k</span><span class='op'>|</span>
|
674
|
+
<span class='id identifier rubyid_pre'>pre</span> <span class='op'>=</span> <span class='tstring'><span class='tstring_beg'>'</span><span class='tstring_content'> </span><span class='tstring_end'>'</span></span> <span class='op'>*</span> <span class='lparen'>(</span><span class='id identifier rubyid_max'>max</span> <span class='op'>-</span> <span class='lparen'>(</span><span class='id identifier rubyid_k'>k</span> <span class='op'>+</span> <span class='int'>1</span><span class='rparen'>)</span><span class='rparen'>)</span>
|
675
|
+
<span class='id identifier rubyid_pre'>pre</span> <span class='op'>+=</span> <span class='tstring'><span class='tstring_beg'>'</span><span class='tstring_content'>*</span><span class='tstring_end'>'</span></span> <span class='op'>*</span> <span class='lparen'>(</span><span class='id identifier rubyid_k'>k</span><span class='period'>.</span><span class='id identifier rubyid_to_i'>to_i</span> <span class='op'>+</span> <span class='int'>1</span><span class='rparen'>)</span>
|
676
|
+
<span class='id identifier rubyid_r'>r</span> <span class='op'>+=</span> <span class='tstring'><span class='tstring_beg'>"</span><span class='tstring_content'>\n</span><span class='embexpr_beg'>#{</span><span class='id identifier rubyid_p'>p</span><span class='period'>.</span><span class='id identifier rubyid_cyan'>cyan</span><span class='lparen'>(</span><span class='id identifier rubyid_pre'>pre</span><span class='rparen'>)</span><span class='embexpr_end'>}</span><span class='tstring_content'> </span><span class='embexpr_beg'>#{</span><span class='id identifier rubyid_line'>line</span><span class='embexpr_end'>}</span><span class='tstring_end'>"</span></span>
|
677
|
+
<span class='kw'>end</span>
|
678
|
+
|
679
|
+
<span class='id identifier rubyid_r'>r</span>
|
680
|
+
<span class='kw'>end</span></pre>
|
681
|
+
</td>
|
682
|
+
</tr>
|
683
|
+
</table>
|
684
|
+
</div>
|
685
|
+
|
686
|
+
</div>
|
687
|
+
|
688
|
+
</div>
|
689
|
+
|
690
|
+
<div id="footer">
|
691
|
+
Generated on Sat Oct 19 21:50:31 2019 by
|
692
|
+
<a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
|
693
|
+
0.9.20 (ruby-2.5.5).
|
694
|
+
</div>
|
695
|
+
|
696
|
+
</div>
|
697
|
+
</body>
|
698
|
+
</html>
|