axlsx 1.0.11 → 1.0.12
Sign up to get free protection for your applications and to get access to all the features.
- data/.yardopts +4 -0
- data/README.md +7 -4
- data/examples/example.rb +6 -4
- data/examples/example.rb~ +112 -0
- data/lib/schema/dc.xsd~ +118 -0
- data/lib/schema/dcterms.xsd~ +331 -0
- data/lib/schema/opc-coreProperties.xsd~ +50 -0
- metadata +43 -193
- data/Gemfile +0 -3
- data/Gemfile.lock +0 -29
- data/axlsx.gemspec +0 -42
- data/doc/Axlsx.html +0 -2718
- data/doc/Axlsx/App.html +0 -2640
- data/doc/Axlsx/Axis.html +0 -1075
- data/doc/Axlsx/Bar3DChart.html +0 -1182
- data/doc/Axlsx/BarSeries.html +0 -711
- data/doc/Axlsx/Border.html +0 -779
- data/doc/Axlsx/BorderPr.html +0 -709
- data/doc/Axlsx/CatAxis.html +0 -769
- data/doc/Axlsx/CatAxisData.html +0 -397
- data/doc/Axlsx/Cell.html +0 -3187
- data/doc/Axlsx/CellAlignment.html +0 -1247
- data/doc/Axlsx/CellProtection.html +0 -565
- data/doc/Axlsx/CellStyle.html +0 -949
- data/doc/Axlsx/Chart.html +0 -1692
- data/doc/Axlsx/Color.html +0 -670
- data/doc/Axlsx/ContentType.html +0 -335
- data/doc/Axlsx/Core.html +0 -465
- data/doc/Axlsx/DataTypeValidator.html +0 -324
- data/doc/Axlsx/Default.html +0 -565
- data/doc/Axlsx/Drawing.html +0 -1264
- data/doc/Axlsx/Fill.html +0 -460
- data/doc/Axlsx/Font.html +0 -1554
- data/doc/Axlsx/GradientFill.html +0 -1026
- data/doc/Axlsx/GradientStop.html +0 -526
- data/doc/Axlsx/GraphicFrame.html +0 -642
- data/doc/Axlsx/Line3DChart.html +0 -1004
- data/doc/Axlsx/LineSeries.html +0 -605
- data/doc/Axlsx/Marker.html +0 -857
- data/doc/Axlsx/NumFmt.html +0 -562
- data/doc/Axlsx/OneCellAnchor.html +0 -982
- data/doc/Axlsx/Override.html +0 -552
- data/doc/Axlsx/Package.html +0 -825
- data/doc/Axlsx/Parser.html +0 -549
- data/doc/Axlsx/PatternFill.html +0 -681
- data/doc/Axlsx/Pic.html +0 -1701
- data/doc/Axlsx/PictureLocking.html +0 -1159
- data/doc/Axlsx/Pie3DChart.html +0 -489
- data/doc/Axlsx/PieSeries.html +0 -710
- data/doc/Axlsx/RegexValidator.html +0 -268
- data/doc/Axlsx/Relationship.html +0 -554
- data/doc/Axlsx/Relationships.html +0 -338
- data/doc/Axlsx/RestrictionValidator.html +0 -300
- data/doc/Axlsx/Row.html +0 -916
- data/doc/Axlsx/Scaling.html +0 -742
- data/doc/Axlsx/SerAxis.html +0 -641
- data/doc/Axlsx/Series.html +0 -813
- data/doc/Axlsx/SeriesTitle.html +0 -290
- data/doc/Axlsx/Styles.html +0 -1754
- data/doc/Axlsx/TableStyle.html +0 -705
- data/doc/Axlsx/TableStyleElement.html +0 -677
- data/doc/Axlsx/TableStyles.html +0 -594
- data/doc/Axlsx/Title.html +0 -543
- data/doc/Axlsx/TwoCellAnchor.html +0 -973
- data/doc/Axlsx/ValAxis.html +0 -538
- data/doc/Axlsx/ValAxisData.html +0 -321
- data/doc/Axlsx/View3D.html +0 -973
- data/doc/Axlsx/Workbook.html +0 -1630
- data/doc/Axlsx/Worksheet.html +0 -2682
- data/doc/Axlsx/Xf.html +0 -1780
- data/doc/_index.html +0 -649
- data/doc/class_list.html +0 -47
- data/doc/css/common.css +0 -1
- data/doc/css/full_list.css +0 -55
- data/doc/css/style.css +0 -322
- data/doc/file.LICENSE.html +0 -91
- data/doc/file.README.html +0 -338
- data/doc/file_list.html +0 -52
- data/doc/frames.html +0 -13
- data/doc/index.html +0 -338
- data/doc/js/app.js +0 -205
- data/doc/js/full_list.js +0 -167
- data/doc/js/jquery.js +0 -16
- data/doc/method_list.html +0 -3502
- data/doc/top-level-namespace.html +0 -103
- data/lib/axlsx.rb +0 -54
- data/lib/axlsx/content_type/content_type.rb +0 -23
- data/lib/axlsx/content_type/default.rb +0 -37
- data/lib/axlsx/content_type/override.rb +0 -37
- data/lib/axlsx/doc_props/app.rb +0 -178
- data/lib/axlsx/doc_props/core.rb +0 -34
- data/lib/axlsx/drawing/axis.rb +0 -90
- data/lib/axlsx/drawing/bar_3D_chart.rb +0 -128
- data/lib/axlsx/drawing/bar_series.rb +0 -64
- data/lib/axlsx/drawing/cat_axis.rb +0 -63
- data/lib/axlsx/drawing/cat_axis_data.rb +0 -35
- data/lib/axlsx/drawing/chart.rb +0 -179
- data/lib/axlsx/drawing/drawing.rb +0 -137
- data/lib/axlsx/drawing/graphic_frame.rb +0 -52
- data/lib/axlsx/drawing/line_3D_chart.rb +0 -106
- data/lib/axlsx/drawing/line_series.rb +0 -46
- data/lib/axlsx/drawing/marker.rb +0 -61
- data/lib/axlsx/drawing/one_cell_anchor.rb +0 -89
- data/lib/axlsx/drawing/pic.rb +0 -153
- data/lib/axlsx/drawing/picture_locking.rb +0 -72
- data/lib/axlsx/drawing/pie_3D_chart.rb +0 -41
- data/lib/axlsx/drawing/pie_series.rb +0 -56
- data/lib/axlsx/drawing/scaling.rb +0 -59
- data/lib/axlsx/drawing/ser_axis.rb +0 -45
- data/lib/axlsx/drawing/series.rb +0 -71
- data/lib/axlsx/drawing/series_title.rb +0 -22
- data/lib/axlsx/drawing/title.rb +0 -61
- data/lib/axlsx/drawing/two_cell_anchor.rb +0 -76
- data/lib/axlsx/drawing/val_axis.rb +0 -34
- data/lib/axlsx/drawing/val_axis_data.rb +0 -28
- data/lib/axlsx/drawing/view_3D.rb +0 -85
- data/lib/axlsx/package.rb +0 -214
- data/lib/axlsx/rels/relationship.rb +0 -44
- data/lib/axlsx/rels/relationships.rb +0 -25
- data/lib/axlsx/stylesheet/border.rb +0 -57
- data/lib/axlsx/stylesheet/border_pr.rb +0 -68
- data/lib/axlsx/stylesheet/cell_alignment.rb +0 -105
- data/lib/axlsx/stylesheet/cell_protection.rb +0 -36
- data/lib/axlsx/stylesheet/cell_style.rb +0 -65
- data/lib/axlsx/stylesheet/color.rb +0 -69
- data/lib/axlsx/stylesheet/fill.rb +0 -32
- data/lib/axlsx/stylesheet/font.rb +0 -139
- data/lib/axlsx/stylesheet/gradient_fill.rb +0 -76
- data/lib/axlsx/stylesheet/gradient_stop.rb +0 -33
- data/lib/axlsx/stylesheet/num_fmt.rb +0 -63
- data/lib/axlsx/stylesheet/pattern_fill.rb +0 -66
- data/lib/axlsx/stylesheet/styles.rb +0 -298
- data/lib/axlsx/stylesheet/table_style.rb +0 -47
- data/lib/axlsx/stylesheet/table_style_element.rb +0 -71
- data/lib/axlsx/stylesheet/table_styles.rb +0 -39
- data/lib/axlsx/stylesheet/xf.rb +0 -138
- data/lib/axlsx/util/constants.rb +0 -216
- data/lib/axlsx/util/parser.rb +0 -43
- data/lib/axlsx/util/simple_typed_list.rb +0 -160
- data/lib/axlsx/util/validators.rb +0 -132
- data/lib/axlsx/version.rb +0 -4
- data/lib/axlsx/workbook/workbook.rb +0 -160
- data/lib/axlsx/workbook/worksheet/cell.rb +0 -340
- data/lib/axlsx/workbook/worksheet/row.rb +0 -107
- data/lib/axlsx/workbook/worksheet/worksheet.rb +0 -278
data/doc/Axlsx/ContentType.html
DELETED
@@ -1,335 +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
|
-
Class: Axlsx::ContentType
|
8
|
-
|
9
|
-
— AXLSX
|
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
|
-
relpath = '..';
|
19
|
-
if (relpath != '') relpath += '/';
|
20
|
-
</script>
|
21
|
-
|
22
|
-
<script type="text/javascript" charset="utf-8" src="../js/jquery.js"></script>
|
23
|
-
|
24
|
-
<script type="text/javascript" charset="utf-8" src="../js/app.js"></script>
|
25
|
-
|
26
|
-
|
27
|
-
</head>
|
28
|
-
<body>
|
29
|
-
<script type="text/javascript" charset="utf-8">
|
30
|
-
if (window.top.frames.main) document.body.className = 'frames';
|
31
|
-
</script>
|
32
|
-
|
33
|
-
<div id="header">
|
34
|
-
<div id="menu">
|
35
|
-
|
36
|
-
<a href="../_index.html">Index (C)</a> »
|
37
|
-
<span class='title'><span class='object_link'><a href="../Axlsx.html" title="Axlsx (module)">Axlsx</a></span></span>
|
38
|
-
»
|
39
|
-
<span class="title">ContentType</span>
|
40
|
-
|
41
|
-
|
42
|
-
<div class="noframes"><span class="title">(</span><a href="." target="_top">no frames</a><span class="title">)</span></div>
|
43
|
-
</div>
|
44
|
-
|
45
|
-
<div id="search">
|
46
|
-
|
47
|
-
<a id="class_list_link" href="#">Class List</a>
|
48
|
-
|
49
|
-
<a id="method_list_link" href="#">Method List</a>
|
50
|
-
|
51
|
-
<a id="file_list_link" href="#">File List</a>
|
52
|
-
|
53
|
-
</div>
|
54
|
-
<div class="clear"></div>
|
55
|
-
</div>
|
56
|
-
|
57
|
-
<iframe id="search_frame"></iframe>
|
58
|
-
|
59
|
-
<div id="content"><h1>Class: Axlsx::ContentType
|
60
|
-
|
61
|
-
|
62
|
-
|
63
|
-
</h1>
|
64
|
-
|
65
|
-
<dl class="box">
|
66
|
-
|
67
|
-
<dt class="r1">Inherits:</dt>
|
68
|
-
<dd class="r1">
|
69
|
-
<span class="inheritName"><span class='object_link'><a href="SimpleTypedList.html" title="Axlsx::SimpleTypedList (class)">SimpleTypedList</a></span></span>
|
70
|
-
|
71
|
-
<ul class="fullTree">
|
72
|
-
<li>Object</li>
|
73
|
-
|
74
|
-
<li class="next"><span class='object_link'><a href="SimpleTypedList.html" title="Axlsx::SimpleTypedList (class)">SimpleTypedList</a></span></li>
|
75
|
-
|
76
|
-
<li class="next">Axlsx::ContentType</li>
|
77
|
-
|
78
|
-
</ul>
|
79
|
-
<a href="#" class="inheritanceTree">show all</a>
|
80
|
-
|
81
|
-
</dd>
|
82
|
-
|
83
|
-
|
84
|
-
|
85
|
-
|
86
|
-
|
87
|
-
|
88
|
-
|
89
|
-
|
90
|
-
|
91
|
-
<dt class="r2 last">Defined in:</dt>
|
92
|
-
<dd class="r2 last">lib/axlsx/content_type/content_type.rb</dd>
|
93
|
-
|
94
|
-
</dl>
|
95
|
-
<div class="clear"></div>
|
96
|
-
|
97
|
-
<h2>Overview</h2><div class="docstring">
|
98
|
-
<div class="discussion">
|
99
|
-
<p>
|
100
|
-
ContentTypes used in the package. This is automatcially managed by the
|
101
|
-
package package.
|
102
|
-
</p>
|
103
|
-
|
104
|
-
|
105
|
-
</div>
|
106
|
-
</div>
|
107
|
-
<div class="tags">
|
108
|
-
|
109
|
-
|
110
|
-
</div>
|
111
|
-
|
112
|
-
|
113
|
-
|
114
|
-
|
115
|
-
|
116
|
-
|
117
|
-
|
118
|
-
|
119
|
-
|
120
|
-
|
121
|
-
<h2>Instance Attribute Summary</h2>
|
122
|
-
|
123
|
-
<h3 class="inherited">Attributes inherited from <span class='object_link'><a href="SimpleTypedList.html" title="Axlsx::SimpleTypedList (class)">SimpleTypedList</a></span></h3>
|
124
|
-
<p class="inherited"><span class='object_link'><a href="SimpleTypedList.html#allowed_types-instance_method" title="Axlsx::SimpleTypedList#allowed_types (method)">allowed_types</a></span>, <span class='object_link'><a href="SimpleTypedList.html#locked_at-instance_method" title="Axlsx::SimpleTypedList#locked_at (method)">locked_at</a></span>, <span class='object_link'><a href="SimpleTypedList.html#serialize_as-instance_method" title="Axlsx::SimpleTypedList#serialize_as (method)">serialize_as</a></span></p>
|
125
|
-
|
126
|
-
|
127
|
-
|
128
|
-
<h2>
|
129
|
-
Instance Method Summary
|
130
|
-
<small>(<a href="#" class="summary_toggle">collapse</a>)</small>
|
131
|
-
</h2>
|
132
|
-
|
133
|
-
<ul class="summary">
|
134
|
-
|
135
|
-
<li class="public ">
|
136
|
-
<span class="summary_signature">
|
137
|
-
|
138
|
-
<a href="#initialize-instance_method" title="#initialize (instance method)">- (ContentType) <strong>initialize</strong> </a>
|
139
|
-
|
140
|
-
|
141
|
-
|
142
|
-
</span>
|
143
|
-
|
144
|
-
<span class="note title constructor">constructor</span>
|
145
|
-
|
146
|
-
|
147
|
-
|
148
|
-
|
149
|
-
|
150
|
-
|
151
|
-
|
152
|
-
|
153
|
-
<span class="summary_desc"><div class='inline'><p>
|
154
|
-
A new instance of ContentType.
|
155
|
-
</p>
|
156
|
-
</div></span>
|
157
|
-
|
158
|
-
</li>
|
159
|
-
|
160
|
-
|
161
|
-
<li class="public ">
|
162
|
-
<span class="summary_signature">
|
163
|
-
|
164
|
-
<a href="#to_xml-instance_method" title="#to_xml (instance method)">- (String) <strong>to_xml</strong> </a>
|
165
|
-
|
166
|
-
|
167
|
-
|
168
|
-
</span>
|
169
|
-
|
170
|
-
|
171
|
-
|
172
|
-
|
173
|
-
|
174
|
-
|
175
|
-
|
176
|
-
|
177
|
-
<span class="summary_desc"><div class='inline'><p>
|
178
|
-
Generates the xml document for [Content_Types].xml.
|
179
|
-
</p>
|
180
|
-
</div></span>
|
181
|
-
|
182
|
-
</li>
|
183
|
-
|
184
|
-
|
185
|
-
</ul>
|
186
|
-
|
187
|
-
|
188
|
-
|
189
|
-
|
190
|
-
|
191
|
-
|
192
|
-
|
193
|
-
<div id="constructor_details" class="method_details_list">
|
194
|
-
<h2>Constructor Details</h2>
|
195
|
-
|
196
|
-
<div class="method_details first">
|
197
|
-
<p class="signature first" id="initialize-instance_method">
|
198
|
-
|
199
|
-
- (<tt><span class='object_link'><a href="" title="Axlsx::ContentType (class)">ContentType</a></span></tt>) <strong>initialize</strong>
|
200
|
-
|
201
|
-
|
202
|
-
|
203
|
-
</p><div class="docstring">
|
204
|
-
<div class="discussion">
|
205
|
-
<p>
|
206
|
-
A new instance of ContentType
|
207
|
-
</p>
|
208
|
-
|
209
|
-
|
210
|
-
</div>
|
211
|
-
</div>
|
212
|
-
<div class="tags">
|
213
|
-
|
214
|
-
|
215
|
-
</div><table class="source_code">
|
216
|
-
<tr>
|
217
|
-
<td>
|
218
|
-
<pre class="lines">
|
219
|
-
|
220
|
-
|
221
|
-
8
|
222
|
-
9
|
223
|
-
10</pre>
|
224
|
-
</td>
|
225
|
-
<td>
|
226
|
-
<pre class="code"><span class="info file"># File 'lib/axlsx/content_type/content_type.rb', line 8</span>
|
227
|
-
|
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>
|
232
|
-
</td>
|
233
|
-
</tr>
|
234
|
-
</table>
|
235
|
-
</div>
|
236
|
-
|
237
|
-
</div>
|
238
|
-
<div id="method_missing_details" class="method_details_list">
|
239
|
-
<h2>Dynamic Method Handling</h2>
|
240
|
-
<p class="notice super">
|
241
|
-
This class handles dynamic methods through the <tt>method_missing</tt> method
|
242
|
-
|
243
|
-
in the class <span class='object_link'><a href="SimpleTypedList.html#method_missing-instance_method" title="Axlsx::SimpleTypedList#method_missing (method)">Axlsx::SimpleTypedList</a></span>
|
244
|
-
|
245
|
-
</p>
|
246
|
-
|
247
|
-
</div>
|
248
|
-
|
249
|
-
|
250
|
-
<div id="instance_method_details" class="method_details_list">
|
251
|
-
<h2>Instance Method Details</h2>
|
252
|
-
|
253
|
-
|
254
|
-
<div class="method_details first">
|
255
|
-
<p class="signature first" id="to_xml-instance_method">
|
256
|
-
|
257
|
-
- (<tt>String</tt>) <strong>to_xml</strong>
|
258
|
-
|
259
|
-
|
260
|
-
|
261
|
-
</p><div class="docstring">
|
262
|
-
<div class="discussion">
|
263
|
-
<p>
|
264
|
-
Generates the xml document for [Content_Types].xml
|
265
|
-
</p>
|
266
|
-
|
267
|
-
|
268
|
-
</div>
|
269
|
-
</div>
|
270
|
-
<div class="tags">
|
271
|
-
|
272
|
-
<h3>Returns:</h3>
|
273
|
-
<ul class="return">
|
274
|
-
|
275
|
-
<li>
|
276
|
-
|
277
|
-
|
278
|
-
<span class='type'>(<tt>String</tt>)</span>
|
279
|
-
|
280
|
-
|
281
|
-
|
282
|
-
—
|
283
|
-
<div class='inline'><p>
|
284
|
-
The document as a string.
|
285
|
-
</p>
|
286
|
-
</div>
|
287
|
-
|
288
|
-
</li>
|
289
|
-
|
290
|
-
</ul>
|
291
|
-
|
292
|
-
</div><table class="source_code">
|
293
|
-
<tr>
|
294
|
-
<td>
|
295
|
-
<pre class="lines">
|
296
|
-
|
297
|
-
|
298
|
-
14
|
299
|
-
15
|
300
|
-
16
|
301
|
-
17
|
302
|
-
18
|
303
|
-
19
|
304
|
-
20
|
305
|
-
21</pre>
|
306
|
-
</td>
|
307
|
-
<td>
|
308
|
-
<pre class="code"><span class="info file"># File 'lib/axlsx/content_type/content_type.rb', line 14</span>
|
309
|
-
|
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>
|
319
|
-
</td>
|
320
|
-
</tr>
|
321
|
-
</table>
|
322
|
-
</div>
|
323
|
-
|
324
|
-
</div>
|
325
|
-
|
326
|
-
</div>
|
327
|
-
|
328
|
-
<div id="footer">
|
329
|
-
Generated on Mon Dec 5 14:21:07 2011 by
|
330
|
-
<a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
|
331
|
-
0.7.3 (ruby-1.8.7).
|
332
|
-
</div>
|
333
|
-
|
334
|
-
</body>
|
335
|
-
</html>
|
data/doc/Axlsx/Core.html
DELETED
@@ -1,465 +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
|
-
Class: Axlsx::Core
|
8
|
-
|
9
|
-
— AXLSX
|
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
|
-
relpath = '..';
|
19
|
-
if (relpath != '') relpath += '/';
|
20
|
-
</script>
|
21
|
-
|
22
|
-
<script type="text/javascript" charset="utf-8" src="../js/jquery.js"></script>
|
23
|
-
|
24
|
-
<script type="text/javascript" charset="utf-8" src="../js/app.js"></script>
|
25
|
-
|
26
|
-
|
27
|
-
</head>
|
28
|
-
<body>
|
29
|
-
<script type="text/javascript" charset="utf-8">
|
30
|
-
if (window.top.frames.main) document.body.className = 'frames';
|
31
|
-
</script>
|
32
|
-
|
33
|
-
<div id="header">
|
34
|
-
<div id="menu">
|
35
|
-
|
36
|
-
<a href="../_index.html">Index (C)</a> »
|
37
|
-
<span class='title'><span class='object_link'><a href="../Axlsx.html" title="Axlsx (module)">Axlsx</a></span></span>
|
38
|
-
»
|
39
|
-
<span class="title">Core</span>
|
40
|
-
|
41
|
-
|
42
|
-
<div class="noframes"><span class="title">(</span><a href="." target="_top">no frames</a><span class="title">)</span></div>
|
43
|
-
</div>
|
44
|
-
|
45
|
-
<div id="search">
|
46
|
-
|
47
|
-
<a id="class_list_link" href="#">Class List</a>
|
48
|
-
|
49
|
-
<a id="method_list_link" href="#">Method List</a>
|
50
|
-
|
51
|
-
<a id="file_list_link" href="#">File List</a>
|
52
|
-
|
53
|
-
</div>
|
54
|
-
<div class="clear"></div>
|
55
|
-
</div>
|
56
|
-
|
57
|
-
<iframe id="search_frame"></iframe>
|
58
|
-
|
59
|
-
<div id="content"><h1>Class: Axlsx::Core
|
60
|
-
|
61
|
-
|
62
|
-
|
63
|
-
</h1>
|
64
|
-
|
65
|
-
<dl class="box">
|
66
|
-
|
67
|
-
<dt class="r1">Inherits:</dt>
|
68
|
-
<dd class="r1">
|
69
|
-
<span class="inheritName">Object</span>
|
70
|
-
|
71
|
-
<ul class="fullTree">
|
72
|
-
<li>Object</li>
|
73
|
-
|
74
|
-
<li class="next">Axlsx::Core</li>
|
75
|
-
|
76
|
-
</ul>
|
77
|
-
<a href="#" class="inheritanceTree">show all</a>
|
78
|
-
|
79
|
-
</dd>
|
80
|
-
|
81
|
-
|
82
|
-
|
83
|
-
|
84
|
-
|
85
|
-
|
86
|
-
|
87
|
-
|
88
|
-
|
89
|
-
<dt class="r2 last">Defined in:</dt>
|
90
|
-
<dd class="r2 last">lib/axlsx/doc_props/core.rb</dd>
|
91
|
-
|
92
|
-
</dl>
|
93
|
-
<div class="clear"></div>
|
94
|
-
|
95
|
-
<h2>Overview</h2><div class="docstring">
|
96
|
-
<div class="discussion">
|
97
|
-
|
98
|
-
<div class="note notetag">
|
99
|
-
<strong>Note:</strong>
|
100
|
-
<div class='inline'><p>
|
101
|
-
Packages manage their own core object.
|
102
|
-
</p>
|
103
|
-
</div>
|
104
|
-
</div>
|
105
|
-
|
106
|
-
<p>
|
107
|
-
The core object for the package.
|
108
|
-
</p>
|
109
|
-
|
110
|
-
|
111
|
-
</div>
|
112
|
-
</div>
|
113
|
-
<div class="tags">
|
114
|
-
|
115
|
-
|
116
|
-
<h3>See Also:</h3>
|
117
|
-
<ul class="see">
|
118
|
-
|
119
|
-
<li>Package#core</li>
|
120
|
-
|
121
|
-
</ul>
|
122
|
-
|
123
|
-
</div>
|
124
|
-
|
125
|
-
<h2>Instance Attribute Summary <small>(<a href="#" class="summary_toggle">collapse</a>)</small></h2>
|
126
|
-
<ul class="summary">
|
127
|
-
|
128
|
-
<li class="public ">
|
129
|
-
<span class="summary_signature">
|
130
|
-
|
131
|
-
<a href="#creator-instance_method" title="#creator (instance method)">- (String) <strong>creator</strong> </a>
|
132
|
-
|
133
|
-
|
134
|
-
|
135
|
-
</span>
|
136
|
-
|
137
|
-
|
138
|
-
|
139
|
-
|
140
|
-
|
141
|
-
|
142
|
-
|
143
|
-
|
144
|
-
|
145
|
-
|
146
|
-
|
147
|
-
<span class="summary_desc"><div class='inline'><p>
|
148
|
-
The author of the document.
|
149
|
-
</p>
|
150
|
-
</div></span>
|
151
|
-
|
152
|
-
</li>
|
153
|
-
|
154
|
-
|
155
|
-
</ul>
|
156
|
-
|
157
|
-
|
158
|
-
|
159
|
-
|
160
|
-
|
161
|
-
<h2>
|
162
|
-
Instance Method Summary
|
163
|
-
<small>(<a href="#" class="summary_toggle">collapse</a>)</small>
|
164
|
-
</h2>
|
165
|
-
|
166
|
-
<ul class="summary">
|
167
|
-
|
168
|
-
<li class="public ">
|
169
|
-
<span class="summary_signature">
|
170
|
-
|
171
|
-
<a href="#initialize-instance_method" title="#initialize (instance method)">- (Core) <strong>initialize</strong>(options = {}) </a>
|
172
|
-
|
173
|
-
|
174
|
-
|
175
|
-
</span>
|
176
|
-
|
177
|
-
<span class="note title constructor">constructor</span>
|
178
|
-
|
179
|
-
|
180
|
-
|
181
|
-
|
182
|
-
|
183
|
-
|
184
|
-
|
185
|
-
|
186
|
-
<span class="summary_desc"><div class='inline'><p>
|
187
|
-
Creates a new Core object.
|
188
|
-
</p>
|
189
|
-
</div></span>
|
190
|
-
|
191
|
-
</li>
|
192
|
-
|
193
|
-
|
194
|
-
<li class="public ">
|
195
|
-
<span class="summary_signature">
|
196
|
-
|
197
|
-
<a href="#to_xml-instance_method" title="#to_xml (instance method)">- (String) <strong>to_xml</strong> </a>
|
198
|
-
|
199
|
-
|
200
|
-
|
201
|
-
</span>
|
202
|
-
|
203
|
-
|
204
|
-
|
205
|
-
|
206
|
-
|
207
|
-
|
208
|
-
|
209
|
-
|
210
|
-
<span class="summary_desc"><div class='inline'><p>
|
211
|
-
Serializes the core object.
|
212
|
-
</p>
|
213
|
-
</div></span>
|
214
|
-
|
215
|
-
</li>
|
216
|
-
|
217
|
-
|
218
|
-
</ul>
|
219
|
-
|
220
|
-
|
221
|
-
<div id="constructor_details" class="method_details_list">
|
222
|
-
<h2>Constructor Details</h2>
|
223
|
-
|
224
|
-
<div class="method_details first">
|
225
|
-
<p class="signature first" id="initialize-instance_method">
|
226
|
-
|
227
|
-
- (<tt><span class='object_link'><a href="" title="Axlsx::Core (class)">Core</a></span></tt>) <strong>initialize</strong>(options = {})
|
228
|
-
|
229
|
-
|
230
|
-
|
231
|
-
</p><div class="docstring">
|
232
|
-
<div class="discussion">
|
233
|
-
<p>
|
234
|
-
Creates a new Core object.
|
235
|
-
</p>
|
236
|
-
|
237
|
-
|
238
|
-
</div>
|
239
|
-
</div>
|
240
|
-
<div class="tags">
|
241
|
-
<h3>Parameters:</h3>
|
242
|
-
<ul class="param">
|
243
|
-
|
244
|
-
<li>
|
245
|
-
|
246
|
-
<span class='name'>options</span>
|
247
|
-
|
248
|
-
|
249
|
-
<span class='type'>(<tt>Hash</tt>)</span>
|
250
|
-
|
251
|
-
|
252
|
-
<em class="default">(defaults to: <tt>{}</tt>)</em>
|
253
|
-
|
254
|
-
|
255
|
-
—
|
256
|
-
<div class='inline'><p>
|
257
|
-
a customizable set of options
|
258
|
-
</p>
|
259
|
-
</div>
|
260
|
-
|
261
|
-
</li>
|
262
|
-
|
263
|
-
</ul>
|
264
|
-
|
265
|
-
|
266
|
-
|
267
|
-
|
268
|
-
<h3>Options Hash (<tt>options</tt>):</h3>
|
269
|
-
<ul class="option">
|
270
|
-
|
271
|
-
<li>
|
272
|
-
<span class="name">creator</span>
|
273
|
-
<span class="type">(<tt>String</tt>)</span>
|
274
|
-
<span class="default">
|
275
|
-
|
276
|
-
</span>
|
277
|
-
|
278
|
-
</li>
|
279
|
-
|
280
|
-
</ul>
|
281
|
-
|
282
|
-
|
283
|
-
|
284
|
-
</div><table class="source_code">
|
285
|
-
<tr>
|
286
|
-
<td>
|
287
|
-
<pre class="lines">
|
288
|
-
|
289
|
-
|
290
|
-
12
|
291
|
-
13
|
292
|
-
14</pre>
|
293
|
-
</td>
|
294
|
-
<td>
|
295
|
-
<pre class="code"><span class="info file"># File 'lib/axlsx/doc_props/core.rb', line 12</span>
|
296
|
-
|
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>
|
301
|
-
</td>
|
302
|
-
</tr>
|
303
|
-
</table>
|
304
|
-
</div>
|
305
|
-
|
306
|
-
</div>
|
307
|
-
|
308
|
-
<div id="instance_attr_details" class="attr_details">
|
309
|
-
<h2>Instance Attribute Details</h2>
|
310
|
-
|
311
|
-
|
312
|
-
<span id="creator=-instance_method"></span>
|
313
|
-
<span id="creator-instance_method"></span>
|
314
|
-
<div class="method_details first">
|
315
|
-
<p class="signature first" id="creator-instance_method">
|
316
|
-
|
317
|
-
- (<tt>String</tt>) <strong>creator</strong>
|
318
|
-
|
319
|
-
|
320
|
-
|
321
|
-
</p><div class="docstring">
|
322
|
-
<div class="discussion">
|
323
|
-
<p>
|
324
|
-
The author of the document. By default this is ‘axlsx’
|
325
|
-
</p>
|
326
|
-
|
327
|
-
|
328
|
-
</div>
|
329
|
-
</div>
|
330
|
-
<div class="tags">
|
331
|
-
|
332
|
-
<h3>Returns:</h3>
|
333
|
-
<ul class="return">
|
334
|
-
|
335
|
-
<li>
|
336
|
-
|
337
|
-
|
338
|
-
<span class='type'>(<tt>String</tt>)</span>
|
339
|
-
|
340
|
-
|
341
|
-
|
342
|
-
</li>
|
343
|
-
|
344
|
-
</ul>
|
345
|
-
|
346
|
-
</div><table class="source_code">
|
347
|
-
<tr>
|
348
|
-
<td>
|
349
|
-
<pre class="lines">
|
350
|
-
|
351
|
-
|
352
|
-
8
|
353
|
-
9
|
354
|
-
10</pre>
|
355
|
-
</td>
|
356
|
-
<td>
|
357
|
-
<pre class="code"><span class="info file"># File 'lib/axlsx/doc_props/core.rb', line 8</span>
|
358
|
-
|
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>
|
363
|
-
</td>
|
364
|
-
</tr>
|
365
|
-
</table>
|
366
|
-
</div>
|
367
|
-
|
368
|
-
</div>
|
369
|
-
|
370
|
-
|
371
|
-
<div id="instance_method_details" class="method_details_list">
|
372
|
-
<h2>Instance Method Details</h2>
|
373
|
-
|
374
|
-
|
375
|
-
<div class="method_details first">
|
376
|
-
<p class="signature first" id="to_xml-instance_method">
|
377
|
-
|
378
|
-
- (<tt>String</tt>) <strong>to_xml</strong>
|
379
|
-
|
380
|
-
|
381
|
-
|
382
|
-
</p><div class="docstring">
|
383
|
-
<div class="discussion">
|
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>
|
388
|
-
|
389
|
-
|
390
|
-
</div>
|
391
|
-
</div>
|
392
|
-
<div class="tags">
|
393
|
-
|
394
|
-
<h3>Returns:</h3>
|
395
|
-
<ul class="return">
|
396
|
-
|
397
|
-
<li>
|
398
|
-
|
399
|
-
|
400
|
-
<span class='type'>(<tt>String</tt>)</span>
|
401
|
-
|
402
|
-
|
403
|
-
|
404
|
-
</li>
|
405
|
-
|
406
|
-
</ul>
|
407
|
-
|
408
|
-
</div><table class="source_code">
|
409
|
-
<tr>
|
410
|
-
<td>
|
411
|
-
<pre class="lines">
|
412
|
-
|
413
|
-
|
414
|
-
18
|
415
|
-
19
|
416
|
-
20
|
417
|
-
21
|
418
|
-
22
|
419
|
-
23
|
420
|
-
24
|
421
|
-
25
|
422
|
-
26
|
423
|
-
27
|
424
|
-
28
|
425
|
-
29
|
426
|
-
30
|
427
|
-
31
|
428
|
-
32</pre>
|
429
|
-
</td>
|
430
|
-
<td>
|
431
|
-
<pre class="code"><span class="info file"># File 'lib/axlsx/doc_props/core.rb', line 18</span>
|
432
|
-
|
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>
|
449
|
-
</td>
|
450
|
-
</tr>
|
451
|
-
</table>
|
452
|
-
</div>
|
453
|
-
|
454
|
-
</div>
|
455
|
-
|
456
|
-
</div>
|
457
|
-
|
458
|
-
<div id="footer">
|
459
|
-
Generated on Mon Dec 5 14:21:11 2011 by
|
460
|
-
<a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
|
461
|
-
0.7.3 (ruby-1.8.7).
|
462
|
-
</div>
|
463
|
-
|
464
|
-
</body>
|
465
|
-
</html>
|