simple_bioc 0.0.1 → 0.0.2

Sign up to get free protection for your applications and to get access to all the features.
Files changed (67) hide show
  1. checksums.yaml +4 -4
  2. data/README.md +73 -3
  3. data/Rakefile +5 -0
  4. data/html/BioCReader.html +657 -0
  5. data/html/BioCWriter.html +556 -0
  6. data/html/README_md.html +231 -0
  7. data/html/SimpleBioC.html +255 -0
  8. data/html/SimpleBioC/Annotation.html +279 -0
  9. data/html/SimpleBioC/Collection.html +316 -0
  10. data/html/SimpleBioC/Document.html +426 -0
  11. data/html/SimpleBioC/Location.html +288 -0
  12. data/html/SimpleBioC/Node.html +334 -0
  13. data/html/SimpleBioC/NodeBase.html +281 -0
  14. data/html/SimpleBioC/Passage.html +418 -0
  15. data/html/SimpleBioC/Relation.html +301 -0
  16. data/html/SimpleBioC/Sentence.html +399 -0
  17. data/html/created.rid +15 -0
  18. data/html/images/add.png +0 -0
  19. data/html/images/arrow_up.png +0 -0
  20. data/html/images/brick.png +0 -0
  21. data/html/images/brick_link.png +0 -0
  22. data/html/images/bug.png +0 -0
  23. data/html/images/bullet_black.png +0 -0
  24. data/html/images/bullet_toggle_minus.png +0 -0
  25. data/html/images/bullet_toggle_plus.png +0 -0
  26. data/html/images/date.png +0 -0
  27. data/html/images/delete.png +0 -0
  28. data/html/images/find.png +0 -0
  29. data/html/images/loadingAnimation.gif +0 -0
  30. data/html/images/macFFBgHack.png +0 -0
  31. data/html/images/package.png +0 -0
  32. data/html/images/page_green.png +0 -0
  33. data/html/images/page_white_text.png +0 -0
  34. data/html/images/page_white_width.png +0 -0
  35. data/html/images/plugin.png +0 -0
  36. data/html/images/ruby.png +0 -0
  37. data/html/images/tag_blue.png +0 -0
  38. data/html/images/tag_green.png +0 -0
  39. data/html/images/transparent.png +0 -0
  40. data/html/images/wrench.png +0 -0
  41. data/html/images/wrench_orange.png +0 -0
  42. data/html/images/zoom.png +0 -0
  43. data/html/index.html +212 -0
  44. data/html/js/darkfish.js +155 -0
  45. data/html/js/jquery.js +18 -0
  46. data/html/js/navigation.js +142 -0
  47. data/html/js/search.js +94 -0
  48. data/html/js/search_index.js +1 -0
  49. data/html/js/searcher.js +228 -0
  50. data/html/rdoc.css +595 -0
  51. data/html/table_of_contents.html +199 -0
  52. data/lib/simple_bioc.rb +4 -0
  53. data/lib/simple_bioc/annotation.rb +10 -6
  54. data/lib/simple_bioc/bioc_reader.rb +2 -2
  55. data/lib/simple_bioc/collection.rb +13 -11
  56. data/lib/simple_bioc/document.rb +31 -22
  57. data/lib/simple_bioc/location.rb +13 -7
  58. data/lib/simple_bioc/node.rb +14 -8
  59. data/lib/simple_bioc/node_base.rb +13 -10
  60. data/lib/simple_bioc/passage.rb +26 -23
  61. data/lib/simple_bioc/relation.rb +13 -8
  62. data/lib/simple_bioc/sentence.rb +21 -15
  63. data/lib/simple_bioc/version.rb +2 -2
  64. data/samples/print_annotation.rb +18 -0
  65. data/samples/sample1.rb +31 -0
  66. data/simple_bioc.gemspec +1 -1
  67. metadata +52 -2
