jazzy 0.0.3 → 0.0.4
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.
- checksums.yaml +4 -4
- data/DEV_README.md +35 -0
- data/Gemfile +11 -0
- data/Gemfile.lock +32 -0
- data/README.md +7 -29
- data/bin/generate_swift_header.sh +14 -0
- data/jazzy.gemspec +3 -3
- data/lib/jazzy.rb +146 -153
- data/lib/jazzy/klass.mustache +137 -312
- data/lib/jazzy/klass.rb +0 -4
- data/lib/jazzy/partials/klass-method.mustache +68 -82
- data/lib/jazzy/partials/klass-overview.mustache +2 -2
- data/lib/jazzy/partials/klass-property.mustache +40 -51
- data/parser/ASTDump.xcodeproj/project.pbxproj +21 -8
- data/parser/clang-c/Index.h +17 -1
- data/{parser/ASTDump → sample}/JAZMusician.h +1 -1
- data/{parser/ASTDump → sample}/JAZMusician.m +0 -0
- data/sample/Musician.swift +37 -0
- data/screenshot.jpg +0 -0
- metadata +13 -7
- data/bin/SwiftHeader +0 -22
data/lib/jazzy/klass.mustache
CHANGED
@@ -1,325 +1,150 @@
|
|
1
1
|
<!DOCTYPE html>
|
2
2
|
<html lang="en">
|
3
|
-
|
4
|
-
<head>
|
3
|
+
<head>
|
5
4
|
<title>{{name}} Class Reference</title>
|
6
5
|
<link rel="stylesheet" type="text/css" href="CSS/style-1.1.15.css" />
|
7
6
|
<meta charset='utf-8'>
|
8
|
-
<meta id="
|
9
|
-
|
10
|
-
|
11
|
-
<
|
12
|
-
<meta id="book-assignments" name="book-assignments" content="{Type/Reference}, {Framework/Core Services Layer/CloudKit}" />
|
13
|
-
<meta scheme="apple_ref" id="identifier" name="identifier" content="//apple_ref/doc/uid/TP40014033" />
|
14
|
-
<meta id="book-title" name="book-title" content="CKAsset Class Reference" />
|
15
|
-
<meta id="book-resource-type" name="book-resource-type" content="Reference" />
|
16
|
-
<meta id="book-root" name="book-root" content="./" />
|
17
|
-
<meta id="book-json" name="book-json" content="book.json">
|
18
|
-
<meta id="date" name="date" content="2014-05-22" />
|
19
|
-
<meta id="description" name="description" content="Describes a data file to be stored in iCloud." />
|
20
|
-
<meta id="IndexTitle" name="IndexTitle" content="" />
|
21
|
-
|
22
|
-
<meta id="devcenter" name="devcenter" content="<!-- DEVCENTER_NAME -->" />
|
23
|
-
<meta id="devcenter-url" name="devcenter-url" content="<!-- DEVCENTER_URL -->" />
|
24
|
-
<meta id="reflib" name="reflib" content="<!-- REFLIB_NAME -->" />
|
25
|
-
|
26
|
-
<meta id="xcode-display" name="xcode-display" content="render" />
|
27
|
-
<meta name="apple-mobile-web-app-capable" content="yes" />
|
28
|
-
<meta name="viewport" content="width=device-width, maximum-scale=1.0">
|
29
|
-
<meta id="framework" name="framework" content="CloudKit" />
|
30
|
-
</head>
|
31
|
-
|
32
|
-
<body id="reference" class="jazz both">
|
33
|
-
<div id="_omniture_top">
|
34
|
-
<!-- SiteCatalyst code will be injected here when viewed in production -->
|
35
|
-
</div>
|
36
|
-
<a name="//apple_ref/doc/uid/TP40014033" title="{{name}} Class Reference"></a>
|
37
|
-
|
7
|
+
<meta id="book-title" name="book-title" content="{{name}} Class Reference" />
|
8
|
+
</head>
|
9
|
+
<body id="reference" class="jazz both">
|
10
|
+
<a title="{{name}} Class Reference"></a>
|
38
11
|
<header id="ios_header" class="hideOnPrint hideInXcode">
|
39
|
-
|
40
|
-
|
41
|
-
|
42
|
-
|
43
|
-
|
44
|
-
|
45
|
-
|
46
|
-
|
12
|
+
<div class="content-wrapper">
|
13
|
+
<p class="header-text">
|
14
|
+
<a href="#">jazzy ♪♫</a>
|
15
|
+
</p>
|
16
|
+
<p id="wwdr">
|
17
|
+
<img id="apple_logo" src="Images/apple2.png" height="14px" width="12px" aria-hidden="true" /><a href="#">jazzy ♪♫</a>
|
18
|
+
</p>
|
19
|
+
</div>
|
47
20
|
</header>
|
48
|
-
|
49
21
|
<section id="valence">
|
50
|
-
|
51
|
-
|
52
|
-
|
53
|
-
|
54
|
-
|
55
|
-
|
56
|
-
|
57
|
-
|
58
|
-
</form>
|
59
|
-
|
60
|
-
<img id="shortstack" src="Images/shortstack_2x.png" />
|
61
|
-
</div>
|
22
|
+
<div class="content-wrapper">
|
23
|
+
<p id="hierarchial_navigation">
|
24
|
+
<a href="#" id="design_resources_link">Jazzy Docs</a>
|
25
|
+
<img id="carat" src="Images/carat_2x.png" height="10px" width="6px" aria-hidden="true" />
|
26
|
+
<span id="book_title">{{name}} Class Reference</span>
|
27
|
+
</p>
|
28
|
+
<img id="shortstack" src="Images/shortstack_2x.png" />
|
29
|
+
</div>
|
62
30
|
</section>
|
63
31
|
<div class="content-wrapper">
|
64
|
-
|
65
|
-
|
66
|
-
|
67
|
-
|
68
|
-
|
69
|
-
|
70
|
-
|
71
|
-
|
72
|
-
|
73
|
-
|
74
|
-
|
75
|
-
|
76
|
-
|
77
|
-
|
78
|
-
|
79
|
-
|
80
|
-
</
|
81
|
-
|
82
|
-
|
83
|
-
<
|
84
|
-
|
85
|
-
<a name="//apple_ref/occ/cl/CKAsset"></a>
|
86
|
-
<a name="//apple_ref/swift/cl/CKAsset"></a>
|
87
|
-
<a name="//apple_ref/doc/c_ref/CKAsset"></a>
|
88
|
-
<div class="pixel-line"></div>
|
89
|
-
|
90
|
-
<menu id="bashful" type="toolbar">
|
91
|
-
<div class="shield"></div>
|
92
|
-
<menuitem id="language">
|
93
|
-
<span>Language:</span>
|
94
|
-
<input id="swift" type="radio" name="li" value="Swift" />
|
95
|
-
<label for="swift">Swift</label>
|
96
|
-
<input id="obj_c" type="radio" name="li" value="Objective-C" />
|
97
|
-
<label for="obj_c">Obj-C</label>
|
98
|
-
<input id="both" type="radio" name="li" value="both" />
|
99
|
-
<label for="both" class="selected">Both</label>
|
100
|
-
</menuitem>
|
101
|
-
<menuitem id="jump_to" class="menu-bar-item closed">
|
102
|
-
<span>On This Page</span>
|
103
|
-
<div class="chevron">
|
104
|
-
<div class="chevy chevron-left"></div>
|
105
|
-
<div class="chevy chevron-right"></div>
|
106
|
-
</div>
|
107
|
-
<menu type="list" class="details">
|
108
|
-
<input class="filter" type="search" placeholder="Filter list of symbols" autocorrect="off" spellcheck="false" tabindex="1" />
|
109
|
-
<span id="filter_matches" role="status" aria-live="polite"></span>
|
110
|
-
<ul class="list-bullet Objective-C">
|
111
|
-
<li class="item">
|
112
|
-
<a class="otp-indent" href="#//apple_ref/occ/instp/CKAsset/fileURL">fileURL</a>
|
113
|
-
</li>
|
114
|
-
<li class="item">
|
115
|
-
<a href="#//apple_ref/occ/instm/CKAsset/initWithFileURL:">- initWithFileURL:</a>
|
116
|
-
</li>
|
117
|
-
</ul>
|
118
|
-
<ul class="list-bullet Swift">
|
119
|
-
<li class="item">
|
120
|
-
<a class="otp-indent" href="#//apple_ref/occ/instp/CKAsset/fileURL">fileURL</a>
|
121
|
-
</li>
|
122
|
-
<li class="item">
|
123
|
-
<a class="otp-indent" href="#//apple_ref/occ/instm/CKAsset/initWithFileURL:">init(fileURL:)</a>
|
124
|
-
</li>
|
125
|
-
</ul>
|
126
|
-
</menu>
|
127
|
-
</menuitem>
|
128
|
-
<menuitem id="options" class="menu-bar-item closed">
|
129
|
-
<span>Options</span>
|
130
|
-
<div class="chevron">
|
131
|
-
<div class="chevy chevron-left"></div>
|
132
|
-
<div class="chevy chevron-right"></div>
|
133
|
-
</div>
|
134
|
-
<menu type="list" class="details">
|
135
|
-
<menuitem>
|
136
|
-
<span>Deployment Target:</span>
|
137
|
-
|
138
|
-
<select id="deployment_target_ios" data-availability="8.0">
|
139
|
-
<option value="999">Latest</option>
|
140
|
-
<option value="8.0">iOS 8.0</option>
|
141
|
-
<option value="7.1" disabled>iOS 7.1</option>
|
142
|
-
<option value="7.0" disabled>iOS 7.0</option>
|
143
|
-
<option value="6.1" disabled>iOS 6.1</option>
|
144
|
-
<option value="6.0" disabled>iOS 6.0</option>
|
145
|
-
<option value="5.1" disabled>iOS 5.1</option>
|
146
|
-
<option value="5.0" disabled>iOS 5.0</option>
|
147
|
-
<option value="4.3" disabled>iOS 4.3</option>
|
148
|
-
<option value="4.2" disabled>iOS 4.2</option>
|
149
|
-
<option value="4.1" disabled>iOS 4.1</option>
|
150
|
-
<option value="4.0" disabled>iOS 4.0</option>
|
151
|
-
<option value="3.2" disabled>iOS 3.2</option>
|
152
|
-
<option value="3.1" disabled>iOS 3.1</option>
|
153
|
-
<option value="3.0" disabled>iOS 3.0</option>
|
154
|
-
<option value="2.2" disabled>iOS 2.2</option>
|
155
|
-
<option value="2.1" disabled>iOS 2.1</option>
|
156
|
-
<option value="2.0" disabled>iOS 2.0</option>
|
157
|
-
</select>
|
158
|
-
</menuitem>
|
159
|
-
<br />
|
160
|
-
<menuitem>
|
161
|
-
<input id="deprecated" type="checkbox" name="deprecated" />
|
162
|
-
<label for="deprecated">
|
163
|
-
Hide deprecated symbols
|
164
|
-
<span class="keyboard-shortcut" title="Keyboard shortcut: D">D</span>
|
165
|
-
</label>
|
166
|
-
</menuitem>
|
167
|
-
<br />
|
168
|
-
<menuitem>
|
169
|
-
<input id="auto_expand" type="checkbox" name="auto_expand" />
|
170
|
-
<label for="auto_expand">
|
171
|
-
Auto-expand all symbols
|
172
|
-
<span class="keyboard-shortcut" title="Keyboard shortcut: A">A</span>
|
173
|
-
</label>
|
174
|
-
</menuitem>
|
175
|
-
</menu>
|
176
|
-
</menuitem>
|
32
|
+
<nav class='book-parts hideInXcode'>
|
33
|
+
<ul class="nav-parts">
|
34
|
+
<li class="part-name tasks">No Tasks</li>
|
35
|
+
</ul>
|
36
|
+
</nav>
|
37
|
+
<article class="chapter">
|
38
|
+
<div class="pixel-line"></div>
|
39
|
+
<menu id="bashful" type="toolbar">
|
40
|
+
<div class="shield"></div>
|
41
|
+
<menuitem id="language">
|
42
|
+
<span>Language:</span>
|
43
|
+
<input id="swift" type="radio" name="li" value="Swift" />
|
44
|
+
<label for="swift">Swift</label>
|
45
|
+
<input id="obj_c" type="radio" name="li" value="Objective-C" />
|
46
|
+
<label for="obj_c">Obj-C</label>
|
47
|
+
<input id="both" type="radio" name="li" value="both" />
|
48
|
+
<label for="both" class="selected">Both</label>
|
49
|
+
</menuitem>
|
50
|
+
<menuitem id="jump_to" class="menu-bar-item closed">
|
51
|
+
<menu type="list" class="details">
|
52
|
+
<input class="filter" type="search"/>
|
177
53
|
</menu>
|
178
|
-
|
179
|
-
|
180
|
-
|
181
|
-
|
182
|
-
|
183
|
-
|
184
|
-
|
185
|
-
|
186
|
-
|
187
|
-
|
188
|
-
|
189
|
-
|
190
|
-
|
191
|
-
|
192
|
-
|
193
|
-
|
194
|
-
|
195
|
-
|
196
|
-
|
197
|
-
|
198
|
-
|
199
|
-
|
200
|
-
|
201
|
-
|
202
|
-
|
203
|
-
|
204
|
-
|
205
|
-
|
206
|
-
|
207
|
-
|
208
|
-
|
209
|
-
|
210
|
-
|
211
|
-
|
212
|
-
|
213
|
-
|
214
|
-
|
215
|
-
|
216
|
-
|
217
|
-
|
218
|
-
|
219
|
-
|
220
|
-
|
221
|
-
|
222
|
-
|
223
|
-
|
224
|
-
|
225
|
-
|
226
|
-
|
227
|
-
|
228
|
-
|
229
|
-
|
230
|
-
|
231
|
-
|
232
|
-
|
233
|
-
|
234
|
-
|
235
|
-
|
236
|
-
|
237
|
-
|
238
|
-
|
239
|
-
|
240
|
-
|
241
|
-
|
242
|
-
|
243
|
-
|
244
|
-
|
245
|
-
|
246
|
-
|
247
|
-
|
248
|
-
|
249
|
-
|
250
|
-
|
251
|
-
|
252
|
-
|
253
|
-
|
254
|
-
|
255
|
-
|
256
|
-
|
257
|
-
|
258
|
-
|
259
|
-
|
260
|
-
|
261
|
-
|
262
|
-
|
263
|
-
|
264
|
-
|
265
|
-
|
266
|
-
|
267
|
-
|
268
|
-
|
269
|
-
|
270
|
-
|
271
|
-
|
272
|
-
<section class="section task-group-section">
|
273
|
-
<a name="//apple_ref/doc/uid/TP40014033-CH1-DontLinkElementID_2"></a>
|
274
|
-
<div class="task-group">
|
275
|
-
<div class="task-name-container">
|
276
|
-
<a name="//apple_ref/doc/uid/TP40014033-CH1-SW3"></a>
|
277
|
-
<a href="#//apple_ref/doc/uid/TP40014033-CH1-SW3">
|
278
|
-
<h3 class="section-name">Getting the URL of the Asset</h3>
|
279
|
-
</a>
|
280
|
-
</div>
|
281
|
-
<ul class="task-group-list">
|
282
|
-
{{#methods}}
|
283
|
-
{{> jazzy/partials/klass-method}}
|
284
|
-
{{/methods}}
|
285
|
-
{{#properties}}
|
286
|
-
{{> jazzy/partials/klass-property}}
|
287
|
-
{{/properties}}
|
288
|
-
<li class="hiding-symbol-counts">
|
289
|
-
<p><em class="hiding-swift"></em>
|
290
|
-
</p>
|
291
|
-
<p><em class="hiding-obj-c"></em>
|
292
|
-
</p>
|
293
|
-
<p><em class="hiding-dep"></em>
|
294
|
-
</p>
|
295
|
-
<p><em class="hiding-dt"></em>
|
296
|
-
</p>
|
297
|
-
</li>
|
298
|
-
</ul>
|
299
|
-
</div>
|
300
|
-
</section>
|
301
|
-
|
302
|
-
|
303
|
-
</section>
|
304
|
-
|
305
|
-
|
306
|
-
<section id="next_previous">
|
307
|
-
<p class="copyright">Copyright © 2014 Apple Inc. All rights reserved.
|
308
|
-
<a class="link" href="http://www.apple.com/legal/terms/site.html" target="_blank" rel="external">Terms of Use</a> |
|
309
|
-
<a class="link" href="http://www.apple.com/privacy/" target="_blank" rel="external">Privacy Policy</a> | Updated: 2014-05-22
|
310
|
-
</p>
|
311
|
-
</section>
|
312
|
-
|
313
|
-
</article>
|
314
|
-
|
54
|
+
</menuitem>
|
55
|
+
<menuitem id="options" class="menu-bar-item closed">
|
56
|
+
</menuitem>
|
57
|
+
</menu>
|
58
|
+
<div class="rubber-band-gap"></div>
|
59
|
+
<h1 class="chapter-name">{{name}}</h1>
|
60
|
+
<section id="reference_container">
|
61
|
+
<section class="z-class-description section">
|
62
|
+
{{> jazzy/partials/klass-overview }}
|
63
|
+
</section>
|
64
|
+
<section id="metadata_table">
|
65
|
+
<div class="inheritance">
|
66
|
+
<p class="para">Inheritance</p>
|
67
|
+
<hr />
|
68
|
+
<ul class="Swift">
|
69
|
+
{{#inherits}}
|
70
|
+
<li class="depth4">
|
71
|
+
<code class="code-voice">
|
72
|
+
<a href="{{usr}}">{{name}}</a>
|
73
|
+
</code>
|
74
|
+
</li>
|
75
|
+
{{/inherits}}
|
76
|
+
<li class="depth5 subclass">
|
77
|
+
<code class="code-voice">{{name}}</code>
|
78
|
+
</li>
|
79
|
+
</ul>
|
80
|
+
<ul class="Objective-C">
|
81
|
+
{{#inherits}}
|
82
|
+
<li class="depth4">
|
83
|
+
<code class="code-voice">
|
84
|
+
<a href="{{usr}}">{{name}}</a>
|
85
|
+
</code>
|
86
|
+
</li>
|
87
|
+
{{/inherits}}
|
88
|
+
<li class="depth5 subclass">
|
89
|
+
<code class="code-voice">{{name}}</code>
|
90
|
+
</li>
|
91
|
+
</ul>
|
92
|
+
</div>
|
93
|
+
<div class="conforms-to">
|
94
|
+
<p class="para">Conforms To</p>
|
95
|
+
<hr />
|
96
|
+
<ul>
|
97
|
+
{{#conforms}}
|
98
|
+
<li class="Swift">
|
99
|
+
<code class="code-voice">
|
100
|
+
{{name}}
|
101
|
+
</code>
|
102
|
+
</li>
|
103
|
+
{{/conforms}}
|
104
|
+
<li class="Objective-C">
|
105
|
+
<code class="code-voice">
|
106
|
+
<a href="#">NSObject</a>
|
107
|
+
</code>
|
108
|
+
</li>
|
109
|
+
</ul>
|
110
|
+
</div>
|
111
|
+
<div class="last-box">
|
112
|
+
<div class="z-module-import half">
|
113
|
+
<p class="para">Import Statement</p>
|
114
|
+
<hr />
|
115
|
+
<code class="code-voice Swift">import {{import}}</code>
|
116
|
+
<code class="code-voice Objective-C">@import {{import}};</code>
|
117
|
+
</div>
|
118
|
+
</div>
|
119
|
+
</section>
|
120
|
+
<section class="section task-group-section">
|
121
|
+
<div class="task-group">
|
122
|
+
<div class="task-name-container">
|
123
|
+
<h3 class="section-name">Methods</h3>
|
124
|
+
</div>
|
125
|
+
<ul class="task-group-list">
|
126
|
+
{{#methods}}
|
127
|
+
{{> jazzy/partials/klass-method}}
|
128
|
+
{{/methods}}
|
129
|
+
{{#properties}}
|
130
|
+
{{> jazzy/partials/klass-property}}
|
131
|
+
{{/properties}}
|
132
|
+
<li class="hiding-symbol-counts">
|
133
|
+
<p><em class="hiding-swift"></em>
|
134
|
+
</p>
|
135
|
+
<p><em class="hiding-obj-c"></em>
|
136
|
+
</p>
|
137
|
+
<p><em class="hiding-dep"></em>
|
138
|
+
</p>
|
139
|
+
<p><em class="hiding-dt"></em>
|
140
|
+
</p>
|
141
|
+
</li>
|
142
|
+
</ul>
|
143
|
+
</div>
|
144
|
+
</section>
|
145
|
+
</section>
|
146
|
+
</article>
|
315
147
|
</div>
|
316
|
-
<
|
317
|
-
|
318
|
-
<div id="leave_feedback" class="button" role="button" tabindex="0">Feedback</div>
|
319
|
-
</div>
|
320
|
-
<script src="JavaScript/devpubs-1.1.15.js" type="text/javascript" charset="utf-8"></script>
|
321
|
-
</footer>
|
322
|
-
|
323
|
-
|
324
|
-
</body>
|
148
|
+
<script src="JavaScript/devpubs-1.1.15.js" type="text/javascript" charset="utf-8"></script>
|
149
|
+
</body>
|
325
150
|
</html>
|