workbook 0.4.13 → 0.4.14
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/.gitignore +2 -1
- data/lib/workbook/modules/cell.rb +14 -0
- data/lib/workbook/version.rb +1 -1
- data/test/test_modules_cache.rb +14 -14
- data/test/test_modules_cell.rb +9 -2
- data/test/test_readers_xls_reader.rb +1 -1
- metadata +4 -46
- data/doc/RubyXL/Cell.html +0 -201
- data/doc/RubyXL/Workbook.html +0 -449
- data/doc/RubyXL.html +0 -128
- data/doc/Workbook/Book.html +0 -1852
- data/doc/Workbook/Cell.html +0 -1553
- data/doc/Workbook/Format.html +0 -1168
- data/doc/Workbook/Modules/RawObjectsStorage.html +0 -502
- data/doc/Workbook/Modules/TableDiffSort.html +0 -758
- data/doc/Workbook/Modules/TypeParser.html +0 -1063
- data/doc/Workbook/Modules.html +0 -117
- data/doc/Workbook/NilValue.html +0 -434
- data/doc/Workbook/Readers/CsvReader.html +0 -324
- data/doc/Workbook/Readers/OdsReader.html +0 -1066
- data/doc/Workbook/Readers/TxtReader.html +0 -236
- data/doc/Workbook/Readers/XlsReader.html +0 -378
- data/doc/Workbook/Readers/XlsShared.html +0 -188
- data/doc/Workbook/Readers/XlsxReader.html +0 -302
- data/doc/Workbook/Readers.html +0 -117
- data/doc/Workbook/Row.html +0 -2392
- data/doc/Workbook/Sheet.html +0 -875
- data/doc/Workbook/Table.html +0 -1732
- data/doc/Workbook/Template.html +0 -634
- data/doc/Workbook/Writers/CsvTableWriter.html +0 -200
- data/doc/Workbook/Writers/HtmlWriter.html +0 -407
- data/doc/Workbook/Writers/XlsWriter.html +0 -905
- data/doc/Workbook/Writers.html +0 -117
- data/doc/Workbook.html +0 -142
- data/doc/_index.html +0 -381
- data/doc/class_list.html +0 -53
- data/doc/css/common.css +0 -1
- data/doc/css/full_list.css +0 -57
- data/doc/css/style.css +0 -338
- data/doc/file.README.html +0 -245
- data/doc/file_list.html +0 -55
- data/doc/frames.html +0 -28
- data/doc/index.html +0 -245
- data/doc/js/app.js +0 -214
- data/doc/js/full_list.js +0 -173
- data/doc/js/jquery.js +0 -4
- data/doc/method_list.html +0 -1308
- data/doc/top-level-namespace.html +0 -112
- data/test/artifacts/floats_problem.xls +0 -0
@@ -1,502 +0,0 @@
|
|
1
|
-
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
|
2
|
-
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
|
3
|
-
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
|
4
|
-
<head>
|
5
|
-
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
|
6
|
-
<title>
|
7
|
-
Module: Workbook::Modules::RawObjectsStorage
|
8
|
-
|
9
|
-
— Documentation by YARD 0.8.5.2
|
10
|
-
|
11
|
-
</title>
|
12
|
-
|
13
|
-
<link rel="stylesheet" href="../../css/style.css" type="text/css" media="screen" charset="utf-8" />
|
14
|
-
|
15
|
-
<link rel="stylesheet" href="../../css/common.css" type="text/css" media="screen" charset="utf-8" />
|
16
|
-
|
17
|
-
<script type="text/javascript" charset="utf-8">
|
18
|
-
hasFrames = window.top.frames.main ? true : false;
|
19
|
-
relpath = '../../';
|
20
|
-
framesUrl = "../../frames.html#!" + escape(window.location.href);
|
21
|
-
</script>
|
22
|
-
|
23
|
-
|
24
|
-
<script type="text/javascript" charset="utf-8" src="../../js/jquery.js"></script>
|
25
|
-
|
26
|
-
<script type="text/javascript" charset="utf-8" src="../../js/app.js"></script>
|
27
|
-
|
28
|
-
|
29
|
-
</head>
|
30
|
-
<body>
|
31
|
-
<div id="header">
|
32
|
-
<div id="menu">
|
33
|
-
|
34
|
-
<a href="../../_index.html">Index (R)</a> »
|
35
|
-
<span class='title'><span class='object_link'><a href="../../Workbook.html" title="Workbook (module)">Workbook</a></span></span> » <span class='title'><span class='object_link'><a href="../Modules.html" title="Workbook::Modules (module)">Modules</a></span></span>
|
36
|
-
»
|
37
|
-
<span class="title">RawObjectsStorage</span>
|
38
|
-
|
39
|
-
|
40
|
-
<div class="noframes"><span class="title">(</span><a href="." target="_top">no frames</a><span class="title">)</span></div>
|
41
|
-
</div>
|
42
|
-
|
43
|
-
<div id="search">
|
44
|
-
|
45
|
-
<a class="full_list_link" id="class_list_link"
|
46
|
-
href="../../class_list.html">
|
47
|
-
Class List
|
48
|
-
</a>
|
49
|
-
|
50
|
-
<a class="full_list_link" id="method_list_link"
|
51
|
-
href="../../method_list.html">
|
52
|
-
Method List
|
53
|
-
</a>
|
54
|
-
|
55
|
-
<a class="full_list_link" id="file_list_link"
|
56
|
-
href="../../file_list.html">
|
57
|
-
File List
|
58
|
-
</a>
|
59
|
-
|
60
|
-
</div>
|
61
|
-
<div class="clear"></div>
|
62
|
-
</div>
|
63
|
-
|
64
|
-
<iframe id="search_frame"></iframe>
|
65
|
-
|
66
|
-
<div id="content"><h1>Module: Workbook::Modules::RawObjectsStorage
|
67
|
-
|
68
|
-
|
69
|
-
|
70
|
-
</h1>
|
71
|
-
|
72
|
-
<dl class="box">
|
73
|
-
|
74
|
-
|
75
|
-
|
76
|
-
|
77
|
-
|
78
|
-
|
79
|
-
|
80
|
-
<dt class="r1">Included in:</dt>
|
81
|
-
<dd class="r1"><span class='object_link'><a href="../Format.html" title="Workbook::Format (class)">Format</a></span>, <span class='object_link'><a href="../Template.html" title="Workbook::Template (class)">Template</a></span></dd>
|
82
|
-
|
83
|
-
|
84
|
-
|
85
|
-
<dt class="r2 last">Defined in:</dt>
|
86
|
-
<dd class="r2 last">lib/workbook/modules/raw_objects_storage.rb</dd>
|
87
|
-
|
88
|
-
</dl>
|
89
|
-
<div class="clear"></div>
|
90
|
-
|
91
|
-
<h2>Overview</h2><div class="docstring">
|
92
|
-
<div class="discussion">
|
93
|
-
|
94
|
-
<p>Adds support for storing raw objects, used in e.g. Format and Template</p>
|
95
|
-
|
96
|
-
|
97
|
-
</div>
|
98
|
-
</div>
|
99
|
-
<div class="tags">
|
100
|
-
|
101
|
-
|
102
|
-
</div>
|
103
|
-
|
104
|
-
|
105
|
-
|
106
|
-
|
107
|
-
|
108
|
-
|
109
|
-
|
110
|
-
<h2>
|
111
|
-
Instance Method Summary
|
112
|
-
<small>(<a href="#" class="summary_toggle">collapse</a>)</small>
|
113
|
-
</h2>
|
114
|
-
|
115
|
-
<ul class="summary">
|
116
|
-
|
117
|
-
<li class="public ">
|
118
|
-
<span class="summary_signature">
|
119
|
-
|
120
|
-
<a href="#add_raw-instance_method" title="#add_raw (instance method)">- (Object) <strong>add_raw</strong>(raw_object) </a>
|
121
|
-
|
122
|
-
|
123
|
-
|
124
|
-
</span>
|
125
|
-
|
126
|
-
|
127
|
-
|
128
|
-
|
129
|
-
|
130
|
-
|
131
|
-
|
132
|
-
|
133
|
-
|
134
|
-
<span class="summary_desc"><div class='inline'>
|
135
|
-
<p>A raw is a 'raw' object, representing a workbook, or cell, or whatever...</p>
|
136
|
-
</div></span>
|
137
|
-
|
138
|
-
</li>
|
139
|
-
|
140
|
-
|
141
|
-
<li class="public ">
|
142
|
-
<span class="summary_signature">
|
143
|
-
|
144
|
-
<a href="#has_raw_for%3F-instance_method" title="#has_raw_for? (instance method)">- (Boolean) <strong>has_raw_for?</strong>(raw_object_class) </a>
|
145
|
-
|
146
|
-
|
147
|
-
|
148
|
-
</span>
|
149
|
-
|
150
|
-
|
151
|
-
|
152
|
-
|
153
|
-
|
154
|
-
|
155
|
-
|
156
|
-
|
157
|
-
|
158
|
-
<span class="summary_desc"><div class='inline'>
|
159
|
-
<p>Returns true if there is a template for a certain class, otherwise false.</p>
|
160
|
-
</div></span>
|
161
|
-
|
162
|
-
</li>
|
163
|
-
|
164
|
-
|
165
|
-
<li class="public ">
|
166
|
-
<span class="summary_signature">
|
167
|
-
|
168
|
-
<a href="#raws-instance_method" title="#raws (instance method)">- (Object) <strong>raws</strong> </a>
|
169
|
-
|
170
|
-
|
171
|
-
|
172
|
-
</span>
|
173
|
-
|
174
|
-
|
175
|
-
|
176
|
-
|
177
|
-
|
178
|
-
|
179
|
-
|
180
|
-
|
181
|
-
|
182
|
-
<span class="summary_desc"><div class='inline'>
|
183
|
-
<p>Return all raw data references.</p>
|
184
|
-
</div></span>
|
185
|
-
|
186
|
-
</li>
|
187
|
-
|
188
|
-
|
189
|
-
<li class="public ">
|
190
|
-
<span class="summary_signature">
|
191
|
-
|
192
|
-
<a href="#remove_all_raws%21-instance_method" title="#remove_all_raws! (instance method)">- (Object) <strong>remove_all_raws!</strong> </a>
|
193
|
-
|
194
|
-
|
195
|
-
|
196
|
-
</span>
|
197
|
-
|
198
|
-
|
199
|
-
|
200
|
-
|
201
|
-
|
202
|
-
|
203
|
-
|
204
|
-
|
205
|
-
|
206
|
-
<span class="summary_desc"><div class='inline'>
|
207
|
-
<p>Remove all raw data references.</p>
|
208
|
-
</div></span>
|
209
|
-
|
210
|
-
</li>
|
211
|
-
|
212
|
-
|
213
|
-
<li class="public ">
|
214
|
-
<span class="summary_signature">
|
215
|
-
|
216
|
-
<a href="#return_raw_for-instance_method" title="#return_raw_for (instance method)">- (Object) <strong>return_raw_for</strong>(raw_object_class) </a>
|
217
|
-
|
218
|
-
|
219
|
-
|
220
|
-
</span>
|
221
|
-
|
222
|
-
|
223
|
-
|
224
|
-
|
225
|
-
|
226
|
-
|
227
|
-
|
228
|
-
|
229
|
-
|
230
|
-
<span class="summary_desc"><div class='inline'>
|
231
|
-
<p>Returns raw data stored for a type of raw object (if available).</p>
|
232
|
-
</div></span>
|
233
|
-
|
234
|
-
</li>
|
235
|
-
|
236
|
-
|
237
|
-
</ul>
|
238
|
-
|
239
|
-
|
240
|
-
|
241
|
-
|
242
|
-
<div id="instance_method_details" class="method_details_list">
|
243
|
-
<h2>Instance Method Details</h2>
|
244
|
-
|
245
|
-
|
246
|
-
<div class="method_details first">
|
247
|
-
<h3 class="signature first" id="add_raw-instance_method">
|
248
|
-
|
249
|
-
- (<tt>Object</tt>) <strong>add_raw</strong>(raw_object)
|
250
|
-
|
251
|
-
|
252
|
-
|
253
|
-
|
254
|
-
|
255
|
-
</h3><div class="docstring">
|
256
|
-
<div class="discussion">
|
257
|
-
|
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>
|
260
|
-
|
261
|
-
|
262
|
-
</div>
|
263
|
-
</div>
|
264
|
-
<div class="tags">
|
265
|
-
|
266
|
-
|
267
|
-
</div><table class="source_code">
|
268
|
-
<tr>
|
269
|
-
<td>
|
270
|
-
<pre class="lines">
|
271
|
-
|
272
|
-
|
273
|
-
8
|
274
|
-
9
|
275
|
-
10</pre>
|
276
|
-
</td>
|
277
|
-
<td>
|
278
|
-
<pre class="code"><span class="info file"># File 'lib/workbook/modules/raw_objects_storage.rb', line 8</span>
|
279
|
-
|
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>
|
283
|
-
</td>
|
284
|
-
</tr>
|
285
|
-
</table>
|
286
|
-
</div>
|
287
|
-
|
288
|
-
<div class="method_details ">
|
289
|
-
<h3 class="signature " id="has_raw_for?-instance_method">
|
290
|
-
|
291
|
-
- (<tt>Boolean</tt>) <strong>has_raw_for?</strong>(raw_object_class)
|
292
|
-
|
293
|
-
|
294
|
-
|
295
|
-
|
296
|
-
|
297
|
-
</h3><div class="docstring">
|
298
|
-
<div class="discussion">
|
299
|
-
|
300
|
-
<p>Returns true if there is a template for a certain class, otherwise false</p>
|
301
|
-
|
302
|
-
|
303
|
-
</div>
|
304
|
-
</div>
|
305
|
-
<div class="tags">
|
306
|
-
|
307
|
-
<p class="tag_title">Returns:</p>
|
308
|
-
<ul class="return">
|
309
|
-
|
310
|
-
<li>
|
311
|
-
|
312
|
-
|
313
|
-
<span class='type'>(<tt>Boolean</tt>)</span>
|
314
|
-
|
315
|
-
|
316
|
-
|
317
|
-
</li>
|
318
|
-
|
319
|
-
</ul>
|
320
|
-
|
321
|
-
</div><table class="source_code">
|
322
|
-
<tr>
|
323
|
-
<td>
|
324
|
-
<pre class="lines">
|
325
|
-
|
326
|
-
|
327
|
-
13
|
328
|
-
14
|
329
|
-
15
|
330
|
-
16</pre>
|
331
|
-
</td>
|
332
|
-
<td>
|
333
|
-
<pre class="code"><span class="info file"># File 'lib/workbook/modules/raw_objects_storage.rb', line 13</span>
|
334
|
-
|
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>
|
339
|
-
</td>
|
340
|
-
</tr>
|
341
|
-
</table>
|
342
|
-
</div>
|
343
|
-
|
344
|
-
<div class="method_details ">
|
345
|
-
<h3 class="signature " id="raws-instance_method">
|
346
|
-
|
347
|
-
- (<tt>Object</tt>) <strong>raws</strong>
|
348
|
-
|
349
|
-
|
350
|
-
|
351
|
-
|
352
|
-
|
353
|
-
</h3><div class="docstring">
|
354
|
-
<div class="discussion">
|
355
|
-
|
356
|
-
<p>Return all raw data references</p>
|
357
|
-
|
358
|
-
|
359
|
-
</div>
|
360
|
-
</div>
|
361
|
-
<div class="tags">
|
362
|
-
|
363
|
-
|
364
|
-
</div><table class="source_code">
|
365
|
-
<tr>
|
366
|
-
<td>
|
367
|
-
<pre class="lines">
|
368
|
-
|
369
|
-
|
370
|
-
31
|
371
|
-
32
|
372
|
-
33
|
373
|
-
34</pre>
|
374
|
-
</td>
|
375
|
-
<td>
|
376
|
-
<pre class="code"><span class="info file"># File 'lib/workbook/modules/raw_objects_storage.rb', line 31</span>
|
377
|
-
|
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>
|
382
|
-
</td>
|
383
|
-
</tr>
|
384
|
-
</table>
|
385
|
-
</div>
|
386
|
-
|
387
|
-
<div class="method_details ">
|
388
|
-
<h3 class="signature " id="remove_all_raws!-instance_method">
|
389
|
-
|
390
|
-
- (<tt>Object</tt>) <strong>remove_all_raws!</strong>
|
391
|
-
|
392
|
-
|
393
|
-
|
394
|
-
|
395
|
-
|
396
|
-
</h3><div class="docstring">
|
397
|
-
<div class="discussion">
|
398
|
-
|
399
|
-
<p>Remove all raw data references</p>
|
400
|
-
|
401
|
-
|
402
|
-
</div>
|
403
|
-
</div>
|
404
|
-
<div class="tags">
|
405
|
-
|
406
|
-
|
407
|
-
</div><table class="source_code">
|
408
|
-
<tr>
|
409
|
-
<td>
|
410
|
-
<pre class="lines">
|
411
|
-
|
412
|
-
|
413
|
-
26
|
414
|
-
27
|
415
|
-
28</pre>
|
416
|
-
</td>
|
417
|
-
<td>
|
418
|
-
<pre class="code"><span class="info file"># File 'lib/workbook/modules/raw_objects_storage.rb', line 26</span>
|
419
|
-
|
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>
|
423
|
-
</td>
|
424
|
-
</tr>
|
425
|
-
</table>
|
426
|
-
</div>
|
427
|
-
|
428
|
-
<div class="method_details ">
|
429
|
-
<h3 class="signature " id="return_raw_for-instance_method">
|
430
|
-
|
431
|
-
- (<tt>Object</tt>) <strong>return_raw_for</strong>(raw_object_class)
|
432
|
-
|
433
|
-
|
434
|
-
|
435
|
-
|
436
|
-
|
437
|
-
</h3><div class="docstring">
|
438
|
-
<div class="discussion">
|
439
|
-
|
440
|
-
<p>Returns raw data stored for a type of raw object (if available)</p>
|
441
|
-
|
442
|
-
|
443
|
-
</div>
|
444
|
-
</div>
|
445
|
-
<div class="tags">
|
446
|
-
<p class="tag_title">Parameters:</p>
|
447
|
-
<ul class="param">
|
448
|
-
|
449
|
-
<li>
|
450
|
-
|
451
|
-
<span class='name'>raw_object_class</span>
|
452
|
-
|
453
|
-
|
454
|
-
<span class='type'>(<tt>Class</tt>)</span>
|
455
|
-
|
456
|
-
|
457
|
-
|
458
|
-
—
|
459
|
-
<div class='inline'>
|
460
|
-
<p>(e.g. Spreadsheet::Format for the Spreadsheet-gem)</p>
|
461
|
-
</div>
|
462
|
-
|
463
|
-
</li>
|
464
|
-
|
465
|
-
</ul>
|
466
|
-
|
467
|
-
|
468
|
-
</div><table class="source_code">
|
469
|
-
<tr>
|
470
|
-
<td>
|
471
|
-
<pre class="lines">
|
472
|
-
|
473
|
-
|
474
|
-
20
|
475
|
-
21
|
476
|
-
22
|
477
|
-
23</pre>
|
478
|
-
</td>
|
479
|
-
<td>
|
480
|
-
<pre class="code"><span class="info file"># File 'lib/workbook/modules/raw_objects_storage.rb', line 20</span>
|
481
|
-
|
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>
|
486
|
-
</td>
|
487
|
-
</tr>
|
488
|
-
</table>
|
489
|
-
</div>
|
490
|
-
|
491
|
-
</div>
|
492
|
-
|
493
|
-
</div>
|
494
|
-
|
495
|
-
<div id="footer">
|
496
|
-
Generated on Sun May 19 23:16:29 2013 by
|
497
|
-
<a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
|
498
|
-
0.8.5.2 (ruby-1.9.3).
|
499
|
-
</div>
|
500
|
-
|
501
|
-
</body>
|
502
|
-
</html>
|