epub-parser 0.0.2 → 0.0.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- data/.gitignore +1 -0
- data/MIT-LICENSE +1 -1
- data/README +7 -0
- data/lib/epub/book.rb +7 -1
- data/lib/epub/constants.rb +29 -0
- data/lib/epub/parser.rb +11 -3
- data/lib/epub/parser/publication.rb +14 -3
- data/lib/epub/parser/version.rb +1 -1
- data/lib/epub/publication/package.rb +6 -1
- data/lib/epub/publication/package/guide.rb +37 -2
- data/lib/epub/publication/package/manifest.rb +41 -4
- data/test/fixtures/book.epub +0 -0
- data/test/fixtures/book/OPS//343/203/253/343/203/274/343/203/210/343/203/225/343/202/241/343/202/244/343/203/253.opf +12 -2
- data/test/test_parser_publication.rb +73 -4
- metadata +26 -73
- data/doc/EPUB.html +0 -143
- data/doc/EPUB/Book.html +0 -616
- data/doc/EPUB/Constants.html +0 -130
- data/doc/EPUB/Constants/Type.html +0 -118
- data/doc/EPUB/ContentDocument.html +0 -108
- data/doc/EPUB/ContentDocument/Navigation.html +0 -673
- data/doc/EPUB/ContentDocument/Navigation/Nav.html +0 -563
- data/doc/EPUB/ContentDocument/Navigation/Nav/Ol.html +0 -285
- data/doc/EPUB/ContentDocument/Navigation/Nav/Ol/A.html +0 -354
- data/doc/EPUB/ContentDocument/Navigation/Nav/Ol/Span.html +0 -354
- data/doc/EPUB/OCF.html +0 -135
- data/doc/EPUB/OCF/Container.html +0 -358
- data/doc/EPUB/OCF/Container/Rootfile.html +0 -257
- data/doc/EPUB/OCF/Encryption.html +0 -111
- data/doc/EPUB/OCF/Manifest.html +0 -111
- data/doc/EPUB/OCF/Metadata.html +0 -111
- data/doc/EPUB/OCF/Rights.html +0 -111
- data/doc/EPUB/OCF/Signatures.html +0 -111
- data/doc/EPUB/Parser.html +0 -448
- data/doc/EPUB/Parser/ContentDocument.html +0 -531
- data/doc/EPUB/Parser/OCF.html +0 -635
- data/doc/EPUB/Parser/Publication.html +0 -640
- data/doc/EPUB/Publication.html +0 -108
- data/doc/EPUB/Publication/Package.html +0 -751
- data/doc/EPUB/Publication/Package/Bindings.html +0 -267
- data/doc/EPUB/Publication/Package/Bindings/MediaType.html +0 -257
- data/doc/EPUB/Publication/Package/Guide.html +0 -111
- data/doc/EPUB/Publication/Package/Manifest.html +0 -578
- data/doc/EPUB/Publication/Package/Manifest/Item.html +0 -669
- data/doc/EPUB/Publication/Package/Metadata.html +0 -257
- data/doc/EPUB/Publication/Package/Spine.html +0 -755
- data/doc/EPUB/Publication/Package/Spine/Itemref.html +0 -558
- data/doc/EPUB/Type.html +0 -118
- data/doc/_index.html +0 -422
- 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.README.html +0 -76
- data/doc/file_list.html +0 -49
- data/doc/frames.html +0 -13
- data/doc/index.html +0 -76
- 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 -902
- data/doc/top-level-namespace.html +0 -103
@@ -1,111 +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: EPUB::Publication::Package::Guide
|
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 (G)</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="../../Publication.html" title="EPUB::Publication (module)">Publication</a></span></span> » <span class='title'><span class='object_link'><a href="../Package.html" title="EPUB::Publication::Package (class)">Package</a></span></span>
|
38
|
-
»
|
39
|
-
<span class="title">Guide</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::Publication::Package::Guide
|
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::Publication::Package::Guide</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/publication/package/guide.rb</dd>
|
91
|
-
|
92
|
-
</dl>
|
93
|
-
<div class="clear"></div>
|
94
|
-
|
95
|
-
|
96
|
-
|
97
|
-
|
98
|
-
|
99
|
-
|
100
|
-
|
101
|
-
|
102
|
-
</div>
|
103
|
-
|
104
|
-
<div id="footer">
|
105
|
-
Generated on Fri Dec 30 08:49:44 2011 by
|
106
|
-
<a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
|
107
|
-
0.7.4 (ruby-1.9.3).
|
108
|
-
</div>
|
109
|
-
|
110
|
-
</body>
|
111
|
-
</html>
|
@@ -1,578 +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: EPUB::Publication::Package::Manifest
|
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 (M)</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="../../Publication.html" title="EPUB::Publication (module)">Publication</a></span></span> » <span class='title'><span class='object_link'><a href="../Package.html" title="EPUB::Publication::Package (class)">Package</a></span></span>
|
38
|
-
»
|
39
|
-
<span class="title">Manifest</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::Publication::Package::Manifest
|
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::Publication::Package::Manifest</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/publication/package/manifest.rb</dd>
|
91
|
-
|
92
|
-
</dl>
|
93
|
-
<div class="clear"></div>
|
94
|
-
|
95
|
-
<h2>Defined Under Namespace</h2>
|
96
|
-
<p class="children">
|
97
|
-
|
98
|
-
|
99
|
-
|
100
|
-
|
101
|
-
<strong class="classes">Classes:</strong> <span class='object_link'><a href="Manifest/Item.html" title="EPUB::Publication::Package::Manifest::Item (class)">Item</a></span>
|
102
|
-
|
103
|
-
|
104
|
-
</p>
|
105
|
-
|
106
|
-
|
107
|
-
<h2>Instance Attribute Summary <small>(<a href="#" class="summary_toggle">collapse</a>)</small></h2>
|
108
|
-
<ul class="summary">
|
109
|
-
|
110
|
-
<li class="public ">
|
111
|
-
<span class="summary_signature">
|
112
|
-
|
113
|
-
<a href="#id-instance_method" title="#id (instance method)">- (Object) <strong>id</strong> </a>
|
114
|
-
|
115
|
-
|
116
|
-
|
117
|
-
</span>
|
118
|
-
|
119
|
-
|
120
|
-
|
121
|
-
|
122
|
-
|
123
|
-
|
124
|
-
|
125
|
-
|
126
|
-
|
127
|
-
|
128
|
-
|
129
|
-
<span class="summary_desc"><div class='inline'>
|
130
|
-
<p>Returns the value of attribute id.</p>
|
131
|
-
</div></span>
|
132
|
-
|
133
|
-
</li>
|
134
|
-
|
135
|
-
|
136
|
-
<li class="public ">
|
137
|
-
<span class="summary_signature">
|
138
|
-
|
139
|
-
<a href="#items-instance_method" title="#items (instance method)">- (Object) <strong>items</strong> </a>
|
140
|
-
|
141
|
-
|
142
|
-
|
143
|
-
</span>
|
144
|
-
|
145
|
-
|
146
|
-
<span class="note title readonly">readonly</span>
|
147
|
-
|
148
|
-
|
149
|
-
|
150
|
-
|
151
|
-
|
152
|
-
|
153
|
-
|
154
|
-
|
155
|
-
<span class="summary_desc"><div class='inline'>
|
156
|
-
<p>Returns the value of attribute items.</p>
|
157
|
-
</div></span>
|
158
|
-
|
159
|
-
</li>
|
160
|
-
|
161
|
-
|
162
|
-
<li class="public ">
|
163
|
-
<span class="summary_signature">
|
164
|
-
|
165
|
-
<a href="#package-instance_method" title="#package (instance method)">- (Object) <strong>package</strong> </a>
|
166
|
-
|
167
|
-
|
168
|
-
|
169
|
-
</span>
|
170
|
-
|
171
|
-
|
172
|
-
|
173
|
-
|
174
|
-
|
175
|
-
|
176
|
-
|
177
|
-
|
178
|
-
|
179
|
-
|
180
|
-
|
181
|
-
<span class="summary_desc"><div class='inline'>
|
182
|
-
<p>Returns the value of attribute package.</p>
|
183
|
-
</div></span>
|
184
|
-
|
185
|
-
</li>
|
186
|
-
|
187
|
-
|
188
|
-
</ul>
|
189
|
-
|
190
|
-
|
191
|
-
|
192
|
-
|
193
|
-
|
194
|
-
<h2>
|
195
|
-
Instance Method Summary
|
196
|
-
<small>(<a href="#" class="summary_toggle">collapse</a>)</small>
|
197
|
-
</h2>
|
198
|
-
|
199
|
-
<ul class="summary">
|
200
|
-
|
201
|
-
<li class="public ">
|
202
|
-
<span class="summary_signature">
|
203
|
-
|
204
|
-
<a href="#%3C%3C-instance_method" title="#<< (instance method)">- (Object) <strong><<</strong>(item) </a>
|
205
|
-
|
206
|
-
|
207
|
-
|
208
|
-
</span>
|
209
|
-
|
210
|
-
|
211
|
-
|
212
|
-
|
213
|
-
|
214
|
-
|
215
|
-
|
216
|
-
|
217
|
-
<span class="summary_desc"><div class='inline'>
|
218
|
-
<p>syntax sugar for #items.<<.</p>
|
219
|
-
</div></span>
|
220
|
-
|
221
|
-
</li>
|
222
|
-
|
223
|
-
|
224
|
-
<li class="public ">
|
225
|
-
<span class="summary_signature">
|
226
|
-
|
227
|
-
<a href="#%5B%5D-instance_method" title="#[] (instance method)">- (Object) <strong>[]</strong>(item_id) </a>
|
228
|
-
|
229
|
-
|
230
|
-
|
231
|
-
</span>
|
232
|
-
|
233
|
-
|
234
|
-
|
235
|
-
|
236
|
-
|
237
|
-
|
238
|
-
|
239
|
-
|
240
|
-
<span class="summary_desc"><div class='inline'></div></span>
|
241
|
-
|
242
|
-
</li>
|
243
|
-
|
244
|
-
|
245
|
-
<li class="public ">
|
246
|
-
<span class="summary_signature">
|
247
|
-
|
248
|
-
<a href="#nav-instance_method" title="#nav (instance method)">- (Object) <strong>nav</strong> </a>
|
249
|
-
|
250
|
-
|
251
|
-
|
252
|
-
</span>
|
253
|
-
|
254
|
-
|
255
|
-
|
256
|
-
|
257
|
-
|
258
|
-
|
259
|
-
|
260
|
-
|
261
|
-
<span class="summary_desc"><div class='inline'></div></span>
|
262
|
-
|
263
|
-
</li>
|
264
|
-
|
265
|
-
|
266
|
-
<li class="public ">
|
267
|
-
<span class="summary_signature">
|
268
|
-
|
269
|
-
<a href="#navs-instance_method" title="#navs (instance method)">- (Object) <strong>navs</strong> </a>
|
270
|
-
|
271
|
-
|
272
|
-
|
273
|
-
</span>
|
274
|
-
|
275
|
-
|
276
|
-
|
277
|
-
|
278
|
-
|
279
|
-
|
280
|
-
|
281
|
-
|
282
|
-
<span class="summary_desc"><div class='inline'>
|
283
|
-
<p>syntax sugar.</p>
|
284
|
-
</div></span>
|
285
|
-
|
286
|
-
</li>
|
287
|
-
|
288
|
-
|
289
|
-
</ul>
|
290
|
-
|
291
|
-
|
292
|
-
|
293
|
-
<div id="instance_attr_details" class="attr_details">
|
294
|
-
<h2>Instance Attribute Details</h2>
|
295
|
-
|
296
|
-
|
297
|
-
<span id="id=-instance_method"></span>
|
298
|
-
<span id="id-instance_method"></span>
|
299
|
-
<div class="method_details first">
|
300
|
-
<p class="signature first" id="id-instance_method">
|
301
|
-
|
302
|
-
- (<tt>Object</tt>) <strong>id</strong>
|
303
|
-
|
304
|
-
|
305
|
-
|
306
|
-
</p><div class="docstring">
|
307
|
-
<div class="discussion">
|
308
|
-
|
309
|
-
<p>Returns the value of attribute id</p>
|
310
|
-
|
311
|
-
|
312
|
-
</div>
|
313
|
-
</div>
|
314
|
-
<div class="tags">
|
315
|
-
|
316
|
-
|
317
|
-
</div><table class="source_code">
|
318
|
-
<tr>
|
319
|
-
<td>
|
320
|
-
<pre class="lines">
|
321
|
-
|
322
|
-
|
323
|
-
7
|
324
|
-
8
|
325
|
-
9</pre>
|
326
|
-
</td>
|
327
|
-
<td>
|
328
|
-
<pre class="code"><span class="info file"># File 'lib/epub/publication/package/manifest.rb', line 7</span>
|
329
|
-
|
330
|
-
<span class='kw'>def</span> <span class='id identifier rubyid_id'>id</span>
|
331
|
-
<span class='ivar'>@id</span>
|
332
|
-
<span class='kw'>end</span></pre>
|
333
|
-
</td>
|
334
|
-
</tr>
|
335
|
-
</table>
|
336
|
-
</div>
|
337
|
-
|
338
|
-
|
339
|
-
<span id=""></span>
|
340
|
-
<span id="items-instance_method"></span>
|
341
|
-
<div class="method_details ">
|
342
|
-
<p class="signature " id="items-instance_method">
|
343
|
-
|
344
|
-
- (<tt>Object</tt>) <strong>items</strong> <span class="extras">(readonly)</span>
|
345
|
-
|
346
|
-
|
347
|
-
|
348
|
-
</p><div class="docstring">
|
349
|
-
<div class="discussion">
|
350
|
-
|
351
|
-
<p>Returns the value of attribute items</p>
|
352
|
-
|
353
|
-
|
354
|
-
</div>
|
355
|
-
</div>
|
356
|
-
<div class="tags">
|
357
|
-
|
358
|
-
|
359
|
-
</div><table class="source_code">
|
360
|
-
<tr>
|
361
|
-
<td>
|
362
|
-
<pre class="lines">
|
363
|
-
|
364
|
-
|
365
|
-
9
|
366
|
-
10
|
367
|
-
11</pre>
|
368
|
-
</td>
|
369
|
-
<td>
|
370
|
-
<pre class="code"><span class="info file"># File 'lib/epub/publication/package/manifest.rb', line 9</span>
|
371
|
-
|
372
|
-
<span class='kw'>def</span> <span class='id identifier rubyid_items'>items</span>
|
373
|
-
<span class='ivar'>@items</span>
|
374
|
-
<span class='kw'>end</span></pre>
|
375
|
-
</td>
|
376
|
-
</tr>
|
377
|
-
</table>
|
378
|
-
</div>
|
379
|
-
|
380
|
-
|
381
|
-
<span id="package=-instance_method"></span>
|
382
|
-
<span id="package-instance_method"></span>
|
383
|
-
<div class="method_details ">
|
384
|
-
<p class="signature " id="package-instance_method">
|
385
|
-
|
386
|
-
- (<tt>Object</tt>) <strong>package</strong>
|
387
|
-
|
388
|
-
|
389
|
-
|
390
|
-
</p><div class="docstring">
|
391
|
-
<div class="discussion">
|
392
|
-
|
393
|
-
<p>Returns the value of attribute package</p>
|
394
|
-
|
395
|
-
|
396
|
-
</div>
|
397
|
-
</div>
|
398
|
-
<div class="tags">
|
399
|
-
|
400
|
-
|
401
|
-
</div><table class="source_code">
|
402
|
-
<tr>
|
403
|
-
<td>
|
404
|
-
<pre class="lines">
|
405
|
-
|
406
|
-
|
407
|
-
7
|
408
|
-
8
|
409
|
-
9</pre>
|
410
|
-
</td>
|
411
|
-
<td>
|
412
|
-
<pre class="code"><span class="info file"># File 'lib/epub/publication/package/manifest.rb', line 7</span>
|
413
|
-
|
414
|
-
<span class='kw'>def</span> <span class='id identifier rubyid_package'>package</span>
|
415
|
-
<span class='ivar'>@package</span>
|
416
|
-
<span class='kw'>end</span></pre>
|
417
|
-
</td>
|
418
|
-
</tr>
|
419
|
-
</table>
|
420
|
-
</div>
|
421
|
-
|
422
|
-
</div>
|
423
|
-
|
424
|
-
|
425
|
-
<div id="instance_method_details" class="method_details_list">
|
426
|
-
<h2>Instance Method Details</h2>
|
427
|
-
|
428
|
-
|
429
|
-
<div class="method_details first">
|
430
|
-
<p class="signature first" id="<<-instance_method">
|
431
|
-
|
432
|
-
- (<tt>Object</tt>) <strong><<</strong>(item)
|
433
|
-
|
434
|
-
|
435
|
-
|
436
|
-
</p><div class="docstring">
|
437
|
-
<div class="discussion">
|
438
|
-
|
439
|
-
<p>syntax sugar for #items.<<</p>
|
440
|
-
|
441
|
-
|
442
|
-
</div>
|
443
|
-
</div>
|
444
|
-
<div class="tags">
|
445
|
-
|
446
|
-
|
447
|
-
</div><table class="source_code">
|
448
|
-
<tr>
|
449
|
-
<td>
|
450
|
-
<pre class="lines">
|
451
|
-
|
452
|
-
|
453
|
-
12
|
454
|
-
13
|
455
|
-
14
|
456
|
-
15
|
457
|
-
16</pre>
|
458
|
-
</td>
|
459
|
-
<td>
|
460
|
-
<pre class="code"><span class="info file"># File 'lib/epub/publication/package/manifest.rb', line 12</span>
|
461
|
-
|
462
|
-
<span class='kw'>def</span> <span class='op'><<</span><span class='lparen'>(</span><span class='id identifier rubyid_item'>item</span><span class='rparen'>)</span>
|
463
|
-
<span class='ivar'>@items</span> <span class='op'>||=</span> <span class='lbracket'>[</span><span class='rbracket'>]</span>
|
464
|
-
<span class='id identifier rubyid_item'>item</span><span class='period'>.</span><span class='id identifier rubyid_manifest'>manifest</span> <span class='op'>=</span> <span class='kw'>self</span>
|
465
|
-
<span class='ivar'>@items</span> <span class='op'><<</span> <span class='id identifier rubyid_item'>item</span>
|
466
|
-
<span class='kw'>end</span></pre>
|
467
|
-
</td>
|
468
|
-
</tr>
|
469
|
-
</table>
|
470
|
-
</div>
|
471
|
-
|
472
|
-
<div class="method_details ">
|
473
|
-
<p class="signature " id="[]-instance_method">
|
474
|
-
|
475
|
-
- (<tt>Object</tt>) <strong>[]</strong>(item_id)
|
476
|
-
|
477
|
-
|
478
|
-
|
479
|
-
</p><table class="source_code">
|
480
|
-
<tr>
|
481
|
-
<td>
|
482
|
-
<pre class="lines">
|
483
|
-
|
484
|
-
|
485
|
-
27
|
486
|
-
28
|
487
|
-
29</pre>
|
488
|
-
</td>
|
489
|
-
<td>
|
490
|
-
<pre class="code"><span class="info file"># File 'lib/epub/publication/package/manifest.rb', line 27</span>
|
491
|
-
|
492
|
-
<span class='kw'>def</span> <span class='op'>[]</span><span class='lparen'>(</span><span class='id identifier rubyid_item_id'>item_id</span><span class='rparen'>)</span>
|
493
|
-
<span class='id identifier rubyid_items'>items</span><span class='period'>.</span><span class='id identifier rubyid_selector'>selector</span> <span class='lbrace'>{</span><span class='op'>|</span><span class='id identifier rubyid_item'>item</span><span class='op'>|</span> <span class='id identifier rubyid_item'>item</span><span class='period'>.</span><span class='id identifier rubyid_id'>id</span> <span class='op'>==</span> <span class='id identifier rubyid_item_id'>item_id</span><span class='rbrace'>}</span><span class='period'>.</span><span class='id identifier rubyid_first'>first</span>
|
494
|
-
<span class='kw'>end</span></pre>
|
495
|
-
</td>
|
496
|
-
</tr>
|
497
|
-
</table>
|
498
|
-
</div>
|
499
|
-
|
500
|
-
<div class="method_details ">
|
501
|
-
<p class="signature " id="nav-instance_method">
|
502
|
-
|
503
|
-
- (<tt>Object</tt>) <strong>nav</strong>
|
504
|
-
|
505
|
-
|
506
|
-
|
507
|
-
</p><table class="source_code">
|
508
|
-
<tr>
|
509
|
-
<td>
|
510
|
-
<pre class="lines">
|
511
|
-
|
512
|
-
|
513
|
-
23
|
514
|
-
24
|
515
|
-
25</pre>
|
516
|
-
</td>
|
517
|
-
<td>
|
518
|
-
<pre class="code"><span class="info file"># File 'lib/epub/publication/package/manifest.rb', line 23</span>
|
519
|
-
|
520
|
-
<span class='kw'>def</span> <span class='id identifier rubyid_nav'>nav</span>
|
521
|
-
<span class='id identifier rubyid_navs'>navs</span><span class='period'>.</span><span class='id identifier rubyid_first'>first</span>
|
522
|
-
<span class='kw'>end</span></pre>
|
523
|
-
</td>
|
524
|
-
</tr>
|
525
|
-
</table>
|
526
|
-
</div>
|
527
|
-
|
528
|
-
<div class="method_details ">
|
529
|
-
<p class="signature " id="navs-instance_method">
|
530
|
-
|
531
|
-
- (<tt>Object</tt>) <strong>navs</strong>
|
532
|
-
|
533
|
-
|
534
|
-
|
535
|
-
</p><div class="docstring">
|
536
|
-
<div class="discussion">
|
537
|
-
|
538
|
-
<p>syntax sugar</p>
|
539
|
-
|
540
|
-
|
541
|
-
</div>
|
542
|
-
</div>
|
543
|
-
<div class="tags">
|
544
|
-
|
545
|
-
|
546
|
-
</div><table class="source_code">
|
547
|
-
<tr>
|
548
|
-
<td>
|
549
|
-
<pre class="lines">
|
550
|
-
|
551
|
-
|
552
|
-
19
|
553
|
-
20
|
554
|
-
21</pre>
|
555
|
-
</td>
|
556
|
-
<td>
|
557
|
-
<pre class="code"><span class="info file"># File 'lib/epub/publication/package/manifest.rb', line 19</span>
|
558
|
-
|
559
|
-
<span class='kw'>def</span> <span class='id identifier rubyid_navs'>navs</span>
|
560
|
-
<span class='id identifier rubyid_items'>items</span><span class='period'>.</span><span class='id identifier rubyid_selector'>selector</span> <span class='lbrace'>{</span><span class='op'>|</span><span class='id identifier rubyid_i'>i</span><span class='op'>|</span> <span class='id identifier rubyid_i'>i</span><span class='period'>.</span><span class='id identifier rubyid_properties'>properties</span><span class='period'>.</span><span class='id identifier rubyid_include?'>include?</span> <span class='tstring'><span class='tstring_beg'>'</span><span class='tstring_content'>nav</span><span class='tstring_end'>'</span></span><span class='rbrace'>}</span>
|
561
|
-
<span class='kw'>end</span></pre>
|
562
|
-
</td>
|
563
|
-
</tr>
|
564
|
-
</table>
|
565
|
-
</div>
|
566
|
-
|
567
|
-
</div>
|
568
|
-
|
569
|
-
</div>
|
570
|
-
|
571
|
-
<div id="footer">
|
572
|
-
Generated on Fri Dec 30 08:49:45 2011 by
|
573
|
-
<a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
|
574
|
-
0.7.4 (ruby-1.9.3).
|
575
|
-
</div>
|
576
|
-
|
577
|
-
</body>
|
578
|
-
</html>
|