my_help 0.7.4 → 0.8.0

Sign up to get free protection for your applications and to get access to all the features.
data/README.org CHANGED
@@ -3,7 +3,7 @@
3
3
  #+EMAIL: (concat "nishitani@kwansei.ac.jp")
4
4
  #+LANGUAGE: jp
5
5
  #+OPTIONS: H:4 toc:t num:2
6
- #+SETUPFILE: /Users/bob/Github/org-html-themes/setup/theme-readtheorg.setup
6
+ #+SETUPFILE: /Users/bob/.emacs.d/org-mode/theme-readtheorg.setup
7
7
  #+STARTUP: indent nolineimages
8
8
  #+OPTIONS: ^:{}
9
9
 
data/Rakefile CHANGED
@@ -1,13 +1,21 @@
1
- # -*- coding: utf-8 -*-
2
1
  require "bundler/gem_tasks"
3
- #require "rspec/core/rake_task"
4
- require 'fileutils'
5
- require 'open3'
2
+ require "rake/testtask"
3
+ require 'yard'
6
4
 
7
- p base_path = File.expand_path('..', __FILE__)
8
- p basename = File.basename(base_path)
9
-
10
- task :default do
11
- system 'rake -T'
5
+ Rake::TestTask.new(:test) do |t|
6
+ t.libs << "test"
7
+ t.libs << "lib"
8
+ t.test_files = FileList["test/**/*_test.rb"]
12
9
  end
13
10
 