@@ -0,0 +1,426 @@
1
+ <!DOCTYPE html>
2
+
3
+ <html>
4
+ <head>
5
+ <meta content="text/html; charset=UTF-8" http-equiv="Content-Type">
6
+
7
+ <title>class SimpleBioC::Document - RDoc Documentation</title>
8
+
9
+ <link type="text/css" media="screen" href="../rdoc.css" rel="stylesheet">
10
+
11
+ <script type="text/javascript">
12
+ var rdoc_rel_prefix = "../";
13
+ </script>
14
+
15
+ <script type="text/javascript" charset="utf-8" src="../js/jquery.js"></script>
16
+ <script type="text/javascript" charset="utf-8" src="../js/navigation.js"></script>
17
+ <script type="text/javascript" charset="utf-8" src="../js/search_index.js"></script>
18
+ <script type="text/javascript" charset="utf-8" src="../js/search.js"></script>
19
+ <script type="text/javascript" charset="utf-8" src="../js/searcher.js"></script>
20
+ <script type="text/javascript" charset="utf-8" src="../js/darkfish.js"></script>
21
+
22
+
23
+ <body id="top" class="class">
24
+ <nav id="metadata">
25
+ <nav id="home-section" class="section">
26
+ <h3 class="section-header">
27
+ <a href="../index.html">Home</a>
28
+ <a href="../table_of_contents.html#classes">Classes</a>
29
+ <a href="../table_of_contents.html#methods">Methods</a>
30
+ </h3>
31
+ </nav>
32
+
33
+
34
+ <nav id="search-section" class="section project-section" class="initially-hidden">
35
+ <form action="#" method="get" accept-charset="utf-8">
36
+ <h3 class="section-header">
37
+ <input type="text" name="search" placeholder="Search" id="search-field"
38
+ title="Type to search, Up and Down to navigate, Enter to load">
39
+ </h3>
40
+ </form>
41
+
42
+ <ul id="search-results" class="initially-hidden"></ul>
43
+ </nav>
44
+
45
+
46
+
47
+
48
+ <div id="file-metadata">
49
+ <nav id="file-list-section" class="section">
50
+ <h3 class="section-header">Defined In</h3>
51
+ <ul>
52
+ <li>lib/simple_bioc/document.rb
53
+ </ul>
54
+ </nav>
55
+
56
+
57
+ </div>
58
+
59
+ <div id="class-metadata">
60
+
61
+ <nav id="parent-class-section" class="section">
62
+ <h3 class="section-header">Parent</h3>
63
+
64
+ <p class="link">Object
65
+
66
+ </nav>
67
+
68
+
69
+
70
+ <!-- Method Quickref -->
71
+ <nav id="method-list-section" class="section">
72
+ <h3 class="section-header">Methods</h3>
73
+
74
+ <ul class="link-list">
75
+
76
+ <li ><a href="#method-c-new">::new</a>
77
+
78
+ <li ><a href="#method-i-adjust_ref">#adjust_ref</a>
79
+
80
+ <li ><a href="#method-i-each_relation">#each_relation</a>
81
+
82
+ <li ><a href="#method-i-find_node">#find_node</a>
83
+
84
+ <li ><a href="#method-i-to_s">#to_s</a>
85
+
86
+ </ul>
87
+ </nav>
88
+
89
+ </div>
90
+
91
+ <div id="project-metadata">
92
+ <nav id="fileindex-section" class="section project-section">
93
+ <h3 class="section-header">Pages</h3>
94
+
95
+ <ul>
96
+
97
+ <li class="file"><a href="../README_md.html">README</a>
98
+
99
+ </ul>
100
+ </nav>
101
+
102
+ <nav id="classindex-section" class="section project-section">
103
+ <h3 class="section-header">Class and Module Index</h3>
104
+
105
+ <ul class="link-list">
106
+
107
+ <li><a href="../BioCReader.html">BioCReader</a>
108
+
109
+ <li><a href="../BioCWriter.html">BioCWriter</a>
110
+
111
+ <li><a href="../SimpleBioC.html">SimpleBioC</a>
112
+
113
+ <li><a href="../SimpleBioC/Annotation.html">SimpleBioC::Annotation</a>
114
+
115
+ <li><a href="../SimpleBioC/Collection.html">SimpleBioC::Collection</a>
116
+
117
+ <li><a href="../SimpleBioC/Document.html">SimpleBioC::Document</a>
118
+
119
+ <li><a href="../SimpleBioC/Location.html">SimpleBioC::Location</a>
120
+
121
+ <li><a href="../SimpleBioC/Node.html">SimpleBioC::Node</a>
122
+
123
+ <li><a href="../SimpleBioC/NodeBase.html">SimpleBioC::NodeBase</a>
124
+
125
+ <li><a href="../SimpleBioC/Passage.html">SimpleBioC::Passage</a>
126
+
127
+ <li><a href="../SimpleBioC/Relation.html">SimpleBioC::Relation</a>
128
+
129
+ <li><a href="../SimpleBioC/Sentence.html">SimpleBioC::Sentence</a>
130
+
131
+ </ul>
132
+ </nav>
133
+
134
+ </div>
135
+ </nav>
136
+
137
+ <div id="documentation">
138
+ <h1 class="class">class SimpleBioC::Document</h1>
139
+
140
+ <div id="description" class="description">
141
+
142
+ </div><!-- description -->
143
+
144
+
145
+
146
+
147
+ <section id="5Buntitled-5D" class="documentation-section">
148
+
149
+
150
+
151
+
152
+
153
+
154
+
155
+ <!-- Attributes -->
156
+ <section id="attribute-method-details" class="method-section section">
157
+ <h3 class="section-header">Attributes</h3>
158
+
159
+
160
+ <div id="attribute-i-collection" class="method-detail">
161
+ <div class="method-heading attribute-method-heading">
162
+ <span class="method-name">collection</span><span
163
+ class="attribute-access-type">[R]</span>
164
+ </div>
165
+
166
+ <div class="method-description">
167
+
168
+ <p>parent</p>
169
+
170
+ </div>
171
+ </div>
172
+
173
+ <div id="attribute-i-id" class="method-detail">
174
+ <div class="method-heading attribute-method-heading">
175
+ <span class="method-name">id</span><span
176
+ class="attribute-access-type">[RW]</span>
177
+ </div>
178
+
179
+ <div class="method-description">
180
+
181
+ <p>attribute</p>
182
+
183
+ </div>
184
+ </div>
185
+
186
+ <div id="attribute-i-infons" class="method-detail">
187
+ <div class="method-heading attribute-method-heading">
188
+ <span class="method-name">infons</span><span
189
+ class="attribute-access-type">[RW]</span>
190
+ </div>
191
+
192
+ <div class="method-description">
193
+
194
+ <p>attribute</p>
195
+
196
+ </div>
197
+ </div>
198
+
199
+ <div id="attribute-i-passages" class="method-detail">
200
+ <div class="method-heading attribute-method-heading">
201
+ <span class="method-name">passages</span><span
202
+ class="attribute-access-type">[RW]</span>
203
+ </div>
204
+
205
+ <div class="method-description">
206
+
207
+ <p>attribute</p>
208
+
209
+ </div>
210
+ </div>
211
+
212
+ <div id="attribute-i-relations" class="method-detail">
213
+ <div class="method-heading attribute-method-heading">
214
+ <span class="method-name">relations</span><span
215
+ class="attribute-access-type">[RW]</span>
216
+ </div>
217
+
218
+ <div class="method-description">
219
+
220
+ <p>attribute</p>
221
+
222
+ </div>
223
+ </div>
224
+
225
+ </section><!-- attribute-method-details -->
226
+
227
+
228
+ <!-- Methods -->
229
+
230
+ <section id="public-class-5Buntitled-5D-method-details" class="method-section section">
231
+ <h3 class="section-header">Public Class Methods</h3>
232
+
233
+
234
+ <div id="method-c-new" class="method-detail ">
235
+
236
+ <div class="method-heading">
237
+ <span class="method-name">new</span><span
238
+ class="method-args">(parent)</span>
239
+
240
+ <span class="method-click-advice">click to toggle source</span>
241
+
242
+ </div>
243
+
244
+
245
+ <div class="method-description">
246
+
247
+
248
+
249
+
250
+
251
+
252
+ <div class="method-source-code" id="new-source">
253
+ <pre><span class="ruby-comment"># File lib/simple_bioc/document.rb, line 9</span>
254
+ <span class="ruby-keyword">def</span> <span class="ruby-identifier">initialize</span>(<span class="ruby-identifier">parent</span>)
255
+ <span class="ruby-ivar">@infons</span> = {}
256
+ <span class="ruby-ivar">@passages</span> = []
257
+ <span class="ruby-ivar">@relations</span> = []
258
+ <span class="ruby-ivar">@collection</span> = <span class="ruby-identifier">parent</span>
259
+ <span class="ruby-keyword">end</span></pre>
260
+ </div><!-- new-source -->
261
+
262
+ </div>
263
+
264
+
265
+
266
+
267
+ </div><!-- new-method -->
268
+
269
+
270
+ </section><!-- public-class-method-details -->
271
+
272
+ <section id="public-instance-5Buntitled-5D-method-details" class="method-section section">
273
+ <h3 class="section-header">Public Instance Methods</h3>
274
+
275
+
276
+ <div id="method-i-adjust_ref" class="method-detail ">
277
+
278
+ <div class="method-heading">
279
+ <span class="method-name">adjust_ref</span><span
280
+ class="method-args">()</span>
281
+
282
+ <span class="method-click-advice">click to toggle source</span>
283
+
284
+ </div>
285
+
286
+
287
+ <div class="method-description">
288
+
289
+
290
+
291
+
292
+
293
+
294
+ <div class="method-source-code" id="adjust_ref-source">
295
+ <pre><span class="ruby-comment"># File lib/simple_bioc/document.rb, line 25</span>
296
+ <span class="ruby-keyword">def</span> <span class="ruby-identifier">adjust_ref</span>
297
+ <span class="ruby-identifier">each_relation</span>{<span class="ruby-operator">|</span><span class="ruby-identifier">r</span><span class="ruby-operator">|</span> <span class="ruby-identifier">r</span>.<span class="ruby-identifier">adjust_ref</span>}
298
+ <span class="ruby-keyword">end</span></pre>
299
+ </div><!-- adjust_ref-source -->
300
+
301
+ </div>
302
+
303
+
304
+
305
+
306
+ </div><!-- adjust_ref-method -->
307
+
308
+
309
+ <div id="method-i-each_relation" class="method-detail ">
310
+
311
+ <div class="method-heading">
312
+ <span class="method-name">each_relation</span><span
313
+ class="method-args">() { |r| ... }</span>
314
+
315
+ <span class="method-click-advice">click to toggle source</span>
316
+
317
+ </div>
318
+
319
+
320
+ <div class="method-description">
321
+
322
+
323
+
324
+
325
+
326
+
327
+ <div class="method-source-code" id="each_relation-source">
328
+ <pre><span class="ruby-comment"># File lib/simple_bioc/document.rb, line 29</span>
329
+ <span class="ruby-keyword">def</span> <span class="ruby-identifier">each_relation</span>
330
+ <span class="ruby-identifier">relations</span>.<span class="ruby-identifier">each</span>{<span class="ruby-operator">|</span><span class="ruby-identifier">r</span><span class="ruby-operator">|</span> <span class="ruby-keyword">yield</span> <span class="ruby-identifier">r</span>}
331
+ <span class="ruby-identifier">passages</span>.<span class="ruby-identifier">each</span>{<span class="ruby-operator">|</span><span class="ruby-identifier">p</span><span class="ruby-operator">|</span> <span class="ruby-identifier">p</span>.<span class="ruby-identifier">each_relation</span>{<span class="ruby-operator">|</span><span class="ruby-identifier">r</span><span class="ruby-operator">|</span> <span class="ruby-keyword">yield</span> <span class="ruby-identifier">r</span>}}
332
+ <span class="ruby-keyword">end</span></pre>
333
+ </div><!-- each_relation-source -->
334
+
335
+ </div>
336
+
337
+
338
+
339
+
340
+ </div><!-- each_relation-method -->
341
+
342
+
343
+ <div id="method-i-find_node" class="method-detail ">
344
+
345
+ <div class="method-heading">
346
+ <span class="method-name">find_node</span><span
347
+ class="method-args">(id)</span>
348
+
349
+ <span class="method-click-advice">click to toggle source</span>
350
+
351
+ </div>
352
+
353
+
354
+ <div class="method-description">
355
+
356
+
357
+
358
+
359
+
360
+
361
+ <div class="method-source-code" id="find_node-source">
362
+ <pre><span class="ruby-comment"># File lib/simple_bioc/document.rb, line 16</span>
363
+ <span class="ruby-keyword">def</span> <span class="ruby-identifier">find_node</span>(<span class="ruby-identifier">id</span>)
364
+ <span class="ruby-identifier">relations</span>.<span class="ruby-identifier">each</span>{<span class="ruby-operator">|</span><span class="ruby-identifier">r</span><span class="ruby-operator">|</span> <span class="ruby-keyword">return</span> <span class="ruby-identifier">r</span> <span class="ruby-keyword">if</span> <span class="ruby-identifier">r</span>.<span class="ruby-identifier">id</span> <span class="ruby-operator">==</span> <span class="ruby-identifier">id</span>}
365
+ <span class="ruby-identifier">passages</span>.<span class="ruby-identifier">each</span> <span class="ruby-keyword">do</span> <span class="ruby-operator">|</span><span class="ruby-identifier">p</span><span class="ruby-operator">|</span>
366
+ <span class="ruby-identifier">ret</span> = <span class="ruby-identifier">p</span>.<span class="ruby-identifier">find_node</span>(<span class="ruby-identifier">id</span>)
367
+ <span class="ruby-keyword">return</span> <span class="ruby-identifier">ret</span> <span class="ruby-keyword">unless</span> <span class="ruby-identifier">ret</span>.<span class="ruby-identifier">nil?</span>
368
+ <span class="ruby-keyword">end</span>
369
+ <span class="ruby-keyword">nil</span>
370
+ <span class="ruby-keyword">end</span></pre>
371
+ </div><!-- find_node-source -->
372
+
373
+ </div>
374
+
375
+
376
+
377
+
378
+ </div><!-- find_node-method -->
379
+
380
+
381
+ <div id="method-i-to_s" class="method-detail ">
382
+
383
+ <div class="method-heading">
384
+ <span class="method-name">to_s</span><span
385
+ class="method-args">()</span>
386
+
387
+ <span class="method-click-advice">click to toggle source</span>
388
+
389
+ </div>
390
+
391
+
392
+ <div class="method-description">
393
+
394
+
395
+
396
+
397
+
398
+
399
+ <div class="method-source-code" id="to_s-source">
400
+ <pre><span class="ruby-comment"># File lib/simple_bioc/document.rb, line 34</span>
401
+ <span class="ruby-keyword">def</span> <span class="ruby-identifier">to_s</span>
402
+ <span class="ruby-node">&quot;Document:#{id}&quot;</span>
403
+ <span class="ruby-keyword">end</span></pre>
404
+ </div><!-- to_s-source -->
405
+
406
+ </div>
407
+
408
+
409
+
410
+
411
+ </div><!-- to_s-method -->
412
+
413
+
414
+ </section><!-- public-instance-method-details -->
415
+
416
+ </section><!-- 5Buntitled-5D -->
417
+
418
+ </div><!-- documentation -->
419
+
420
+
421
+ <footer id="validator-badges">
422
+ <p><a href="http://validator.w3.org/check/referer">[Validate]</a>
423
+ <p>Generated by <a href="https://github.com/rdoc/rdoc">RDoc</a> 4.0.0.
424
+ <p>Generated with the <a href="http://deveiate.org/projects/Darkfish-Rdoc/">Darkfish Rdoc Generator</a> 3.
425
+ </footer>
426
+
@@ -0,0 +1,288 @@
1
+ <!DOCTYPE html>
2
+
3
+ <html>
4
+ <head>
5
+ <meta content="text/html; charset=UTF-8" http-equiv="Content-Type">
6
+
7
+ <title>class SimpleBioC::Location - RDoc Documentation</title>
8
+
9
+ <link type="text/css" media="screen" href="../rdoc.css" rel="stylesheet">
10
+
11
+ <script type="text/javascript">
12
+ var rdoc_rel_prefix = "../";
13
+ </script>
14
+
15
+ <script type="text/javascript" charset="utf-8" src="../js/jquery.js"></script>
16
+ <script type="text/javascript" charset="utf-8" src="../js/navigation.js"></script>
17
+ <script type="text/javascript" charset="utf-8" src="../js/search_index.js"></script>
18
+ <script type="text/javascript" charset="utf-8" src="../js/search.js"></script>
19
+ <script type="text/javascript" charset="utf-8" src="../js/searcher.js"></script>
20
+ <script type="text/javascript" charset="utf-8" src="../js/darkfish.js"></script>
21
+
22
+
23
+ <body id="top" class="class">
24
+ <nav id="metadata">
25
+ <nav id="home-section" class="section">
26
+ <h3 class="section-header">
27
+ <a href="../index.html">Home</a>
28
+ <a href="../table_of_contents.html#classes">Classes</a>
29
+ <a href="../table_of_contents.html#methods">Methods</a>
30
+ </h3>
31
+ </nav>
32
+
33
+
34
+ <nav id="search-section" class="section project-section" class="initially-hidden">
35
+ <form action="#" method="get" accept-charset="utf-8">
36
+ <h3 class="section-header">
37
+ <input type="text" name="search" placeholder="Search" id="search-field"
38
+ title="Type to search, Up and Down to navigate, Enter to load">
39
+ </h3>
40
+ </form>
41
+
42
+ <ul id="search-results" class="initially-hidden"></ul>
43
+ </nav>
44
+
45
+
46
+
47
+
48
+ <div id="file-metadata">
49
+ <nav id="file-list-section" class="section">
50
+ <h3 class="section-header">Defined In</h3>
51
+ <ul>
52
+ <li>lib/simple_bioc/location.rb
53
+ </ul>
54
+ </nav>
55
+
56
+
57
+ </div>
58
+
59
+ <div id="class-metadata">
60
+
61
+ <nav id="parent-class-section" class="section">
62
+ <h3 class="section-header">Parent</h3>
63
+
64
+ <p class="link">Object
65
+
66
+ </nav>
67
+
68
+
69
+
70
+ <!-- Method Quickref -->
71
+ <nav id="method-list-section" class="section">
72
+ <h3 class="section-header">Methods</h3>
73
+
74
+ <ul class="link-list">
75
+
76
+ <li ><a href="#method-c-new">::new</a>
77
+
78
+ <li ><a href="#method-i-to_s">#to_s</a>
79
+
80
+ </ul>
81
+ </nav>
82
+
83
+ </div>
84
+
85
+ <div id="project-metadata">
86
+ <nav id="fileindex-section" class="section project-section">
87
+ <h3 class="section-header">Pages</h3>
88
+
89
+ <ul>
90
+
91
+ <li class="file"><a href="../README_md.html">README</a>
92
+
93
+ </ul>
94
+ </nav>
95
+
96
+ <nav id="classindex-section" class="section project-section">
97
+ <h3 class="section-header">Class and Module Index</h3>
98
+
99
+ <ul class="link-list">
100
+
101
+ <li><a href="../BioCReader.html">BioCReader</a>
102
+
103
+ <li><a href="../BioCWriter.html">BioCWriter</a>
104
+
105
+ <li><a href="../SimpleBioC.html">SimpleBioC</a>
106
+
107
+ <li><a href="../SimpleBioC/Annotation.html">SimpleBioC::Annotation</a>
108
+
109
+ <li><a href="../SimpleBioC/Collection.html">SimpleBioC::Collection</a>
110
+
111
+ <li><a href="../SimpleBioC/Document.html">SimpleBioC::Document</a>
112
+
113
+ <li><a href="../SimpleBioC/Location.html">SimpleBioC::Location</a>
114
+
115
+ <li><a href="../SimpleBioC/Node.html">SimpleBioC::Node</a>
116
+
117
+ <li><a href="../SimpleBioC/NodeBase.html">SimpleBioC::NodeBase</a>
118
+
119
+ <li><a href="../SimpleBioC/Passage.html">SimpleBioC::Passage</a>
120
+
121
+ <li><a href="../SimpleBioC/Relation.html">SimpleBioC::Relation</a>
122
+
123
+ <li><a href="../SimpleBioC/Sentence.html">SimpleBioC::Sentence</a>
124
+
125
+ </ul>
126
+ </nav>
127
+
128
+ </div>
129
+ </nav>
130
+
131
+ <div id="documentation">
132
+ <h1 class="class">class SimpleBioC::Location</h1>
133
+
134
+ <div id="description" class="description">
135
+
136
+ </div><!-- description -->
137
+
138
+
139
+
140
+
141
+ <section id="5Buntitled-5D" class="documentation-section">
142
+
143
+
144
+
145
+
146
+
147
+
148
+
149
+ <!-- Attributes -->
150
+ <section id="attribute-method-details" class="method-section section">
151
+ <h3 class="section-header">Attributes</h3>
152
+
153
+
154
+ <div id="attribute-i-annotation" class="method-detail">
155
+ <div class="method-heading attribute-method-heading">
156
+ <span class="method-name">annotation</span><span
157
+ class="attribute-access-type">[R]</span>
158
+ </div>
159
+
160
+ <div class="method-description">
161
+
162
+
163
+
164
+ </div>
165
+ </div>
166
+
167
+ <div id="attribute-i-length" class="method-detail">
168
+ <div class="method-heading attribute-method-heading">
169
+ <span class="method-name">length</span><span
170
+ class="attribute-access-type">[RW]</span>
171
+ </div>
172
+
173
+ <div class="method-description">
174
+
175
+
176
+
177
+ </div>
178
+ </div>
179
+
180
+ <div id="attribute-i-offset" class="method-detail">
181
+ <div class="method-heading attribute-method-heading">
182
+ <span class="method-name">offset</span><span
183
+ class="attribute-access-type">[RW]</span>
184
+ </div>
185
+
186
+ <div class="method-description">
187
+
188
+
189
+
190
+ </div>
191
+ </div>
192
+
193
+ </section><!-- attribute-method-details -->
194
+
195
+
196
+ <!-- Methods -->
197
+
198
+ <section id="public-class-5Buntitled-5D-method-details" class="method-section section">
199
+ <h3 class="section-header">Public Class Methods</h3>
200
+
201
+
202
+ <div id="method-c-new" class="method-detail ">
203
+
204
+ <div class="method-heading">
205
+ <span class="method-name">new</span><span
206
+ class="method-args">(parent)</span>
207
+
208
+ <span class="method-click-advice">click to toggle source</span>
209
+
210
+ </div>
211
+
212
+
213
+ <div class="method-description">
214
+
215
+
216
+
217
+
218
+
219
+
220
+ <div class="method-source-code" id="new-source">
221
+ <pre><span class="ruby-comment"># File lib/simple_bioc/location.rb, line 6</span>
222
+ <span class="ruby-keyword">def</span> <span class="ruby-identifier">initialize</span>(<span class="ruby-identifier">parent</span>)
223
+ <span class="ruby-ivar">@infons</span> = {}
224
+ <span class="ruby-ivar">@locations</span> = []
225
+ <span class="ruby-ivar">@annotation</span> = <span class="ruby-identifier">parent</span>
226
+ <span class="ruby-keyword">end</span></pre>
227
+ </div><!-- new-source -->
228
+
229
+ </div>
230
+
231
+
232
+
233
+
234
+ </div><!-- new-method -->
235
+
236
+
237
+ </section><!-- public-class-method-details -->
238
+
239
+ <section id="public-instance-5Buntitled-5D-method-details" class="method-section section">
240
+ <h3 class="section-header">Public Instance Methods</h3>
241
+
242
+
243
+ <div id="method-i-to_s" class="method-detail ">
244
+
245
+ <div class="method-heading">
246
+ <span class="method-name">to_s</span><span
247
+ class="method-args">()</span>
248
+
249
+ <span class="method-click-advice">click to toggle source</span>
250
+
251
+ </div>
252
+
253
+
254
+ <div class="method-description">
255
+
256
+
257
+
258
+
259
+
260
+
261
+ <div class="method-source-code" id="to_s-source">
262
+ <pre><span class="ruby-comment"># File lib/simple_bioc/location.rb, line 12</span>
263
+ <span class="ruby-keyword">def</span> <span class="ruby-identifier">to_s</span>
264
+ <span class="ruby-node">&quot;Location @#{offset}:#{length}&quot;</span>
265
+ <span class="ruby-keyword">end</span></pre>
266
+ </div><!-- to_s-source -->
267
+
268
+ </div>
269
+
270
+
271
+
272
+
273
+ </div><!-- to_s-method -->
274
+
275
+
276
+ </section><!-- public-instance-method-details -->
277
+
278
+ </section><!-- 5Buntitled-5D -->
279
+
280
+ </div><!-- documentation -->
281
+
282
+
283
+ <footer id="validator-badges">
284
+ <p><a href="http://validator.w3.org/check/referer">[Validate]</a>
285
+ <p>Generated by <a href="https://github.com/rdoc/rdoc">RDoc</a> 4.0.0.
286
+ <p>Generated with the <a href="http://deveiate.org/projects/Darkfish-Rdoc/">Darkfish Rdoc Generator</a> 3.
287
+ </footer>
288
+