axlsx 1.0.11 → 1.0.12

Sign up to get free protection for your applications and to get access to all the features.
Files changed (145) hide show
  1. data/.yardopts +4 -0
  2. data/README.md +7 -4
  3. data/examples/example.rb +6 -4
  4. data/examples/example.rb~ +112 -0
  5. data/lib/schema/dc.xsd~ +118 -0
  6. data/lib/schema/dcterms.xsd~ +331 -0
  7. data/lib/schema/opc-coreProperties.xsd~ +50 -0
  8. metadata +43 -193
  9. data/Gemfile +0 -3
  10. data/Gemfile.lock +0 -29
  11. data/axlsx.gemspec +0 -42
  12. data/doc/Axlsx.html +0 -2718
  13. data/doc/Axlsx/App.html +0 -2640
  14. data/doc/Axlsx/Axis.html +0 -1075
  15. data/doc/Axlsx/Bar3DChart.html +0 -1182
  16. data/doc/Axlsx/BarSeries.html +0 -711
  17. data/doc/Axlsx/Border.html +0 -779
  18. data/doc/Axlsx/BorderPr.html +0 -709
  19. data/doc/Axlsx/CatAxis.html +0 -769
  20. data/doc/Axlsx/CatAxisData.html +0 -397
  21. data/doc/Axlsx/Cell.html +0 -3187
  22. data/doc/Axlsx/CellAlignment.html +0 -1247
  23. data/doc/Axlsx/CellProtection.html +0 -565
  24. data/doc/Axlsx/CellStyle.html +0 -949
  25. data/doc/Axlsx/Chart.html +0 -1692
  26. data/doc/Axlsx/Color.html +0 -670
  27. data/doc/Axlsx/ContentType.html +0 -335
  28. data/doc/Axlsx/Core.html +0 -465
  29. data/doc/Axlsx/DataTypeValidator.html +0 -324
  30. data/doc/Axlsx/Default.html +0 -565
  31. data/doc/Axlsx/Drawing.html +0 -1264
  32. data/doc/Axlsx/Fill.html +0 -460
  33. data/doc/Axlsx/Font.html +0 -1554
  34. data/doc/Axlsx/GradientFill.html +0 -1026
  35. data/doc/Axlsx/GradientStop.html +0 -526
  36. data/doc/Axlsx/GraphicFrame.html +0 -642
  37. data/doc/Axlsx/Line3DChart.html +0 -1004
  38. data/doc/Axlsx/LineSeries.html +0 -605
  39. data/doc/Axlsx/Marker.html +0 -857
  40. data/doc/Axlsx/NumFmt.html +0 -562
  41. data/doc/Axlsx/OneCellAnchor.html +0 -982
  42. data/doc/Axlsx/Override.html +0 -552
  43. data/doc/Axlsx/Package.html +0 -825
  44. data/doc/Axlsx/Parser.html +0 -549
  45. data/doc/Axlsx/PatternFill.html +0 -681
  46. data/doc/Axlsx/Pic.html +0 -1701
  47. data/doc/Axlsx/PictureLocking.html +0 -1159
  48. data/doc/Axlsx/Pie3DChart.html +0 -489
  49. data/doc/Axlsx/PieSeries.html +0 -710
  50. data/doc/Axlsx/RegexValidator.html +0 -268
  51. data/doc/Axlsx/Relationship.html +0 -554
  52. data/doc/Axlsx/Relationships.html +0 -338
  53. data/doc/Axlsx/RestrictionValidator.html +0 -300
  54. data/doc/Axlsx/Row.html +0 -916
  55. data/doc/Axlsx/Scaling.html +0 -742
  56. data/doc/Axlsx/SerAxis.html +0 -641
  57. data/doc/Axlsx/Series.html +0 -813
  58. data/doc/Axlsx/SeriesTitle.html +0 -290
  59. data/doc/Axlsx/Styles.html +0 -1754
  60. data/doc/Axlsx/TableStyle.html +0 -705
  61. data/doc/Axlsx/TableStyleElement.html +0 -677
  62. data/doc/Axlsx/TableStyles.html +0 -594
  63. data/doc/Axlsx/Title.html +0 -543
  64. data/doc/Axlsx/TwoCellAnchor.html +0 -973
  65. data/doc/Axlsx/ValAxis.html +0 -538
  66. data/doc/Axlsx/ValAxisData.html +0 -321
  67. data/doc/Axlsx/View3D.html +0 -973
  68. data/doc/Axlsx/Workbook.html +0 -1630
  69. data/doc/Axlsx/Worksheet.html +0 -2682
  70. data/doc/Axlsx/Xf.html +0 -1780
  71. data/doc/_index.html +0 -649
  72. data/doc/class_list.html +0 -47
  73. data/doc/css/common.css +0 -1
  74. data/doc/css/full_list.css +0 -55
  75. data/doc/css/style.css +0 -322
  76. data/doc/file.LICENSE.html +0 -91
  77. data/doc/file.README.html +0 -338
  78. data/doc/file_list.html +0 -52
  79. data/doc/frames.html +0 -13
  80. data/doc/index.html +0 -338
  81. data/doc/js/app.js +0 -205
  82. data/doc/js/full_list.js +0 -167
  83. data/doc/js/jquery.js +0 -16
  84. data/doc/method_list.html +0 -3502
  85. data/doc/top-level-namespace.html +0 -103
  86. data/lib/axlsx.rb +0 -54
  87. data/lib/axlsx/content_type/content_type.rb +0 -23
  88. data/lib/axlsx/content_type/default.rb +0 -37
  89. data/lib/axlsx/content_type/override.rb +0 -37
  90. data/lib/axlsx/doc_props/app.rb +0 -178
  91. data/lib/axlsx/doc_props/core.rb +0 -34
  92. data/lib/axlsx/drawing/axis.rb +0 -90
  93. data/lib/axlsx/drawing/bar_3D_chart.rb +0 -128
  94. data/lib/axlsx/drawing/bar_series.rb +0 -64
  95. data/lib/axlsx/drawing/cat_axis.rb +0 -63
  96. data/lib/axlsx/drawing/cat_axis_data.rb +0 -35
  97. data/lib/axlsx/drawing/chart.rb +0 -179
  98. data/lib/axlsx/drawing/drawing.rb +0 -137
  99. data/lib/axlsx/drawing/graphic_frame.rb +0 -52
  100. data/lib/axlsx/drawing/line_3D_chart.rb +0 -106
  101. data/lib/axlsx/drawing/line_series.rb +0 -46
  102. data/lib/axlsx/drawing/marker.rb +0 -61
  103. data/lib/axlsx/drawing/one_cell_anchor.rb +0 -89
  104. data/lib/axlsx/drawing/pic.rb +0 -153
  105. data/lib/axlsx/drawing/picture_locking.rb +0 -72
  106. data/lib/axlsx/drawing/pie_3D_chart.rb +0 -41
  107. data/lib/axlsx/drawing/pie_series.rb +0 -56
  108. data/lib/axlsx/drawing/scaling.rb +0 -59
  109. data/lib/axlsx/drawing/ser_axis.rb +0 -45
  110. data/lib/axlsx/drawing/series.rb +0 -71
  111. data/lib/axlsx/drawing/series_title.rb +0 -22
  112. data/lib/axlsx/drawing/title.rb +0 -61
  113. data/lib/axlsx/drawing/two_cell_anchor.rb +0 -76
  114. data/lib/axlsx/drawing/val_axis.rb +0 -34
  115. data/lib/axlsx/drawing/val_axis_data.rb +0 -28
  116. data/lib/axlsx/drawing/view_3D.rb +0 -85
  117. data/lib/axlsx/package.rb +0 -214
  118. data/lib/axlsx/rels/relationship.rb +0 -44
  119. data/lib/axlsx/rels/relationships.rb +0 -25
  120. data/lib/axlsx/stylesheet/border.rb +0 -57
  121. data/lib/axlsx/stylesheet/border_pr.rb +0 -68
  122. data/lib/axlsx/stylesheet/cell_alignment.rb +0 -105
  123. data/lib/axlsx/stylesheet/cell_protection.rb +0 -36
  124. data/lib/axlsx/stylesheet/cell_style.rb +0 -65
  125. data/lib/axlsx/stylesheet/color.rb +0 -69
  126. data/lib/axlsx/stylesheet/fill.rb +0 -32
  127. data/lib/axlsx/stylesheet/font.rb +0 -139
  128. data/lib/axlsx/stylesheet/gradient_fill.rb +0 -76
  129. data/lib/axlsx/stylesheet/gradient_stop.rb +0 -33
  130. data/lib/axlsx/stylesheet/num_fmt.rb +0 -63
  131. data/lib/axlsx/stylesheet/pattern_fill.rb +0 -66
  132. data/lib/axlsx/stylesheet/styles.rb +0 -298
  133. data/lib/axlsx/stylesheet/table_style.rb +0 -47
  134. data/lib/axlsx/stylesheet/table_style_element.rb +0 -71
  135. data/lib/axlsx/stylesheet/table_styles.rb +0 -39
  136. data/lib/axlsx/stylesheet/xf.rb +0 -138
  137. data/lib/axlsx/util/constants.rb +0 -216
  138. data/lib/axlsx/util/parser.rb +0 -43
  139. data/lib/axlsx/util/simple_typed_list.rb +0 -160
  140. data/lib/axlsx/util/validators.rb +0 -132
  141. data/lib/axlsx/version.rb +0 -4
  142. data/lib/axlsx/workbook/workbook.rb +0 -160
  143. data/lib/axlsx/workbook/worksheet/cell.rb +0 -340
  144. data/lib/axlsx/workbook/worksheet/row.rb +0 -107
  145. data/lib/axlsx/workbook/worksheet/worksheet.rb +0 -278
