epub-parser 0.0.1 → 0.0.2
Sign up to get free protection for your applications and to get access to all the features.
- data/.gitignore +4 -0
- data/MIT-LICENSE +7 -0
- data/README +7 -0
- data/doc/EPUB.html +143 -0
- data/doc/EPUB/Book.html +616 -0
- data/doc/EPUB/Constants.html +130 -0
- data/doc/EPUB/Constants/Type.html +118 -0
- data/doc/EPUB/ContentDocument.html +108 -0
- data/doc/EPUB/ContentDocument/Navigation.html +673 -0
- data/doc/EPUB/ContentDocument/Navigation/Nav.html +563 -0
- data/doc/EPUB/ContentDocument/Navigation/Nav/Ol.html +285 -0
- data/doc/EPUB/ContentDocument/Navigation/Nav/Ol/A.html +354 -0
- data/doc/EPUB/ContentDocument/Navigation/Nav/Ol/Span.html +354 -0
- data/doc/EPUB/OCF.html +135 -0
- data/doc/EPUB/OCF/Container.html +358 -0
- data/doc/EPUB/OCF/Container/Rootfile.html +257 -0
- data/doc/EPUB/OCF/Encryption.html +111 -0
- data/doc/EPUB/OCF/Manifest.html +111 -0
- data/doc/EPUB/OCF/Metadata.html +111 -0
- data/doc/EPUB/OCF/Rights.html +111 -0
- data/doc/EPUB/OCF/Signatures.html +111 -0
- data/doc/EPUB/Parser.html +448 -0
- data/doc/EPUB/Parser/ContentDocument.html +531 -0
- data/doc/EPUB/Parser/OCF.html +635 -0
- data/doc/EPUB/Parser/Publication.html +640 -0
- data/doc/EPUB/Publication.html +108 -0
- data/doc/EPUB/Publication/Package.html +751 -0
- data/doc/EPUB/Publication/Package/Bindings.html +267 -0
- data/doc/EPUB/Publication/Package/Bindings/MediaType.html +257 -0
- data/doc/EPUB/Publication/Package/Guide.html +111 -0
- data/doc/EPUB/Publication/Package/Manifest.html +578 -0
- data/doc/EPUB/Publication/Package/Manifest/Item.html +669 -0
- data/doc/EPUB/Publication/Package/Metadata.html +257 -0
- data/doc/EPUB/Publication/Package/Spine.html +755 -0
- data/doc/EPUB/Publication/Package/Spine/Itemref.html +558 -0
- data/doc/EPUB/Type.html +118 -0
- data/doc/_index.html +422 -0
- data/doc/class_list.html +47 -0
- data/doc/css/common.css +1 -0
- data/doc/css/full_list.css +55 -0
- data/doc/css/style.css +322 -0
- data/doc/file.README.html +76 -0
- data/doc/file_list.html +49 -0
- data/doc/frames.html +13 -0
- data/doc/index.html +76 -0
- data/doc/js/app.js +205 -0
- data/doc/js/full_list.js +167 -0
- data/doc/js/jquery.js +16 -0
- data/doc/method_list.html +902 -0
- data/doc/top-level-namespace.html +103 -0
- data/epub-parser.gemspec +2 -0
- data/lib/epub/constants.rb +20 -0
- data/lib/epub/parser.rb +1 -0
- data/lib/epub/parser/content_document.rb +4 -3
- data/lib/epub/parser/ocf.rb +2 -1
- data/lib/epub/parser/publication.rb +5 -5
- data/lib/epub/parser/version.rb +1 -1
- data/test/fixtures/book.epub +0 -0
- data/test/test_parser_content_document.rb +18 -0
- data/test/test_parser_ocf.rb +2 -2
- data/test/test_parser_publication.rb +21 -3
- metadata +87 -30
- data/lib/epub/type.rb +0 -7
- data/test/publication/package/test_bindings.rb +0 -15
- data/test/publication/package/test_guide.rb +0 -14
- data/test/publication/package/test_manifest.rb +0 -19
- data/test/publication/package/test_metadata.rb +0 -14
- data/test/publication/package/test_spine.rb +0 -15
@@ -0,0 +1,635 @@
|
|
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: EPUB::Parser::OCF
|
8
|
+
|
9
|
+
— Documentation by YARD 0.7.4
|
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 (O)</a> »
|
37
|
+
<span class='title'><span class='object_link'><a href="../../EPUB.html" title="EPUB (module)">EPUB</a></span></span> » <span class='title'><span class='object_link'><a href="../Parser.html" title="EPUB::Parser (class)">Parser</a></span></span>
|
38
|
+
»
|
39
|
+
<span class="title">OCF</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: EPUB::Parser::OCF
|
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">EPUB::Parser::OCF</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/epub/parser/ocf.rb</dd>
|
91
|
+
|
92
|
+
</dl>
|
93
|
+
<div class="clear"></div>
|
94
|
+
|
95
|
+
|
96
|
+
<h2>Constant Summary</h2>
|
97
|
+
|
98
|
+
<dl class="constants">
|
99
|
+
|
100
|
+
<dt id="DIRECTORY-constant" class="">DIRECTORY =
|
101
|
+
|
102
|
+
</dt>
|
103
|
+
<dd><pre class="code"><span class='tstring'><span class='tstring_beg'>'</span><span class='tstring_content'>META-INF</span><span class='tstring_end'>'</span></span></pre></dd>
|
104
|
+
|
105
|
+
</dl>
|
106
|
+
|
107
|
+
|
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="#parse-class_method" title="parse (class method)">+ (Object) <strong>parse</strong>(root_directory) </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
|
+
<h2>
|
144
|
+
Instance Method Summary
|
145
|
+
<small>(<a href="#" class="summary_toggle">collapse</a>)</small>
|
146
|
+
</h2>
|
147
|
+
|
148
|
+
<ul class="summary">
|
149
|
+
|
150
|
+
<li class="public ">
|
151
|
+
<span class="summary_signature">
|
152
|
+
|
153
|
+
<a href="#initialize-instance_method" title="#initialize (instance method)">- (OCF) <strong>initialize</strong>(root_directory) </a>
|
154
|
+
|
155
|
+
|
156
|
+
|
157
|
+
</span>
|
158
|
+
|
159
|
+
<span class="note title constructor">constructor</span>
|
160
|
+
|
161
|
+
|
162
|
+
|
163
|
+
|
164
|
+
|
165
|
+
|
166
|
+
|
167
|
+
|
168
|
+
<span class="summary_desc"><div class='inline'>
|
169
|
+
<p>A new instance of OCF.</p>
|
170
|
+
</div></span>
|
171
|
+
|
172
|
+
</li>
|
173
|
+
|
174
|
+
|
175
|
+
<li class="public ">
|
176
|
+
<span class="summary_signature">
|
177
|
+
|
178
|
+
<a href="#parse-instance_method" title="#parse (instance method)">- (Object) <strong>parse</strong> </a>
|
179
|
+
|
180
|
+
|
181
|
+
|
182
|
+
</span>
|
183
|
+
|
184
|
+
|
185
|
+
|
186
|
+
|
187
|
+
|
188
|
+
|
189
|
+
|
190
|
+
|
191
|
+
<span class="summary_desc"><div class='inline'></div></span>
|
192
|
+
|
193
|
+
</li>
|
194
|
+
|
195
|
+
|
196
|
+
<li class="public ">
|
197
|
+
<span class="summary_signature">
|
198
|
+
|
199
|
+
<a href="#parse_container-instance_method" title="#parse_container (instance method)">- (Object) <strong>parse_container</strong> </a>
|
200
|
+
|
201
|
+
|
202
|
+
|
203
|
+
</span>
|
204
|
+
|
205
|
+
|
206
|
+
|
207
|
+
|
208
|
+
|
209
|
+
|
210
|
+
|
211
|
+
|
212
|
+
<span class="summary_desc"><div class='inline'></div></span>
|
213
|
+
|
214
|
+
</li>
|
215
|
+
|
216
|
+
|
217
|
+
<li class="public ">
|
218
|
+
<span class="summary_signature">
|
219
|
+
|
220
|
+
<a href="#parse_encryption-instance_method" title="#parse_encryption (instance method)">- (Object) <strong>parse_encryption</strong> </a>
|
221
|
+
|
222
|
+
|
223
|
+
|
224
|
+
</span>
|
225
|
+
|
226
|
+
|
227
|
+
|
228
|
+
|
229
|
+
|
230
|
+
|
231
|
+
|
232
|
+
|
233
|
+
<span class="summary_desc"><div class='inline'></div></span>
|
234
|
+
|
235
|
+
</li>
|
236
|
+
|
237
|
+
|
238
|
+
<li class="public ">
|
239
|
+
<span class="summary_signature">
|
240
|
+
|
241
|
+
<a href="#parse_manifest-instance_method" title="#parse_manifest (instance method)">- (Object) <strong>parse_manifest</strong> </a>
|
242
|
+
|
243
|
+
|
244
|
+
|
245
|
+
</span>
|
246
|
+
|
247
|
+
|
248
|
+
|
249
|
+
|
250
|
+
|
251
|
+
|
252
|
+
|
253
|
+
|
254
|
+
<span class="summary_desc"><div class='inline'></div></span>
|
255
|
+
|
256
|
+
</li>
|
257
|
+
|
258
|
+
|
259
|
+
<li class="public ">
|
260
|
+
<span class="summary_signature">
|
261
|
+
|
262
|
+
<a href="#parse_metadata-instance_method" title="#parse_metadata (instance method)">- (Object) <strong>parse_metadata</strong> </a>
|
263
|
+
|
264
|
+
|
265
|
+
|
266
|
+
</span>
|
267
|
+
|
268
|
+
|
269
|
+
|
270
|
+
|
271
|
+
|
272
|
+
|
273
|
+
|
274
|
+
|
275
|
+
<span class="summary_desc"><div class='inline'></div></span>
|
276
|
+
|
277
|
+
</li>
|
278
|
+
|
279
|
+
|
280
|
+
<li class="public ">
|
281
|
+
<span class="summary_signature">
|
282
|
+
|
283
|
+
<a href="#parse_rights-instance_method" title="#parse_rights (instance method)">- (Object) <strong>parse_rights</strong> </a>
|
284
|
+
|
285
|
+
|
286
|
+
|
287
|
+
</span>
|
288
|
+
|
289
|
+
|
290
|
+
|
291
|
+
|
292
|
+
|
293
|
+
|
294
|
+
|
295
|
+
|
296
|
+
<span class="summary_desc"><div class='inline'></div></span>
|
297
|
+
|
298
|
+
</li>
|
299
|
+
|
300
|
+
|
301
|
+
<li class="public ">
|
302
|
+
<span class="summary_signature">
|
303
|
+
|
304
|
+
<a href="#parse_signatures-instance_method" title="#parse_signatures (instance method)">- (Object) <strong>parse_signatures</strong> </a>
|
305
|
+
|
306
|
+
|
307
|
+
|
308
|
+
</span>
|
309
|
+
|
310
|
+
|
311
|
+
|
312
|
+
|
313
|
+
|
314
|
+
|
315
|
+
|
316
|
+
|
317
|
+
<span class="summary_desc"><div class='inline'></div></span>
|
318
|
+
|
319
|
+
</li>
|
320
|
+
|
321
|
+
|
322
|
+
</ul>
|
323
|
+
|
324
|
+
|
325
|
+
<div id="constructor_details" class="method_details_list">
|
326
|
+
<h2>Constructor Details</h2>
|
327
|
+
|
328
|
+
<div class="method_details first">
|
329
|
+
<p class="signature first" id="initialize-instance_method">
|
330
|
+
|
331
|
+
- (<tt><span class='object_link'><a href="" title="EPUB::Parser::OCF (class)">OCF</a></span></tt>) <strong>initialize</strong>(root_directory)
|
332
|
+
|
333
|
+
|
334
|
+
|
335
|
+
</p><div class="docstring">
|
336
|
+
<div class="discussion">
|
337
|
+
|
338
|
+
<p>A new instance of OCF</p>
|
339
|
+
|
340
|
+
|
341
|
+
</div>
|
342
|
+
</div>
|
343
|
+
<div class="tags">
|
344
|
+
|
345
|
+
|
346
|
+
</div><table class="source_code">
|
347
|
+
<tr>
|
348
|
+
<td>
|
349
|
+
<pre class="lines">
|
350
|
+
|
351
|
+
|
352
|
+
17
|
353
|
+
18
|
354
|
+
19
|
355
|
+
20</pre>
|
356
|
+
</td>
|
357
|
+
<td>
|
358
|
+
<pre class="code"><span class="info file"># File 'lib/epub/parser/ocf.rb', line 17</span>
|
359
|
+
|
360
|
+
<span class='kw'>def</span> <span class='id identifier rubyid_initialize'>initialize</span><span class='lparen'>(</span><span class='id identifier rubyid_root_directory'>root_directory</span><span class='rparen'>)</span>
|
361
|
+
<span class='ivar'>@dir</span> <span class='op'>=</span> <span class='id identifier rubyid_root_directory'>root_directory</span>
|
362
|
+
<span class='ivar'>@ocf</span> <span class='op'>=</span> <span class='const'>EPUB</span><span class='op'>::</span><span class='const'>OCF</span><span class='period'>.</span><span class='id identifier rubyid_new'>new</span>
|
363
|
+
<span class='kw'>end</span></pre>
|
364
|
+
</td>
|
365
|
+
</tr>
|
366
|
+
</table>
|
367
|
+
</div>
|
368
|
+
|
369
|
+
</div>
|
370
|
+
|
371
|
+
|
372
|
+
<div id="class_method_details" class="method_details_list">
|
373
|
+
<h2>Class Method Details</h2>
|
374
|
+
|
375
|
+
|
376
|
+
<div class="method_details first">
|
377
|
+
<p class="signature first" id="parse-class_method">
|
378
|
+
|
379
|
+
+ (<tt>Object</tt>) <strong>parse</strong>(root_directory)
|
380
|
+
|
381
|
+
|
382
|
+
|
383
|
+
</p><table class="source_code">
|
384
|
+
<tr>
|
385
|
+
<td>
|
386
|
+
<pre class="lines">
|
387
|
+
|
388
|
+
|
389
|
+
12
|
390
|
+
13
|
391
|
+
14</pre>
|
392
|
+
</td>
|
393
|
+
<td>
|
394
|
+
<pre class="code"><span class="info file"># File 'lib/epub/parser/ocf.rb', line 12</span>
|
395
|
+
|
396
|
+
<span class='kw'>def</span> <span class='id identifier rubyid_parse'>parse</span><span class='lparen'>(</span><span class='id identifier rubyid_root_directory'>root_directory</span><span class='rparen'>)</span>
|
397
|
+
<span class='id identifier rubyid_new'>new</span><span class='lparen'>(</span><span class='id identifier rubyid_root_directory'>root_directory</span><span class='rparen'>)</span><span class='period'>.</span><span class='id identifier rubyid_parse'>parse</span>
|
398
|
+
<span class='kw'>end</span></pre>
|
399
|
+
</td>
|
400
|
+
</tr>
|
401
|
+
</table>
|
402
|
+
</div>
|
403
|
+
|
404
|
+
</div>
|
405
|
+
|
406
|
+
<div id="instance_method_details" class="method_details_list">
|
407
|
+
<h2>Instance Method Details</h2>
|
408
|
+
|
409
|
+
|
410
|
+
<div class="method_details first">
|
411
|
+
<p class="signature first" id="parse-instance_method">
|
412
|
+
|
413
|
+
- (<tt>Object</tt>) <strong>parse</strong>
|
414
|
+
|
415
|
+
|
416
|
+
|
417
|
+
</p><table class="source_code">
|
418
|
+
<tr>
|
419
|
+
<td>
|
420
|
+
<pre class="lines">
|
421
|
+
|
422
|
+
|
423
|
+
22
|
424
|
+
23
|
425
|
+
24
|
426
|
+
25
|
427
|
+
26
|
428
|
+
27</pre>
|
429
|
+
</td>
|
430
|
+
<td>
|
431
|
+
<pre class="code"><span class="info file"># File 'lib/epub/parser/ocf.rb', line 22</span>
|
432
|
+
|
433
|
+
<span class='kw'>def</span> <span class='id identifier rubyid_parse'>parse</span>
|
434
|
+
<span class='const'>EPUB</span><span class='op'>::</span><span class='const'>OCF</span><span class='op'>::</span><span class='const'>MODULES</span><span class='period'>.</span><span class='id identifier rubyid_each'>each</span> <span class='kw'>do</span> <span class='op'>|</span><span class='id identifier rubyid_m'>m</span><span class='op'>|</span>
|
435
|
+
<span class='ivar'>@ocf</span><span class='period'>.</span><span class='id identifier rubyid_send'>send</span> <span class='tstring'><span class='tstring_beg'>"</span><span class='embexpr_beg'>#{</span><span class='id identifier rubyid_m'>m</span><span class='rbrace'>}</span><span class='tstring_content'>=</span><span class='tstring_end'>"</span></span><span class='comma'>,</span> <span class='id identifier rubyid_send'>send</span><span class='lparen'>(</span><span class='tstring'><span class='tstring_beg'>"</span><span class='tstring_content'>parse_</span><span class='embexpr_beg'>#{</span><span class='id identifier rubyid_m'>m</span><span class='rbrace'>}</span><span class='tstring_end'>"</span></span><span class='rparen'>)</span>
|
436
|
+
<span class='kw'>end</span>
|
437
|
+
<span class='ivar'>@ocf</span>
|
438
|
+
<span class='kw'>end</span></pre>
|
439
|
+
</td>
|
440
|
+
</tr>
|
441
|
+
</table>
|
442
|
+
</div>
|
443
|
+
|
444
|
+
<div class="method_details ">
|
445
|
+
<p class="signature " id="parse_container-instance_method">
|
446
|
+
|
447
|
+
- (<tt>Object</tt>) <strong>parse_container</strong>
|
448
|
+
|
449
|
+
|
450
|
+
|
451
|
+
</p><table class="source_code">
|
452
|
+
<tr>
|
453
|
+
<td>
|
454
|
+
<pre class="lines">
|
455
|
+
|
456
|
+
|
457
|
+
29
|
458
|
+
30
|
459
|
+
31
|
460
|
+
32
|
461
|
+
33
|
462
|
+
34
|
463
|
+
35
|
464
|
+
36
|
465
|
+
37
|
466
|
+
38
|
467
|
+
39
|
468
|
+
40
|
469
|
+
41
|
470
|
+
42</pre>
|
471
|
+
</td>
|
472
|
+
<td>
|
473
|
+
<pre class="code"><span class="info file"># File 'lib/epub/parser/ocf.rb', line 29</span>
|
474
|
+
|
475
|
+
<span class='kw'>def</span> <span class='id identifier rubyid_parse_container'>parse_container</span>
|
476
|
+
<span class='id identifier rubyid_container'>container</span> <span class='op'>=</span> <span class='const'>EPUB</span><span class='op'>::</span><span class='const'>OCF</span><span class='op'>::</span><span class='const'>Container</span><span class='period'>.</span><span class='id identifier rubyid_new'>new</span>
|
477
|
+
<span class='id identifier rubyid_doc'>doc</span> <span class='op'>=</span> <span class='const'>Nokogiri</span><span class='period'>.</span><span class='const'>XML</span> <span class='id identifier rubyid_open'>open</span><span class='lparen'>(</span><span class='const'>File</span><span class='period'>.</span><span class='id identifier rubyid_join'>join</span> <span class='ivar'>@dir</span><span class='comma'>,</span> <span class='const'>DIRECTORY</span><span class='comma'>,</span> <span class='const'>CONTAINER_FILE</span><span class='rparen'>)</span>
|
478
|
+
|
479
|
+
<span class='id identifier rubyid_doc'>doc</span><span class='period'>.</span><span class='id identifier rubyid_xpath'>xpath</span><span class='lparen'>(</span><span class='tstring'><span class='tstring_beg'>'</span><span class='tstring_content'>/container:container/container:rootfiles/container:rootfile</span><span class='tstring_end'>'</span></span><span class='comma'>,</span> <span class='const'>EPUB</span><span class='op'>::</span><span class='const'>NAMESPACES</span><span class='rparen'>)</span><span class='period'>.</span><span class='id identifier rubyid_each'>each</span> <span class='kw'>do</span> <span class='op'>|</span><span class='id identifier rubyid_elem'>elem</span><span class='op'>|</span>
|
480
|
+
<span class='id identifier rubyid_rootfile'>rootfile</span> <span class='op'>=</span> <span class='const'>EPUB</span><span class='op'>::</span><span class='const'>OCF</span><span class='op'>::</span><span class='const'>Container</span><span class='op'>::</span><span class='const'>Rootfile</span><span class='period'>.</span><span class='id identifier rubyid_new'>new</span>
|
481
|
+
<span class='qwords_beg'>%w[</span><span class='tstring_content'>full-path</span><span class='words_sep'> </span><span class='tstring_content'>media-type</span><span class='words_sep'>]</span><span class='period'>.</span><span class='id identifier rubyid_each'>each</span> <span class='kw'>do</span> <span class='op'>|</span><span class='id identifier rubyid_attr'>attr</span><span class='op'>|</span>
|
482
|
+
<span class='id identifier rubyid_rootfile'>rootfile</span><span class='period'>.</span><span class='id identifier rubyid_send'>send</span><span class='lparen'>(</span><span class='id identifier rubyid_attr'>attr</span><span class='period'>.</span><span class='id identifier rubyid_gsub'>gsub</span><span class='lparen'>(</span><span class='tstring'><span class='regexp_beg'>/</span><span class='tstring_content'>-</span><span class='regexp_end'>/</span></span><span class='comma'>,</span> <span class='tstring'><span class='tstring_beg'>'</span><span class='tstring_content'>_</span><span class='tstring_end'>'</span></span><span class='rparen'>)</span> <span class='op'>+</span> <span class='tstring'><span class='tstring_beg'>'</span><span class='tstring_content'>=</span><span class='tstring_end'>'</span></span><span class='comma'>,</span> <span class='id identifier rubyid_elem'>elem</span><span class='lbracket'>[</span><span class='id identifier rubyid_attr'>attr</span><span class='rbracket'>]</span><span class='rparen'>)</span>
|
483
|
+
<span class='id identifier rubyid_container'>container</span><span class='period'>.</span><span class='id identifier rubyid_rootfiles'>rootfiles</span> <span class='op'><<</span> <span class='id identifier rubyid_rootfile'>rootfile</span>
|
484
|
+
<span class='kw'>end</span>
|
485
|
+
<span class='kw'>end</span>
|
486
|
+
|
487
|
+
<span class='id identifier rubyid_container'>container</span>
|
488
|
+
<span class='kw'>end</span></pre>
|
489
|
+
</td>
|
490
|
+
</tr>
|
491
|
+
</table>
|
492
|
+
</div>
|
493
|
+
|
494
|
+
<div class="method_details ">
|
495
|
+
<p class="signature " id="parse_encryption-instance_method">
|
496
|
+
|
497
|
+
- (<tt>Object</tt>) <strong>parse_encryption</strong>
|
498
|
+
|
499
|
+
|
500
|
+
|
501
|
+
</p><table class="source_code">
|
502
|
+
<tr>
|
503
|
+
<td>
|
504
|
+
<pre class="lines">
|
505
|
+
|
506
|
+
|
507
|
+
44
|
508
|
+
45</pre>
|
509
|
+
</td>
|
510
|
+
<td>
|
511
|
+
<pre class="code"><span class="info file"># File 'lib/epub/parser/ocf.rb', line 44</span>
|
512
|
+
|
513
|
+
<span class='kw'>def</span> <span class='id identifier rubyid_parse_encryption'>parse_encryption</span>
|
514
|
+
<span class='kw'>end</span></pre>
|
515
|
+
</td>
|
516
|
+
</tr>
|
517
|
+
</table>
|
518
|
+
</div>
|
519
|
+
|
520
|
+
<div class="method_details ">
|
521
|
+
<p class="signature " id="parse_manifest-instance_method">
|
522
|
+
|
523
|
+
- (<tt>Object</tt>) <strong>parse_manifest</strong>
|
524
|
+
|
525
|
+
|
526
|
+
|
527
|
+
</p><table class="source_code">
|
528
|
+
<tr>
|
529
|
+
<td>
|
530
|
+
<pre class="lines">
|
531
|
+
|
532
|
+
|
533
|
+
47
|
534
|
+
48</pre>
|
535
|
+
</td>
|
536
|
+
<td>
|
537
|
+
<pre class="code"><span class="info file"># File 'lib/epub/parser/ocf.rb', line 47</span>
|
538
|
+
|
539
|
+
<span class='kw'>def</span> <span class='id identifier rubyid_parse_manifest'>parse_manifest</span>
|
540
|
+
<span class='kw'>end</span></pre>
|
541
|
+
</td>
|
542
|
+
</tr>
|
543
|
+
</table>
|
544
|
+
</div>
|
545
|
+
|
546
|
+
<div class="method_details ">
|
547
|
+
<p class="signature " id="parse_metadata-instance_method">
|
548
|
+
|
549
|
+
- (<tt>Object</tt>) <strong>parse_metadata</strong>
|
550
|
+
|
551
|
+
|
552
|
+
|
553
|
+
</p><table class="source_code">
|
554
|
+
<tr>
|
555
|
+
<td>
|
556
|
+
<pre class="lines">
|
557
|
+
|
558
|
+
|
559
|
+
50
|
560
|
+
51</pre>
|
561
|
+
</td>
|
562
|
+
<td>
|
563
|
+
<pre class="code"><span class="info file"># File 'lib/epub/parser/ocf.rb', line 50</span>
|
564
|
+
|
565
|
+
<span class='kw'>def</span> <span class='id identifier rubyid_parse_metadata'>parse_metadata</span>
|
566
|
+
<span class='kw'>end</span></pre>
|
567
|
+
</td>
|
568
|
+
</tr>
|
569
|
+
</table>
|
570
|
+
</div>
|
571
|
+
|
572
|
+
<div class="method_details ">
|
573
|
+
<p class="signature " id="parse_rights-instance_method">
|
574
|
+
|
575
|
+
- (<tt>Object</tt>) <strong>parse_rights</strong>
|
576
|
+
|
577
|
+
|
578
|
+
|
579
|
+
</p><table class="source_code">
|
580
|
+
<tr>
|
581
|
+
<td>
|
582
|
+
<pre class="lines">
|
583
|
+
|
584
|
+
|
585
|
+
53
|
586
|
+
54</pre>
|
587
|
+
</td>
|
588
|
+
<td>
|
589
|
+
<pre class="code"><span class="info file"># File 'lib/epub/parser/ocf.rb', line 53</span>
|
590
|
+
|
591
|
+
<span class='kw'>def</span> <span class='id identifier rubyid_parse_rights'>parse_rights</span>
|
592
|
+
<span class='kw'>end</span></pre>
|
593
|
+
</td>
|
594
|
+
</tr>
|
595
|
+
</table>
|
596
|
+
</div>
|
597
|
+
|
598
|
+
<div class="method_details ">
|
599
|
+
<p class="signature " id="parse_signatures-instance_method">
|
600
|
+
|
601
|
+
- (<tt>Object</tt>) <strong>parse_signatures</strong>
|
602
|
+
|
603
|
+
|
604
|
+
|
605
|
+
</p><table class="source_code">
|
606
|
+
<tr>
|
607
|
+
<td>
|
608
|
+
<pre class="lines">
|
609
|
+
|
610
|
+
|
611
|
+
56
|
612
|
+
57</pre>
|
613
|
+
</td>
|
614
|
+
<td>
|
615
|
+
<pre class="code"><span class="info file"># File 'lib/epub/parser/ocf.rb', line 56</span>
|
616
|
+
|
617
|
+
<span class='kw'>def</span> <span class='id identifier rubyid_parse_signatures'>parse_signatures</span>
|
618
|
+
<span class='kw'>end</span></pre>
|
619
|
+
</td>
|
620
|
+
</tr>
|
621
|
+
</table>
|
622
|
+
</div>
|
623
|
+
|
624
|
+
</div>
|
625
|
+
|
626
|
+
</div>
|
627
|
+
|
628
|
+
<div id="footer">
|
629
|
+
Generated on Fri Dec 30 08:49:44 2011 by
|
630
|
+
<a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
|
631
|
+
0.7.4 (ruby-1.9.3).
|
632
|
+
</div>
|
633
|
+
|
634
|
+
</body>
|
635
|
+
</html>
|