my_help 1.1 → 1.2

Sign up to get free protection for your applications and to get access to all the features.
Files changed (56) hide show
  1. checksums.yaml +4 -4
  2. data/.DS_Store +0 -0
  3. data/.gitignore +1 -1
  4. data/.yardoc/checksums +11 -5
  5. data/.yardoc/object_types +0 -0
  6. data/.yardoc/objects/root.dat +0 -0
  7. data/doc/MyHelp/CLI.html +749 -0
  8. data/doc/MyHelp/Config.html +693 -0
  9. data/doc/MyHelp/Error.html +124 -0
  10. data/doc/MyHelp/GetConfig.html +196 -0
  11. data/doc/MyHelp/Git.html +291 -0
  12. data/doc/MyHelp/Init.html +449 -0
  13. data/doc/MyHelp/List.html +577 -0
  14. data/doc/MyHelp/Md2Hash.html +632 -0
  15. data/doc/MyHelp/Modify.html +393 -0
  16. data/doc/MyHelp/Org2Hash.html +542 -0
  17. data/doc/MyHelp.html +10 -8
  18. data/doc/Org2Yaml.html +497 -0
  19. data/doc/_index.html +102 -7
  20. data/doc/class_list.html +1 -1
  21. data/doc/file.README.html +81 -412
  22. data/doc/frames.html +1 -1
  23. data/doc/index.html +81 -412
  24. data/doc/method_list.html +292 -36
  25. data/doc/top-level-namespace.html +5 -5
  26. data/lib/my_help/version.rb +1 -1
  27. data/my_help.gemspec +1 -0
  28. data/pkg/my_help-0.8.6.gem +0 -0
  29. data/pkg/my_help-0.9.0.gem +0 -0
  30. data/pkg/my_help-1.0b.gem +0 -0
  31. data/pkg/my_help-1.0c.gem +0 -0
  32. data/pkg/my_help-1.1.gem +0 -0
  33. data/pkg/my_help-1.1a.gem +0 -0
  34. metadata +20 -24
  35. data/'../test'/.my_help/.my_help_conf.yml +0 -2
  36. data/'../test'/.my_help/emacs.org +0 -50
  37. data/'../test'/.my_help/org.org +0 -64
  38. data/'../test'/.my_help/todo.org +0 -11
  39. data/docs/README.html +0 -218
  40. data/docs/README.org +0 -202
  41. data/docs/old_docs/16b_nasu.pdf +0 -0
  42. data/docs/old_docs/17b_oyagi.pdf +0 -0
  43. data/docs/old_docs/19b_okabata.pdf +0 -0
  44. data/docs/old_docs/19b_yamaguchi.pdf +0 -0
  45. data/docs/old_docs/features/delete.feature +0 -7
  46. data/docs/old_docs/features/edit.feature +0 -7
  47. data/docs/old_docs/features/list.feature +0 -6
  48. data/docs/old_docs/features/new.feature +0 -7
  49. data/docs/old_docs/features/step_definitions/delete_spec.rb +0 -12
  50. data/docs/old_docs/features/step_definitions/edit_spec.rb +0 -14
  51. data/docs/old_docs/features/step_definitions/list_spec.rb +0 -10
  52. data/docs/old_docs/features/step_definitions/new_spec.rb +0 -12
  53. data/docs/old_docs/features/support/env.rb +0 -3
  54. data/docs/old_docs/fukumori_symp/18_human_interface_fukumori_workshop.pdf +0 -0
  55. data/docs/old_docs/fukumori_symp/memo_perp_magician.pdf +0 -0
  56. data/docs/old_docs/fukumori_symp//347/237/245/350/255/230/343/201/256/347/233/264/344/272/244/350/243/234/347/251/272/351/226/223.png +0 -0
