workbook 0.3.1 → 0.4
Sign up to get free protection for your applications and to get access to all the features.
- data/.yardoc/checksums +21 -18
- data/.yardoc/object_types +0 -0
- data/.yardoc/objects/root.dat +0 -0
- data/Gemfile.lock +4 -4
- data/README.md +8 -5
- data/doc/RubyXL/Cell.html +18 -19
- data/doc/RubyXL/Workbook.html +116 -114
- data/doc/RubyXL.html +3 -3
- data/doc/Workbook/Book.html +513 -145
- data/doc/Workbook/Cell.html +181 -170
- data/doc/Workbook/Format.html +591 -77
- data/doc/Workbook/Modules/RawObjectsStorage.html +39 -45
- data/doc/Workbook/Modules/TableDiffSort.html +225 -87
- data/doc/Workbook/Modules/TypeParser.html +182 -131
- data/doc/Workbook/Modules.html +3 -3
- data/doc/Workbook/Readers/CsvReader.html +101 -39
- data/doc/Workbook/Readers/OdsReader.html +564 -0
- data/doc/Workbook/Readers/TxtReader.html +12 -14
- data/doc/Workbook/Readers/XlsReader.html +154 -138
- data/doc/Workbook/Readers/XlsShared.html +71 -72
- data/doc/Workbook/Readers/XlsxReader.html +89 -82
- data/doc/Workbook/Readers.html +6 -6
- data/doc/Workbook/Row.html +421 -206
- data/doc/Workbook/Sheet.html +379 -32
- data/doc/Workbook/Table.html +328 -90
- data/doc/Workbook/Template.html +55 -60
- data/doc/Workbook/Writers/CsvTableWriter.html +33 -8
- data/doc/Workbook/Writers/HtmlWriter.html +393 -0
- data/doc/Workbook/Writers/XlsWriter.html +132 -92
- data/doc/Workbook/Writers.html +5 -5
- data/doc/Workbook.html +16 -4
- data/doc/_index.html +45 -15
- data/doc/class_list.html +1 -1
- data/doc/css/style.css +10 -0
- data/doc/file.README.html +53 -48
- data/doc/frames.html +1 -1
- data/doc/index.html +53 -48
- data/doc/method_list.html +232 -56
- data/doc/top-level-namespace.html +3 -3
- data/lib/workbook/book.rb +27 -1
- data/lib/workbook/format.rb +46 -7
- data/lib/workbook/modules/type_parser.rb +8 -1
- data/lib/workbook/readers/ods_reader.rb +93 -0
- data/lib/workbook/row.rb +7 -0
- data/lib/workbook/sheet.rb +10 -0
- data/lib/workbook/version.rb +1 -1
- data/lib/workbook/writers/html_writer.rb +56 -0
- data/test/artifacts/book_with_tabs_and_colours.ods +0 -0
- data/test/artifacts/complex_types.ods +0 -0
- data/test/artifacts/excel_different_types.ods +0 -0
- data/test/artifacts/simple_sheet.ods +0 -0
- data/test/test_book.rb +6 -0
- data/test/test_format.rb +39 -0
- data/test/test_modules_type_parser.rb +2 -0
- data/test/test_readers_csv_reader.rb +44 -0
- data/test/test_readers_ods_reader.rb +51 -0
- data/test/test_readers_txt_reader.rb +53 -0
- data/test/test_row.rb +12 -0
- data/test/test_sheet.rb +12 -0
- data/test/test_writers_html_writer.rb +37 -0
- data/workbook.gemspec +2 -2
- metadata +21 -4
@@ -6,7 +6,7 @@
|
|
6
6
|
<title>
|
7
7
|
Module: Workbook::Modules::RawObjectsStorage
|
8
8
|
|
9
|
-
— Documentation by YARD 0.8.
|
9
|
+
— Documentation by YARD 0.8.5.2
|
10
10
|
|
11
11
|
</title>
|
12
12
|
|
@@ -132,8 +132,7 @@
|
|
132
132
|
|
133
133
|
|
134
134
|
<span class="summary_desc"><div class='inline'>
|
135
|
-
<p>A raw is a
|
136
|
-
whatever…</p>
|
135
|
+
<p>A raw is a 'raw' object, representing a workbook, or cell, or whatever...</p>
|
137
136
|
</div></span>
|
138
137
|
|
139
138
|
</li>
|
@@ -256,8 +255,8 @@ whatever…</p>
|
|
256
255
|
</h3><div class="docstring">
|
257
256
|
<div class="discussion">
|
258
257
|
|
259
|
-
<p>A raw is a
|
260
|
-
|
258
|
+
<p>A raw is a 'raw' object, representing a workbook, or cell, or whatever...
|
259
|
+
in a particular format (defined by its class)</p>
|
261
260
|
|
262
261
|
|
263
262
|
</div>
|
@@ -271,17 +270,16 @@ whatever… in a particular format (defined by its class)</p>
|
|
271
270
|
<pre class="lines">
|
272
271
|
|
273
272
|
|
274
|
-
7
|
275
273
|
8
|
276
|
-
9
|
274
|
+
9
|
275
|
+
10</pre>
|
277
276
|
</td>
|
278
277
|
<td>
|
279
|
-
<pre class="code"><span class="info file"># File 'lib/workbook/modules/raw_objects_storage.rb', line
|
278
|
+
<pre class="code"><span class="info file"># File 'lib/workbook/modules/raw_objects_storage.rb', line 8</span>
|
280
279
|
|
281
|
-
<span class='
|
282
|
-
<span class='
|
283
|
-
<span class='
|
284
|
-
</pre>
|
280
|
+
<span class='kw'>def</span> <span class='id identifier rubyid_add_raw'>add_raw</span> <span class='id identifier rubyid_raw_object'>raw_object</span>
|
281
|
+
<span class='id identifier rubyid_raws'>raws</span><span class='lbracket'>[</span><span class='id identifier rubyid_raw_object'>raw_object</span><span class='period'>.</span><span class='id identifier rubyid_class'>class</span><span class='rbracket'>]</span><span class='op'>=</span><span class='id identifier rubyid_raw_object'>raw_object</span>
|
282
|
+
<span class='kw'>end</span></pre>
|
285
283
|
</td>
|
286
284
|
</tr>
|
287
285
|
</table>
|
@@ -326,19 +324,18 @@ whatever… in a particular format (defined by its class)</p>
|
|
326
324
|
<pre class="lines">
|
327
325
|
|
328
326
|
|
329
|
-
12
|
330
327
|
13
|
331
328
|
14
|
332
|
-
15
|
329
|
+
15
|
330
|
+
16</pre>
|
333
331
|
</td>
|
334
332
|
<td>
|
335
|
-
<pre class="code"><span class="info file"># File 'lib/workbook/modules/raw_objects_storage.rb', line
|
333
|
+
<pre class="code"><span class="info file"># File 'lib/workbook/modules/raw_objects_storage.rb', line 13</span>
|
336
334
|
|
337
|
-
<span class='
|
338
|
-
<span class='
|
339
|
-
|
340
|
-
<span class='
|
341
|
-
</pre>
|
335
|
+
<span class='kw'>def</span> <span class='id identifier rubyid_has_raw_for?'>has_raw_for?</span> <span class='id identifier rubyid_raw_object_class'>raw_object_class</span>
|
336
|
+
<span class='id identifier rubyid_raws'>raws</span><span class='period'>.</span><span class='id identifier rubyid_each'>each</span> <span class='lbrace'>{</span> <span class='op'>|</span><span class='id identifier rubyid_tc'>tc</span><span class='comma'>,</span><span class='id identifier rubyid_t'>t</span><span class='op'>|</span> <span class='kw'>return</span> <span class='kw'>true</span> <span class='kw'>if</span> <span class='id identifier rubyid_tc'>tc</span> <span class='op'>==</span> <span class='id identifier rubyid_raw_object_class'>raw_object_class</span><span class='rbrace'>}</span>
|
337
|
+
<span class='kw'>return</span> <span class='kw'>false</span>
|
338
|
+
<span class='kw'>end</span></pre>
|
342
339
|
</td>
|
343
340
|
</tr>
|
344
341
|
</table>
|
@@ -370,19 +367,18 @@ whatever… in a particular format (defined by its class)</p>
|
|
370
367
|
<pre class="lines">
|
371
368
|
|
372
369
|
|
373
|
-
30
|
374
370
|
31
|
375
371
|
32
|
376
|
-
33
|
372
|
+
33
|
373
|
+
34</pre>
|
377
374
|
</td>
|
378
375
|
<td>
|
379
|
-
<pre class="code"><span class="info file"># File 'lib/workbook/modules/raw_objects_storage.rb', line
|
376
|
+
<pre class="code"><span class="info file"># File 'lib/workbook/modules/raw_objects_storage.rb', line 31</span>
|
380
377
|
|
381
|
-
<span class='
|
382
|
-
|
383
|
-
|
384
|
-
<span class='
|
385
|
-
</pre>
|
378
|
+
<span class='kw'>def</span> <span class='id identifier rubyid_raws'>raws</span>
|
379
|
+
<span class='ivar'>@raws</span> <span class='op'>=</span> <span class='lbrace'>{</span><span class='rbrace'>}</span> <span class='kw'>unless</span> <span class='kw'>defined?</span> <span class='ivar'>@raws</span>
|
380
|
+
<span class='ivar'>@raws</span>
|
381
|
+
<span class='kw'>end</span></pre>
|
386
382
|
</td>
|
387
383
|
</tr>
|
388
384
|
</table>
|
@@ -414,17 +410,16 @@ whatever… in a particular format (defined by its class)</p>
|
|
414
410
|
<pre class="lines">
|
415
411
|
|
416
412
|
|
417
|
-
25
|
418
413
|
26
|
419
|
-
27
|
414
|
+
27
|
415
|
+
28</pre>
|
420
416
|
</td>
|
421
417
|
<td>
|
422
|
-
<pre class="code"><span class="info file"># File 'lib/workbook/modules/raw_objects_storage.rb', line
|
418
|
+
<pre class="code"><span class="info file"># File 'lib/workbook/modules/raw_objects_storage.rb', line 26</span>
|
423
419
|
|
424
|
-
<span class='
|
425
|
-
<span class='
|
426
|
-
<span class='
|
427
|
-
</pre>
|
420
|
+
<span class='kw'>def</span> <span class='id identifier rubyid_remove_all_raws!'>remove_all_raws!</span>
|
421
|
+
<span class='ivar'>@raws</span> <span class='op'>=</span> <span class='lbrace'>{</span><span class='rbrace'>}</span>
|
422
|
+
<span class='kw'>end</span></pre>
|
428
423
|
</td>
|
429
424
|
</tr>
|
430
425
|
</table>
|
@@ -476,19 +471,18 @@ whatever… in a particular format (defined by its class)</p>
|
|
476
471
|
<pre class="lines">
|
477
472
|
|
478
473
|
|
479
|
-
19
|
480
474
|
20
|
481
475
|
21
|
482
|
-
22
|
476
|
+
22
|
477
|
+
23</pre>
|
483
478
|
</td>
|
484
479
|
<td>
|
485
|
-
<pre class="code"><span class="info file"># File 'lib/workbook/modules/raw_objects_storage.rb', line
|
480
|
+
<pre class="code"><span class="info file"># File 'lib/workbook/modules/raw_objects_storage.rb', line 20</span>
|
486
481
|
|
487
|
-
<span class='
|
488
|
-
|
489
|
-
<span class='
|
490
|
-
<span class='
|
491
|
-
</pre>
|
482
|
+
<span class='kw'>def</span> <span class='id identifier rubyid_return_raw_for'>return_raw_for</span> <span class='id identifier rubyid_raw_object_class'>raw_object_class</span>
|
483
|
+
<span class='id identifier rubyid_raws'>raws</span><span class='period'>.</span><span class='id identifier rubyid_each'>each</span> <span class='lbrace'>{</span> <span class='op'>|</span><span class='id identifier rubyid_tc'>tc</span><span class='comma'>,</span><span class='id identifier rubyid_t'>t</span><span class='op'>|</span> <span class='kw'>return</span> <span class='id identifier rubyid_t'>t</span> <span class='kw'>if</span> <span class='id identifier rubyid_tc'>tc</span> <span class='op'>==</span> <span class='id identifier rubyid_raw_object_class'>raw_object_class</span><span class='rbrace'>}</span>
|
484
|
+
<span class='kw'>return</span> <span class='kw'>nil</span>
|
485
|
+
<span class='kw'>end</span></pre>
|
492
486
|
</td>
|
493
487
|
</tr>
|
494
488
|
</table>
|
@@ -499,9 +493,9 @@ whatever… in a particular format (defined by its class)</p>
|
|
499
493
|
</div>
|
500
494
|
|
501
495
|
<div id="footer">
|
502
|
-
Generated on
|
496
|
+
Generated on Sun May 5 14:58:06 2013 by
|
503
497
|
<a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
|
504
|
-
0.8.
|
498
|
+
0.8.5.2 (ruby-1.9.3).
|
505
499
|
</div>
|
506
500
|
|
507
501
|
</body>
|