axlsx 1.0.9 → 1.0.10a
Sign up to get free protection for your applications and to get access to all the features.
- data/Gemfile +3 -0
- data/Gemfile.lock +24 -0
- data/README.md +86 -1
- data/axlsx.gemspec +6 -10
- data/doc/Axlsx.html +557 -360
- data/doc/Axlsx/App.html +347 -244
- data/doc/Axlsx/Ar.html +200 -0
- data/doc/Axlsx/Ar/ClassMethods.html +192 -0
- data/doc/Axlsx/Ar/InstanceMethods.html +109 -0
- data/doc/Axlsx/Ar/SingletonMethods.html +304 -0
- data/doc/Axlsx/Axis.html +131 -98
- data/doc/Axlsx/Bar3DChart.html +138 -106
- data/doc/Axlsx/BarSeries.html +73 -54
- data/doc/Axlsx/Border.html +114 -87
- data/doc/Axlsx/BorderPr.html +107 -82
- data/doc/Axlsx/CatAxis.html +93 -68
- data/doc/Axlsx/CatAxisData.html +47 -38
- data/doc/Axlsx/Cell.html +642 -148
- data/doc/Axlsx/CellAlignment.html +152 -111
- data/doc/Axlsx/CellProtection.html +63 -45
- data/doc/Axlsx/CellStyle.html +101 -73
- data/doc/Axlsx/Chart.html +238 -179
- data/doc/Axlsx/Color.html +75 -53
- data/doc/Axlsx/ContentType.html +34 -26
- data/doc/Axlsx/Core.html +54 -42
- data/doc/Axlsx/DataTypeValidator.html +39 -30
- data/doc/Axlsx/Default.html +59 -43
- data/doc/Axlsx/Drawing.html +176 -128
- data/doc/Axlsx/Fill.html +46 -33
- data/doc/Axlsx/Font.html +197 -147
- data/doc/Axlsx/GradientFill.html +114 -82
- data/doc/Axlsx/GradientStop.html +47 -33
- data/doc/Axlsx/GraphicFrame.html +78 -60
- data/doc/Axlsx/Line3DChart.html +125 -97
- data/doc/Axlsx/LineSeries.html +60 -44
- data/doc/Axlsx/Marker.html +98 -71
- data/doc/Axlsx/NumFmt.html +99 -80
- data/doc/Axlsx/OneCellAnchor.html +126 -94
- data/doc/Axlsx/Override.html +59 -43
- data/doc/Axlsx/Package.html +269 -134
- data/doc/Axlsx/PatternFill.html +93 -72
- data/doc/Axlsx/Pic.html +202 -152
- data/doc/Axlsx/Pie3DChart.html +39 -30
- data/doc/Axlsx/PieSeries.html +72 -53
- data/doc/Axlsx/RegexValidator.html +19 -14
- data/doc/Axlsx/Relationship.html +60 -43
- data/doc/Axlsx/Relationships.html +34 -26
- data/doc/Axlsx/RestrictionValidator.html +31 -22
- data/doc/Axlsx/Row.html +241 -67
- data/doc/Axlsx/Scaling.html +80 -59
- data/doc/Axlsx/SerAxis.html +71 -51
- data/doc/Axlsx/Series.html +179 -51
- data/doc/Axlsx/SeriesTitle.html +29 -24
- data/doc/Axlsx/Styles.html +354 -285
- data/doc/Axlsx/TableStyle.html +74 -54
- data/doc/Axlsx/TableStyleElement.html +99 -79
- data/doc/Axlsx/TableStyles.html +65 -47
- data/doc/Axlsx/Title.html +66 -51
- data/doc/Axlsx/TwoCellAnchor.html +129 -96
- data/doc/Axlsx/ValAxis.html +52 -38
- data/doc/Axlsx/ValAxisData.html +32 -27
- data/doc/Axlsx/View3D.html +111 -80
- data/doc/Axlsx/Workbook.html +333 -272
- data/doc/Axlsx/Worksheet.html +1018 -266
- data/doc/Axlsx/Xf.html +188 -134
- data/doc/_index.html +44 -8
- data/doc/class_list.html +1 -1
- data/doc/file.LICENSE.html +28 -23
- data/doc/file.README.html +180 -91
- data/doc/index.html +180 -91
- data/doc/method_list.html +541 -421
- data/doc/top-level-namespace.html +2 -2
- data/examples/example.rb +70 -13
- data/lib/axlsx.rb +1 -0
- data/lib/axlsx/ar.rb +72 -0
- data/lib/axlsx/package.rb +8 -1
- data/lib/axlsx/util/simple_typed_list.rb +5 -0
- data/lib/axlsx/version.rb +1 -1
- data/lib/axlsx/workbook/workbook.rb +4 -2
- data/lib/axlsx/workbook/worksheet/row.rb +15 -0
- data/lib/axlsx/workbook/worksheet/worksheet.rb +44 -1
- data/test/workbook/worksheet/tc_row.rb +6 -0
- data/test/workbook/worksheet/tc_worksheet.rb +36 -0
- metadata +103 -59
data/doc/Axlsx/Color.html
CHANGED
@@ -94,8 +94,9 @@
|
|
94
94
|
|
95
95
|
<h2>Overview</h2><div class="docstring">
|
96
96
|
<div class="discussion">
|
97
|
-
|
98
|
-
|
97
|
+
<p>
|
98
|
+
The color class represents a color used for borders, fills an fonts
|
99
|
+
</p>
|
99
100
|
|
100
101
|
|
101
102
|
</div>
|
@@ -127,8 +128,9 @@
|
|
127
128
|
|
128
129
|
|
129
130
|
|
130
|
-
<span class="summary_desc"><div class='inline'>
|
131
|
-
|
131
|
+
<span class="summary_desc"><div class='inline'><p>
|
132
|
+
Determines if the color is system color dependant.
|
133
|
+
</p>
|
132
134
|
</div></span>
|
133
135
|
|
134
136
|
</li>
|
@@ -153,8 +155,9 @@
|
|
153
155
|
|
154
156
|
|
155
157
|
|
156
|
-
<span class="summary_desc"><div class='inline'>
|
157
|
-
|
158
|
+
<span class="summary_desc"><div class='inline'><p>
|
159
|
+
The color as defined in rgb terms.
|
160
|
+
</p>
|
158
161
|
</div></span>
|
159
162
|
|
160
163
|
</li>
|
@@ -179,8 +182,9 @@
|
|
179
182
|
|
180
183
|
|
181
184
|
|
182
|
-
<span class="summary_desc"><div class='inline'>
|
183
|
-
|
185
|
+
<span class="summary_desc"><div class='inline'><p>
|
186
|
+
The tint value.
|
187
|
+
</p>
|
184
188
|
</div></span>
|
185
189
|
|
186
190
|
</li>
|
@@ -217,8 +221,9 @@
|
|
217
221
|
|
218
222
|
|
219
223
|
|
220
|
-
<span class="summary_desc"><div class='inline'>
|
221
|
-
|
224
|
+
<span class="summary_desc"><div class='inline'><p>
|
225
|
+
Creates a new Color object.
|
226
|
+
</p>
|
222
227
|
</div></span>
|
223
228
|
|
224
229
|
</li>
|
@@ -240,8 +245,9 @@
|
|
240
245
|
|
241
246
|
|
242
247
|
|
243
|
-
<span class="summary_desc"><div class='inline'>
|
244
|
-
|
248
|
+
<span class="summary_desc"><div class='inline'><p>
|
249
|
+
Serializes the color.
|
250
|
+
</p>
|
245
251
|
</div></span>
|
246
252
|
|
247
253
|
</li>
|
@@ -262,8 +268,9 @@
|
|
262
268
|
|
263
269
|
</p><div class="docstring">
|
264
270
|
<div class="discussion">
|
265
|
-
|
266
|
-
|
271
|
+
<p>
|
272
|
+
Creates a new Color object
|
273
|
+
</p>
|
267
274
|
|
268
275
|
|
269
276
|
</div>
|
@@ -284,8 +291,9 @@
|
|
284
291
|
|
285
292
|
|
286
293
|
—
|
287
|
-
<div class='inline'>
|
288
|
-
|
294
|
+
<div class='inline'><p>
|
295
|
+
a customizable set of options
|
296
|
+
</p>
|
289
297
|
</div>
|
290
298
|
|
291
299
|
</li>
|
@@ -345,12 +353,13 @@
|
|
345
353
|
<td>
|
346
354
|
<pre class="code"><span class="info file"># File 'lib/axlsx/stylesheet/color.rb', line 34</span>
|
347
355
|
|
348
|
-
<span class='kw'>def</span> <span class='id
|
349
|
-
<span class='ivar'>@rgb</span> <span class='
|
350
|
-
<span class='id
|
351
|
-
<span class='kw'>self</span><span class='
|
352
|
-
<span class='kw'>end</span>
|
353
|
-
<span class='kw'>end</span
|
356
|
+
<span class='def def kw'>def</span> <span class='initialize identifier id'>initialize</span><span class='lparen token'>(</span><span class='options identifier id'>options</span><span class='assign token'>=</span><span class='lbrace token'>{</span><span class='rbrace token'>}</span><span class='rparen token'>)</span>
|
357
|
+
<span class='@rgb ivar id'>@rgb</span> <span class='assign token'>=</span> <span class='string val'>"FF000000"</span>
|
358
|
+
<span class='options identifier id'>options</span><span class='dot token'>.</span><span class='each identifier id'>each</span> <span class='do do kw'>do</span> <span class='bitor op'>|</span><span class='o identifier id'>o</span><span class='bitor op'>|</span>
|
359
|
+
<span class='self self kw'>self</span><span class='dot token'>.</span><span class='send identifier id'>send</span><span class='lparen token'>(</span><span class='dstring node'>"#{o[0]}="</span><span class='comma token'>,</span> <span class='o identifier id'>o</span><span class='lbrack token'>[</span><span class='integer val'>1</span><span class='rbrack token'>]</span><span class='rparen token'>)</span> <span class='if if_mod kw'>if</span> <span class='self self kw'>self</span><span class='dot token'>.</span><span class='respond_to? fid id'>respond_to?</span> <span class='o identifier id'>o</span><span class='lbrack token'>[</span><span class='integer val'>0</span><span class='rbrack token'>]</span>
|
360
|
+
<span class='end end kw'>end</span>
|
361
|
+
<span class='end end kw'>end</span>
|
362
|
+
</pre>
|
354
363
|
</td>
|
355
364
|
</tr>
|
356
365
|
</table>
|
@@ -373,8 +382,9 @@
|
|
373
382
|
|
374
383
|
</p><div class="docstring">
|
375
384
|
<div class="discussion">
|
376
|
-
|
377
|
-
|
385
|
+
<p>
|
386
|
+
Determines if the color is system color dependant
|
387
|
+
</p>
|
378
388
|
|
379
389
|
|
380
390
|
</div>
|
@@ -408,9 +418,10 @@
|
|
408
418
|
<td>
|
409
419
|
<pre class="code"><span class="info file"># File 'lib/axlsx/stylesheet/color.rb', line 6</span>
|
410
420
|
|
411
|
-
<span class='kw'>def</span> <span class='id
|
412
|
-
<span class='ivar'>@auto</span>
|
413
|
-
<span class='kw'>end</span
|
421
|
+
<span class='def def kw'>def</span> <span class='auto identifier id'>auto</span>
|
422
|
+
<span class='@auto ivar id'>@auto</span>
|
423
|
+
<span class='end end kw'>end</span>
|
424
|
+
</pre>
|
414
425
|
</td>
|
415
426
|
</tr>
|
416
427
|
</table>
|
@@ -431,14 +442,16 @@
|
|
431
442
|
|
432
443
|
<div class="note notetag">
|
433
444
|
<strong>Note:</strong>
|
434
|
-
<div class='inline'>
|
435
|
-
|
436
|
-
|
445
|
+
<div class='inline'><p>
|
446
|
+
rgb colors need to conform to ST_UnsignedIntHex. That basically means put
|
447
|
+
‘FF’ before you color
|
448
|
+
</p>
|
437
449
|
</div>
|
438
450
|
</div>
|
439
451
|
|
440
|
-
|
441
|
-
|
452
|
+
<p>
|
453
|
+
The color as defined in rgb terms.
|
454
|
+
</p>
|
442
455
|
|
443
456
|
|
444
457
|
</div>
|
@@ -448,11 +461,13 @@
|
|
448
461
|
<div class="examples">
|
449
462
|
<h3>Examples:</h3>
|
450
463
|
|
451
|
-
<h4><div class='inline'>
|
452
|
-
|
464
|
+
<h4><div class='inline'><p>
|
465
|
+
rgb colors
|
466
|
+
</p>
|
453
467
|
</div></h4>
|
454
|
-
<pre class="example code">"FF000000"
|
455
|
-
|
468
|
+
<pre class="example code"><span class='string val'>"FF000000"</span> <span class='is identifier id'>is</span> <span class='black identifier id'>black</span>
|
469
|
+
<span class='string val'>"FFFFFFFF"</span> <span class='is identifier id'>is</span> <span class='white identifier id'>white</span>
|
470
|
+
</pre>
|
456
471
|
|
457
472
|
</div>
|
458
473
|
|
@@ -483,9 +498,10 @@
|
|
483
498
|
<td>
|
484
499
|
<pre class="code"><span class="info file"># File 'lib/axlsx/stylesheet/color.rb', line 19</span>
|
485
500
|
|
486
|
-
<span class='kw'>def</span> <span class='id
|
487
|
-
<span class='ivar'>@rgb</span>
|
488
|
-
<span class='kw'>end</span
|
501
|
+
<span class='def def kw'>def</span> <span class='rgb identifier id'>rgb</span>
|
502
|
+
<span class='@rgb ivar id'>@rgb</span>
|
503
|
+
<span class='end end kw'>end</span>
|
504
|
+
</pre>
|
489
505
|
</td>
|
490
506
|
</tr>
|
491
507
|
</table>
|
@@ -506,13 +522,15 @@
|
|
506
522
|
|
507
523
|
<div class="note notetag">
|
508
524
|
<strong>Note:</strong>
|
509
|
-
<div class='inline'>
|
510
|
-
|
525
|
+
<div class='inline'><p>
|
526
|
+
valid values are between -1.0 and 1.0
|
527
|
+
</p>
|
511
528
|
</div>
|
512
529
|
</div>
|
513
530
|
|
514
|
-
|
515
|
-
|
531
|
+
<p>
|
532
|
+
The tint value.
|
533
|
+
</p>
|
516
534
|
|
517
535
|
|
518
536
|
</div>
|
@@ -546,9 +564,10 @@
|
|
546
564
|
<td>
|
547
565
|
<pre class="code"><span class="info file"># File 'lib/axlsx/stylesheet/color.rb', line 28</span>
|
548
566
|
|
549
|
-
<span class='kw'>def</span> <span class='id
|
550
|
-
<span class='ivar'>@tint</span>
|
551
|
-
<span class='kw'>end</span
|
567
|
+
<span class='def def kw'>def</span> <span class='tint identifier id'>tint</span>
|
568
|
+
<span class='@tint ivar id'>@tint</span>
|
569
|
+
<span class='end end kw'>end</span>
|
570
|
+
</pre>
|
552
571
|
</td>
|
553
572
|
</tr>
|
554
573
|
</table>
|
@@ -570,8 +589,9 @@
|
|
570
589
|
|
571
590
|
</p><div class="docstring">
|
572
591
|
<div class="discussion">
|
573
|
-
|
574
|
-
|
592
|
+
<p>
|
593
|
+
Serializes the color
|
594
|
+
</p>
|
575
595
|
|
576
596
|
|
577
597
|
</div>
|
@@ -590,8 +610,9 @@
|
|
590
610
|
|
591
611
|
|
592
612
|
—
|
593
|
-
<div class='inline'>
|
594
|
-
|
613
|
+
<div class='inline'><p>
|
614
|
+
The document builder instance this objects xml will be added to.
|
615
|
+
</p>
|
595
616
|
</div>
|
596
617
|
|
597
618
|
</li>
|
@@ -623,7 +644,8 @@
|
|
623
644
|
<td>
|
624
645
|
<pre class="code"><span class="info file"># File 'lib/axlsx/stylesheet/color.rb', line 57</span>
|
625
646
|
|
626
|
-
<span class='kw'>def</span> <span class='id
|
647
|
+
<span class='def def kw'>def</span> <span class='to_xml identifier id'>to_xml</span><span class='lparen token'>(</span><span class='xml identifier id'>xml</span><span class='rparen token'>)</span> <span class='xml identifier id'>xml</span><span class='dot token'>.</span><span class='color identifier id'>color</span><span class='lparen token'>(</span><span class='self self kw'>self</span><span class='dot token'>.</span><span class='instance_values identifier id'>instance_values</span><span class='rparen token'>)</span> <span class='end end kw'>end</span>
|
648
|
+
</pre>
|
627
649
|
</td>
|
628
650
|
</tr>
|
629
651
|
</table>
|
@@ -634,9 +656,9 @@
|
|
634
656
|
</div>
|
635
657
|
|
636
658
|
<div id="footer">
|
637
|
-
Generated on
|
659
|
+
Generated on Sun Nov 27 21:54:14 2011 by
|
638
660
|
<a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
|
639
|
-
0.7.3 (ruby-1.
|
661
|
+
0.7.3 (ruby-1.8.7).
|
640
662
|
</div>
|
641
663
|
|
642
664
|
</body>
|
data/doc/Axlsx/ContentType.html
CHANGED
@@ -96,9 +96,10 @@
|
|
96
96
|
|
97
97
|
<h2>Overview</h2><div class="docstring">
|
98
98
|
<div class="discussion">
|
99
|
-
|
100
|
-
|
101
|
-
package package
|
99
|
+
<p>
|
100
|
+
ContentTypes used in the package. This is automatcially managed by the
|
101
|
+
package package.
|
102
|
+
</p>
|
102
103
|
|
103
104
|
|
104
105
|
</div>
|
@@ -149,8 +150,9 @@ package package.</p>
|
|
149
150
|
|
150
151
|
|
151
152
|
|
152
|
-
<span class="summary_desc"><div class='inline'>
|
153
|
-
|
153
|
+
<span class="summary_desc"><div class='inline'><p>
|
154
|
+
A new instance of ContentType.
|
155
|
+
</p>
|
154
156
|
</div></span>
|
155
157
|
|
156
158
|
</li>
|
@@ -172,8 +174,9 @@ package package.</p>
|
|
172
174
|
|
173
175
|
|
174
176
|
|
175
|
-
<span class="summary_desc"><div class='inline'>
|
176
|
-
|
177
|
+
<span class="summary_desc"><div class='inline'><p>
|
178
|
+
Generates the xml document for [Content_Types].xml.
|
179
|
+
</p>
|
177
180
|
</div></span>
|
178
181
|
|
179
182
|
</li>
|
@@ -199,8 +202,9 @@ package package.</p>
|
|
199
202
|
|
200
203
|
</p><div class="docstring">
|
201
204
|
<div class="discussion">
|
202
|
-
|
203
|
-
|
205
|
+
<p>
|
206
|
+
A new instance of ContentType
|
207
|
+
</p>
|
204
208
|
|
205
209
|
|
206
210
|
</div>
|
@@ -221,9 +225,10 @@ package package.</p>
|
|
221
225
|
<td>
|
222
226
|
<pre class="code"><span class="info file"># File 'lib/axlsx/content_type/content_type.rb', line 8</span>
|
223
227
|
|
224
|
-
<span class='kw'>def</span> <span class='id
|
225
|
-
<span class='kw'>super</span> <span class='
|
226
|
-
<span class='kw'>end</span
|
228
|
+
<span class='def def kw'>def</span> <span class='initialize identifier id'>initialize</span>
|
229
|
+
<span class='super super kw'>super</span> <span class='lbrack token'>[</span><span class='Override constant id'>Override</span><span class='comma token'>,</span> <span class='Default constant id'>Default</span><span class='rbrack token'>]</span>
|
230
|
+
<span class='end end kw'>end</span>
|
231
|
+
</pre>
|
227
232
|
</td>
|
228
233
|
</tr>
|
229
234
|
</table>
|
@@ -255,8 +260,9 @@ package package.</p>
|
|
255
260
|
|
256
261
|
</p><div class="docstring">
|
257
262
|
<div class="discussion">
|
258
|
-
|
259
|
-
|
263
|
+
<p>
|
264
|
+
Generates the xml document for [Content_Types].xml
|
265
|
+
</p>
|
260
266
|
|
261
267
|
|
262
268
|
</div>
|
@@ -274,8 +280,9 @@ package package.</p>
|
|
274
280
|
|
275
281
|
|
276
282
|
—
|
277
|
-
<div class='inline'>
|
278
|
-
|
283
|
+
<div class='inline'><p>
|
284
|
+
The document as a string.
|
285
|
+
</p>
|
279
286
|
</div>
|
280
287
|
|
281
288
|
</li>
|
@@ -300,14 +307,15 @@ package package.</p>
|
|
300
307
|
<td>
|
301
308
|
<pre class="code"><span class="info file"># File 'lib/axlsx/content_type/content_type.rb', line 14</span>
|
302
309
|
|
303
|
-
<span class='kw'>def</span> <span class='id
|
304
|
-
<span class='id
|
305
|
-
<span class='id
|
306
|
-
<span class='id
|
307
|
-
<span class='rbrace'>}</span>
|
308
|
-
<span class='kw'>end</span>
|
309
|
-
<span class='id
|
310
|
-
<span class='kw'>end</span
|
310
|
+
<span class='def def kw'>def</span> <span class='to_xml identifier id'>to_xml</span><span class='lparen token'>(</span><span class='rparen token'>)</span>
|
311
|
+
<span class='builder identifier id'>builder</span> <span class='assign token'>=</span> <span class='Nokogiri constant id'>Nokogiri</span><span class='colon2 op'>::</span><span class='XML constant id'>XML</span><span class='colon2 op'>::</span><span class='Builder constant id'>Builder</span><span class='dot token'>.</span><span class='new identifier id'>new</span><span class='lparen token'>(</span><span class='symbol val'>:encoding</span> <span class='assign token'>=</span><span class='gt op'>></span> <span class='ENCODING constant id'>ENCODING</span><span class='rparen token'>)</span> <span class='do do kw'>do</span> <span class='bitor op'>|</span><span class='xml identifier id'>xml</span><span class='bitor op'>|</span>
|
312
|
+
<span class='xml identifier id'>xml</span><span class='dot token'>.</span><span class='Types constant id'>Types</span><span class='lparen token'>(</span><span class='symbol val'>:xmlns</span> <span class='assign token'>=</span><span class='gt op'>></span> <span class='Axlsx constant id'>Axlsx</span><span class='colon2 op'>::</span><span class='XML_NS_T constant id'>XML_NS_T</span><span class='rparen token'>)</span> <span class='lbrace token'>{</span>
|
313
|
+
<span class='each identifier id'>each</span> <span class='lbrace token'>{</span> <span class='bitor op'>|</span><span class='type identifier id'>type</span><span class='bitor op'>|</span> <span class='type identifier id'>type</span><span class='dot token'>.</span><span class='to_xml identifier id'>to_xml</span><span class='lparen token'>(</span><span class='xml identifier id'>xml</span><span class='rparen token'>)</span> <span class='rbrace token'>}</span>
|
314
|
+
<span class='rbrace token'>}</span>
|
315
|
+
<span class='end end kw'>end</span>
|
316
|
+
<span class='builder identifier id'>builder</span><span class='dot token'>.</span><span class='to_xml identifier id'>to_xml</span>
|
317
|
+
<span class='end end kw'>end</span>
|
318
|
+
</pre>
|
311
319
|
</td>
|
312
320
|
</tr>
|
313
321
|
</table>
|
@@ -318,9 +326,9 @@ package package.</p>
|
|
318
326
|
</div>
|
319
327
|
|
320
328
|
<div id="footer">
|
321
|
-
Generated on
|
329
|
+
Generated on Sun Nov 27 21:54:18 2011 by
|
322
330
|
<a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
|
323
|
-
0.7.3 (ruby-1.
|
331
|
+
0.7.3 (ruby-1.8.7).
|
324
332
|
</div>
|
325
333
|
|
326
334
|
</body>
|
data/doc/Axlsx/Core.html
CHANGED
@@ -97,13 +97,15 @@
|
|
97
97
|
|
98
98
|
<div class="note notetag">
|
99
99
|
<strong>Note:</strong>
|
100
|
-
<div class='inline'>
|
101
|
-
|
100
|
+
<div class='inline'><p>
|
101
|
+
Packages manage their own core object.
|
102
|
+
</p>
|
102
103
|
</div>
|
103
104
|
</div>
|
104
105
|
|
105
|
-
|
106
|
-
|
106
|
+
<p>
|
107
|
+
The core object for the package.
|
108
|
+
</p>
|
107
109
|
|
108
110
|
|
109
111
|
</div>
|
@@ -142,8 +144,9 @@
|
|
142
144
|
|
143
145
|
|
144
146
|
|
145
|
-
<span class="summary_desc"><div class='inline'>
|
146
|
-
|
147
|
+
<span class="summary_desc"><div class='inline'><p>
|
148
|
+
The author of the document.
|
149
|
+
</p>
|
147
150
|
</div></span>
|
148
151
|
|
149
152
|
</li>
|
@@ -180,8 +183,9 @@
|
|
180
183
|
|
181
184
|
|
182
185
|
|
183
|
-
<span class="summary_desc"><div class='inline'>
|
184
|
-
|
186
|
+
<span class="summary_desc"><div class='inline'><p>
|
187
|
+
Creates a new Core object.
|
188
|
+
</p>
|
185
189
|
</div></span>
|
186
190
|
|
187
191
|
</li>
|
@@ -203,8 +207,9 @@
|
|
203
207
|
|
204
208
|
|
205
209
|
|
206
|
-
<span class="summary_desc"><div class='inline'>
|
207
|
-
|
210
|
+
<span class="summary_desc"><div class='inline'><p>
|
211
|
+
Serializes the core object.
|
212
|
+
</p>
|
208
213
|
</div></span>
|
209
214
|
|
210
215
|
</li>
|
@@ -225,8 +230,9 @@
|
|
225
230
|
|
226
231
|
</p><div class="docstring">
|
227
232
|
<div class="discussion">
|
228
|
-
|
229
|
-
|
233
|
+
<p>
|
234
|
+
Creates a new Core object.
|
235
|
+
</p>
|
230
236
|
|
231
237
|
|
232
238
|
</div>
|
@@ -247,8 +253,9 @@
|
|
247
253
|
|
248
254
|
|
249
255
|
—
|
250
|
-
<div class='inline'>
|
251
|
-
|
256
|
+
<div class='inline'><p>
|
257
|
+
a customizable set of options
|
258
|
+
</p>
|
252
259
|
</div>
|
253
260
|
|
254
261
|
</li>
|
@@ -287,9 +294,10 @@
|
|
287
294
|
<td>
|
288
295
|
<pre class="code"><span class="info file"># File 'lib/axlsx/doc_props/core.rb', line 12</span>
|
289
296
|
|
290
|
-
<span class='kw'>def</span> <span class='id
|
291
|
-
<span class='ivar'>@creator</span> <span class='
|
292
|
-
<span class='kw'>end</span
|
297
|
+
<span class='def def kw'>def</span> <span class='initialize identifier id'>initialize</span><span class='lparen token'>(</span><span class='options identifier id'>options</span><span class='assign token'>=</span><span class='lbrace token'>{</span><span class='rbrace token'>}</span><span class='rparen token'>)</span>
|
298
|
+
<span class='@creator ivar id'>@creator</span> <span class='assign token'>=</span> <span class='options identifier id'>options</span><span class='lbrack token'>[</span><span class='symbol val'>:creator</span><span class='rbrack token'>]</span> <span class='orop op'>||</span> <span class='string val'>'axlsx'</span>
|
299
|
+
<span class='end end kw'>end</span>
|
300
|
+
</pre>
|
293
301
|
</td>
|
294
302
|
</tr>
|
295
303
|
</table>
|
@@ -312,8 +320,9 @@
|
|
312
320
|
|
313
321
|
</p><div class="docstring">
|
314
322
|
<div class="discussion">
|
315
|
-
|
316
|
-
|
323
|
+
<p>
|
324
|
+
The author of the document. By default this is ‘axlsx’
|
325
|
+
</p>
|
317
326
|
|
318
327
|
|
319
328
|
</div>
|
@@ -347,9 +356,10 @@
|
|
347
356
|
<td>
|
348
357
|
<pre class="code"><span class="info file"># File 'lib/axlsx/doc_props/core.rb', line 8</span>
|
349
358
|
|
350
|
-
<span class='kw'>def</span> <span class='id
|
351
|
-
<span class='ivar'>@creator</span>
|
352
|
-
<span class='kw'>end</span
|
359
|
+
<span class='def def kw'>def</span> <span class='creator identifier id'>creator</span>
|
360
|
+
<span class='@creator ivar id'>@creator</span>
|
361
|
+
<span class='end end kw'>end</span>
|
362
|
+
</pre>
|
353
363
|
</td>
|
354
364
|
</tr>
|
355
365
|
</table>
|
@@ -371,9 +381,10 @@
|
|
371
381
|
|
372
382
|
</p><div class="docstring">
|
373
383
|
<div class="discussion">
|
374
|
-
|
375
|
-
|
376
|
-
time when this method is called
|
384
|
+
<p>
|
385
|
+
Serializes the core object. The created dcterms item is set to the current
|
386
|
+
time when this method is called.
|
387
|
+
</p>
|
377
388
|
|
378
389
|
|
379
390
|
</div>
|
@@ -419,21 +430,22 @@ time when this method is called.</p>
|
|
419
430
|
<td>
|
420
431
|
<pre class="code"><span class="info file"># File 'lib/axlsx/doc_props/core.rb', line 18</span>
|
421
432
|
|
422
|
-
<span class='kw'>def</span> <span class='id
|
423
|
-
<span class='id
|
424
|
-
<span class='id
|
425
|
-
<span class='symbol'
|
426
|
-
<span class='symbol'>:xmlns:dc</span
|
427
|
-
<span class='symbol'>:xmlns:dcmitype</span><span class='
|
428
|
-
<span class='symbol'>:xmlns:dcterms</span><span class='
|
429
|
-
<span class='symbol'>:xmlns:xsi</span><span class='
|
430
|
-
<span class='id
|
431
|
-
<span class='id
|
432
|
-
<span class='id
|
433
|
-
<span class='rbrace'>}</span>
|
434
|
-
<span class='kw'>end</span>
|
435
|
-
<span class='id
|
436
|
-
<span class='kw'>end</span
|
433
|
+
<span class='def def kw'>def</span> <span class='to_xml identifier id'>to_xml</span><span class='lparen token'>(</span><span class='rparen token'>)</span>
|
434
|
+
<span class='builder identifier id'>builder</span> <span class='assign token'>=</span> <span class='Nokogiri constant id'>Nokogiri</span><span class='colon2 op'>::</span><span class='XML constant id'>XML</span><span class='colon2 op'>::</span><span class='Builder constant id'>Builder</span><span class='dot token'>.</span><span class='new identifier id'>new</span><span class='lparen token'>(</span><span class='symbol val'>:encoding</span> <span class='assign token'>=</span><span class='gt op'>></span> <span class='ENCODING constant id'>ENCODING</span><span class='rparen token'>)</span> <span class='do do kw'>do</span> <span class='bitor op'>|</span><span class='xml identifier id'>xml</span><span class='bitor op'>|</span>
|
435
|
+
<span class='xml identifier id'>xml</span><span class='dot token'>.</span><span class='send identifier id'>send</span><span class='lparen token'>(</span><span class='string val'>'cp:coreProperties'</span><span class='comma token'>,</span>
|
436
|
+
<span class='symbol val'>:"xmlns:cp"</span> <span class='assign token'>=</span><span class='gt op'>></span> <span class='CORE_NS constant id'>CORE_NS</span><span class='comma token'>,</span>
|
437
|
+
<span class='symbol val'>:'xmlns:dc'</span> <span class='assign token'>=</span><span class='gt op'>></span> <span class='CORE_NS_DC constant id'>CORE_NS_DC</span><span class='comma token'>,</span>
|
438
|
+
<span class='symbol val'>:'xmlns:dcmitype'</span><span class='assign token'>=</span><span class='gt op'>></span><span class='CORE_NS_DCMIT constant id'>CORE_NS_DCMIT</span><span class='comma token'>,</span>
|
439
|
+
<span class='symbol val'>:'xmlns:dcterms'</span><span class='assign token'>=</span><span class='gt op'>></span><span class='CORE_NS_DCT constant id'>CORE_NS_DCT</span><span class='comma token'>,</span>
|
440
|
+
<span class='symbol val'>:'xmlns:xsi'</span><span class='assign token'>=</span><span class='gt op'>></span><span class='CORE_NS_XSI constant id'>CORE_NS_XSI</span><span class='rparen token'>)</span> <span class='lbrace token'>{</span>
|
441
|
+
<span class='xml identifier id'>xml</span><span class='lbrack token'>[</span><span class='string val'>'dc'</span><span class='rbrack token'>]</span><span class='dot token'>.</span><span class='creator identifier id'>creator</span> <span class='self self kw'>self</span><span class='dot token'>.</span><span class='creator identifier id'>creator</span>
|
442
|
+
<span class='xml identifier id'>xml</span><span class='lbrack token'>[</span><span class='string val'>'dcterms'</span><span class='rbrack token'>]</span><span class='dot token'>.</span><span class='created identifier id'>created</span> <span class='Time constant id'>Time</span><span class='dot token'>.</span><span class='now identifier id'>now</span><span class='dot token'>.</span><span class='strftime identifier id'>strftime</span><span class='lparen token'>(</span><span class='string val'>'%Y-%m-%dT%H:%M:%S'</span><span class='rparen token'>)</span><span class='comma token'>,</span> <span class='symbol val'>:'xsi:type'</span><span class='assign token'>=</span><span class='gt op'>></span><span class='string val'>"dcterms:W3CDTF"</span>
|
443
|
+
<span class='xml identifier id'>xml</span><span class='lbrack token'>[</span><span class='string val'>'cp'</span><span class='rbrack token'>]</span><span class='dot token'>.</span><span class='revision identifier id'>revision</span> <span class='integer val'>0</span>
|
444
|
+
<span class='rbrace token'>}</span>
|
445
|
+
<span class='end end kw'>end</span>
|
446
|
+
<span class='builder identifier id'>builder</span><span class='dot token'>.</span><span class='to_xml identifier id'>to_xml</span>
|
447
|
+
<span class='end end kw'>end</span>
|
448
|
+
</pre>
|
437
449
|
</td>
|
438
450
|
</tr>
|
439
451
|
</table>
|
@@ -444,9 +456,9 @@ time when this method is called.</p>
|
|
444
456
|
</div>
|
445
457
|
|
446
458
|
<div id="footer">
|
447
|
-
Generated on
|
459
|
+
Generated on Sun Nov 27 21:54:29 2011 by
|
448
460
|
<a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
|
449
|
-
0.7.3 (ruby-1.
|
461
|
+
0.7.3 (ruby-1.8.7).
|
450
462
|
</div>
|
451
463
|
|
452
464
|
</body>
|