@@ -1,268 +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::RegexValidator
8
-
9
- &mdash; 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 (R)</a> &raquo;
37
- <span class='title'><span class='object_link'><a href="../Axlsx.html" title="Axlsx (module)">Axlsx</a></span></span>
38
- &raquo;
39
- <span class="title">RegexValidator</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::RegexValidator
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::RegexValidator</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/util/validators.rb</dd>
91
-
92
- </dl>
93
- <div class="clear"></div>
94
-
95
- <h2>Overview</h2><div class="docstring">
96
- <div class="discussion">
97
- <p>
98
- Validates the value against the regular expression provided.
99
- </p>
100
-
101
-
102
- </div>
103
- </div>
104
- <div class="tags">
105
-
106
-
107
- </div>
108
-
109
-
110
-
111
-
112
-
113
- <h2>
114
- Class Method Summary
115
- <small>(<a href="#" class="summary_toggle">collapse</a>)</small>
116
- </h2>
117
-
118
- <ul class="summary">
119
-
120
- <li class="public ">
121
- <span class="summary_signature">
122
-
123
- <a href="#validate-class_method" title="validate (class method)">+ (Object) <strong>validate</strong>(name, regex, v) </a>
124
-
125
-
126
-
127
- </span>
128
-
129
-
130
-
131
-
132
-
133
-
134
-
135
-
136
- <span class="summary_desc"><div class='inline'></div></span>
137
-
138
- </li>
139
-
140
-
141
- </ul>
142
-
143
-
144
-
145
-
146
- <div id="class_method_details" class="method_details_list">
147
- <h2>Class Method Details</h2>
148
-
149
-
150
- <div class="method_details first">
151
- <p class="signature first" id="validate-class_method">
152
-
153
- + (<tt>Object</tt>) <strong>validate</strong>(name, regex, v)
154
-
155
-
156
-
157
- </p><div class="docstring">
158
- <div class="discussion">
159
-
160
-
161
- </div>
162
- </div>
163
- <div class="tags">
164
- <h3>Parameters:</h3>
165
- <ul class="param">
166
-
167
- <li>
168
-
169
- <span class='name'>name</span>
170
-
171
-
172
- <span class='type'>(<tt>String</tt>)</span>
173
-
174
-
175
-
176
- &mdash;
177
- <div class='inline'><p>
178
- The name of what is being validated. This is included in the output when
179
- the value is invalid
180
- </p>
181
- </div>
182
-
183
- </li>
184
-
185
- <li>
186
-
187
- <span class='name'>regex</span>
188
-
189
-
190
- <span class='type'>(<tt>Regexp</tt>)</span>
191
-
192
-
193
-
194
- &mdash;
195
- <div class='inline'><p>
196
- The regular expression to evaluate
197
- </p>
198
- </div>
199
-
200
- </li>
201
-
202
- <li>
203
-
204
- <span class='name'>v</span>
205
-
206
-
207
- <span class='type'>(<tt>Any</tt>)</span>
208
-
209
-
210
-
211
- &mdash;
212
- <div class='inline'><p>
213
- The value to validate.
214
- </p>
215
- </div>
216
-
217
- </li>
218
-
219
- </ul>
220
-
221
- <h3>Raises:</h3>
222
- <ul class="raise">
223
-
224
- <li>
225
-
226
-
227
- <span class='type'>(<tt>ArgumentError</tt>)</span>
228
-
229
-
230
-
231
- </li>
232
-
233
- </ul>
234
-
235
- </div><table class="source_code">
236
- <tr>
237
- <td>
238
- <pre class="lines">
239
-
240
-
241
- 21
242
- 22
243
- 23</pre>
244
- </td>
245
- <td>
246
- <pre class="code"><span class="info file"># File 'lib/axlsx/util/validators.rb', line 21</span>
247
-
248
- <span class='def def kw'>def</span> <span class='self self kw'>self</span><span class='dot token'>.</span><span class='validate identifier id'>validate</span><span class='lparen token'>(</span><span class='name identifier id'>name</span><span class='comma token'>,</span> <span class='regex identifier id'>regex</span><span class='comma token'>,</span> <span class='v identifier id'>v</span><span class='rparen token'>)</span>
249
- <span class='raise identifier id'>raise</span> <span class='ArgumentError constant id'>ArgumentError</span><span class='comma token'>,</span> <span class='lparen token'>(</span><span class='ERR_REGEX constant id'>ERR_REGEX</span> <span class='mod op'>%</span> <span class='lbrack token'>[</span><span class='v identifier id'>v</span><span class='dot token'>.</span><span class='inspect identifier id'>inspect</span><span class='comma token'>,</span> <span class='regex identifier id'>regex</span><span class='dot token'>.</span><span class='to_s identifier id'>to_s</span><span class='rbrack token'>]</span><span class='rparen token'>)</span> <span class='unless unless_mod kw'>unless</span> <span class='lparen token'>(</span><span class='v identifier id'>v</span><span class='dot token'>.</span><span class='respond_to? fid id'>respond_to?</span><span class='lparen token'>(</span><span class='symbol val'>:=~</span><span class='rparen token'>)</span> <span class='andop op'>&amp;&amp;</span> <span class='v identifier id'>v</span> <span class='match op'>=~</span> <span class='regex identifier id'>regex</span><span class='rparen token'>)</span>
250
- <span class='end end kw'>end</span>
251
- </pre>
252
- </td>
253
- </tr>
254
- </table>
255
- </div>
256
-
257
- </div>
258
-
259
- </div>
260
-
261
- <div id="footer">
262
- Generated on Mon Dec 5 14:21:07 2011 by
263
- <a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
264
- 0.7.3 (ruby-1.8.7).
265
- </div>
266
-
267
- </body>
268
- </html>
@@ -1,554 +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::Relationship
8
-
9
- &mdash; 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 (R)</a> &raquo;
37
- <span class='title'><span class='object_link'><a href="../Axlsx.html" title="Axlsx (module)">Axlsx</a></span></span>
38
- &raquo;
39
- <span class="title">Relationship</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::Relationship
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::Relationship</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/rels/relationship.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 automatcially manage relationships.
102
- </p>
103
- </div>
104
- </div>
105
-
106
- <p>
107
- A relationship defines a reference between package parts.
108
- </p>
109
-
110
-
111
- </div>
112
- </div>
113
- <div class="tags">
114
-
115
-
116
- </div>
117
-
118
- <h2>Instance Attribute Summary <small>(<a href="#" class="summary_toggle">collapse</a>)</small></h2>
119
- <ul class="summary">
120
-
121
- <li class="public ">
122
- <span class="summary_signature">
123
-
124
- <a href="#Target-instance_method" title="#Target (instance method)">- (String) <strong>Target</strong> </a>
125
-
126
-
127
-
128
- </span>
129
-
130
-
131
-
132
-
133
-
134
-
135
-
136
-
137
-
138
-
139
-
140
- <span class="summary_desc"><div class='inline'><p>
141
- The location of the relationship target.
142
- </p>
143
- </div></span>
144
-
145
- </li>
146
-
147
-
148
- <li class="public ">
149
- <span class="summary_signature">
150
-
151
- <a href="#Type-instance_method" title="#Type (instance method)">- (String) <strong>Type</strong> </a>
152
-
153
-
154
-
155
- </span>
156
-
157
-
158
-
159
-
160
-
161
-
162
-
163
-
164
-
165
-
166
-
167
- <span class="summary_desc"><div class='inline'><p>
168
- The type of relationship.
169
- </p>
170
- </div></span>
171
-
172
- </li>
173
-
174
-
175
- </ul>
176
-
177
-
178
-
179
-
180
-
181
- <h2>
182
- Instance Method Summary
183
- <small>(<a href="#" class="summary_toggle">collapse</a>)</small>
184
- </h2>
185
-
186
- <ul class="summary">
187
-
188
- <li class="public ">
189
- <span class="summary_signature">
190
-
191
- <a href="#initialize-instance_method" title="#initialize (instance method)">- (Relationship) <strong>initialize</strong>(type, target) </a>
192
-
193
-
194
-
195
- </span>
196
-
197
- <span class="note title constructor">constructor</span>
198
-
199
-
200
-
201
-
202
-
203
-
204
-
205
-
206
- <span class="summary_desc"><div class='inline'><p>
207
- A new instance of Relationship.
208
- </p>
209
- </div></span>
210
-
211
- </li>
212
-
213
-
214
- <li class="public ">
215
- <span class="summary_signature">
216
-
217
- <a href="#to_xml-instance_method" title="#to_xml (instance method)">- (String) <strong>to_xml</strong>(xml, rId) </a>
218
-
219
-
220
-
221
- </span>
222
-
223
-
224
-
225
-
226
-
227
-
228
-
229
-
230
- <span class="summary_desc"><div class='inline'><p>
231
- Serializes the relationship.
232
- </p>
233
- </div></span>
234
-
235
- </li>
236
-
237
-
238
- </ul>
239
-
240
-
241
- <div id="constructor_details" class="method_details_list">
242
- <h2>Constructor Details</h2>
243
-
244
- <div class="method_details first">
245
- <p class="signature first" id="initialize-instance_method">
246
-
247
- - (<tt><span class='object_link'><a href="" title="Axlsx::Relationship (class)">Relationship</a></span></tt>) <strong>initialize</strong>(type, target)
248
-
249
-
250
-
251
- </p><div class="docstring">
252
- <div class="discussion">
253
- <p>
254
- A new instance of Relationship
255
- </p>
256
-
257
-
258
- </div>
259
- </div>
260
- <div class="tags">
261
-
262
-
263
- </div><table class="source_code">
264
- <tr>
265
- <td>
266
- <pre class="lines">
267
-
268
-
269
- 24
270
- 25
271
- 26
272
- 27</pre>
273
- </td>
274
- <td>
275
- <pre class="code"><span class="info file"># File 'lib/axlsx/rels/relationship.rb', line 24</span>
276
-
277
- <span class='def def kw'>def</span> <span class='initialize identifier id'>initialize</span><span class='lparen token'>(</span><span class='type identifier id'>type</span><span class='comma token'>,</span> <span class='target identifier id'>target</span><span class='rparen token'>)</span>
278
- <span class='self self kw'>self</span><span class='dot token'>.</span><span class='Target constant id'>Target</span><span class='assign token'>=</span><span class='target identifier id'>target</span>
279
- <span class='self self kw'>self</span><span class='dot token'>.</span><span class='Type constant id'>Type</span><span class='assign token'>=</span><span class='type identifier id'>type</span>
280
- <span class='end end kw'>end</span>
281
- </pre>
282
- </td>
283
- </tr>
284
- </table>
285
- </div>
286
-
287
- </div>
288
-
289
- <div id="instance_attr_details" class="attr_details">
290
- <h2>Instance Attribute Details</h2>
291
-
292
-
293
- <span id="Target=-instance_method"></span>
294
- <span id="Target-instance_method"></span>
295
- <div class="method_details first">
296
- <p class="signature first" id="Target-instance_method">
297
-
298
- - (<tt>String</tt>) <strong>Target</strong>
299
-
300
-
301
-
302
- </p><div class="docstring">
303
- <div class="discussion">
304
- <p>
305
- The location of the relationship target
306
- </p>
307
-
308
-
309
- </div>
310
- </div>
311
- <div class="tags">
312
-
313
- <h3>Returns:</h3>
314
- <ul class="return">
315
-
316
- <li>
317
-
318
-
319
- <span class='type'>(<tt>String</tt>)</span>
320
-
321
-
322
-
323
- </li>
324
-
325
- </ul>
326
-
327
- </div><table class="source_code">
328
- <tr>
329
- <td>
330
- <pre class="lines">
331
-
332
-
333
- 8
334
- 9
335
- 10</pre>
336
- </td>
337
- <td>
338
- <pre class="code"><span class="info file"># File 'lib/axlsx/rels/relationship.rb', line 8</span>
339
-
340
- <span class='def def kw'>def</span> <span class='Target constant id'>Target</span>
341
- <span class='@Target ivar id'>@Target</span>
342
- <span class='end end kw'>end</span>
343
- </pre>
344
- </td>
345
- </tr>
346
- </table>
347
- </div>
348
-
349
-
350
- <span id="Type=-instance_method"></span>
351
- <span id="Type-instance_method"></span>
352
- <div class="method_details ">
353
- <p class="signature " id="Type-instance_method">
354
-
355
- - (<tt>String</tt>) <strong>Type</strong>
356
-
357
-
358
-
359
- </p><div class="docstring">
360
- <div class="discussion">
361
-
362
- <div class="note notetag">
363
- <strong>Note:</strong>
364
- <div class='inline'><p>
365
- Supported types are defined as constants in Axlsx:
366
- </p>
367
- </div>
368
- </div>
369
-
370
- <p>
371
- The type of relationship
372
- </p>
373
-
374
-
375
- </div>
376
- </div>
377
- <div class="tags">
378
-
379
- <h3>Returns:</h3>
380
- <ul class="return">
381
-
382
- <li>
383
-
384
-
385
- <span class='type'>(<tt>String</tt>)</span>
386
-
387
-
388
-
389
- </li>
390
-
391
- </ul>
392
-
393
- <h3>See Also:</h3>
394
- <ul class="see">
395
-
396
- <li><span class='object_link'><a href="../Axlsx.html#XML_NS_R-constant" title="Axlsx::XML_NS_R (constant)">XML_NS_R</a></span></li>
397
-
398
- <li><span class='object_link'><a href="../Axlsx.html#TABLE_R-constant" title="Axlsx::TABLE_R (constant)">TABLE_R</a></span></li>
399
-
400
- <li><span class='object_link'><a href="../Axlsx.html#WORKBOOK_R-constant" title="Axlsx::WORKBOOK_R (constant)">WORKBOOK_R</a></span></li>
401
-
402
- <li><span class='object_link'><a href="../Axlsx.html#WORKSHEET_R-constant" title="Axlsx::WORKSHEET_R (constant)">WORKSHEET_R</a></span></li>
403
-
404
- <li><span class='object_link'><a href="../Axlsx.html#APP_R-constant" title="Axlsx::APP_R (constant)">APP_R</a></span></li>
405
-
406
- <li><span class='object_link'><a href="../Axlsx.html#RELS_R-constant" title="Axlsx::RELS_R (constant)">Axlsx::RELS_R</a></span></li>
407
-
408
- <li><span class='object_link'><a href="../Axlsx.html#CORE_R-constant" title="Axlsx::CORE_R (constant)">CORE_R</a></span></li>
409
-
410
- <li><span class='object_link'><a href="../Axlsx.html#STYLES_R-constant" title="Axlsx::STYLES_R (constant)">STYLES_R</a></span></li>
411
-
412
- <li><span class='object_link'><a href="../Axlsx.html#CHART_R-constant" title="Axlsx::CHART_R (constant)">CHART_R</a></span></li>
413
-
414
- <li><span class='object_link'><a href="../Axlsx.html#DRAWING_R-constant" title="Axlsx::DRAWING_R (constant)">DRAWING_R</a></span></li>
415
-
416
- </ul>
417
-
418
- </div><table class="source_code">
419
- <tr>
420
- <td>
421
- <pre class="lines">
422
-
423
-
424
- 23
425
- 24
426
- 25</pre>
427
- </td>
428
- <td>
429
- <pre class="code"><span class="info file"># File 'lib/axlsx/rels/relationship.rb', line 23</span>
430
-
431
- <span class='def def kw'>def</span> <span class='Type constant id'>Type</span>
432
- <span class='@Type ivar id'>@Type</span>
433
- <span class='end end kw'>end</span>
434
- </pre>
435
- </td>
436
- </tr>
437
- </table>
438
- </div>
439
-
440
- </div>
441
-
442
-
443
- <div id="instance_method_details" class="method_details_list">
444
- <h2>Instance Method Details</h2>
445
-
446
-
447
- <div class="method_details first">
448
- <p class="signature first" id="to_xml-instance_method">
449
-
450
- - (<tt>String</tt>) <strong>to_xml</strong>(xml, rId)
451
-
452
-
453
-
454
- </p><div class="docstring">
455
- <div class="discussion">
456
- <p>
457
- Serializes the relationship
458
- </p>
459
-
460
-
461
- </div>
462
- </div>
463
- <div class="tags">
464
- <h3>Parameters:</h3>
465
- <ul class="param">
466
-
467
- <li>
468
-
469
- <span class='name'>xml</span>
470
-
471
-
472
- <span class='type'>(<tt>Nokogiri::XML::Builder</tt>)</span>
473
-
474
-
475
-
476
- &mdash;
477
- <div class='inline'><p>
478
- The document builder instance this objects xml will be added to.
479
- </p>
480
- </div>
481
-
482
- </li>
483
-
484
- <li>
485
-
486
- <span class='name'>rId</span>
487
-
488
-
489
- <span class='type'>(<tt>String</tt>)</span>
490
-
491
-
492
-
493
- &mdash;
494
- <div class='inline'><p>
495
- the reference id of the object.
496
- </p>
497
- </div>
498
-
499
- </li>
500
-
501
- </ul>
502
-
503
- <h3>Returns:</h3>
504
- <ul class="return">
505
-
506
- <li>
507
-
508
-
509
- <span class='type'>(<tt>String</tt>)</span>
510
-
511
-
512
-
513
- </li>
514
-
515
- </ul>
516
-
517
- </div><table class="source_code">
518
- <tr>
519
- <td>
520
- <pre class="lines">
521
-
522
-
523
- 38
524
- 39
525
- 40
526
- 41
527
- 42</pre>
528
- </td>
529
- <td>
530
- <pre class="code"><span class="info file"># File 'lib/axlsx/rels/relationship.rb', line 38</span>
531
-
532
- <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='comma token'>,</span> <span class='rId identifier id'>rId</span><span class='rparen token'>)</span>
533
- <span class='h identifier id'>h</span> <span class='assign token'>=</span> <span class='self self kw'>self</span><span class='dot token'>.</span><span class='instance_values identifier id'>instance_values</span>
534
- <span class='h identifier id'>h</span><span class='lbrack token'>[</span><span class='symbol val'>:Id</span><span class='rbrack token'>]</span> <span class='assign token'>=</span> <span class='rId identifier id'>rId</span>
535
- <span class='xml identifier id'>xml</span><span class='dot token'>.</span><span class='Relationship constant id'>Relationship</span><span class='lparen token'>(</span><span class='h identifier id'>h</span><span class='rparen token'>)</span>
536
- <span class='end end kw'>end</span>
537
- </pre>
538
- </td>
539
- </tr>
540
- </table>
541
- </div>
542
-
543
- </div>
544
-
545
- </div>
546
-
547
- <div id="footer">
548
- Generated on Mon Dec 5 14:21:09 2011 by
549
- <a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
550
- 0.7.3 (ruby-1.8.7).
551
- </div>
552
-
553
- </body>
554
- </html>