org-ruby 0.5.3 → 0.6.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (97) hide show
  1. data/History.txt +12 -0
  2. data/Rakefile +3 -5
  3. data/announcement.txt +24 -0
  4. data/doc/History_txt.html +272 -0
  5. data/doc/OrgRuby.html +149 -0
  6. data/doc/Orgmode.html +960 -0
  7. data/doc/Orgmode/Headline.html +522 -0
  8. data/doc/Orgmode/HtmlOutputBuffer.html +480 -0
  9. data/doc/Orgmode/Line.html +1251 -0
  10. data/doc/Orgmode/OutputBuffer.html +810 -0
  11. data/doc/Orgmode/Parser.html +852 -0
  12. data/doc/Orgmode/RegexpHelper.html +639 -0
  13. data/doc/Orgmode/TextileOutputBuffer.html +456 -0
  14. data/doc/README_rdoc.html +178 -0
  15. data/doc/announcement_txt.html +142 -0
  16. data/doc/bin/org-ruby.html +54 -0
  17. data/doc/created.rid +15 -0
  18. data/doc/images/brick.png +0 -0
  19. data/doc/images/brick_link.png +0 -0
  20. data/doc/images/bug.png +0 -0
  21. data/doc/images/bullet_black.png +0 -0
  22. data/doc/images/bullet_toggle_minus.png +0 -0
  23. data/doc/images/bullet_toggle_plus.png +0 -0
  24. data/doc/images/date.png +0 -0
  25. data/doc/images/find.png +0 -0
  26. data/doc/images/loadingAnimation.gif +0 -0
  27. data/doc/images/macFFBgHack.png +0 -0
  28. data/doc/images/package.png +0 -0
  29. data/doc/images/page_green.png +0 -0
  30. data/doc/images/page_white_text.png +0 -0
  31. data/doc/images/page_white_width.png +0 -0
  32. data/doc/images/plugin.png +0 -0
  33. data/doc/images/ruby.png +0 -0
  34. data/doc/images/tag_green.png +0 -0
  35. data/doc/images/wrench.png +0 -0
  36. data/doc/images/wrench_orange.png +0 -0
  37. data/doc/images/zoom.png +0 -0
  38. data/doc/index.html +306 -0
  39. data/doc/js/darkfish.js +116 -0
  40. data/doc/js/jquery.js +32 -0
  41. data/doc/js/quicksearch.js +114 -0
  42. data/doc/js/thickbox-compressed.js +10 -0
  43. data/doc/lib/org-ruby/headline_rb.html +52 -0
  44. data/doc/lib/org-ruby/html_output_buffer_rb.html +52 -0
  45. data/doc/lib/org-ruby/html_symbol_replace_rb.html +54 -0
  46. data/doc/lib/org-ruby/line_rb.html +52 -0
  47. data/doc/lib/org-ruby/output_buffer_rb.html +54 -0
  48. data/doc/lib/org-ruby/parser_rb.html +56 -0
  49. data/doc/lib/org-ruby/regexp_helper_rb.html +54 -0
  50. data/doc/lib/org-ruby/textile_output_buffer_rb.html +54 -0
  51. data/doc/lib/org-ruby/textile_symbol_replace_rb.html +54 -0
  52. data/doc/lib/org-ruby_rb.html +52 -0
  53. data/doc/rdoc.css +763 -0
  54. data/lib/org-ruby.rb +1 -1
  55. data/lib/org-ruby/headline.rb +2 -2
  56. data/lib/org-ruby/html_output_buffer.rb +62 -5
  57. data/lib/org-ruby/html_symbol_replace.rb +345 -0
  58. data/lib/org-ruby/line.rb +20 -9
  59. data/lib/org-ruby/output_buffer.rb +8 -1
  60. data/lib/org-ruby/parser.rb +47 -19
  61. data/lib/org-ruby/regexp_helper.rb +16 -0
  62. data/lib/org-ruby/textile_output_buffer.rb +37 -2
  63. data/lib/org-ruby/textile_symbol_replace.rb +345 -0
  64. data/org-ruby.gemspec +41 -0
  65. data/spec/headline_spec.rb +5 -0
  66. data/spec/html_examples/advanced-code.html +10 -0
  67. data/spec/html_examples/advanced-code.org +13 -0
  68. data/spec/html_examples/blockcomment.html +3 -0
  69. data/spec/html_examples/blockcomment.org +15 -0
  70. data/spec/html_examples/center.html +6 -0
  71. data/spec/html_examples/center.org +7 -0
  72. data/spec/html_examples/deflist.html +6 -0
  73. data/spec/html_examples/deflist.org +6 -0
  74. data/spec/html_examples/footnotes.html +10 -0
  75. data/spec/html_examples/footnotes.org +7 -0
  76. data/spec/html_examples/inline-formatting.html +8 -0
  77. data/spec/html_examples/inline-formatting.org +10 -0
  78. data/spec/html_examples/inline-images.html +1 -1
  79. data/spec/html_examples/lists.html +4 -0
  80. data/spec/html_examples/lists.org +11 -0
  81. data/spec/html_examples/subsupscript-nil.html +3 -0
  82. data/spec/html_examples/subsupscript-nil.org +6 -0
  83. data/spec/html_examples/subsupscript.html +3 -0
  84. data/spec/html_examples/subsupscript.org +5 -0
  85. data/spec/html_examples/tables.html +15 -0
  86. data/spec/html_examples/tables.org +24 -0
  87. data/spec/line_spec.rb +17 -13
  88. data/spec/spec_helper.rb +1 -2
  89. data/spec/textile_examples/center.org +7 -0
  90. data/spec/textile_examples/center.textile +6 -0
  91. data/spec/textile_examples/footnotes.org +7 -0
  92. data/spec/textile_examples/footnotes.textile +8 -0
  93. data/spec/textile_examples/tables.org +24 -0
  94. data/spec/textile_examples/tables.textile +17 -0
  95. data/util/gen-special-replace.el +37 -0
  96. metadata +111 -19
  97. data/.gitignore +0 -1
