nikki 0.5.3 → 0.5.4

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.
data/doc/Generator.html DELETED
@@ -1,829 +0,0 @@
1
- <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
2
- "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
3
- <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
4
- <head>
5
- <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
6
- <title>
7
- Class: Generator
8
-
9
- &mdash; Documentation by YARD 0.8.7.4
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
- <link rel="stylesheet" href="css/cucumber.css" type="text/css" charset="utf-8" />
18
-
19
- <script type="text/javascript" charset="utf-8">
20
- hasFrames = window.top.frames.main ? true : false;
21
- relpath = '';
22
- framesUrl = "frames.html#!Generator.html";
23
- </script>
24
-
25
-
26
- <script type="text/javascript" charset="utf-8" src="js/jquery.js"></script>
27
-
28
- <script type="text/javascript" charset="utf-8" src="js/app.js"></script>
29
-
30
- <script type="text/javascript" charset="utf-8" src="js/cucumber.js"></script>
31
-
32
-
33
- </head>
34
- <body>
35
- <div id="header">
36
- <div id="menu">
37
-
38
- <a href="_index.html">Index (G)</a> &raquo;
39
-
40
-
41
- <span class="title">Generator</span>
42
-
43
-
44
- <div class="noframes"><span class="title">(</span><a href="." target="_top">no frames</a><span class="title">)</span></div>
45
- </div>
46
-
47
- <div id="search">
48
-
49
- <a class="full_list_link" id="feature_list_link"
50
- href="feature_list.html">
51
- Features
52
- </a>
53
-
54
- <a class="full_list_link" id="tag_list_link"
55
- href="tag_list.html">
56
- Tags
57
- </a>
58
-
59
- <a class="full_list_link" id="class_list_link"
60
- href="class_list.html">
61
- Class List
62
- </a>
63
-
64
- <a class="full_list_link" id="method_list_link"
65
- href="method_list.html">
66
- Method List
67
- </a>
68
-
69
- <a class="full_list_link" id="file_list_link"
70
- href="file_list.html">
71
- File List
72
- </a>
73
-
74
- </div>
75
- <div class="clear"></div>
76
- </div>
77
-
78
- <iframe id="search_frame"></iframe>
79
-
80
- <div id="content"><h1>Class: Generator
81
-
82
-
83
-
84
- </h1>
85
-
86
- <dl class="box">
87
-
88
- <dt class="r1">Inherits:</dt>
89
- <dd class="r1">
90
- <span class="inheritName">Thor</span>
91
-
92
- <ul class="fullTree">
93
- <li>Object</li>
94
-
95
- <li class="next">Thor</li>
96
-
97
- <li class="next">Generator</li>
98
-
99
- </ul>
100
- <a href="#" class="inheritanceTree">show all</a>
101
-
102
- </dd>
103
-
104
-
105
-
106
-
107
-
108
-
109
-
110
-
111
-
112
- <dt class="r2 last">Defined in:</dt>
113
- <dd class="r2 last">lib/nikki.rb</dd>
114
-
115
- </dl>
116
- <div class="clear"></div>
117
-
118
- <h2>Overview</h2><div class="docstring">
119
- <div class="discussion">
120
-
121
- <p>This is the main class that interfaces with Thor&#39;s methods and does all
122
- the heavy lifting for Nikki. It&#39;s a bit of a “God” object. Sorries.</p>
123
-
124
-
125
- </div>
126
- </div>
127
- <div class="tags">
128
-
129
- <p class="tag_title">Author:</p>
130
- <ul class="author">
131
-
132
- <li>
133
-
134
-
135
-
136
-
137
-
138
- <div class='inline'>
139
- <p>Brandon Pittman</p>
140
- </div>
141
-
142
- </li>
143
-
144
- </ul>
145
-
146
- </div>
147
-
148
-
149
-
150
-
151
-
152
-
153
-
154
- <h2>
155
- Instance Method Summary
156
- <small>(<a href="#" class="summary_toggle">collapse</a>)</small>
157
- </h2>
158
-
159
- <ul class="summary">
160
-
161
- <li class="public ">
162
- <span class="summary_signature">
163
-
164
- <a href="#config-instance_method" title="#config (instance method)">- (Object) <strong>config</strong> </a>
165
-
166
-
167
-
168
- </span>
169
-
170
-
171
-
172
-
173
-
174
-
175
-
176
-
177
-
178
- <span class="summary_desc"><div class='inline'>
179
- <p>Configure Nikki&#39;s settings.</p>
180
- </div></span>
181
-
182
- </li>
183
-
184
-
185
- <li class="public ">
186
- <span class="summary_signature">
187
-
188
- <a href="#ls-instance_method" title="#ls (instance method)">- (String) <strong>ls</strong> </a>
189
-
190
-
191
-
192
- </span>
193
-
194
-
195
-
196
-
197
-
198
-
199
-
200
-
201
-
202
- <span class="summary_desc"><div class='inline'>
203
- <p>Display Nikki&#39;s latest entires.</p>
204
- </div></span>
205
-
206
- </li>
207
-
208
-
209
- <li class="public ">
210
- <span class="summary_signature">
211
-
212
- <a href="#missed-instance_method" title="#missed (instance method)">- (Object) <strong>missed</strong>(entry) </a>
213
-
214
-
215
-
216
- </span>
217
-
218
-
219
-
220
-
221
-
222
-
223
-
224
-
225
-
226
- <span class="summary_desc"><div class='inline'>
227
- <p>Creates a new entry for yesterday.</p>
228
- </div></span>
229
-
230
- </li>
231
-
232
-
233
- <li class="public ">
234
- <span class="summary_signature">
235
-
236
- <a href="#new-instance_method" title="#new (instance method)">- (Hash) <strong>new</strong>(entry, update = nil) </a>
237
-
238
-
239
-
240
- </span>
241
-
242
-
243
-
244
-
245
-
246
-
247
-
248
-
249
-
250
- <span class="summary_desc"><div class='inline'>
251
- <p>Add entry to journal Will open your configured text editor on OS X if you
252
- didn&#39;t update the journal the previous day.</p>
253
- </div></span>
254
-
255
- </li>
256
-
257
-
258
- <li class="public ">
259
- <span class="summary_signature">
260
-
261
- <a href="#open-instance_method" title="#open (instance method)">- (Object) <strong>open</strong> </a>
262
-
263
-
264
-
265
- </span>
266
-
267
-
268
-
269
-
270
-
271
-
272
-
273
-
274
-
275
- <span class="summary_desc"><div class='inline'>
276
- <p>Open Nikki journal in configured text editor.</p>
277
- </div></span>
278
-
279
- </li>
280
-
281
-
282
- <li class="public ">
283
- <span class="summary_signature">
284
-
285
- <a href="#publish-instance_method" title="#publish (instance method)">- (Object) <strong>publish</strong>(year) </a>
286
-
287
-
288
-
289
- </span>
290
-
291
-
292
-
293
-
294
-
295
-
296
-
297
-
298
-
299
- <span class="summary_desc"><div class='inline'>
300
- <p>method calls the `markdown` method and creates a MultiMarkdown document
301
- with one big description list.</p>
302
- </div></span>
303
-
304
- </li>
305
-
306
-
307
- <li class="public ">
308
- <span class="summary_signature">
309
-
310
- <a href="#setup-instance_method" title="#setup (instance method)">- (Object) <strong>setup</strong> </a>
311
-
312
-
313
-
314
- </span>
315
-
316
-
317
-
318
-
319
-
320
-
321
-
322
-
323
-
324
- <span class="summary_desc"><div class='inline'>
325
- <p>This methods creates the “.nikki” directory, config file and journal file.</p>
326
- </div></span>
327
-
328
- </li>
329
-
330
-
331
- </ul>
332
-
333
-
334
-
335
-
336
-
337
- <div id="instance_method_details" class="method_details_list">
338
- <h2>Instance Method Details</h2>
339
-
340
-
341
- <div class="method_details first">
342
- <h3 class="signature first" id="config-instance_method">
343
-
344
- - (<tt>Object</tt>) <strong>config</strong>
345
-
346
-
347
-
348
-
349
-
350
- </h3><div class="docstring">
351
- <div class="discussion">
352
-
353
- <p>Configure Nikki&#39;s settings</p>
354
-
355
-
356
- </div>
357
- </div>
358
- <div class="tags">
359
- <p class="tag_title">Parameters:</p>
360
- <ul class="param">
361
-
362
- <li>
363
-
364
- <span class='name'>options</span>
365
-
366
-
367
- <span class='type'>(<tt>Hash</tt>)</span>
368
-
369
-
370
-
371
- &mdash;
372
- <div class='inline'>
373
- <p>The options for configuring Nikki</p>
374
- </div>
375
-
376
- </li>
377
-
378
- </ul>
379
-
380
-
381
-
382
-
383
- </div><table class="source_code">
384
- <tr>
385
- <td>
386
- <pre class="lines">
387
-
388
-
389
- 85
390
- 86
391
- 87
392
- 88
393
- 89
394
- 90
395
- 91
396
- 92
397
- 93</pre>
398
- </td>
399
- <td>
400
- <pre class="code"><span class="info file"># File 'lib/nikki.rb', line 85</span>
401
-
402
- <span class='kw'>def</span> <span class='id identifier rubyid_config'>config</span>
403
- <span class='id identifier rubyid_settings'>settings</span> <span class='op'>=</span> <span class='id identifier rubyid_read_config'>read_config</span>
404
- <span class='id identifier rubyid_settings'>settings</span><span class='lbracket'>[</span><span class='symbol'>:editor</span><span class='rbracket'>]</span> <span class='op'>=</span> <span class='id identifier rubyid_options'>options</span><span class='lbracket'>[</span><span class='symbol'>:editor</span><span class='rbracket'>]</span> <span class='op'>||</span> <span class='id identifier rubyid_read_config'>read_config</span><span class='lbracket'>[</span><span class='symbol'>:editor</span><span class='rbracket'>]</span>
405
- <span class='id identifier rubyid_settings'>settings</span><span class='lbracket'>[</span><span class='symbol'>:updated</span><span class='rbracket'>]</span> <span class='op'>=</span> <span class='const'>Date</span><span class='period'>.</span><span class='id identifier rubyid_today'>today</span><span class='op'>-</span><span class='int'>1</span> <span class='kw'>if</span> <span class='id identifier rubyid_options'>options</span><span class='lbracket'>[</span><span class='symbol'>:yesterday</span><span class='rbracket'>]</span>
406
- <span class='id identifier rubyid_settings'>settings</span><span class='lbracket'>[</span><span class='symbol'>:updated</span><span class='rbracket'>]</span> <span class='op'>=</span> <span class='const'>Date</span><span class='period'>.</span><span class='id identifier rubyid_today'>today</span> <span class='kw'>if</span> <span class='id identifier rubyid_options'>options</span><span class='lbracket'>[</span><span class='symbol'>:today</span><span class='rbracket'>]</span>
407
- <span class='id identifier rubyid_write_config'>write_config</span><span class='lparen'>(</span><span class='id identifier rubyid_settings'>settings</span><span class='rparen'>)</span>
408
- <span class='id identifier rubyid_puts'>puts</span> <span class='id identifier rubyid_settings'>settings</span><span class='period'>.</span><span class='id identifier rubyid_to_yaml'>to_yaml</span> <span class='kw'>if</span> <span class='id identifier rubyid_options'>options</span><span class='lbracket'>[</span><span class='symbol'>:print</span><span class='rbracket'>]</span>
409
- <span class='id identifier rubyid_puts'>puts</span> <span class='id identifier rubyid_latest'>latest</span> <span class='kw'>if</span> <span class='id identifier rubyid_options'>options</span><span class='lbracket'>[</span><span class='symbol'>:latest</span><span class='rbracket'>]</span>
410
- <span class='kw'>end</span></pre>
411
- </td>
412
- </tr>
413
- </table>
414
- </div>
415
-
416
- <div class="method_details ">
417
- <h3 class="signature " id="ls-instance_method">
418
-
419
- - (<tt>String</tt>) <strong>ls</strong>
420
-
421
-
422
-
423
-
424
-
425
- </h3><div class="docstring">
426
- <div class="discussion">
427
-
428
- <p>Display Nikki&#39;s latest entires</p>
429
-
430
-
431
- </div>
432
- </div>
433
- <div class="tags">
434
-
435
- <p class="tag_title">Returns:</p>
436
- <ul class="return">
437
-
438
- <li>
439
-
440
-
441
- <span class='type'>(<tt>String</tt>)</span>
442
-
443
-
444
-
445
- </li>
446
-
447
- </ul>
448
-
449
- </div><table class="source_code">
450
- <tr>
451
- <td>
452
- <pre class="lines">
453
-
454
-
455
- 68
456
- 69
457
- 70</pre>
458
- </td>
459
- <td>
460
- <pre class="code"><span class="info file"># File 'lib/nikki.rb', line 68</span>
461
-
462
- <span class='kw'>def</span> <span class='id identifier rubyid_ls'>ls</span>
463
- <span class='id identifier rubyid_puts'>puts</span> <span class='id identifier rubyid_latest'>latest</span>
464
- <span class='kw'>end</span></pre>
465
- </td>
466
- </tr>
467
- </table>
468
- </div>
469
-
470
- <div class="method_details ">
471
- <h3 class="signature " id="missed-instance_method">
472
-
473
- - (<tt>Object</tt>) <strong>missed</strong>(entry)
474
-
475
-
476
-
477
-
478
-
479
- </h3><div class="docstring">
480
- <div class="discussion">
481
-
482
- <p>Creates a new entry for yesterday</p>
483
-
484
-
485
- </div>
486
- </div>
487
- <div class="tags">
488
- <p class="tag_title">Parameters:</p>
489
- <ul class="param">
490
-
491
- <li>
492
-
493
- <span class='name'>entry</span>
494
-
495
-
496
- <span class='type'>(<tt>String</tt>)</span>
497
-
498
-
499
-
500
- </li>
501
-
502
- </ul>
503
-
504
-
505
- </div><table class="source_code">
506
- <tr>
507
- <td>
508
- <pre class="lines">
509
-
510
-
511
- 55
512
- 56
513
- 57</pre>
514
- </td>
515
- <td>
516
- <pre class="code"><span class="info file"># File 'lib/nikki.rb', line 55</span>
517
-
518
- <span class='kw'>def</span> <span class='id identifier rubyid_missed'>missed</span><span class='lparen'>(</span><span class='id identifier rubyid_entry'>entry</span><span class='rparen'>)</span>
519
- <span class='id identifier rubyid_new'>new</span><span class='lparen'>(</span><span class='id identifier rubyid_entry'>entry</span><span class='comma'>,</span> <span class='lparen'>(</span><span class='const'>Date</span><span class='period'>.</span><span class='id identifier rubyid_today'>today</span><span class='op'>-</span><span class='int'>1</span><span class='rparen'>)</span><span class='period'>.</span><span class='id identifier rubyid_to_s'>to_s</span><span class='rparen'>)</span>
520
- <span class='kw'>end</span></pre>
521
- </td>
522
- </tr>
523
- </table>
524
- </div>
525
-
526
- <div class="method_details ">
527
- <h3 class="signature " id="new-instance_method">
528
-
529
- - (<tt>Hash</tt>) <strong>new</strong>(entry, update = nil)
530
-
531
-
532
-
533
-
534
-
535
- </h3><div class="docstring">
536
- <div class="discussion">
537
-
538
- <p>Add entry to journal Will open your configured text editor on OS X if you
539
- didn&#39;t update the journal the previous day. This will allow you to add
540
- missing entries in bulk. It reads the settings in from the config YAML
541
- file and changes the date updated. It does the same with the journal file,
542
- reading in the YAML and merging the hash of entries, and then saves the
543
- YAML back again. There&#39;s also a method to check off a corresponding
544
- task in OmniFocus at the end.</p>
545
-
546
-
547
- </div>
548
- </div>
549
- <div class="tags">
550
-
551
- <div class="examples">
552
- <p class="tag_title">Examples:</p>
553
-
554
-
555
- <pre class="example code"><code><span class='tstring'><span class='tstring_beg'>&quot;</span><span class='tstring_content'>nikki new &#39;This is a thing I learned today!&#39;</span><span class='tstring_end'>&quot;</span></span></code></pre>
556
-
557
- </div>
558
- <p class="tag_title">Parameters:</p>
559
- <ul class="param">
560
-
561
- <li>
562
-
563
- <span class='name'>entry</span>
564
-
565
-
566
- <span class='type'>(<tt>String</tt>)</span>
567
-
568
-
569
-
570
- &mdash;
571
- <div class='inline'>
572
- <p>entry to add to the journal</p>
573
- </div>
574
-
575
- </li>
576
-
577
- <li>
578
-
579
- <span class='name'>update</span>
580
-
581
-
582
- <span class='type'>(<tt>String</tt>)</span>
583
-
584
-
585
- <em class="default">(defaults to: <tt>nil</tt>)</em>
586
-
587
-
588
- &mdash;
589
- <div class='inline'>
590
- <p>International date for update</p>
591
- </div>
592
-
593
- </li>
594
-
595
- </ul>
596
-
597
- <p class="tag_title">Returns:</p>
598
- <ul class="return">
599
-
600
- <li>
601
-
602
-
603
- <span class='type'>(<tt>Hash</tt>)</span>
604
-
605
-
606
-
607
- &mdash;
608
- <div class='inline'>
609
- <p>Returns a Hash which is then saved in a YAML file.</p>
610
- </div>
611
-
612
- </li>
613
-
614
- </ul>
615
-
616
- </div><table class="source_code">
617
- <tr>
618
- <td>
619
- <pre class="lines">
620
-
621
-
622
- 34
623
- 35
624
- 36
625
- 37
626
- 38
627
- 39
628
- 40
629
- 41
630
- 42
631
- 43
632
- 44
633
- 45
634
- 46
635
- 47
636
- 48
637
- 49
638
- 50</pre>
639
- </td>
640
- <td>
641
- <pre class="code"><span class="info file"># File 'lib/nikki.rb', line 34</span>
642
-
643
- <span class='kw'>def</span> <span class='id identifier rubyid_new'>new</span><span class='lparen'>(</span><span class='id identifier rubyid_entry'>entry</span><span class='comma'>,</span> <span class='id identifier rubyid_update'>update</span><span class='op'>=</span><span class='kw'>nil</span><span class='rparen'>)</span>
644
- <span class='id identifier rubyid_settings'>settings</span> <span class='op'>=</span> <span class='id identifier rubyid_read_config'>read_config</span>
645
- <span class='kw'>if</span> <span class='id identifier rubyid_update'>update</span>
646
- <span class='id identifier rubyid_date'>date</span> <span class='op'>=</span> <span class='const'>Date</span><span class='period'>.</span><span class='id identifier rubyid_parse'>parse</span><span class='lparen'>(</span><span class='id identifier rubyid_update'>update</span><span class='rparen'>)</span>
647
- <span class='id identifier rubyid_settings'>settings</span><span class='lbracket'>[</span><span class='symbol'>:updated</span><span class='rbracket'>]</span> <span class='op'>=</span> <span class='id identifier rubyid_date'>date</span>
648
- <span class='kw'>else</span>
649
- <span class='id identifier rubyid_date'>date</span> <span class='op'>=</span> <span class='id identifier rubyid_today'>today</span>
650
- <span class='id identifier rubyid_settings'>settings</span><span class='lbracket'>[</span><span class='symbol'>:updated</span><span class='rbracket'>]</span> <span class='op'>=</span> <span class='id identifier rubyid_today'>today</span>
651
- <span class='kw'>end</span>
652
- <span class='id identifier rubyid_entry_hash'>entry_hash</span> <span class='op'>=</span> <span class='lbrace'>{</span> <span class='id identifier rubyid_date'>date</span> <span class='op'>=&gt;</span> <span class='id identifier rubyid_entry'>entry</span> <span class='rbrace'>}</span>
653
- <span class='id identifier rubyid_journal'>journal</span> <span class='op'>=</span> <span class='id identifier rubyid_read_file'>read_file</span><span class='period'>.</span><span class='id identifier rubyid_merge'>merge</span><span class='lparen'>(</span><span class='id identifier rubyid_entry_hash'>entry_hash</span><span class='rparen'>)</span>
654
- <span class='id identifier rubyid_write_file'>write_file</span><span class='lparen'>(</span><span class='id identifier rubyid_journal'>journal</span><span class='rparen'>)</span>
655
- <span class='id identifier rubyid_open'>open</span> <span class='kw'>unless</span> <span class='id identifier rubyid_updated_yesterday?'>updated_yesterday?</span>
656
- <span class='id identifier rubyid_write_config'>write_config</span><span class='lparen'>(</span><span class='id identifier rubyid_settings'>settings</span><span class='rparen'>)</span>
657
- <span class='id identifier rubyid_add_to_omnifocus'>add_to_omnifocus</span>
658
- <span class='id identifier rubyid_puts'>puts</span> <span class='id identifier rubyid_latest'>latest</span>
659
- <span class='kw'>end</span></pre>
660
- </td>
661
- </tr>
662
- </table>
663
- </div>
664
-
665
- <div class="method_details ">
666
- <h3 class="signature " id="open-instance_method">
667
-
668
- - (<tt>Object</tt>) <strong>open</strong>
669
-
670
-
671
-
672
-
673
-
674
- </h3><div class="docstring">
675
- <div class="discussion">
676
-
677
- <p>Open Nikki journal in configured text editor</p>
678
-
679
-
680
- </div>
681
- </div>
682
- <div class="tags">
683
-
684
-
685
- </div><table class="source_code">
686
- <tr>
687
- <td>
688
- <pre class="lines">
689
-
690
-
691
- 61
692
- 62
693
- 63</pre>
694
- </td>
695
- <td>
696
- <pre class="code"><span class="info file"># File 'lib/nikki.rb', line 61</span>
697
-
698
- <span class='kw'>def</span> <span class='id identifier rubyid_open'>open</span>
699
- <span class='backtick'>%x{</span><span class='tstring_content'>open -a &quot;</span><span class='embexpr_beg'>#{</span><span class='id identifier rubyid_editor'>editor</span><span class='embexpr_end'>}</span><span class='tstring_content'>&quot; </span><span class='embexpr_beg'>#{</span><span class='id identifier rubyid_file'>file</span><span class='embexpr_end'>}</span><span class='tstring_end'>}</span></span>
700
- <span class='kw'>end</span></pre>
701
- </td>
702
- </tr>
703
- </table>
704
- </div>
705
-
706
- <div class="method_details ">
707
- <h3 class="signature " id="publish-instance_method">
708
-
709
- - (<tt>Object</tt>) <strong>publish</strong>(year)
710
-
711
-
712
-
713
-
714
-
715
- </h3><div class="docstring">
716
- <div class="discussion">
717
-
718
- <p>method calls the `markdown` method and creates a MultiMarkdown document
719
- with one big description list. This format is subject to change, but for
720
- now, it seems good enough.</p>
721
-
722
-
723
- </div>
724
- </div>
725
- <div class="tags">
726
- <p class="tag_title">Parameters:</p>
727
- <ul class="param">
728
-
729
- <li>
730
-
731
- <span class='name'>year</span>
732
-
733
-
734
- <span class='type'>(<tt>String</tt>)</span>
735
-
736
-
737
-
738
- &mdash;
739
- <div class='inline'>
740
- <p>of journal entries you wish to pubish as Markdown This</p>
741
- </div>
742
-
743
- </li>
744
-
745
- </ul>
746
-
747
-
748
- </div><table class="source_code">
749
- <tr>
750
- <td>
751
- <pre class="lines">
752
-
753
-
754
- 100
755
- 101
756
- 102
757
- 103
758
- 104</pre>
759
- </td>
760
- <td>
761
- <pre class="code"><span class="info file"># File 'lib/nikki.rb', line 100</span>
762
-
763
- <span class='kw'>def</span> <span class='id identifier rubyid_publish'>publish</span><span class='lparen'>(</span><span class='id identifier rubyid_year'>year</span><span class='rparen'>)</span>
764
- <span class='id identifier rubyid_md_path'>md_path</span> <span class='op'>=</span> <span class='tstring'><span class='tstring_beg'>&quot;</span><span class='embexpr_beg'>#{</span><span class='id identifier rubyid_path'>path</span><span class='embexpr_end'>}</span><span class='tstring_content'>nikki_markdown_</span><span class='embexpr_beg'>#{</span><span class='const'>Date</span><span class='period'>.</span><span class='id identifier rubyid_today'>today</span><span class='embexpr_end'>}</span><span class='tstring_content'>.md</span><span class='tstring_end'>&quot;</span></span>
765
- <span class='const'>IO</span><span class='period'>.</span><span class='id identifier rubyid_write'>write</span><span class='lparen'>(</span><span class='id identifier rubyid_md_path'>md_path</span><span class='comma'>,</span> <span class='id identifier rubyid_markdown'>markdown</span><span class='lparen'>(</span><span class='id identifier rubyid_read_file'>read_file</span><span class='comma'>,</span> <span class='id identifier rubyid_year'>year</span><span class='period'>.</span><span class='id identifier rubyid_to_i'>to_i</span><span class='rparen'>)</span><span class='rparen'>)</span>
766
- <span class='id identifier rubyid_puts'>puts</span> <span class='tstring'><span class='tstring_beg'>&quot;</span><span class='tstring_content'>Markdown saved to \&quot;</span><span class='embexpr_beg'>#{</span><span class='id identifier rubyid_md_path'>md_path</span><span class='embexpr_end'>}</span><span class='tstring_content'>\&quot;.</span><span class='tstring_end'>&quot;</span></span>
767
- <span class='kw'>end</span></pre>
768
- </td>
769
- </tr>
770
- </table>
771
- </div>
772
-
773
- <div class="method_details ">
774
- <h3 class="signature " id="setup-instance_method">
775
-
776
- - (<tt>Object</tt>) <strong>setup</strong>
777
-
778
-
779
-
780
-
781
-
782
- </h3><div class="docstring">
783
- <div class="discussion">
784
-
785
- <p>This methods creates the “.nikki” directory, config file and journal file.</p>
786
-
787
-
788
- </div>
789
- </div>
790
- <div class="tags">
791
-
792
-
793
- </div><table class="source_code">
794
- <tr>
795
- <td>
796
- <pre class="lines">
797
-
798
-
799
- 14
800
- 15
801
- 16
802
- 17
803
- 18</pre>
804
- </td>
805
- <td>
806
- <pre class="code"><span class="info file"># File 'lib/nikki.rb', line 14</span>
807
-
808
- <span class='kw'>def</span> <span class='id identifier rubyid_setup'>setup</span>
809
- <span class='id identifier rubyid_create_path'>create_path</span>
810
- <span class='id identifier rubyid_create_file'>create_file</span>
811
- <span class='id identifier rubyid_create_config_file'>create_config_file</span>
812
- <span class='kw'>end</span></pre>
813
- </td>
814
- </tr>
815
- </table>
816
- </div>
817
-
818
- </div>
819
-
820
- </div>
821
-
822
- <div id="footer">
823
- Generated on Tue Sep 30 15:46:41 2014 by
824
- <a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
825
- 0.8.7.4 (ruby-2.1.2).
826
- </div>
827
-
828
- </body>
829
- </html>