@@ -0,0 +1,577 @@
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::List
8
+
9
+ &mdash; Documentation by YARD 0.9.28
10
+
11
+ </title>
12
+
13
+ <link rel="stylesheet" href="../css/style.css" type="text/css" />
14
+
15
+ <link rel="stylesheet" href="../css/common.css" type="text/css" />
16
+
17
+ <script type="text/javascript">
18
+ pathId = "MyHelp::List";
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 (L)</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">List</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::List
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::List</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/list.rb</dd>
98
+ </dl>
99
+
100
+ </div>
101
+
102
+ <h2>Overview</h2><div class="docstring">
103
+ <div class="discussion">
104
+
105
+ <p>Your code goes here…</p>
106
+
107
+
108
+ </div>
109
+ </div>
110
+ <div class="tags">
111
+
112
+
113
+ </div>
114
+
115
+
116
+
117
+
118
+
119
+
120
+
121
+ <h2>
122
+ Instance Method Summary
123
+ <small><a href="#" class="summary_toggle">collapse</a></small>
124
+ </h2>
125
+
126
+ <ul class="summary">
127
+
128
+ <li class="public ">
129
+ <span class="summary_signature">
130
+
131
+ <a href="#find_near-instance_method" title="#find_near (instance method)">#<strong>find_near</strong>(input_item) &#x21d2; Object </a>
132
+
133
+
134
+
135
+ </span>
136
+
137
+
138
+
139
+
140
+
141
+
142
+
143
+
144
+
145
+ <span class="summary_desc"><div class='inline'></div></span>
146
+
147
+ </li>
148
+
149
+
150
+ <li class="public ">
151
+ <span class="summary_signature">
152
+
153
+ <a href="#initialize-instance_method" title="#initialize (instance method)">#<strong>initialize</strong>(path = &quot;&quot;, ext = &quot;.org&quot;, layer = 1) &#x21d2; List </a>
154
+
155
+
156
+
157
+ </span>
158
+
159
+
160
+ <span class="note title constructor">constructor</span>
161
+
162
+
163
+
164
+
165
+
166
+
167
+
168
+
169
+ <span class="summary_desc"><div class='inline'>
170
+ <p>A new instance of List.</p>
171
+ </div></span>
172
+
173
+ </li>
174
+
175
+
176
+ <li class="public ">
177
+ <span class="summary_signature">
178
+
179
+ <a href="#list-instance_method" title="#list (instance method)">#<strong>list</strong>(help_options = &quot;&quot;, level = 0) &#x21d2; Object </a>
180
+
181
+
182
+
183
+ </span>
184
+
185
+
186
+
187
+
188
+
189
+
190
+
191
+
192
+
193
+ <span class="summary_desc"><div class='inline'></div></span>
194
+
195
+ </li>
196
+
197
+
198
+ <li class="public ">
199
+ <span class="summary_signature">
200
+
201
+ <a href="#list_help_with-instance_method" title="#list_help_with (instance method)">#<strong>list_help_with</strong>(path, name, item) &#x21d2; Object </a>
202
+
203
+
204
+
205
+ </span>
206
+
207
+
208
+
209
+
210
+
211
+
212
+
213
+
214
+
215
+ <span class="summary_desc"><div class='inline'>
216
+ <p>defaultで@path/name.@extのヘルプを読み込んで,itemを表示.</p>
217
+ </div></span>
218
+
219
+ </li>
220
+
221
+
222
+ <li class="public ">
223
+ <span class="summary_signature">
224
+
225
+ <a href="#list_helps-instance_method" title="#list_helps (instance method)">#<strong>list_helps</strong> &#x21d2; Object </a>
226
+
227
+
228
+
229
+ </span>
230
+
231
+
232
+
233
+
234
+
235
+
236
+
237
+
238
+
239
+ <span class="summary_desc"><div class='inline'></div></span>
240
+
241
+ </li>
242
+
243
+
244
+ <li class="public ">
245
+ <span class="summary_signature">
246
+
247
+ <a href="#read_help-instance_method" title="#read_help (instance method)">#<strong>read_help</strong>(file) &#x21d2; Object </a>
248
+
249
+
250
+
251
+ </span>
252
+
253
+
254
+
255
+
256
+
257
+
258
+
259
+
260
+
261
+ <span class="summary_desc"><div class='inline'></div></span>
262
+
263
+ </li>
264
+
265
+
266
+ </ul>
267
+
268
+
269
+ <div id="constructor_details" class="method_details_list">
270
+ <h2>Constructor Details</h2>
271
+
272
+ <div class="method_details first">
273
+ <h3 class="signature first" id="initialize-instance_method">
274
+
275
+ #<strong>initialize</strong>(path = &quot;&quot;, ext = &quot;.org&quot;, layer = 1) &#x21d2; <tt><span class='object_link'><a href="" title="MyHelp::List (class)">List</a></span></tt>
276
+
277
+
278
+
279
+
280
+
281
+ </h3><div class="docstring">
282
+ <div class="discussion">
283
+
284
+ <p>Returns a new instance of List.</p>
285
+
286
+
287
+ </div>
288
+ </div>
289
+ <div class="tags">
290
+
291
+
292
+ </div><table class="source_code">
293
+ <tr>
294
+ <td>
295
+ <pre class="lines">
296
+
297
+
298
+ 8
299
+ 9
300
+ 10
301
+ 11
302
+ 12</pre>
303
+ </td>
304
+ <td>
305
+ <pre class="code"><span class="info file"># File 'lib/my_help/list.rb', line 8</span>
306
+
307
+ <span class='kw'>def</span> <span class='id identifier rubyid_initialize'>initialize</span><span class='lparen'>(</span><span class='id identifier rubyid_path'>path</span> <span class='op'>=</span> <span class='tstring'><span class='tstring_beg'>&quot;</span><span class='tstring_end'>&quot;</span></span><span class='comma'>,</span> <span class='id identifier rubyid_ext'>ext</span> <span class='op'>=</span> <span class='tstring'><span class='tstring_beg'>&quot;</span><span class='tstring_content'>.org</span><span class='tstring_end'>&quot;</span></span><span class='comma'>,</span> <span class='id identifier rubyid_layer'>layer</span> <span class='op'>=</span> <span class='int'>1</span><span class='rparen'>)</span>
308
+ <span class='ivar'>@path</span> <span class='op'>=</span> <span class='id identifier rubyid_path'>path</span>
309
+ <span class='ivar'>@ext</span> <span class='op'>=</span> <span class='id identifier rubyid_ext'>ext</span>
310
+ <span class='id identifier rubyid_p'>p</span> <span class='ivar'>@layer</span> <span class='op'>=</span> <span class='id identifier rubyid_layer'>layer</span>
311
+ <span class='kw'>end</span></pre>
312
+ </td>
313
+ </tr>
314
+ </table>
315
+ </div>
316
+
317
+ </div>
318
+
319
+
320
+ <div id="instance_method_details" class="method_details_list">
321
+ <h2>Instance Method Details</h2>
322
+
323
+
324
+ <div class="method_details first">
325
+ <h3 class="signature first" id="find_near-instance_method">
326
+
327
+ #<strong>find_near</strong>(input_item) &#x21d2; <tt>Object</tt>
328
+
329
+
330
+
331
+
332
+
333
+ </h3><table class="source_code">
334
+ <tr>
335
+ <td>
336
+ <pre class="lines">
337
+
338
+
339
+ 60
340
+ 61
341
+ 62
342
+ 63
343
+ 64
344
+ 65
345
+ 66
346
+ 67
347
+ 68
348
+ 69
349
+ 70
350
+ 71
351
+ 72
352
+ 73
353
+ 74</pre>
354
+ </td>
355
+ <td>
356
+ <pre class="code"><span class="info file"># File 'lib/my_help/list.rb', line 60</span>
357
+
358
+ <span class='kw'>def</span> <span class='id identifier rubyid_find_near'>find_near</span><span class='lparen'>(</span><span class='id identifier rubyid_input_item'>input_item</span><span class='rparen'>)</span>
359
+ <span class='id identifier rubyid_candidates'>candidates</span> <span class='op'>=</span> <span class='lbracket'>[</span><span class='rbracket'>]</span>
360
+ <span class='ivar'>@help_info</span><span class='lbracket'>[</span><span class='symbol'>:items</span><span class='rbracket'>]</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_item'>item</span><span class='comma'>,</span> <span class='id identifier rubyid_val'>val</span><span class='op'>|</span>
361
+ <span class='id identifier rubyid_candidates'>candidates</span> <span class='op'>&lt;&lt;</span> <span class='id identifier rubyid_item'>item</span> <span class='kw'>if</span> <span class='id identifier rubyid_item'>item</span><span class='period'>.</span><span class='id identifier rubyid_include?'>include?</span><span class='lparen'>(</span><span class='id identifier rubyid_input_item'>input_item</span><span class='rparen'>)</span>
362
+ <span class='kw'>end</span>
363
+ <span class='kw'>if</span> <span class='id identifier rubyid_candidates'>candidates</span><span class='period'>.</span><span class='id identifier rubyid_size'>size</span> <span class='op'>==</span> <span class='int'>0</span>
364
+ <span class='tstring'><span class='tstring_beg'>&quot;</span><span class='tstring_content'>Can&#39;t find similar item name with : </span><span class='embexpr_beg'>#{</span><span class='id identifier rubyid_input_item'>input_item</span><span class='embexpr_end'>}</span><span class='tstring_end'>&quot;</span></span>
365
+ <span class='kw'>else</span>
366
+ <span class='id identifier rubyid_contents'>contents</span> <span class='op'>=</span> <span class='id identifier rubyid_candidates'>candidates</span><span class='period'>.</span><span class='id identifier rubyid_collect'>collect</span> <span class='kw'>do</span> <span class='op'>|</span><span class='id identifier rubyid_near_item'>near_item</span><span class='op'>|</span>
367
+ <span class='const'>ColorizedString</span><span class='lbracket'>[</span><span class='tstring'><span class='tstring_beg'>&quot;</span><span class='tstring_content'>item : </span><span class='embexpr_beg'>#{</span><span class='id identifier rubyid_near_item'>near_item</span><span class='embexpr_end'>}</span><span class='tstring_content'> \n</span><span class='tstring_end'>&quot;</span></span><span class='rbracket'>]</span><span class='period'>.</span><span class='id identifier rubyid_colorize'>colorize</span><span class='lparen'>(</span><span class='symbol'>:cyan</span><span class='rparen'>)</span> <span class='op'>+</span>
368
+ <span class='ivar'>@help_info</span><span class='lbracket'>[</span><span class='symbol'>:items</span><span class='rbracket'>]</span><span class='lbracket'>[</span><span class='id identifier rubyid_near_item'>near_item</span><span class='rbracket'>]</span>
369
+ <span class='kw'>end</span>
370
+ <span class='id identifier rubyid_contents'>contents</span><span class='period'>.</span><span class='id identifier rubyid_join'>join</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>
371
+ <span class='kw'>end</span>
372
+ <span class='kw'>end</span></pre>
373
+ </td>
374
+ </tr>
375
+ </table>
376
+ </div>
377
+
378
+ <div class="method_details ">
379
+ <h3 class="signature " id="list-instance_method">
380
+
381
+ #<strong>list</strong>(help_options = &quot;&quot;, level = 0) &#x21d2; <tt>Object</tt>
382
+
383
+
384
+
385
+
386
+
387
+ </h3><table class="source_code">
388
+ <tr>
389
+ <td>
390
+ <pre class="lines">
391
+
392
+
393
+ 14
394
+ 15
395
+ 16
396
+ 17
397
+ 18
398
+ 19
399
+ 20
400
+ 21
401
+ 22
402
+ 23</pre>
403
+ </td>
404
+ <td>
405
+ <pre class="code"><span class="info file"># File 'lib/my_help/list.rb', line 14</span>
406
+
407
+ <span class='kw'>def</span> <span class='id identifier rubyid_list'>list</span><span class='lparen'>(</span><span class='id identifier rubyid_help_options'>help_options</span> <span class='op'>=</span> <span class='tstring'><span class='tstring_beg'>&quot;</span><span class='tstring_end'>&quot;</span></span><span class='comma'>,</span> <span class='id identifier rubyid_level'>level</span> <span class='op'>=</span> <span class='int'>0</span><span class='rparen'>)</span>
408
+ <span class='id identifier rubyid_name'>name</span><span class='comma'>,</span> <span class='id identifier rubyid_item'>item</span> <span class='op'>=</span> <span class='id identifier rubyid_help_options'>help_options</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'> </span><span class='tstring_end'>&quot;</span></span><span class='rparen'>)</span>
409
+ <span class='kw'>if</span> <span class='id identifier rubyid_item'>item</span> <span class='op'>==</span> <span class='kw'>nil</span> <span class='op'>&amp;&amp;</span> <span class='id identifier rubyid_name'>name</span> <span class='op'>==</span> <span class='kw'>nil</span>
410
+ <span class='id identifier rubyid_list_helps'>list_helps</span><span class='lparen'>(</span><span class='rparen'>)</span>
411
+ <span class='kw'>else</span>
412
+ <span class='id identifier rubyid_path'>path</span> <span class='op'>=</span> <span class='const'>File</span><span class='period'>.</span><span class='id identifier rubyid_exists?'>exists?</span><span class='lparen'>(</span><span class='id identifier rubyid_name'>name</span> <span class='op'>+</span> <span class='ivar'>@ext</span><span class='rparen'>)</span> <span class='op'>?</span> <span class='id identifier rubyid_name'>name</span> <span class='op'>+</span> <span class='ivar'>@ext</span> <span class='op'>:</span>
413
+ <span class='const'>File</span><span class='period'>.</span><span class='id identifier rubyid_join'>join</span><span class='lparen'>(</span><span class='ivar'>@path</span><span class='comma'>,</span> <span class='id identifier rubyid_name'>name</span> <span class='op'>+</span> <span class='ivar'>@ext</span><span class='rparen'>)</span>
414
+ <span class='id identifier rubyid_list_help_with'>list_help_with</span><span class='lparen'>(</span><span class='id identifier rubyid_path'>path</span><span class='comma'>,</span> <span class='id identifier rubyid_name'>name</span><span class='comma'>,</span> <span class='id identifier rubyid_item'>item</span><span class='rparen'>)</span>
415
+ <span class='kw'>end</span>
416
+ <span class='kw'>end</span></pre>
417
+ </td>
418
+ </tr>
419
+ </table>
420
+ </div>
421
+
422
+ <div class="method_details ">
423
+ <h3 class="signature " id="list_help_with-instance_method">
424
+
425
+ #<strong>list_help_with</strong>(path, name, item) &#x21d2; <tt>Object</tt>
426
+
427
+
428
+
429
+
430
+
431
+ </h3><div class="docstring">
432
+ <div class="discussion">
433
+
434
+ <p>defaultで@path/name.@extのヘルプを読み込んで,itemを表示</p>
435
+
436
+
437
+ </div>
438
+ </div>
439
+ <div class="tags">
440
+
441
+
442
+ </div><table class="source_code">
443
+ <tr>
444
+ <td>
445
+ <pre class="lines">
446
+
447
+
448
+ 44
449
+ 45
450
+ 46
451
+ 47
452
+ 48
453
+ 49
454
+ 50
455
+ 51
456
+ 52
457
+ 53
458
+ 54
459
+ 55
460
+ 56
461
+ 57
462
+ 58</pre>
463
+ </td>
464
+ <td>
465
+ <pre class="code"><span class="info file"># File 'lib/my_help/list.rb', line 44</span>
466
+
467
+ <span class='kw'>def</span> <span class='id identifier rubyid_list_help_with'>list_help_with</span><span class='lparen'>(</span><span class='id identifier rubyid_path'>path</span><span class='comma'>,</span> <span class='id identifier rubyid_name'>name</span><span class='comma'>,</span> <span class='id identifier rubyid_item'>item</span><span class='rparen'>)</span>
468
+ <span class='ivar'>@help_info</span> <span class='op'>=</span> <span class='id identifier rubyid_read_help'>read_help</span><span class='lparen'>(</span><span class='id identifier rubyid_path'>path</span><span class='rparen'>)</span>
469
+ <span class='id identifier rubyid_output'>output</span> <span class='op'>=</span> <span class='const'>ColorizedString</span><span class='lbracket'>[</span><span class='tstring'><span class='tstring_beg'>&quot;</span><span class='tstring_content'>my_help called with name : </span><span class='embexpr_beg'>#{</span><span class='id identifier rubyid_name'>name</span><span class='embexpr_end'>}</span><span class='tstring_content'>, item : </span><span class='embexpr_beg'>#{</span><span class='id identifier rubyid_item'>item</span><span class='embexpr_end'>}</span><span class='tstring_content'>\n</span><span class='tstring_end'>&quot;</span></span><span class='rbracket'>]</span><span class='period'>.</span><span class='id identifier rubyid_colorize'>colorize</span><span class='lparen'>(</span><span class='symbol'>:cyan</span><span class='rparen'>)</span>
470
+
471
+ <span class='kw'>if</span> <span class='id identifier rubyid_item'>item</span> <span class='op'>==</span> <span class='kw'>nil</span>
472
+ <span class='ivar'>@help_info</span><span class='lbracket'>[</span><span class='symbol'>:items</span><span class='rbracket'>]</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_item'>item</span><span class='comma'>,</span> <span class='id identifier rubyid_val'>val</span><span class='op'>|</span>
473
+ <span class='id identifier rubyid_item'>item</span><span class='comma'>,</span> <span class='id identifier rubyid_desc'>desc</span> <span class='op'>=</span> <span class='id identifier rubyid_item'>item</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'>:</span><span class='tstring_end'>&quot;</span></span><span class='rparen'>)</span>
474
+ <span class='id identifier rubyid_desc'>desc</span> <span class='op'>||=</span> <span class='tstring'><span class='tstring_beg'>&quot;</span><span class='tstring_end'>&quot;</span></span>
475
+ <span class='id identifier rubyid_output'>output</span> <span class='op'>&lt;&lt;</span> <span class='tstring'><span class='tstring_beg'>&quot;</span><span class='tstring_content'>- %20s : %s\n</span><span class='tstring_end'>&quot;</span></span> <span class='op'>%</span> <span class='lbracket'>[</span><span class='id identifier rubyid_item'>item</span><span class='comma'>,</span> <span class='id identifier rubyid_desc'>desc</span><span class='rbracket'>]</span>
476
+ <span class='kw'>end</span>
477
+ <span class='kw'>else</span>
478
+ <span class='id identifier rubyid_output'>output</span> <span class='op'>&lt;&lt;</span> <span class='id identifier rubyid_find_near'>find_near</span><span class='lparen'>(</span><span class='id identifier rubyid_item'>item</span><span class='rparen'>)</span>
479
+ <span class='kw'>end</span>
480
+ <span class='kw'>return</span> <span class='id identifier rubyid_output'>output</span>
481
+ <span class='kw'>end</span></pre>
482
+ </td>
483
+ </tr>
484
+ </table>
485
+ </div>
486
+
487
+ <div class="method_details ">
488
+ <h3 class="signature " id="list_helps-instance_method">
489
+
490
+ #<strong>list_helps</strong> &#x21d2; <tt>Object</tt>
491
+
492
+
493
+
494
+
495
+
496
+ </h3><table class="source_code">
497
+ <tr>
498
+ <td>
499
+ <pre class="lines">
500
+
501
+
502
+ 32
503
+ 33
504
+ 34
505
+ 35
506
+ 36
507
+ 37
508
+ 38
509
+ 39
510
+ 40</pre>
511
+ </td>
512
+ <td>
513
+ <pre class="code"><span class="info file"># File 'lib/my_help/list.rb', line 32</span>
514
+
515
+ <span class='kw'>def</span> <span class='id identifier rubyid_list_helps'>list_helps</span><span class='lparen'>(</span><span class='rparen'>)</span>
516
+ <span class='id identifier rubyid_files'>files</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'>@path</span><span class='comma'>,</span> <span class='tstring'><span class='tstring_beg'>&quot;</span><span class='tstring_content'>*</span><span class='embexpr_beg'>#{</span><span class='ivar'>@ext</span><span class='embexpr_end'>}</span><span class='tstring_end'>&quot;</span></span><span class='rparen'>)</span>
517
+ <span class='const'>Dir</span><span class='period'>.</span><span class='id identifier rubyid_glob'>glob</span><span class='lparen'>(</span><span class='id identifier rubyid_files'>files</span><span class='rparen'>)</span><span class='period'>.</span><span class='id identifier rubyid_inject'>inject</span><span class='lparen'>(</span><span class='tstring'><span class='tstring_beg'>&quot;</span><span class='tstring_end'>&quot;</span></span><span class='rparen'>)</span> <span class='kw'>do</span> <span class='op'>|</span><span class='id identifier rubyid_out'>out</span><span class='comma'>,</span> <span class='id identifier rubyid_file'>file</span><span class='op'>|</span>
518
+ <span class='comment'># p [out, file]
519
+ </span> <span class='id identifier rubyid_help_info'>help_info</span> <span class='op'>=</span> <span class='id identifier rubyid_read_help'>read_help</span><span class='lparen'>(</span><span class='id identifier rubyid_file'>file</span><span class='rparen'>)</span>
520
+ <span class='id identifier rubyid_out'>out</span> <span class='op'>&lt;&lt;</span> <span class='tstring'><span class='tstring_beg'>&quot;</span><span class='tstring_content'>%10s: %s\n</span><span class='tstring_end'>&quot;</span></span> <span class='op'>%</span> <span class='lbracket'>[</span><span class='id identifier rubyid_help_info'>help_info</span><span class='lbracket'>[</span><span class='symbol'>:name</span><span class='rbracket'>]</span><span class='comma'>,</span>
521
+ <span class='id identifier rubyid_help_info'>help_info</span><span class='lbracket'>[</span><span class='symbol'>:items</span><span class='rbracket'>]</span><span class='lbracket'>[</span><span class='tstring'><span class='tstring_beg'>&quot;</span><span class='tstring_content'>head</span><span class='tstring_end'>&quot;</span></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><span class='rbracket'>]</span>
522
+ <span class='kw'>end</span>
523
+ <span class='kw'>end</span></pre>
524
+ </td>
525
+ </tr>
526
+ </table>
527
+ </div>
528
+
529
+ <div class="method_details ">
530
+ <h3 class="signature " id="read_help-instance_method">
531
+
532
+ #<strong>read_help</strong>(file) &#x21d2; <tt>Object</tt>
533
+
534
+
535
+
536
+
537
+
538
+ </h3><table class="source_code">
539
+ <tr>
540
+ <td>
541
+ <pre class="lines">
542
+
543
+
544
+ 25
545
+ 26
546
+ 27
547
+ 28
548
+ 29
549
+ 30</pre>
550
+ </td>
551
+ <td>
552
+ <pre class="code"><span class="info file"># File 'lib/my_help/list.rb', line 25</span>
553
+
554
+ <span class='kw'>def</span> <span class='id identifier rubyid_read_help'>read_help</span><span class='lparen'>(</span><span class='id identifier rubyid_file'>file</span><span class='rparen'>)</span>
555
+ <span class='id identifier rubyid_info'>info</span> <span class='op'>=</span> <span class='lbrace'>{</span><span class='rbrace'>}</span>
556
+ <span class='id identifier rubyid_info'>info</span><span class='lbracket'>[</span><span class='symbol'>:items</span><span class='rbracket'>]</span> <span class='op'>=</span> <span class='const'><span class='object_link'><a href="Org2Hash.html" title="MyHelp::Org2Hash (class)">Org2Hash</a></span></span><span class='period'>.</span><span class='id identifier rubyid_new'><span class='object_link'><a href="Org2Hash.html#initialize-instance_method" title="MyHelp::Org2Hash#initialize (method)">new</a></span></span><span class='lparen'>(</span><span class='const'>File</span><span class='period'>.</span><span class='id identifier rubyid_read'>read</span><span class='lparen'>(</span><span class='id identifier rubyid_file'>file</span><span class='rparen'>)</span><span class='rparen'>)</span><span class='period'>.</span><span class='id identifier rubyid_contents'><span class='object_link'><a href="Org2Hash.html#contents-instance_method" title="MyHelp::Org2Hash#contents (method)">contents</a></span></span>
557
+ <span class='id identifier rubyid_info'>info</span><span class='lbracket'>[</span><span class='symbol'>:name</span><span class='rbracket'>]</span> <span class='op'>=</span> <span class='const'>File</span><span class='period'>.</span><span class='id identifier rubyid_basename'>basename</span><span class='lparen'>(</span><span class='id identifier rubyid_file'>file</span><span class='rparen'>)</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'>.</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>
558
+ <span class='kw'>return</span> <span class='id identifier rubyid_info'>info</span>
559
+ <span class='kw'>end</span></pre>
560
+ </td>
561
+ </tr>
562
+ </table>
563
+ </div>
564
+
565
+ </div>
566
+
567
+ </div>
568
+
569
+ <div id="footer">
570
+ Generated on Fri Jan 6 13:07:57 2023 by
571
+ <a href="https://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
572
+ 0.9.28 (ruby-3.0.2).
573
+ </div>
574
+
575
+ </div>
576
+ </body>
577
+ </html>