@@ -0,0 +1,1251 @@
1
+ <?xml version="1.0" encoding="UTF-8"?>
2
+ <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
3
+ "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
4
+ <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
5
+ <head>
6
+ <meta content="text/html; charset=UTF-8" http-equiv="Content-Type" />
7
+
8
+ <title>Class: Orgmode::Line</title>
9
+
10
+ <link rel="stylesheet" href="../rdoc.css" type="text/css" media="screen" />
11
+
12
+ <script src="../js/jquery.js" type="text/javascript" charset="utf-8"></script>
13
+ <script src="../js/thickbox-compressed.js" type="text/javascript" charset="utf-8"></script>
14
+ <script src="../js/quicksearch.js" type="text/javascript" charset="utf-8"></script>
15
+ <script src="../js/darkfish.js" type="text/javascript" charset="utf-8"></script>
16
+
17
+ </head>
18
+ <body id="top" class="class">
19
+
20
+ <div id="metadata">
21
+ <div id="home-metadata">
22
+ <div id="home-section" class="section">
23
+ <h3 class="section-header">
24
+ <a href="../index.html">Home</a>
25
+ <a href="../index.html#classes">Classes</a>
26
+ <a href="../index.html#methods">Methods</a>
27
+ </h3>
28
+ </div>
29
+ </div>
30
+
31
+ <div id="file-metadata">
32
+ <div id="file-list-section" class="section">
33
+ <h3 class="section-header">In Files</h3>
34
+ <div class="section-body">
35
+ <ul>
36
+
37
+ <li><a href="../lib/org-ruby/line_rb.html?TB_iframe=true&amp;height=550&amp;width=785"
38
+ class="thickbox" title="lib/org-ruby/line.rb">lib/org-ruby/line.rb</a></li>
39
+
40
+ </ul>
41
+ </div>
42
+ </div>
43
+
44
+
45
+ </div>
46
+
47
+ <div id="class-metadata">
48
+
49
+ <!-- Parent Class -->
50
+ <div id="parent-class-section" class="section">
51
+ <h3 class="section-header">Parent</h3>
52
+
53
+ <p class="link">Object</p>
54
+
55
+ </div>
56
+
57
+
58
+
59
+
60
+
61
+
62
+
63
+ <!-- Method Quickref -->
64
+ <div id="method-list-section" class="section">
65
+ <h3 class="section-header">Methods</h3>
66
+ <ul class="link-list">
67
+
68
+ <li><a href="#method-c-new">::new</a></li>
69
+
70
+ <li><a href="#method-c-to_textile">::to_textile</a></li>
71
+
72
+ <li><a href="#method-i-begin_block-3F">#begin_block?</a></li>
73
+
74
+ <li><a href="#method-i-blank-3F">#blank?</a></li>
75
+
76
+ <li><a href="#method-i-block_type">#block_type</a></li>
77
+
78
+ <li><a href="#method-i-code_block_type-3F">#code_block_type?</a></li>
79
+
80
+ <li><a href="#method-i-comment-3F">#comment?</a></li>
81
+
82
+ <li><a href="#method-i-definition_list-3F">#definition_list?</a></li>
83
+
84
+ <li><a href="#method-i-end_block-3F">#end_block?</a></li>
85
+
86
+ <li><a href="#method-i-in_buffer_setting-3F">#in_buffer_setting?</a></li>
87
+
88
+ <li><a href="#method-i-inline_example-3F">#inline_example?</a></li>
89
+
90
+ <li><a href="#method-i-metadata-3F">#metadata?</a></li>
91
+
92
+ <li><a href="#method-i-nonprinting-3F">#nonprinting?</a></li>
93
+
94
+ <li><a href="#method-i-ordered_list-3F">#ordered_list?</a></li>
95
+
96
+ <li><a href="#method-i-output_text">#output_text</a></li>
97
+
98
+ <li><a href="#method-i-paragraph_type">#paragraph_type</a></li>
99
+
100
+ <li><a href="#method-i-plain_list-3F">#plain_list?</a></li>
101
+
102
+ <li><a href="#method-i-plain_text-3F">#plain_text?</a></li>
103
+
104
+ <li><a href="#method-i-strip_ordered_list_tag">#strip_ordered_list_tag</a></li>
105
+
106
+ <li><a href="#method-i-strip_unordered_list_tag">#strip_unordered_list_tag</a></li>
107
+
108
+ <li><a href="#method-i-table-3F">#table?</a></li>
109
+
110
+ <li><a href="#method-i-table_header-3F">#table_header?</a></li>
111
+
112
+ <li><a href="#method-i-table_row-3F">#table_row?</a></li>
113
+
114
+ <li><a href="#method-i-table_separator-3F">#table_separator?</a></li>
115
+
116
+ <li><a href="#method-i-to_s">#to_s</a></li>
117
+
118
+ <li><a href="#method-i-unordered_list-3F">#unordered_list?</a></li>
119
+
120
+ </ul>
121
+ </div>
122
+
123
+
124
+
125
+ </div>
126
+
127
+ <div id="project-metadata">
128
+
129
+
130
+ <div id="fileindex-section" class="section project-section">
131
+ <h3 class="section-header">Files</h3>
132
+ <ul>
133
+
134
+ <li class="file"><a href="../History_txt.html">History.txt</a></li>
135
+
136
+ <li class="file"><a href="../README_rdoc.html">README.rdoc</a></li>
137
+
138
+ <li class="file"><a href="../announcement_txt.html">announcement.txt</a></li>
139
+
140
+ </ul>
141
+ </div>
142
+
143
+
144
+ <div id="classindex-section" class="section project-section">
145
+ <h3 class="section-header">Class/Module Index
146
+ <span class="search-toggle"><img src="../images/find.png"
147
+ height="16" width="16" alt="[+]"
148
+ title="show/hide quicksearch" /></span></h3>
149
+ <form action="#" method="get" accept-charset="utf-8" class="initially-hidden">
150
+ <fieldset>
151
+ <legend>Quicksearch</legend>
152
+ <input type="text" name="quicksearch" value=""
153
+ class="quicksearch-field" />
154
+ </fieldset>
155
+ </form>
156
+
157
+ <ul class="link-list">
158
+
159
+ <li><a href="../Orgmode.html">Orgmode</a></li>
160
+
161
+ <li><a href="../Orgmode/Headline.html">Orgmode::Headline</a></li>
162
+
163
+ <li><a href="../Orgmode/HtmlOutputBuffer.html">Orgmode::HtmlOutputBuffer</a></li>
164
+
165
+ <li><a href="../Orgmode/Line.html">Orgmode::Line</a></li>
166
+
167
+ <li><a href="../Orgmode/OutputBuffer.html">Orgmode::OutputBuffer</a></li>
168
+
169
+ <li><a href="../Orgmode/Parser.html">Orgmode::Parser</a></li>
170
+
171
+ <li><a href="../Orgmode/RegexpHelper.html">Orgmode::RegexpHelper</a></li>
172
+
173
+ <li><a href="../Orgmode/TextileOutputBuffer.html">Orgmode::TextileOutputBuffer</a></li>
174
+
175
+ <li><a href="../OrgRuby.html">OrgRuby</a></li>
176
+
177
+ </ul>
178
+ <div id="no-class-search-results" style="display: none;">No matching classes.</div>
179
+ </div>
180
+
181
+
182
+ </div>
183
+ </div>
184
+
185
+ <div id="documentation">
186
+ <h1 class="class">Orgmode::Line</h1>
187
+
188
+ <div id="description" class="description">
189
+
190
+ <p>Represents a single line of an orgmode file.</p>
191
+
192
+ </div><!-- description -->
193
+
194
+
195
+ <div id="5Buntitled-5D" class="documentation-section">
196
+
197
+
198
+
199
+
200
+
201
+ <!-- Constants -->
202
+ <div id="constants-list" class="section">
203
+ <h3 class="section-header">Constants</h3>
204
+ <dl>
205
+
206
+ <dt><a name="BlockRegexp">BlockRegexp</a></dt>
207
+
208
+ <dd class="description"></dd>
209
+
210
+
211
+ <dt><a name="DefinitionListRegexp">DefinitionListRegexp</a></dt>
212
+
213
+ <dd class="description"></dd>
214
+
215
+
216
+ <dt><a name="InBufferSettingRegexp">InBufferSettingRegexp</a></dt>
217
+
218
+ <dd class="description"></dd>
219
+
220
+
221
+ <dt><a name="InlineExampleRegexp">InlineExampleRegexp</a></dt>
222
+
223
+ <dd class="description"></dd>
224
+
225
+
226
+ <dt><a name="OrderedListRegexp">OrderedListRegexp</a></dt>
227
+
228
+ <dd class="description"></dd>
229
+
230
+
231
+ <dt><a name="UnorderedListRegexp">UnorderedListRegexp</a></dt>
232
+
233
+ <dd class="description"></dd>
234
+
235
+
236
+ </dl>
237
+ </div>
238
+
239
+
240
+
241
+ <!-- Attributes -->
242
+ <div id="attribute-method-details" class="method-section section">
243
+ <h3 class="section-header">Attributes</h3>
244
+
245
+
246
+ <div id="assigned_paragraph_type-attribute-method" class="method-detail">
247
+ <a name="assigned_paragraph_type"></a>
248
+
249
+ <a name="assigned_paragraph_type="></a>
250
+
251
+ <div class="method-heading attribute-method-heading">
252
+ <span class="method-name">assigned_paragraph_type</span><span
253
+ class="attribute-access-type">[RW]</span>
254
+ </div>
255
+
256
+ <div class="method-description">
257
+
258
+ <p>A line can have its type assigned instead of inferred from its content. For
259
+ example, something that parses as a “table” on its own (“| one |
260
+ two|n”) may just be a paragraph if it’s inside #+BEGIN_EXAMPLE. Set
261
+ this property on the line to assign its type. This will then affect the
262
+ value of <tt><a
263
+ href="Line.html#method-i-paragraph_type">paragraph_type</a></tt>.</p>
264
+
265
+ </div>
266
+ </div>
267
+
268
+ <div id="indent-attribute-method" class="method-detail">
269
+ <a name="indent"></a>
270
+
271
+ <div class="method-heading attribute-method-heading">
272
+ <span class="method-name">indent</span><span
273
+ class="attribute-access-type">[R]</span>
274
+ </div>
275
+
276
+ <div class="method-description">
277
+
278
+ <p>The indent level of this line. this is important to properly translate
279
+ nested lists from orgmode to textile. TODO 2009-12-20 bdewey: Handle tabs</p>
280
+
281
+ </div>
282
+ </div>
283
+
284
+ <div id="line-attribute-method" class="method-detail">
285
+ <a name="line"></a>
286
+
287
+ <div class="method-heading attribute-method-heading">
288
+ <span class="method-name">line</span><span
289
+ class="attribute-access-type">[R]</span>
290
+ </div>
291
+
292
+ <div class="method-description">
293
+
294
+ <p>This is the line itself.</p>
295
+
296
+ </div>
297
+ </div>
298
+
299
+ <div id="parser-attribute-method" class="method-detail">
300
+ <a name="parser"></a>
301
+
302
+ <div class="method-heading attribute-method-heading">
303
+ <span class="method-name">parser</span><span
304
+ class="attribute-access-type">[R]</span>
305
+ </div>
306
+
307
+ <div class="method-description">
308
+
309
+ <p>Backpointer to the parser that owns this line.</p>
310
+
311
+ </div>
312
+ </div>
313
+
314
+ </div><!-- attribute-method-details -->
315
+
316
+
317
+ <!-- Methods -->
318
+
319
+ <div id="public-class-method-details" class="method-section section">
320
+ <h3 class="section-header">Public Class Methods</h3>
321
+
322
+
323
+ <div id="new-method" class="method-detail ">
324
+ <a name="method-c-new"></a>
325
+
326
+
327
+ <div class="method-heading">
328
+ <span class="method-name">new</span><span
329
+ class="method-args">(line, parser = nil)</span>
330
+ <span class="method-click-advice">click to toggle source</span>
331
+ </div>
332
+
333
+
334
+ <div class="method-description">
335
+
336
+
337
+
338
+
339
+
340
+ <div class="method-source-code" id="new-source">
341
+ <pre>
342
+ <span class="ruby-comment"># File lib/org-ruby/line.rb, line 24</span>
343
+ <span class="ruby-keyword">def</span> <span class="ruby-identifier">initialize</span>(<span class="ruby-identifier">line</span>, <span class="ruby-identifier">parser</span> = <span class="ruby-keyword">nil</span>)
344
+ <span class="ruby-ivar">@parser</span> = <span class="ruby-identifier">parser</span>
345
+ <span class="ruby-ivar">@line</span> = <span class="ruby-identifier">line</span>
346
+ <span class="ruby-ivar">@indent</span> = <span class="ruby-value">0</span>
347
+ <span class="ruby-ivar">@line</span> <span class="ruby-operator">=~</span> <span class="ruby-regexp">/\s*/</span>
348
+ <span class="ruby-ivar">@assigned_paragraph_type</span> = <span class="ruby-keyword">nil</span>
349
+ <span class="ruby-ivar">@indent</span> = <span class="ruby-node">$&amp;</span>.<span class="ruby-identifier">length</span> <span class="ruby-keyword">unless</span> <span class="ruby-identifier">blank?</span>
350
+ <span class="ruby-keyword">end</span></pre>
351
+ </div><!-- new-source -->
352
+
353
+ </div>
354
+
355
+
356
+
357
+
358
+ </div><!-- new-method -->
359
+
360
+
361
+ <div id="to_textile-method" class="method-detail ">
362
+ <a name="method-c-to_textile"></a>
363
+
364
+
365
+ <div class="method-heading">
366
+ <span class="method-name">to_textile</span><span
367
+ class="method-args">(lines)</span>
368
+ <span class="method-click-advice">click to toggle source</span>
369
+ </div>
370
+
371
+
372
+ <div class="method-description">
373
+
374
+
375
+
376
+
377
+
378
+ <div class="method-source-code" id="to_textile-source">
379
+ <pre>
380
+ <span class="ruby-comment"># File lib/org-ruby/line.rb, line 187</span>
381
+ <span class="ruby-keyword">def</span> <span class="ruby-keyword">self</span>.<span class="ruby-identifier">to_textile</span>(<span class="ruby-identifier">lines</span>)
382
+ <span class="ruby-identifier">output</span> = <span class="ruby-string">&quot;&quot;</span>
383
+ <span class="ruby-identifier">output_buffer</span> = <span class="ruby-constant">TextileOutputBuffer</span>.<span class="ruby-identifier">new</span>(<span class="ruby-identifier">output</span>)
384
+ <span class="ruby-constant">Parser</span>.<span class="ruby-identifier">translate</span>(<span class="ruby-identifier">lines</span>, <span class="ruby-identifier">output_buffer</span>)
385
+ <span class="ruby-keyword">end</span></pre>
386
+ </div><!-- to_textile-source -->
387
+
388
+ </div>
389
+
390
+
391
+
392
+
393
+ </div><!-- to_textile-method -->
394
+
395
+
396
+ </div><!-- public-class-method-details -->
397
+
398
+ <div id="public-instance-method-details" class="method-section section">
399
+ <h3 class="section-header">Public Instance Methods</h3>
400
+
401
+
402
+ <div id="begin_block-3F-method" class="method-detail ">
403
+ <a name="method-i-begin_block-3F"></a>
404
+
405
+
406
+ <div class="method-heading">
407
+ <span class="method-name">begin_block?</span><span
408
+ class="method-args">()</span>
409
+ <span class="method-click-advice">click to toggle source</span>
410
+ </div>
411
+
412
+
413
+ <div class="method-description">
414
+
415
+
416
+
417
+
418
+
419
+ <div class="method-source-code" id="begin_block-3F-source">
420
+ <pre>
421
+ <span class="ruby-comment"># File lib/org-ruby/line.rb, line 125</span>
422
+ <span class="ruby-keyword">def</span> <span class="ruby-identifier">begin_block?</span>
423
+ <span class="ruby-ivar">@line</span> <span class="ruby-operator">=~</span> <span class="ruby-constant">BlockRegexp</span> <span class="ruby-operator">&amp;&amp;</span> <span class="ruby-node">$1</span> <span class="ruby-operator">=~</span> <span class="ruby-regexp">/BEGIN/</span>
424
+ <span class="ruby-keyword">end</span></pre>
425
+ </div><!-- begin_block-3F-source -->
426
+
427
+ </div>
428
+
429
+
430
+
431
+
432
+ </div><!-- begin_block-3F-method -->
433
+
434
+
435
+ <div id="blank-3F-method" class="method-detail ">
436
+ <a name="method-i-blank-3F"></a>
437
+
438
+
439
+ <div class="method-heading">
440
+ <span class="method-name">blank?</span><span
441
+ class="method-args">()</span>
442
+ <span class="method-click-advice">click to toggle source</span>
443
+ </div>
444
+
445
+
446
+ <div class="method-description">
447
+
448
+
449
+
450
+
451
+
452
+ <div class="method-source-code" id="blank-3F-source">
453
+ <pre>
454
+ <span class="ruby-comment"># File lib/org-ruby/line.rb, line 53</span>
455
+ <span class="ruby-keyword">def</span> <span class="ruby-identifier">blank?</span>
456
+ <span class="ruby-identifier">check_assignment_or_regexp</span>(<span class="ruby-value">:blank</span>, <span class="ruby-regexp">/^\s*$/</span>)
457
+ <span class="ruby-keyword">end</span></pre>
458
+ </div><!-- blank-3F-source -->
459
+
460
+ </div>
461
+
462
+
463
+
464
+
465
+ </div><!-- blank-3F-method -->
466
+
467
+
468
+ <div id="block_type-method" class="method-detail ">
469
+ <a name="method-i-block_type"></a>
470
+
471
+
472
+ <div class="method-heading">
473
+ <span class="method-name">block_type</span><span
474
+ class="method-args">()</span>
475
+ <span class="method-click-advice">click to toggle source</span>
476
+ </div>
477
+
478
+
479
+ <div class="method-description">
480
+
481
+
482
+
483
+
484
+
485
+ <div class="method-source-code" id="block_type-source">
486
+ <pre>
487
+ <span class="ruby-comment"># File lib/org-ruby/line.rb, line 133</span>
488
+ <span class="ruby-keyword">def</span> <span class="ruby-identifier">block_type</span>
489
+ <span class="ruby-node">$2</span> <span class="ruby-keyword">if</span> <span class="ruby-ivar">@line</span> <span class="ruby-operator">=~</span> <span class="ruby-constant">BlockRegexp</span>
490
+ <span class="ruby-keyword">end</span></pre>
491
+ </div><!-- block_type-source -->
492
+
493
+ </div>
494
+
495
+
496
+
497
+
498
+ </div><!-- block_type-method -->
499
+
500
+
501
+ <div id="code_block_type-3F-method" class="method-detail ">
502
+ <a name="method-i-code_block_type-3F"></a>
503
+
504
+
505
+ <div class="method-heading">
506
+ <span class="method-name">code_block_type?</span><span
507
+ class="method-args">()</span>
508
+ <span class="method-click-advice">click to toggle source</span>
509
+ </div>
510
+
511
+
512
+ <div class="method-description">
513
+
514
+
515
+
516
+
517
+
518
+ <div class="method-source-code" id="code_block_type-3F-source">
519
+ <pre>
520
+ <span class="ruby-comment"># File lib/org-ruby/line.rb, line 137</span>
521
+ <span class="ruby-keyword">def</span> <span class="ruby-identifier">code_block_type?</span>
522
+ <span class="ruby-identifier">block_type</span> <span class="ruby-operator">=~</span> <span class="ruby-regexp">/^(EXAMPLE|SRC)$/</span>
523
+ <span class="ruby-keyword">end</span></pre>
524
+ </div><!-- code_block_type-3F-source -->
525
+
526
+ </div>
527
+
528
+
529
+
530
+
531
+ </div><!-- code_block_type-3F-method -->
532
+
533
+
534
+ <div id="comment-3F-method" class="method-detail ">
535
+ <a name="method-i-comment-3F"></a>
536
+
537
+
538
+ <div class="method-heading">
539
+ <span class="method-name">comment?</span><span
540
+ class="method-args">()</span>
541
+ <span class="method-click-advice">click to toggle source</span>
542
+ </div>
543
+
544
+
545
+ <div class="method-description">
546
+
547
+ <p>Tests if a line is a comment.</p>
548
+
549
+
550
+
551
+ <div class="method-source-code" id="comment-3F-source">
552
+ <pre>
553
+ <span class="ruby-comment"># File lib/org-ruby/line.rb, line 38</span>
554
+ <span class="ruby-keyword">def</span> <span class="ruby-identifier">comment?</span>
555
+ <span class="ruby-keyword">return</span> <span class="ruby-ivar">@assigned_paragraph_type</span> <span class="ruby-operator">==</span> <span class="ruby-value">:comment</span> <span class="ruby-keyword">if</span> <span class="ruby-ivar">@assigned_paragraph_type</span>
556
+ <span class="ruby-keyword">return</span> <span class="ruby-identifier">block_type</span>.<span class="ruby-identifier">casecmp</span>(<span class="ruby-string">&quot;COMMENT&quot;</span>) <span class="ruby-keyword">if</span> <span class="ruby-identifier">begin_block?</span> <span class="ruby-keyword">or</span> <span class="ruby-identifier">end_block?</span>
557
+ <span class="ruby-keyword">return</span> <span class="ruby-ivar">@line</span> <span class="ruby-operator">=~</span> <span class="ruby-node">/^#/</span>
558
+ <span class="ruby-keyword">end</span></pre>
559
+ </div><!-- comment-3F-source -->
560
+
561
+ </div>
562
+
563
+
564
+
565
+
566
+ </div><!-- comment-3F-method -->
567
+
568
+
569
+ <div id="definition_list-3F-method" class="method-detail ">
570
+ <a name="method-i-definition_list-3F"></a>
571
+
572
+
573
+ <div class="method-heading">
574
+ <span class="method-name">definition_list?</span><span
575
+ class="method-args">()</span>
576
+ <span class="method-click-advice">click to toggle source</span>
577
+ </div>
578
+
579
+
580
+ <div class="method-description">
581
+
582
+
583
+
584
+
585
+
586
+ <div class="method-source-code" id="definition_list-3F-source">
587
+ <pre>
588
+ <span class="ruby-comment"># File lib/org-ruby/line.rb, line 73</span>
589
+ <span class="ruby-keyword">def</span> <span class="ruby-identifier">definition_list?</span>
590
+ <span class="ruby-identifier">check_assignment_or_regexp</span>(<span class="ruby-value">:definition_list</span>, <span class="ruby-constant">DefinitionListRegexp</span>)
591
+ <span class="ruby-keyword">end</span></pre>
592
+ </div><!-- definition_list-3F-source -->
593
+
594
+ </div>
595
+
596
+
597
+
598
+
599
+ </div><!-- definition_list-3F-method -->
600
+
601
+
602
+ <div id="end_block-3F-method" class="method-detail ">
603
+ <a name="method-i-end_block-3F"></a>
604
+
605
+
606
+ <div class="method-heading">
607
+ <span class="method-name">end_block?</span><span
608
+ class="method-args">()</span>
609
+ <span class="method-click-advice">click to toggle source</span>
610
+ </div>
611
+
612
+
613
+ <div class="method-description">
614
+
615
+
616
+
617
+
618
+
619
+ <div class="method-source-code" id="end_block-3F-source">
620
+ <pre>
621
+ <span class="ruby-comment"># File lib/org-ruby/line.rb, line 129</span>
622
+ <span class="ruby-keyword">def</span> <span class="ruby-identifier">end_block?</span>
623
+ <span class="ruby-ivar">@line</span> <span class="ruby-operator">=~</span> <span class="ruby-constant">BlockRegexp</span> <span class="ruby-operator">&amp;&amp;</span> <span class="ruby-node">$1</span> <span class="ruby-operator">=~</span> <span class="ruby-regexp">/END/</span>
624
+ <span class="ruby-keyword">end</span></pre>
625
+ </div><!-- end_block-3F-source -->
626
+
627
+ </div>
628
+
629
+
630
+
631
+
632
+ </div><!-- end_block-3F-method -->
633
+
634
+
635
+ <div id="in_buffer_setting-3F-method" class="method-detail ">
636
+ <a name="method-i-in_buffer_setting-3F"></a>
637
+
638
+
639
+
640
+ <div class="method-heading">
641
+ <span class="method-callseq">in_buffer_setting? => boolean</span>
642
+
643
+ <span class="method-click-advice">click to toggle source</span>
644
+
645
+ </div>
646
+
647
+ <div class="method-heading">
648
+ <span class="method-callseq">in_buffer_setting? { |key, value| ... }</span>
649
+
650
+ </div>
651
+
652
+
653
+
654
+ <div class="method-description">
655
+
656
+ <p>Called without a block, this method determines if the line contains an
657
+ in-buffer setting. Called with a block, the block will get called if the
658
+ line contains an in-buffer setting with the key and value for the setting.</p>
659
+
660
+
661
+
662
+ <div class="method-source-code" id="in_buffer_setting-3F-source">
663
+ <pre>
664
+ <span class="ruby-comment"># File lib/org-ruby/line.rb, line 159</span>
665
+ <span class="ruby-keyword">def</span> <span class="ruby-identifier">in_buffer_setting?</span>
666
+ <span class="ruby-keyword">return</span> <span class="ruby-keyword">false</span> <span class="ruby-keyword">if</span> <span class="ruby-ivar">@assigned_paragraph_type</span> <span class="ruby-operator">&amp;&amp;</span> <span class="ruby-ivar">@assigned_paragraph_type</span> <span class="ruby-operator">!=</span> <span class="ruby-value">:comment</span>
667
+ <span class="ruby-keyword">if</span> <span class="ruby-identifier">block_given?</span> <span class="ruby-keyword">then</span>
668
+ <span class="ruby-keyword">if</span> <span class="ruby-ivar">@line</span> <span class="ruby-operator">=~</span> <span class="ruby-constant">InBufferSettingRegexp</span>
669
+ <span class="ruby-keyword">yield</span> <span class="ruby-node">$1</span>, <span class="ruby-node">$2</span>
670
+ <span class="ruby-keyword">end</span>
671
+ <span class="ruby-keyword">else</span>
672
+ <span class="ruby-ivar">@line</span> <span class="ruby-operator">=~</span> <span class="ruby-constant">InBufferSettingRegexp</span>
673
+ <span class="ruby-keyword">end</span>
674
+ <span class="ruby-keyword">end</span></pre>
675
+ </div><!-- in_buffer_setting-3F-source -->
676
+
677
+ </div>
678
+
679
+
680
+
681
+
682
+ </div><!-- in_buffer_setting-3F-method -->
683
+
684
+
685
+ <div id="inline_example-3F-method" class="method-detail ">
686
+ <a name="method-i-inline_example-3F"></a>
687
+
688
+
689
+ <div class="method-heading">
690
+ <span class="method-name">inline_example?</span><span
691
+ class="method-args">()</span>
692
+ <span class="method-click-advice">click to toggle source</span>
693
+ </div>
694
+
695
+
696
+ <div class="method-description">
697
+
698
+ <p>Test if the line matches the “inline example” case: the first character
699
+ on the line is a colon.</p>
700
+
701
+
702
+
703
+ <div class="method-source-code" id="inline_example-3F-source">
704
+ <pre>
705
+ <span class="ruby-comment"># File lib/org-ruby/line.rb, line 145</span>
706
+ <span class="ruby-keyword">def</span> <span class="ruby-identifier">inline_example?</span>
707
+ <span class="ruby-identifier">check_assignment_or_regexp</span>(<span class="ruby-value">:inline_example</span>, <span class="ruby-constant">InlineExampleRegexp</span>)
708
+ <span class="ruby-keyword">end</span></pre>
709
+ </div><!-- inline_example-3F-source -->
710
+
711
+ </div>
712
+
713
+
714
+
715
+
716
+ </div><!-- inline_example-3F-method -->
717
+
718
+
719
+ <div id="metadata-3F-method" class="method-detail ">
720
+ <a name="method-i-metadata-3F"></a>
721
+
722
+
723
+ <div class="method-heading">
724
+ <span class="method-name">metadata?</span><span
725
+ class="method-args">()</span>
726
+ <span class="method-click-advice">click to toggle source</span>
727
+ </div>
728
+
729
+
730
+ <div class="method-description">
731
+
732
+ <p>Tests if a line contains metadata instead of actual content.</p>
733
+
734
+
735
+
736
+ <div class="method-source-code" id="metadata-3F-source">
737
+ <pre>
738
+ <span class="ruby-comment"># File lib/org-ruby/line.rb, line 45</span>
739
+ <span class="ruby-keyword">def</span> <span class="ruby-identifier">metadata?</span>
740
+ <span class="ruby-identifier">check_assignment_or_regexp</span>(<span class="ruby-value">:metadata</span>, <span class="ruby-regexp">/^\s*(CLOCK|DEADLINE|START|CLOSED|SCHEDULED):/</span>)
741
+ <span class="ruby-keyword">end</span></pre>
742
+ </div><!-- metadata-3F-source -->
743
+
744
+ </div>
745
+
746
+
747
+
748
+
749
+ </div><!-- metadata-3F-method -->
750
+
751
+
752
+ <div id="nonprinting-3F-method" class="method-detail ">
753
+ <a name="method-i-nonprinting-3F"></a>
754
+
755
+
756
+ <div class="method-heading">
757
+ <span class="method-name">nonprinting?</span><span
758
+ class="method-args">()</span>
759
+ <span class="method-click-advice">click to toggle source</span>
760
+ </div>
761
+
762
+
763
+ <div class="method-description">
764
+
765
+
766
+
767
+
768
+
769
+ <div class="method-source-code" id="nonprinting-3F-source">
770
+ <pre>
771
+ <span class="ruby-comment"># File lib/org-ruby/line.rb, line 49</span>
772
+ <span class="ruby-keyword">def</span> <span class="ruby-identifier">nonprinting?</span>
773
+ <span class="ruby-identifier">comment?</span> <span class="ruby-operator">||</span> <span class="ruby-identifier">metadata?</span> <span class="ruby-operator">||</span> <span class="ruby-identifier">begin_block?</span> <span class="ruby-operator">||</span> <span class="ruby-identifier">end_block?</span>
774
+ <span class="ruby-keyword">end</span></pre>
775
+ </div><!-- nonprinting-3F-source -->
776
+
777
+ </div>
778
+
779
+
780
+
781
+
782
+ </div><!-- nonprinting-3F-method -->
783
+
784
+
785
+ <div id="ordered_list-3F-method" class="method-detail ">
786
+ <a name="method-i-ordered_list-3F"></a>
787
+
788
+
789
+ <div class="method-heading">
790
+ <span class="method-name">ordered_list?</span><span
791
+ class="method-args">()</span>
792
+ <span class="method-click-advice">click to toggle source</span>
793
+ </div>
794
+
795
+
796
+ <div class="method-description">
797
+
798
+
799
+
800
+
801
+
802
+ <div class="method-source-code" id="ordered_list-3F-source">
803
+ <pre>
804
+ <span class="ruby-comment"># File lib/org-ruby/line.rb, line 79</span>
805
+ <span class="ruby-keyword">def</span> <span class="ruby-identifier">ordered_list?</span>
806
+ <span class="ruby-identifier">check_assignment_or_regexp</span>(<span class="ruby-value">:ordered_list</span>, <span class="ruby-constant">OrderedListRegexp</span>)
807
+ <span class="ruby-keyword">end</span></pre>
808
+ </div><!-- ordered_list-3F-source -->
809
+
810
+ </div>
811
+
812
+
813
+
814
+
815
+ </div><!-- ordered_list-3F-method -->
816
+
817
+
818
+ <div id="output_text-method" class="method-detail ">
819
+ <a name="method-i-output_text"></a>
820
+
821
+
822
+ <div class="method-heading">
823
+ <span class="method-name">output_text</span><span
824
+ class="method-args">()</span>
825
+ <span class="method-click-advice">click to toggle source</span>
826
+ </div>
827
+
828
+
829
+ <div class="method-description">
830
+
831
+ <p>Extracts meaningful text and excludes org-mode markup, like identifiers for
832
+ lists or headings.</p>
833
+
834
+
835
+
836
+ <div class="method-source-code" id="output_text-source">
837
+ <pre>
838
+ <span class="ruby-comment"># File lib/org-ruby/line.rb, line 89</span>
839
+ <span class="ruby-keyword">def</span> <span class="ruby-identifier">output_text</span>
840
+ <span class="ruby-keyword">return</span> <span class="ruby-identifier">strip_ordered_list_tag</span> <span class="ruby-keyword">if</span> <span class="ruby-identifier">ordered_list?</span>
841
+ <span class="ruby-keyword">return</span> <span class="ruby-identifier">strip_unordered_list_tag</span> <span class="ruby-keyword">if</span> <span class="ruby-identifier">unordered_list?</span>
842
+ <span class="ruby-keyword">return</span> <span class="ruby-ivar">@line</span>.<span class="ruby-identifier">sub</span>(<span class="ruby-constant">InlineExampleRegexp</span>, <span class="ruby-string">&quot;&quot;</span>) <span class="ruby-keyword">if</span> <span class="ruby-identifier">inline_example?</span>
843
+ <span class="ruby-keyword">return</span> <span class="ruby-identifier">line</span>
844
+ <span class="ruby-keyword">end</span></pre>
845
+ </div><!-- output_text-source -->
846
+
847
+ </div>
848
+
849
+
850
+
851
+
852
+ </div><!-- output_text-method -->
853
+
854
+
855
+ <div id="paragraph_type-method" class="method-detail ">
856
+ <a name="method-i-paragraph_type"></a>
857
+
858
+
859
+ <div class="method-heading">
860
+ <span class="method-name">paragraph_type</span><span
861
+ class="method-args">()</span>
862
+ <span class="method-click-advice">click to toggle source</span>
863
+ </div>
864
+
865
+
866
+ <div class="method-description">
867
+
868
+ <p>Determines the paragraph type of the current line.</p>
869
+
870
+
871
+
872
+ <div class="method-source-code" id="paragraph_type-source">
873
+ <pre>
874
+ <span class="ruby-comment"># File lib/org-ruby/line.rb, line 171</span>
875
+ <span class="ruby-keyword">def</span> <span class="ruby-identifier">paragraph_type</span>
876
+ <span class="ruby-keyword">return</span> <span class="ruby-value">:blank</span> <span class="ruby-keyword">if</span> <span class="ruby-identifier">blank?</span>
877
+ <span class="ruby-keyword">return</span> <span class="ruby-value">:definition_list</span> <span class="ruby-keyword">if</span> <span class="ruby-identifier">definition_list?</span> <span class="ruby-comment"># order is important! A definition_list is also an unordered_list!</span>
878
+ <span class="ruby-keyword">return</span> <span class="ruby-value">:ordered_list</span> <span class="ruby-keyword">if</span> <span class="ruby-identifier">ordered_list?</span>
879
+ <span class="ruby-keyword">return</span> <span class="ruby-value">:unordered_list</span> <span class="ruby-keyword">if</span> <span class="ruby-identifier">unordered_list?</span>
880
+ <span class="ruby-keyword">return</span> <span class="ruby-value">:metadata</span> <span class="ruby-keyword">if</span> <span class="ruby-identifier">metadata?</span>
881
+ <span class="ruby-keyword">return</span> <span class="ruby-value">:begin_block</span> <span class="ruby-keyword">if</span> <span class="ruby-identifier">begin_block?</span>
882
+ <span class="ruby-keyword">return</span> <span class="ruby-value">:end_block</span> <span class="ruby-keyword">if</span> <span class="ruby-identifier">end_block?</span>
883
+ <span class="ruby-keyword">return</span> <span class="ruby-value">:comment</span> <span class="ruby-keyword">if</span> <span class="ruby-identifier">comment?</span>
884
+ <span class="ruby-keyword">return</span> <span class="ruby-value">:table_separator</span> <span class="ruby-keyword">if</span> <span class="ruby-identifier">table_separator?</span>
885
+ <span class="ruby-keyword">return</span> <span class="ruby-value">:table_row</span> <span class="ruby-keyword">if</span> <span class="ruby-identifier">table_row?</span>
886
+ <span class="ruby-keyword">return</span> <span class="ruby-value">:table_header</span> <span class="ruby-keyword">if</span> <span class="ruby-identifier">table_header?</span>
887
+ <span class="ruby-keyword">return</span> <span class="ruby-value">:inline_example</span> <span class="ruby-keyword">if</span> <span class="ruby-identifier">inline_example?</span>
888
+ <span class="ruby-keyword">return</span> <span class="ruby-value">:paragraph</span>
889
+ <span class="ruby-keyword">end</span></pre>
890
+ </div><!-- paragraph_type-source -->
891
+
892
+ </div>
893
+
894
+
895
+
896
+
897
+ </div><!-- paragraph_type-method -->
898
+
899
+
900
+ <div id="plain_list-3F-method" class="method-detail ">
901
+ <a name="method-i-plain_list-3F"></a>
902
+
903
+
904
+ <div class="method-heading">
905
+ <span class="method-name">plain_list?</span><span
906
+ class="method-args">()</span>
907
+ <span class="method-click-advice">click to toggle source</span>
908
+ </div>
909
+
910
+
911
+ <div class="method-description">
912
+
913
+
914
+
915
+
916
+
917
+ <div class="method-source-code" id="plain_list-3F-source">
918
+ <pre>
919
+ <span class="ruby-comment"># File lib/org-ruby/line.rb, line 57</span>
920
+ <span class="ruby-keyword">def</span> <span class="ruby-identifier">plain_list?</span>
921
+ <span class="ruby-identifier">ordered_list?</span> <span class="ruby-keyword">or</span> <span class="ruby-identifier">unordered_list?</span> <span class="ruby-keyword">or</span> <span class="ruby-identifier">definition_list?</span>
922
+ <span class="ruby-keyword">end</span></pre>
923
+ </div><!-- plain_list-3F-source -->
924
+
925
+ </div>
926
+
927
+
928
+
929
+
930
+ </div><!-- plain_list-3F-method -->
931
+
932
+
933
+ <div id="plain_text-3F-method" class="method-detail ">
934
+ <a name="method-i-plain_text-3F"></a>
935
+
936
+
937
+ <div class="method-heading">
938
+ <span class="method-name">plain_text?</span><span
939
+ class="method-args">()</span>
940
+ <span class="method-click-advice">click to toggle source</span>
941
+ </div>
942
+
943
+
944
+ <div class="method-description">
945
+
946
+
947
+
948
+
949
+
950
+ <div class="method-source-code" id="plain_text-3F-source">
951
+ <pre>
952
+ <span class="ruby-comment"># File lib/org-ruby/line.rb, line 96</span>
953
+ <span class="ruby-keyword">def</span> <span class="ruby-identifier">plain_text?</span>
954
+ <span class="ruby-keyword">not</span> <span class="ruby-identifier">metadata?</span> <span class="ruby-keyword">and</span> <span class="ruby-keyword">not</span> <span class="ruby-identifier">blank?</span> <span class="ruby-keyword">and</span> <span class="ruby-keyword">not</span> <span class="ruby-identifier">plain_list?</span>
955
+ <span class="ruby-keyword">end</span></pre>
956
+ </div><!-- plain_text-3F-source -->
957
+
958
+ </div>
959
+
960
+
961
+
962
+
963
+ </div><!-- plain_text-3F-method -->
964
+
965
+
966
+ <div id="strip_ordered_list_tag-method" class="method-detail ">
967
+ <a name="method-i-strip_ordered_list_tag"></a>
968
+
969
+
970
+ <div class="method-heading">
971
+ <span class="method-name">strip_ordered_list_tag</span><span
972
+ class="method-args">()</span>
973
+ <span class="method-click-advice">click to toggle source</span>
974
+ </div>
975
+
976
+
977
+ <div class="method-description">
978
+
979
+
980
+
981
+
982
+
983
+ <div class="method-source-code" id="strip_ordered_list_tag-source">
984
+ <pre>
985
+ <span class="ruby-comment"># File lib/org-ruby/line.rb, line 83</span>
986
+ <span class="ruby-keyword">def</span> <span class="ruby-identifier">strip_ordered_list_tag</span>
987
+ <span class="ruby-ivar">@line</span>.<span class="ruby-identifier">sub</span>(<span class="ruby-constant">OrderedListRegexp</span>, <span class="ruby-string">&quot;&quot;</span>)
988
+ <span class="ruby-keyword">end</span></pre>
989
+ </div><!-- strip_ordered_list_tag-source -->
990
+
991
+ </div>
992
+
993
+
994
+
995
+
996
+ </div><!-- strip_ordered_list_tag-method -->
997
+
998
+
999
+ <div id="strip_unordered_list_tag-method" class="method-detail ">
1000
+ <a name="method-i-strip_unordered_list_tag"></a>
1001
+
1002
+
1003
+ <div class="method-heading">
1004
+ <span class="method-name">strip_unordered_list_tag</span><span
1005
+ class="method-args">()</span>
1006
+ <span class="method-click-advice">click to toggle source</span>
1007
+ </div>
1008
+
1009
+
1010
+ <div class="method-description">
1011
+
1012
+
1013
+
1014
+
1015
+
1016
+ <div class="method-source-code" id="strip_unordered_list_tag-source">
1017
+ <pre>
1018
+ <span class="ruby-comment"># File lib/org-ruby/line.rb, line 67</span>
1019
+ <span class="ruby-keyword">def</span> <span class="ruby-identifier">strip_unordered_list_tag</span>
1020
+ <span class="ruby-ivar">@line</span>.<span class="ruby-identifier">sub</span>(<span class="ruby-constant">UnorderedListRegexp</span>, <span class="ruby-string">&quot;&quot;</span>)
1021
+ <span class="ruby-keyword">end</span></pre>
1022
+ </div><!-- strip_unordered_list_tag-source -->
1023
+
1024
+ </div>
1025
+
1026
+
1027
+
1028
+
1029
+ </div><!-- strip_unordered_list_tag-method -->
1030
+
1031
+
1032
+ <div id="table-3F-method" class="method-detail ">
1033
+ <a name="method-i-table-3F"></a>
1034
+
1035
+
1036
+ <div class="method-heading">
1037
+ <span class="method-name">table?</span><span
1038
+ class="method-args">()</span>
1039
+ <span class="method-click-advice">click to toggle source</span>
1040
+ </div>
1041
+
1042
+
1043
+ <div class="method-description">
1044
+
1045
+
1046
+
1047
+
1048
+
1049
+ <div class="method-source-code" id="table-3F-source">
1050
+ <pre>
1051
+ <span class="ruby-comment"># File lib/org-ruby/line.rb, line 119</span>
1052
+ <span class="ruby-keyword">def</span> <span class="ruby-identifier">table?</span>
1053
+ <span class="ruby-identifier">table_row?</span> <span class="ruby-keyword">or</span> <span class="ruby-identifier">table_separator?</span> <span class="ruby-keyword">or</span> <span class="ruby-identifier">table_header?</span>
1054
+ <span class="ruby-keyword">end</span></pre>
1055
+ </div><!-- table-3F-source -->
1056
+
1057
+ </div>
1058
+
1059
+
1060
+
1061
+
1062
+ </div><!-- table-3F-method -->
1063
+
1064
+
1065
+ <div id="table_header-3F-method" class="method-detail ">
1066
+ <a name="method-i-table_header-3F"></a>
1067
+
1068
+
1069
+ <div class="method-heading">
1070
+ <span class="method-name">table_header?</span><span
1071
+ class="method-args">()</span>
1072
+ <span class="method-click-advice">click to toggle source</span>
1073
+ </div>
1074
+
1075
+
1076
+ <div class="method-description">
1077
+
1078
+ <p>Checks if this line is a table header.</p>
1079
+
1080
+
1081
+
1082
+ <div class="method-source-code" id="table_header-3F-source">
1083
+ <pre>
1084
+ <span class="ruby-comment"># File lib/org-ruby/line.rb, line 115</span>
1085
+ <span class="ruby-keyword">def</span> <span class="ruby-identifier">table_header?</span>
1086
+ <span class="ruby-ivar">@assigned_paragraph_type</span> <span class="ruby-operator">==</span> <span class="ruby-value">:table_header</span>
1087
+ <span class="ruby-keyword">end</span></pre>
1088
+ </div><!-- table_header-3F-source -->
1089
+
1090
+ </div>
1091
+
1092
+
1093
+
1094
+
1095
+ </div><!-- table_header-3F-method -->
1096
+
1097
+
1098
+ <div id="table_row-3F-method" class="method-detail ">
1099
+ <a name="method-i-table_row-3F"></a>
1100
+
1101
+
1102
+ <div class="method-heading">
1103
+ <span class="method-name">table_row?</span><span
1104
+ class="method-args">()</span>
1105
+ <span class="method-click-advice">click to toggle source</span>
1106
+ </div>
1107
+
1108
+
1109
+ <div class="method-description">
1110
+
1111
+
1112
+
1113
+
1114
+
1115
+ <div class="method-source-code" id="table_row-3F-source">
1116
+ <pre>
1117
+ <span class="ruby-comment"># File lib/org-ruby/line.rb, line 100</span>
1118
+ <span class="ruby-keyword">def</span> <span class="ruby-identifier">table_row?</span>
1119
+ <span class="ruby-comment"># for an org-mode table, the first non-whitespace character is a</span>
1120
+ <span class="ruby-comment"># | (pipe).</span>
1121
+ <span class="ruby-identifier">check_assignment_or_regexp</span>(<span class="ruby-value">:table_row</span>, <span class="ruby-regexp">/^\s*\|/</span>)
1122
+ <span class="ruby-keyword">end</span></pre>
1123
+ </div><!-- table_row-3F-source -->
1124
+
1125
+ </div>
1126
+
1127
+
1128
+
1129
+
1130
+ </div><!-- table_row-3F-method -->
1131
+
1132
+
1133
+ <div id="table_separator-3F-method" class="method-detail ">
1134
+ <a name="method-i-table_separator-3F"></a>
1135
+
1136
+
1137
+ <div class="method-heading">
1138
+ <span class="method-name">table_separator?</span><span
1139
+ class="method-args">()</span>
1140
+ <span class="method-click-advice">click to toggle source</span>
1141
+ </div>
1142
+
1143
+
1144
+ <div class="method-description">
1145
+
1146
+
1147
+
1148
+
1149
+
1150
+ <div class="method-source-code" id="table_separator-3F-source">
1151
+ <pre>
1152
+ <span class="ruby-comment"># File lib/org-ruby/line.rb, line 106</span>
1153
+ <span class="ruby-keyword">def</span> <span class="ruby-identifier">table_separator?</span>
1154
+ <span class="ruby-comment"># an org-mode table separator has the first non-whitespace</span>
1155
+ <span class="ruby-comment"># character as a | (pipe), then consists of nothing else other</span>
1156
+ <span class="ruby-comment"># than pipes, hyphens, and pluses.</span>
1157
+
1158
+ <span class="ruby-identifier">check_assignment_or_regexp</span>(<span class="ruby-value">:table_separator</span>, <span class="ruby-regexp">/^\s*\|[-\|\+]*\s*$/</span>)
1159
+ <span class="ruby-keyword">end</span></pre>
1160
+ </div><!-- table_separator-3F-source -->
1161
+
1162
+ </div>
1163
+
1164
+
1165
+
1166
+
1167
+ </div><!-- table_separator-3F-method -->
1168
+
1169
+
1170
+ <div id="to_s-method" class="method-detail ">
1171
+ <a name="method-i-to_s"></a>
1172
+
1173
+
1174
+ <div class="method-heading">
1175
+ <span class="method-name">to_s</span><span
1176
+ class="method-args">()</span>
1177
+ <span class="method-click-advice">click to toggle source</span>
1178
+ </div>
1179
+
1180
+
1181
+ <div class="method-description">
1182
+
1183
+
1184
+
1185
+
1186
+
1187
+ <div class="method-source-code" id="to_s-source">
1188
+ <pre>
1189
+ <span class="ruby-comment"># File lib/org-ruby/line.rb, line 33</span>
1190
+ <span class="ruby-keyword">def</span> <span class="ruby-identifier">to_s</span>
1191
+ <span class="ruby-keyword">return</span> <span class="ruby-ivar">@line</span>
1192
+ <span class="ruby-keyword">end</span></pre>
1193
+ </div><!-- to_s-source -->
1194
+
1195
+ </div>
1196
+
1197
+
1198
+
1199
+
1200
+ </div><!-- to_s-method -->
1201
+
1202
+
1203
+ <div id="unordered_list-3F-method" class="method-detail ">
1204
+ <a name="method-i-unordered_list-3F"></a>
1205
+
1206
+
1207
+ <div class="method-heading">
1208
+ <span class="method-name">unordered_list?</span><span
1209
+ class="method-args">()</span>
1210
+ <span class="method-click-advice">click to toggle source</span>
1211
+ </div>
1212
+
1213
+
1214
+ <div class="method-description">
1215
+
1216
+
1217
+
1218
+
1219
+
1220
+ <div class="method-source-code" id="unordered_list-3F-source">
1221
+ <pre>
1222
+ <span class="ruby-comment"># File lib/org-ruby/line.rb, line 63</span>
1223
+ <span class="ruby-keyword">def</span> <span class="ruby-identifier">unordered_list?</span>
1224
+ <span class="ruby-identifier">check_assignment_or_regexp</span>(<span class="ruby-value">:unordered_list</span>, <span class="ruby-constant">UnorderedListRegexp</span>)
1225
+ <span class="ruby-keyword">end</span></pre>
1226
+ </div><!-- unordered_list-3F-source -->
1227
+
1228
+ </div>
1229
+
1230
+
1231
+
1232
+
1233
+ </div><!-- unordered_list-3F-method -->
1234
+
1235
+
1236
+ </div><!-- public-instance-method-details -->
1237
+
1238
+ </div><!-- 5Buntitled-5D -->
1239
+
1240
+
1241
+ </div><!-- documentation -->
1242
+
1243
+ <div id="validator-badges">
1244
+ <p><small><a href="http://validator.w3.org/check/referer">[Validate]</a></small></p>
1245
+ <p><small>Generated with the <a href="http://deveiate.org/projects/Darkfish-Rdoc/">Darkfish
1246
+ Rdoc Generator</a> 2</small>.</p>
1247
+ </div>
1248
+
1249
+ </body>
1250
+ </html>
1251
+