11
+ task :default => :test
12
+
13
+ desc "make documents by yard"
14
+ task :yard do
15
+ YARD::Rake::YardocTask.new {|t|
16
+ # t.files=['**/*.md']
17
+ # t.options=['-t','mathjax']
18
+ # t.options=['--exclude','lib.rb','--files','**/*.org']
19
+ }
20
+
21
+ end
data/doc/MyHelp.html ADDED
@@ -0,0 +1,133 @@
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
+ Module: MyHelp
8
+
9
+ &mdash; Documentation by YARD 0.9.19
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 = "MyHelp";
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 (M)</a> &raquo;
40
+
41
+
42
+ <span class="title">MyHelp</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>Module: MyHelp
63
+
64
+
65
+
66
+ </h1>
67
+ <div class="box_info">
68
+
69
+
70
+
71
+
72
+
73
+
74
+
75
+
76
+
77
+
78
+
79
+ <dl>
80
+ <dt>Defined in:</dt>
81
+ <dd>lib/my_help/version.rb<span class="defines">,<br />
82
+ lib/my_help/my_help_controll.rb</span>
83
+ </dd>
84
+ </dl>
85
+
86
+ </div>
87
+
88
+ <h2>Defined Under Namespace</h2>
89
+ <p class="children">
90
+
91
+
92
+
93
+
94
+ <strong class="classes">Classes:</strong> <span class='object_link'><a href="MyHelp/Control.html" title="MyHelp::Control (class)">Control</a></span>
95
+
96
+
97
+ </p>
98
+
99
+
100
+ <h2>
101
+ Constant Summary
102
+ <small><a href="#" class="constants_summary_toggle">collapse</a></small>
103
+ </h2>
104
+
105
+ <dl class="constants">
106
+
107
+ <dt id="VERSION-constant" class="">VERSION =
108
+
109
+ </dt>
110
+ <dd><pre class="code"><span class='tstring'><span class='tstring_beg'>&quot;</span><span class='tstring_content'>0.7.4</span><span class='tstring_end'>&quot;</span></span></pre></dd>
111
+
112
+ </dl>
113
+
114
+
115
+
116
+
117
+
118
+
119
+
120
+
121
+
122
+
123
+ </div>
124
+
125
+ <div id="footer">
126
+ Generated on Fri Apr 26 13:03:28 2019 by
127
+ <a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
128
+ 0.9.19 (ruby-2.4.3).
129
+ </div>
130
+
131
+ </div>
132
+ </body>
133
+ </html>
@@ -0,0 +1,905 @@
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: MyHelp::Control
8
+
9
+ &mdash; Documentation by YARD 0.9.19
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 = "MyHelp::Control";
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 (C)</a> &raquo;
40
+ <span class='title'><span class='object_link'><a href="../MyHelp.html" title="MyHelp (module)">MyHelp</a></span></span>
41
+ &raquo;
42
+ <span class="title">Control</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: MyHelp::Control
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">MyHelp::Control</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/my_help/my_help_controll.rb</dd>
98
+ </dl>
99
+
100
+ </div>
101
+
102
+
103
+
104
+
105
+
106
+
107
+
108
+
109
+
110
+ <h2>
111
+ Instance Method Summary
112
+ <small><a href="#" class="summary_toggle">collapse</a></small>
113
+ </h2>
114
+
115
+ <ul class="summary">
116
+
117
+ <li class="public ">
118
+ <span class="summary_signature">
119
+
120
+ <a href="#delete_help-instance_method" title="#delete_help (instance method)">#<strong>delete_help</strong>(file) &#x21d2; Object </a>
121
+
122
+
123
+
124
+ </span>
125
+
126
+
127
+
128
+
129
+
130
+
131
+
132
+
133
+
134
+ <span class="summary_desc"><div class='inline'></div></span>
135
+
136
+ </li>
137
+
138
+
139
+ <li class="public ">
140
+ <span class="summary_signature">
141
+
142
+ <a href="#disp_opts-instance_method" title="#disp_opts (instance method)">#<strong>disp_opts</strong>(conts) &#x21d2; Object </a>
143
+
144
+
145
+
146
+ </span>
147
+
148
+
149
+
150
+
151
+
152
+
153
+
154
+
155
+
156
+ <span class="summary_desc"><div class='inline'></div></span>
157
+
158
+ </li>
159
+
160
+
161
+ <li class="public ">
162
+ <span class="summary_signature">
163
+
164
+ <a href="#edit_help-instance_method" title="#edit_help (instance method)">#<strong>edit_help</strong>(file) &#x21d2; Object </a>
165
+
166
+
167
+
168
+ </span>
169
+
170
+
171
+
172
+
173
+
174
+
175
+
176
+
177
+
178
+ <span class="summary_desc"><div class='inline'></div></span>
179
+
180
+ </li>
181
+
182
+
183
+ <li class="public ">
184
+ <span class="summary_signature">
185
+
186
+ <a href="#init_help-instance_method" title="#init_help (instance method)">#<strong>init_help</strong>(file) &#x21d2; Object </a>
187
+
188
+
189
+
190
+ </span>
191
+
192
+
193
+
194
+
195
+
196
+
197
+
198
+
199
+
200
+ <span class="summary_desc"><div class='inline'></div></span>
201
+
202
+ </li>
203
+
204
+
205
+ <li class="public ">
206
+ <span class="summary_signature">
207
+
208
+ <a href="#initialize-instance_method" title="#initialize (instance method)">#<strong>initialize</strong> &#x21d2; Control </a>
209
+
210
+
211
+
212
+ </span>
213
+
214
+
215
+ <span class="note title constructor">constructor</span>
216
+
217
+
218
+
219
+
220
+
221
+
222
+
223
+
224
+ <span class="summary_desc"><div class='inline'>
225
+ <p>A new instance of Control.</p>
226
+ </div></span>
227
+
228
+ </li>
229
+
230
+
231
+ <li class="public ">
232
+ <span class="summary_signature">
233
+
234
+ <a href="#list_all-instance_method" title="#list_all (instance method)">#<strong>list_all</strong> &#x21d2; Object </a>
235
+
236
+
237
+
238
+ </span>
239
+
240
+
241
+
242
+
243
+
244
+
245
+
246
+
247
+
248
+ <span class="summary_desc"><div class='inline'></div></span>
249
+
250
+ </li>
251
+
252
+
253
+ <li class="public ">
254
+ <span class="summary_signature">
255
+
256
+ <a href="#list_help-instance_method" title="#list_help (instance method)">#<strong>list_help</strong>(file) &#x21d2; Object </a>
257
+
258
+
259
+
260
+ </span>
261
+
262
+
263
+
264
+
265
+
266
+
267
+
268
+
269
+
270
+ <span class="summary_desc"><div class='inline'></div></span>
271
+
272
+ </li>
273
+
274
+
275
+ <li class="public ">
276
+ <span class="summary_signature">
277
+
278
+ <a href="#select_item-instance_method" title="#select_item (instance method)">#<strong>select_item</strong>(help, item) &#x21d2; Object </a>
279
+
280
+
281
+
282
+ </span>
283
+
284
+
285
+
286
+
287
+
288
+
289
+
290
+
291
+
292
+ <span class="summary_desc"><div class='inline'></div></span>
293
+
294
+ </li>
295
+
296
+
297
+ <li class="public ">
298
+ <span class="summary_signature">
299
+
300
+ <a href="#set_help_dir_if_not_exists-instance_method" title="#set_help_dir_if_not_exists (instance method)">#<strong>set_help_dir_if_not_exists</strong> &#x21d2; Object </a>
301
+
302
+
303
+
304
+ </span>
305
+
306
+
307
+
308
+
309
+
310
+
311
+
312
+
313
+
314
+ <span class="summary_desc"><div class='inline'></div></span>
315
+
316
+ </li>
317
+
318
+
319
+ <li class="public ">
320
+ <span class="summary_signature">
321
+
322
+ <a href="#show_item-instance_method" title="#show_item (instance method)">#<strong>show_item</strong>(file, item) &#x21d2; Object </a>
323
+
324
+
325
+
326
+ </span>
327
+
328
+
329
+
330
+
331
+
332
+
333
+
334
+
335
+
336
+ <span class="summary_desc"><div class='inline'></div></span>
337
+
338
+ </li>
339
+
340
+
341
+ <li class="public ">
342
+ <span class="summary_signature">
343
+
344
+ <a href="#upload_help-instance_method" title="#upload_help (instance method)">#<strong>upload_help</strong>(file) &#x21d2; Object </a>
345
+
346
+
347
+
348
+ </span>
349
+
350
+
351
+
352
+
353
+
354
+
355
+
356
+
357
+
358
+ <span class="summary_desc"><div class='inline'></div></span>
359
+
360
+ </li>
361
+
362
+
363
+ </ul>
364
+
365
+
366
+ <div id="constructor_details" class="method_details_list">
367
+ <h2>Constructor Details</h2>
368
+
369
+ <div class="method_details first">
370
+ <h3 class="signature first" id="initialize-instance_method">
371
+
372
+ #<strong>initialize</strong> &#x21d2; <tt><span class='object_link'><a href="" title="MyHelp::Control (class)">Control</a></span></tt>
373
+
374
+
375
+
376
+
377
+
378
+ </h3><div class="docstring">
379
+ <div class="discussion">
380
+
381
+ <p>Returns a new instance of Control</p>
382
+
383
+
384
+ </div>
385
+ </div>
386
+ <div class="tags">
387
+
388
+
389
+ </div><table class="source_code">
390
+ <tr>
391
+ <td>
392
+ <pre class="lines">
393
+
394
+
395
+ 4
396
+ 5
397
+ 6
398
+ 7
399
+ 8
400
+ 9
401
+ 10</pre>
402
+ </td>
403
+ <td>
404
+ <pre class="code"><span class="info file"># File 'lib/my_help/my_help_controll.rb', line 4</span>
405
+
406
+ <span class='kw'>def</span> <span class='id identifier rubyid_initialize'>initialize</span><span class='lparen'>(</span><span class='rparen'>)</span>
407
+ <span class='ivar'>@template_dir</span> <span class='op'>=</span> <span class='const'>File</span><span class='period'>.</span><span class='id identifier rubyid_expand_path'>expand_path</span><span class='lparen'>(</span><span class='tstring'><span class='tstring_beg'>&quot;</span><span class='tstring_content'>../../templates</span><span class='tstring_end'>&quot;</span></span><span class='comma'>,</span> <span class='kw'>__FILE__</span><span class='rparen'>)</span>
408
+ <span class='ivar'>@exe_dir</span> <span class='op'>=</span> <span class='const'>File</span><span class='period'>.</span><span class='id identifier rubyid_expand_path'>expand_path</span><span class='lparen'>(</span><span class='tstring'><span class='tstring_beg'>&quot;</span><span class='tstring_content'>../../exe</span><span class='tstring_end'>&quot;</span></span><span class='comma'>,</span> <span class='kw'>__FILE__</span><span class='rparen'>)</span>
409
+ <span class='ivar'>@local_help_dir</span> <span class='op'>=</span> <span class='const'>File</span><span class='period'>.</span><span class='id identifier rubyid_join'>join</span><span class='lparen'>(</span><span class='const'>ENV</span><span class='lbracket'>[</span><span class='tstring'><span class='tstring_beg'>&#39;</span><span class='tstring_content'>HOME</span><span class='tstring_end'>&#39;</span></span><span class='rbracket'>]</span><span class='comma'>,</span><span class='tstring'><span class='tstring_beg'>&#39;</span><span class='tstring_content'>.my_help</span><span class='tstring_end'>&#39;</span></span><span class='rparen'>)</span>
410
+ <span class='comment'># @mini_account = File
411
+ </span> <span class='id identifier rubyid_set_help_dir_if_not_exists'>set_help_dir_if_not_exists</span>
412
+ <span class='kw'>end</span></pre>
413
+ </td>
414
+ </tr>
415
+ </table>
416
+ </div>
417
+
418
+ </div>
419
+
420
+
421
+ <div id="instance_method_details" class="method_details_list">
422
+ <h2>Instance Method Details</h2>
423
+
424
+
425
+ <div class="method_details first">
426
+ <h3 class="signature first" id="delete_help-instance_method">
427
+
428
+ #<strong>delete_help</strong>(file) &#x21d2; <tt>Object</tt>
429
+
430
+
431
+
432
+
433
+
434
+ </h3><table class="source_code">
435
+ <tr>
436
+ <td>
437
+ <pre class="lines">
438
+
439
+
440
+ 103
441
+ 104
442
+ 105
443
+ 106
444
+ 107
445
+ 108
446
+ 109
447
+ 110
448
+ 111
449
+ 112
450
+ 113
451
+ 114
452
+ 115</pre>
453
+ </td>
454
+ <td>
455
+ <pre class="code"><span class="info file"># File 'lib/my_help/my_help_controll.rb', line 103</span>
456
+
457
+ <span class='kw'>def</span> <span class='id identifier rubyid_delete_help'>delete_help</span><span class='lparen'>(</span><span class='id identifier rubyid_file'>file</span><span class='rparen'>)</span>
458
+ <span class='id identifier rubyid_file'>file</span> <span class='op'>=</span> <span class='const'>File</span><span class='period'>.</span><span class='id identifier rubyid_join'>join</span><span class='lparen'>(</span><span class='ivar'>@local_help_dir</span><span class='comma'>,</span><span class='id identifier rubyid_file'>file</span><span class='op'>+</span><span class='tstring'><span class='tstring_beg'>&#39;</span><span class='tstring_content'>.org</span><span class='tstring_end'>&#39;</span></span><span class='rparen'>)</span>
459
+ <span class='id identifier rubyid_print'>print</span> <span class='tstring'><span class='tstring_beg'>&quot;</span><span class='tstring_content'>Are you sure to delete </span><span class='tstring_end'>&quot;</span></span><span class='op'>+</span><span class='id identifier rubyid_file'>file</span><span class='period'>.</span><span class='id identifier rubyid_blue'>blue</span><span class='op'>+</span><span class='tstring'><span class='tstring_beg'>&quot;</span><span class='tstring_content'>?[Ynq] </span><span class='tstring_end'>&quot;</span></span><span class='period'>.</span><span class='id identifier rubyid_red'>red</span>
460
+ <span class='kw'>case</span> <span class='const'>STDIN</span><span class='period'>.</span><span class='id identifier rubyid_gets'>gets</span><span class='period'>.</span><span class='id identifier rubyid_chomp'>chomp</span>
461
+ <span class='kw'>when</span> <span class='tstring'><span class='tstring_beg'>&#39;</span><span class='tstring_content'>Y</span><span class='tstring_end'>&#39;</span></span>
462
+ <span class='kw'>begin</span>
463
+ <span class='const'>FileUtils</span><span class='period'>.</span><span class='id identifier rubyid_rm'>rm</span><span class='lparen'>(</span><span class='id identifier rubyid_file'>file</span><span class='comma'>,</span><span class='symbol'>:verbose</span><span class='op'>=&gt;</span><span class='kw'>true</span><span class='rparen'>)</span>
464
+ <span class='kw'>rescue</span> <span class='op'>=&gt;</span> <span class='id identifier rubyid_error'>error</span>
465
+ <span class='id identifier rubyid_puts'>puts</span> <span class='id identifier rubyid_error'>error</span><span class='period'>.</span><span class='id identifier rubyid_to_s'>to_s</span><span class='period'>.</span><span class='id identifier rubyid_red'>red</span>
466
+ <span class='kw'>end</span>
467
+ <span class='kw'>when</span> <span class='tstring'><span class='tstring_beg'>&#39;</span><span class='tstring_content'>n</span><span class='tstring_end'>&#39;</span></span><span class='comma'>,</span> <span class='tstring'><span class='tstring_beg'>&#39;</span><span class='tstring_content'>q</span><span class='tstring_end'>&#39;</span></span> <span class='semicolon'>;</span> <span class='id identifier rubyid_exit'>exit</span>
468
+ <span class='kw'>end</span>
469
+ <span class='kw'>end</span></pre>
470
+ </td>
471
+ </tr>
472
+ </table>
473
+ </div>
474
+
475
+ <div class="method_details ">
476
+ <h3 class="signature " id="disp_opts-instance_method">
477
+
478
+ #<strong>disp_opts</strong>(conts) &#x21d2; <tt>Object</tt>
479
+
480
+
481
+
482
+
483
+
484
+ </h3><table class="source_code">
485
+ <tr>
486
+ <td>
487
+ <pre class="lines">
488
+
489
+
490
+ 53
491
+ 54
492
+ 55
493
+ 56
494
+ 57
495
+ 58
496
+ 59
497
+ 60
498
+ 61
499
+ 62
500
+ 63
501
+ 64</pre>
502
+ </td>
503
+ <td>
504
+ <pre class="code"><span class="info file"># File 'lib/my_help/my_help_controll.rb', line 53</span>
505
+
506
+ <span class='kw'>def</span> <span class='id identifier rubyid_disp_opts'>disp_opts</span><span class='lparen'>(</span> <span class='id identifier rubyid_conts'>conts</span> <span class='rparen'>)</span>
507
+ <span class='id identifier rubyid_col'>col</span> <span class='op'>=</span> <span class='int'>0</span>
508
+ <span class='id identifier rubyid_conts'>conts</span><span class='period'>.</span><span class='id identifier rubyid_each_pair'>each_pair</span> <span class='kw'>do</span> <span class='op'>|</span><span class='id identifier rubyid_key'>key</span><span class='comma'>,</span> <span class='id identifier rubyid_item'>item</span><span class='op'>|</span>
509
+ <span class='id identifier rubyid_col_length'>col_length</span> <span class='op'>=</span> <span class='kw'>case</span> <span class='id identifier rubyid_col'>col</span>
510
+ <span class='kw'>when</span> <span class='int'>0</span><span class='semicolon'>;</span> <span class='id identifier rubyid_print'>print</span> <span class='id identifier rubyid_item'>item</span><span class='period'>.</span><span class='id identifier rubyid_rjust'>rjust</span><span class='lparen'>(</span><span class='int'>5</span><span class='rparen'>)</span><span class='op'>+</span><span class='tstring'><span class='tstring_beg'>&quot;</span><span class='tstring_content'>, </span><span class='tstring_end'>&quot;</span></span>
511
+ <span class='kw'>when</span> <span class='int'>1</span><span class='semicolon'>;</span> <span class='id identifier rubyid_print'>print</span> <span class='id identifier rubyid_item'>item</span><span class='period'>.</span><span class='id identifier rubyid_ljust'>ljust</span><span class='lparen'>(</span><span class='int'>15</span><span class='rparen'>)</span><span class='op'>+</span><span class='tstring'><span class='tstring_beg'>&quot;</span><span class='tstring_content'>: </span><span class='tstring_end'>&quot;</span></span>
512
+ <span class='kw'>else</span><span class='semicolon'>;</span> <span class='id identifier rubyid_print'>print</span> <span class='id identifier rubyid_item'>item</span>
513
+ <span class='kw'>end</span>
514
+ <span class='id identifier rubyid_col'>col</span> <span class='op'>+=</span> <span class='int'>1</span>
515
+ <span class='kw'>end</span>
516
+ <span class='id identifier rubyid_print'>print</span><span class='lparen'>(</span><span class='tstring'><span class='tstring_beg'>&quot;</span><span class='tstring_content'>\n</span><span class='tstring_end'>&quot;</span></span><span class='rparen'>)</span>
517
+ <span class='kw'>end</span></pre>
518
+ </td>
519
+ </tr>
520
+ </table>
521
+ </div>
522
+
523
+ <div class="method_details ">
524
+ <h3 class="signature " id="edit_help-instance_method">
525
+
526
+ #<strong>edit_help</strong>(file) &#x21d2; <tt>Object</tt>
527
+
528
+
529
+
530
+
531
+
532
+ </h3><table class="source_code">
533
+ <tr>
534
+ <td>
535
+ <pre class="lines">
536
+
537
+
538
+ 79
539
+ 80
540
+ 81
541
+ 82
542
+ 83
543
+ 84
544
+ 85
545
+ 86
546
+ 87</pre>
547
+ </td>
548
+ <td>
549
+ <pre class="code"><span class="info file"># File 'lib/my_help/my_help_controll.rb', line 79</span>
550
+
551
+ <span class='kw'>def</span> <span class='id identifier rubyid_edit_help'>edit_help</span><span class='lparen'>(</span><span class='id identifier rubyid_file'>file</span><span class='rparen'>)</span>
552
+ <span class='id identifier rubyid_p'>p</span> <span class='id identifier rubyid_target_help'>target_help</span> <span class='op'>=</span> <span class='const'>File</span><span class='period'>.</span><span class='id identifier rubyid_join'>join</span><span class='lparen'>(</span><span class='ivar'>@local_help_dir</span><span class='comma'>,</span><span class='id identifier rubyid_file'>file</span><span class='op'>+</span><span class='tstring'><span class='tstring_beg'>&#39;</span><span class='tstring_content'>.org</span><span class='tstring_end'>&#39;</span></span><span class='rparen'>)</span>
553
+ <span class='kw'>if</span> <span class='id identifier rubyid_local_help_entries'>local_help_entries</span><span class='period'>.</span><span class='id identifier rubyid_member?'>member?</span><span class='lparen'>(</span><span class='id identifier rubyid_file'>file</span><span class='op'>+</span><span class='tstring'><span class='tstring_beg'>&#39;</span><span class='tstring_content'>.org</span><span class='tstring_end'>&#39;</span></span><span class='rparen'>)</span>
554
+ <span class='id identifier rubyid_system'>system</span> <span class='tstring'><span class='tstring_beg'>&quot;</span><span class='tstring_content'>emacs </span><span class='embexpr_beg'>#{</span><span class='id identifier rubyid_target_help'>target_help</span><span class='embexpr_end'>}</span><span class='tstring_end'>&quot;</span></span>
555
+ <span class='kw'>else</span>
556
+ <span class='id identifier rubyid_puts'>puts</span> <span class='tstring'><span class='tstring_beg'>&quot;</span><span class='tstring_content'>file </span><span class='embexpr_beg'>#{</span><span class='id identifier rubyid_target_help'>target_help</span><span class='embexpr_end'>}</span><span class='tstring_content'> does not exits in </span><span class='embexpr_beg'>#{</span><span class='ivar'>@local_help_dir</span><span class='embexpr_end'>}</span><span class='tstring_content'>.</span><span class='tstring_end'>&quot;</span></span>
557
+ <span class='id identifier rubyid_puts'>puts</span> <span class='tstring'><span class='tstring_beg'>&quot;</span><span class='tstring_content'>init </span><span class='embexpr_beg'>#{</span><span class='id identifier rubyid_file'>file</span><span class='embexpr_end'>}</span><span class='tstring_content'> first.</span><span class='tstring_end'>&quot;</span></span>
558
+ <span class='kw'>end</span>
559
+ <span class='kw'>end</span></pre>
560
+ </td>
561
+ </tr>
562
+ </table>
563
+ </div>
564
+
565
+ <div class="method_details ">
566
+ <h3 class="signature " id="init_help-instance_method">
567
+
568
+ #<strong>init_help</strong>(file) &#x21d2; <tt>Object</tt>
569
+
570
+
571
+
572
+
573
+
574
+ </h3><table class="source_code">
575
+ <tr>
576
+ <td>
577
+ <pre class="lines">
578
+
579
+
580
+ 89
581
+ 90
582
+ 91
583
+ 92
584
+ 93
585
+ 94
586
+ 95
587
+ 96
588
+ 97
589
+ 98
590
+ 99
591
+ 100
592
+ 101</pre>
593
+ </td>
594
+ <td>
595
+ <pre class="code"><span class="info file"># File 'lib/my_help/my_help_controll.rb', line 89</span>
596
+
597
+ <span class='kw'>def</span> <span class='id identifier rubyid_init_help'>init_help</span><span class='lparen'>(</span><span class='id identifier rubyid_file'>file</span><span class='rparen'>)</span>
598
+ <span class='kw'>if</span> <span class='id identifier rubyid_file'>file</span><span class='period'>.</span><span class='id identifier rubyid_nil?'>nil?</span>
599
+ <span class='id identifier rubyid_puts'>puts</span> <span class='tstring'><span class='tstring_beg'>&quot;</span><span class='tstring_content'>specify NAME</span><span class='tstring_end'>&quot;</span></span><span class='period'>.</span><span class='id identifier rubyid_red'>red</span>
600
+ <span class='id identifier rubyid_exit'>exit</span>
601
+ <span class='kw'>end</span>
602
+ <span class='id identifier rubyid_p'>p</span> <span class='id identifier rubyid_target_help'>target_help</span><span class='op'>=</span><span class='const'>File</span><span class='period'>.</span><span class='id identifier rubyid_join'>join</span><span class='lparen'>(</span><span class='ivar'>@local_help_dir</span><span class='comma'>,</span><span class='id identifier rubyid_file'>file</span><span class='op'>+</span><span class='tstring'><span class='tstring_beg'>&#39;</span><span class='tstring_content'>.org</span><span class='tstring_end'>&#39;</span></span><span class='rparen'>)</span>
603
+ <span class='kw'>if</span> <span class='const'>File</span><span class='op'>::</span><span class='id identifier rubyid_exists?'>exists?</span><span class='lparen'>(</span><span class='id identifier rubyid_target_help'>target_help</span><span class='rparen'>)</span>
604
+ <span class='id identifier rubyid_puts'>puts</span> <span class='tstring'><span class='tstring_beg'>&quot;</span><span class='tstring_content'>File exists. delete it first to initialize it.</span><span class='tstring_end'>&quot;</span></span>
605
+ <span class='id identifier rubyid_exit'>exit</span>
606
+ <span class='kw'>end</span>
607
+ <span class='id identifier rubyid_p'>p</span> <span class='id identifier rubyid_template'>template</span> <span class='op'>=</span> <span class='const'>File</span><span class='period'>.</span><span class='id identifier rubyid_join'>join</span><span class='lparen'>(</span><span class='ivar'>@template_dir</span><span class='comma'>,</span><span class='tstring'><span class='tstring_beg'>&#39;</span><span class='tstring_content'>help_template.org</span><span class='tstring_end'>&#39;</span></span><span class='rparen'>)</span>
608
+ <span class='const'>FileUtils</span><span class='op'>::</span><span class='const'>Verbose</span><span class='period'>.</span><span class='id identifier rubyid_cp'>cp</span><span class='lparen'>(</span><span class='id identifier rubyid_template'>template</span><span class='comma'>,</span><span class='id identifier rubyid_target_help'>target_help</span><span class='rparen'>)</span>
609
+ <span class='kw'>end</span></pre>
610
+ </td>
611
+ </tr>
612
+ </table>
613
+ </div>
614
+
615
+ <div class="method_details ">
616
+ <h3 class="signature " id="list_all-instance_method">
617
+
618
+ #<strong>list_all</strong> &#x21d2; <tt>Object</tt>
619
+
620
+
621
+
622
+
623
+
624
+ </h3><table class="source_code">
625
+ <tr>
626
+ <td>
627
+ <pre class="lines">
628
+
629
+
630
+ 66
631
+ 67
632
+ 68
633
+ 69
634
+ 70
635
+ 71
636
+ 72
637
+ 73
638
+ 74
639
+ 75
640
+ 76
641
+ 77</pre>
642
+ </td>
643
+ <td>
644
+ <pre class="code"><span class="info file"># File 'lib/my_help/my_help_controll.rb', line 66</span>
645
+
646
+ <span class='kw'>def</span> <span class='id identifier rubyid_list_all'>list_all</span>
647
+ <span class='id identifier rubyid_print'>print</span> <span class='tstring'><span class='tstring_beg'>&quot;</span><span class='tstring_content'>List all helps\n</span><span class='tstring_end'>&quot;</span></span>
648
+ <span class='id identifier rubyid_local_help_entries'>local_help_entries</span><span class='period'>.</span><span class='id identifier rubyid_each'>each</span> <span class='kw'>do</span> <span class='op'>|</span><span class='id identifier rubyid_file'>file</span><span class='op'>|</span>
649
+ <span class='id identifier rubyid_file_path'>file_path</span><span class='op'>=</span><span class='const'>File</span><span class='period'>.</span><span class='id identifier rubyid_join'>join</span><span class='lparen'>(</span><span class='ivar'>@local_help_dir</span><span class='comma'>,</span><span class='id identifier rubyid_file'>file</span><span class='rparen'>)</span>
650
+ <span class='id identifier rubyid_title'>title</span> <span class='op'>=</span> <span class='id identifier rubyid_file'>file</span><span class='period'>.</span><span class='id identifier rubyid_split'>split</span><span class='lparen'>(</span><span class='tstring'><span class='tstring_beg'>&#39;</span><span class='tstring_content'>.</span><span class='tstring_end'>&#39;</span></span><span class='rparen'>)</span><span class='lbracket'>[</span><span class='int'>0</span><span class='rbracket'>]</span>
651
+ <span class='id identifier rubyid_help'>help</span> <span class='op'>=</span> <span class='id identifier rubyid_auto_load'>auto_load</span><span class='lparen'>(</span><span class='id identifier rubyid_file_path'>file_path</span><span class='rparen'>)</span>
652
+ <span class='kw'>next</span> <span class='kw'>if</span> <span class='id identifier rubyid_help'>help</span><span class='period'>.</span><span class='id identifier rubyid_nil?'>nil?</span>
653
+ <span class='id identifier rubyid_desc'>desc</span> <span class='op'>=</span> <span class='id identifier rubyid_help'>help</span><span class='lbracket'>[</span><span class='symbol'>:head</span><span class='rbracket'>]</span><span class='lbracket'>[</span><span class='symbol'>:cont</span><span class='rbracket'>]</span><span class='period'>.</span><span class='id identifier rubyid_split'>split</span><span class='lparen'>(</span><span class='tstring'><span class='tstring_beg'>&quot;</span><span class='tstring_content'>\n</span><span class='tstring_end'>&quot;</span></span><span class='rparen'>)</span><span class='lbracket'>[</span><span class='int'>0</span><span class='rbracket'>]</span>
654
+ <span class='id identifier rubyid_print'>print</span> <span class='id identifier rubyid_title'>title</span><span class='period'>.</span><span class='id identifier rubyid_rjust'>rjust</span><span class='lparen'>(</span><span class='int'>10</span><span class='rparen'>)</span><span class='period'>.</span><span class='id identifier rubyid_blue'>blue</span>
655
+ <span class='id identifier rubyid_print'>print</span> <span class='tstring'><span class='tstring_beg'>&quot;</span><span class='tstring_content'>: </span><span class='embexpr_beg'>#{</span><span class='id identifier rubyid_desc'>desc</span><span class='embexpr_end'>}</span><span class='tstring_content'>\n</span><span class='tstring_end'>&quot;</span></span><span class='period'>.</span><span class='id identifier rubyid_blue'>blue</span>
656
+ <span class='kw'>end</span>
657
+ <span class='kw'>end</span></pre>
658
+ </td>
659
+ </tr>
660
+ </table>
661
+ </div>
662
+
663
+ <div class="method_details ">
664
+ <h3 class="signature " id="list_help-instance_method">
665
+
666
+ #<strong>list_help</strong>(file) &#x21d2; <tt>Object</tt>
667
+
668
+
669
+
670
+
671
+
672
+ </h3><table class="source_code">
673
+ <tr>
674
+ <td>
675
+ <pre class="lines">
676
+
677
+
678
+ 44
679
+ 45
680
+ 46
681
+ 47
682
+ 48
683
+ 49
684
+ 50
685
+ 51</pre>
686
+ </td>
687
+ <td>
688
+ <pre class="code"><span class="info file"># File 'lib/my_help/my_help_controll.rb', line 44</span>
689
+
690
+ <span class='kw'>def</span> <span class='id identifier rubyid_list_help'>list_help</span><span class='lparen'>(</span><span class='id identifier rubyid_file'>file</span><span class='rparen'>)</span>
691
+ <span class='id identifier rubyid_file_path'>file_path</span><span class='op'>=</span><span class='const'>File</span><span class='period'>.</span><span class='id identifier rubyid_join'>join</span><span class='lparen'>(</span><span class='ivar'>@local_help_dir</span><span class='comma'>,</span><span class='id identifier rubyid_file'>file</span><span class='op'>+</span><span class='tstring'><span class='tstring_beg'>&#39;</span><span class='tstring_content'>.org</span><span class='tstring_end'>&#39;</span></span><span class='rparen'>)</span>
692
+ <span class='id identifier rubyid_help'>help</span> <span class='op'>=</span> <span class='id identifier rubyid_auto_load'>auto_load</span><span class='lparen'>(</span><span class='id identifier rubyid_file_path'>file_path</span><span class='rparen'>)</span>
693
+ <span class='id identifier rubyid_help'>help</span><span class='period'>.</span><span class='id identifier rubyid_each_pair'>each_pair</span> <span class='kw'>do</span> <span class='op'>|</span><span class='id identifier rubyid_key'>key</span><span class='comma'>,</span> <span class='id identifier rubyid_conts'>conts</span><span class='op'>|</span>
694
+ <span class='id identifier rubyid_print'>print</span> <span class='id identifier rubyid_conts'>conts</span><span class='lbracket'>[</span><span class='symbol'>:cont</span><span class='rbracket'>]</span> <span class='kw'>if</span> <span class='id identifier rubyid_key'>key</span><span class='op'>==</span><span class='symbol'>:head</span>
695
+ <span class='id identifier rubyid_disp_opts'>disp_opts</span><span class='lparen'>(</span> <span class='id identifier rubyid_conts'>conts</span><span class='lbracket'>[</span><span class='symbol'>:opts</span><span class='rbracket'>]</span> <span class='rparen'>)</span>
696
+ <span class='kw'>end</span>
697
+ <span class='kw'>end</span></pre>
698
+ </td>
699
+ </tr>
700
+ </table>
701
+ </div>
702
+
703
+ <div class="method_details ">
704
+ <h3 class="signature " id="select_item-instance_method">
705
+
706
+ #<strong>select_item</strong>(help, item) &#x21d2; <tt>Object</tt>
707
+
708
+
709
+
710
+
711
+
712
+ </h3><table class="source_code">
713
+ <tr>
714
+ <td>
715
+ <pre class="lines">
716
+
717
+
718
+ 32
719
+ 33
720
+ 34
721
+ 35
722
+ 36
723
+ 37
724
+ 38
725
+ 39
726
+ 40
727
+ 41
728
+ 42</pre>
729
+ </td>
730
+ <td>
731
+ <pre class="code"><span class="info file"># File 'lib/my_help/my_help_controll.rb', line 32</span>
732
+
733
+ <span class='kw'>def</span> <span class='id identifier rubyid_select_item'>select_item</span><span class='lparen'>(</span><span class='id identifier rubyid_help'>help</span><span class='comma'>,</span> <span class='id identifier rubyid_item'>item</span><span class='rparen'>)</span>
734
+ <span class='id identifier rubyid_o_key'>o_key</span> <span class='op'>=</span> <span class='tstring'><span class='tstring_beg'>&#39;</span><span class='tstring_end'>&#39;</span></span>
735
+ <span class='id identifier rubyid_help'>help</span><span class='period'>.</span><span class='id identifier rubyid_each_pair'>each_pair</span> <span class='kw'>do</span> <span class='op'>|</span><span class='id identifier rubyid_key'>key</span><span class='comma'>,</span> <span class='id identifier rubyid_cont'>cont</span><span class='op'>|</span>
736
+ <span class='kw'>next</span> <span class='kw'>if</span> <span class='id identifier rubyid_key'>key</span><span class='op'>==</span><span class='symbol'>:license</span> <span class='kw'>or</span> <span class='id identifier rubyid_key'>key</span><span class='op'>==</span><span class='symbol'>:head</span>
737
+ <span class='kw'>if</span> <span class='id identifier rubyid_cont'>cont</span><span class='lbracket'>[</span><span class='symbol'>:opts</span><span class='rbracket'>]</span><span class='lbracket'>[</span><span class='symbol'>:short</span><span class='rbracket'>]</span> <span class='op'>==</span> <span class='id identifier rubyid_item'>item</span> <span class='kw'>or</span> <span class='id identifier rubyid_cont'>cont</span><span class='lbracket'>[</span><span class='symbol'>:opts</span><span class='rbracket'>]</span><span class='lbracket'>[</span><span class='symbol'>:long</span><span class='rbracket'>]</span> <span class='op'>==</span> <span class='id identifier rubyid_item'>item</span>
738
+ <span class='id identifier rubyid_o_key'>o_key</span> <span class='op'>=</span> <span class='id identifier rubyid_key'>key</span>
739
+ <span class='kw'>break</span>
740
+ <span class='kw'>end</span>
741
+ <span class='kw'>end</span>
742
+ <span class='id identifier rubyid_o_key'>o_key</span>
743
+ <span class='kw'>end</span></pre>
744
+ </td>
745
+ </tr>
746
+ </table>
747
+ </div>
748
+
749
+ <div class="method_details ">
750
+ <h3 class="signature " id="set_help_dir_if_not_exists-instance_method">
751
+
752
+ #<strong>set_help_dir_if_not_exists</strong> &#x21d2; <tt>Object</tt>
753
+
754
+
755
+
756
+
757
+
758
+ </h3><table class="source_code">
759
+ <tr>
760
+ <td>
761
+ <pre class="lines">
762
+
763
+
764
+ 12
765
+ 13
766
+ 14
767
+ 15
768
+ 16
769
+ 17
770
+ 18
771
+ 19
772
+ 20
773
+ 21</pre>
774
+ </td>
775
+ <td>
776
+ <pre class="code"><span class="info file"># File 'lib/my_help/my_help_controll.rb', line 12</span>
777
+
778
+ <span class='kw'>def</span> <span class='id identifier rubyid_set_help_dir_if_not_exists'>set_help_dir_if_not_exists</span>
779
+ <span class='kw'>return</span> <span class='kw'>if</span> <span class='const'>File</span><span class='op'>::</span><span class='id identifier rubyid_exists?'>exists?</span><span class='lparen'>(</span><span class='ivar'>@local_help_dir</span><span class='rparen'>)</span>
780
+ <span class='const'>FileUtils</span><span class='period'>.</span><span class='id identifier rubyid_mkdir_p'>mkdir_p</span><span class='lparen'>(</span><span class='ivar'>@local_help_dir</span><span class='comma'>,</span> <span class='symbol'>:verbose</span><span class='op'>=&gt;</span><span class='kw'>true</span><span class='rparen'>)</span>
781
+ <span class='const'>Dir</span><span class='period'>.</span><span class='id identifier rubyid_entries'>entries</span><span class='lparen'>(</span><span class='ivar'>@template_dir</span><span class='rparen'>)</span><span class='period'>.</span><span class='id identifier rubyid_each'>each</span><span class='lbrace'>{</span><span class='op'>|</span><span class='id identifier rubyid_file'>file</span><span class='op'>|</span>
782
+ <span class='kw'>next</span> <span class='kw'>if</span> <span class='id identifier rubyid_file'>file</span><span class='op'>==</span><span class='tstring'><span class='tstring_beg'>&#39;</span><span class='tstring_content'>help_template.org</span><span class='tstring_end'>&#39;</span></span>
783
+ <span class='id identifier rubyid_file_path'>file_path</span><span class='op'>=</span><span class='const'>File</span><span class='period'>.</span><span class='id identifier rubyid_join'>join</span><span class='lparen'>(</span><span class='ivar'>@local_help_dir</span><span class='comma'>,</span><span class='id identifier rubyid_file'>file</span><span class='rparen'>)</span>
784
+ <span class='kw'>next</span> <span class='kw'>if</span> <span class='const'>File</span><span class='op'>::</span><span class='id identifier rubyid_exists?'>exists?</span><span class='lparen'>(</span><span class='id identifier rubyid_file_path'>file_path</span><span class='rparen'>)</span>
785
+ <span class='const'>FileUtils</span><span class='period'>.</span><span class='id identifier rubyid_cp'>cp</span><span class='lparen'>(</span><span class='lparen'>(</span><span class='const'>File</span><span class='period'>.</span><span class='id identifier rubyid_join'>join</span><span class='lparen'>(</span><span class='ivar'>@template_dir</span><span class='comma'>,</span><span class='id identifier rubyid_file'>file</span><span class='rparen'>)</span><span class='rparen'>)</span><span class='comma'>,</span><span class='ivar'>@local_help_dir</span><span class='comma'>,</span><span class='symbol'>:verbose</span><span class='op'>=&gt;</span><span class='kw'>true</span><span class='rparen'>)</span>
786
+ <span class='rbrace'>}</span>
787
+ <span class='kw'>end</span></pre>
788
+ </td>
789
+ </tr>
790
+ </table>
791
+ </div>
792
+
793
+ <div class="method_details ">
794
+ <h3 class="signature " id="show_item-instance_method">
795
+
796
+ #<strong>show_item</strong>(file, item) &#x21d2; <tt>Object</tt>
797
+
798
+
799
+
800
+
801
+
802
+ </h3><table class="source_code">
803
+ <tr>
804
+ <td>
805
+ <pre class="lines">
806
+
807
+
808
+ 23
809
+ 24
810
+ 25
811
+ 26
812
+ 27
813
+ 28
814
+ 29
815
+ 30</pre>
816
+ </td>
817
+ <td>
818
+ <pre class="code"><span class="info file"># File 'lib/my_help/my_help_controll.rb', line 23</span>
819
+
820
+ <span class='kw'>def</span> <span class='id identifier rubyid_show_item'>show_item</span><span class='lparen'>(</span><span class='id identifier rubyid_file'>file</span><span class='comma'>,</span> <span class='id identifier rubyid_item'>item</span><span class='rparen'>)</span>
821
+ <span class='id identifier rubyid_file_path'>file_path</span><span class='op'>=</span><span class='const'>File</span><span class='period'>.</span><span class='id identifier rubyid_join'>join</span><span class='lparen'>(</span><span class='ivar'>@local_help_dir</span><span class='comma'>,</span><span class='id identifier rubyid_file'>file</span><span class='op'>+</span><span class='tstring'><span class='tstring_beg'>&#39;</span><span class='tstring_content'>.org</span><span class='tstring_end'>&#39;</span></span><span class='rparen'>)</span>
822
+ <span class='id identifier rubyid_help'>help</span> <span class='op'>=</span> <span class='id identifier rubyid_auto_load'>auto_load</span><span class='lparen'>(</span><span class='id identifier rubyid_file_path'>file_path</span><span class='rparen'>)</span>
823
+ <span class='id identifier rubyid_select'>select</span> <span class='op'>=</span> <span class='id identifier rubyid_select_item'>select_item</span><span class='lparen'>(</span><span class='id identifier rubyid_help'>help</span><span class='comma'>,</span> <span class='id identifier rubyid_item'>item</span><span class='rparen'>)</span>
824
+ <span class='id identifier rubyid_print'>print</span> <span class='id identifier rubyid_help'>help</span><span class='lbracket'>[</span><span class='symbol'>:head</span><span class='rbracket'>]</span><span class='lbracket'>[</span><span class='symbol'>:cont</span><span class='rbracket'>]</span>
825
+ <span class='id identifier rubyid_puts'>puts</span> <span class='tstring'><span class='tstring_beg'>&#39;</span><span class='tstring_content'>-</span><span class='tstring_end'>&#39;</span></span><span class='op'>*</span><span class='int'>5</span><span class='op'>+</span><span class='tstring'><span class='tstring_beg'>&quot;</span><span class='tstring_content'>\n</span><span class='tstring_end'>&quot;</span></span><span class='op'>+</span><span class='id identifier rubyid_select'>select</span><span class='period'>.</span><span class='id identifier rubyid_to_s'>to_s</span><span class='period'>.</span><span class='id identifier rubyid_red'>red</span>
826
+ <span class='id identifier rubyid_print'>print</span> <span class='id identifier rubyid_help'>help</span><span class='lbracket'>[</span><span class='id identifier rubyid_select'>select</span><span class='rbracket'>]</span><span class='lbracket'>[</span><span class='symbol'>:cont</span><span class='rbracket'>]</span>
827
+ <span class='kw'>end</span></pre>
828
+ </td>
829
+ </tr>
830
+ </table>
831
+ </div>
832
+
833
+ <div class="method_details ">
834
+ <h3 class="signature " id="upload_help-instance_method">
835
+
836
+ #<strong>upload_help</strong>(file) &#x21d2; <tt>Object</tt>
837
+
838
+
839
+
840
+
841
+
842
+ </h3><table class="source_code">
843
+ <tr>
844
+ <td>
845
+ <pre class="lines">
846
+
847
+
848
+ 117
849
+ 118
850
+ 119
851
+ 120
852
+ 121
853
+ 122
854
+ 123
855
+ 124
856
+ 125
857
+ 126
858
+ 127
859
+ 128
860
+ 129
861
+ 130
862
+ 131
863
+ 132
864
+ 133
865
+ 134</pre>
866
+ </td>
867
+ <td>
868
+ <pre class="code"><span class="info file"># File 'lib/my_help/my_help_controll.rb', line 117</span>
869
+
870
+ <span class='kw'>def</span> <span class='id identifier rubyid_upload_help'>upload_help</span><span class='lparen'>(</span><span class='id identifier rubyid_file'>file</span><span class='rparen'>)</span>
871
+ <span class='id identifier rubyid_p'>p</span> <span class='id identifier rubyid_target_help'>target_help</span> <span class='op'>=</span> <span class='const'>File</span><span class='period'>.</span><span class='id identifier rubyid_join'>join</span><span class='lparen'>(</span><span class='ivar'>@local_help_dir</span><span class='comma'>,</span><span class='id identifier rubyid_file'>file</span><span class='op'>+</span><span class='tstring'><span class='tstring_beg'>&#39;</span><span class='tstring_content'>.org</span><span class='tstring_end'>&#39;</span></span><span class='rparen'>)</span>
872
+ <span class='id identifier rubyid_puts'>puts</span> <span class='tstring'><span class='tstring_beg'>&quot;</span><span class='tstring_content'>miniのuser_nameを入力してください.</span><span class='tstring_end'>&quot;</span></span>
873
+ <span class='id identifier rubyid_p'>p</span> <span class='id identifier rubyid_user_name'>user_name</span> <span class='op'>=</span> <span class='const'>STDIN</span><span class='period'>.</span><span class='id identifier rubyid_gets'>gets</span><span class='period'>.</span><span class='id identifier rubyid_chomp'>chomp</span>
874
+ <span class='id identifier rubyid_puts'>puts</span> <span class='tstring'><span class='tstring_beg'>&quot;</span><span class='tstring_content'>保存するディレクトリ名を入力してください.</span><span class='tstring_end'>&quot;</span></span>
875
+ <span class='id identifier rubyid_p'>p</span> <span class='id identifier rubyid_directory_name'>directory_name</span> <span class='op'>=</span> <span class='const'>STDIN</span><span class='period'>.</span><span class='id identifier rubyid_gets'>gets</span><span class='period'>.</span><span class='id identifier rubyid_chomp'>chomp</span>
876
+ <span class='kw'>if</span> <span class='id identifier rubyid_local_help_entries'>local_help_entries</span><span class='period'>.</span><span class='id identifier rubyid_member?'>member?</span><span class='lparen'>(</span><span class='id identifier rubyid_file'>file</span><span class='op'>+</span><span class='tstring'><span class='tstring_beg'>&#39;</span><span class='tstring_content'>.org</span><span class='tstring_end'>&#39;</span></span><span class='rparen'>)</span>
877
+ <span class='comment'># if target_help.empty?(file+&#39;.org&#39;)
878
+ </span><span class='comment'># system &quot;scp #{@local_help_dir} tomoko_y@mini:~/our_help/member/tomoko&quot;
879
+ </span><span class='comment'># else
880
+ </span> <span class='id identifier rubyid_system'>system</span> <span class='tstring'><span class='tstring_beg'>&quot;</span><span class='tstring_content'>scp </span><span class='embexpr_beg'>#{</span><span class='id identifier rubyid_target_help'>target_help</span><span class='embexpr_end'>}</span><span class='tstring_content'> </span><span class='embexpr_beg'>#{</span><span class='id identifier rubyid_user_name'>user_name</span><span class='embexpr_end'>}</span><span class='tstring_content'>@mini:~/our_help/member/</span><span class='embexpr_beg'>#{</span><span class='id identifier rubyid_directory_name'>directory_name</span><span class='embexpr_end'>}</span><span class='tstring_end'>&quot;</span></span>
881
+ <span class='id identifier rubyid_puts'>puts</span> <span class='tstring'><span class='tstring_beg'>&quot;</span><span class='tstring_content'>後は,miniでgitにpushしてください.</span><span class='tstring_end'>&quot;</span></span>
882
+ <span class='comment'># end
883
+ </span> <span class='kw'>else</span>
884
+ <span class='id identifier rubyid_puts'>puts</span> <span class='tstring'><span class='tstring_beg'>&quot;</span><span class='tstring_content'>file </span><span class='embexpr_beg'>#{</span><span class='id identifier rubyid_target_help'>target_help</span><span class='embexpr_end'>}</span><span class='tstring_content'> does not exits in </span><span class='embexpr_beg'>#{</span><span class='ivar'>@local_help_dir</span><span class='embexpr_end'>}</span><span class='tstring_content'>.</span><span class='tstring_end'>&quot;</span></span>
885
+ <span class='id identifier rubyid_puts'>puts</span> <span class='tstring'><span class='tstring_beg'>&quot;</span><span class='tstring_content'>init </span><span class='embexpr_beg'>#{</span><span class='id identifier rubyid_file'>file</span><span class='embexpr_end'>}</span><span class='tstring_content'> first.</span><span class='tstring_end'>&quot;</span></span>
886
+ <span class='kw'>end</span>
887
+ <span class='kw'>end</span></pre>
888
+ </td>
889
+ </tr>
890
+ </table>
891
+ </div>
892
+
893
+ </div>
894
+
895
+ </div>
896
+
897
+ <div id="footer">
898
+ Generated on Fri Apr 26 13:03:28 2019 by
899
+ <a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
900
+ 0.9.19 (ruby-2.4.3).
901
+ </div>
902
+
903
+ </div>
904
+ </body>
905
+ </html>