procreate-swatches 0.1.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +7 -0
- data/.codeclimate.yml +7 -0
- data/.gitignore +16 -0
- data/.rspec +2 -0
- data/.rubocop.yml +8 -0
- data/.ruby-version +1 -0
- data/.travis.yml +19 -0
- data/.yardopts +5 -0
- data/CODE_OF_CONDUCT.md +74 -0
- data/Gemfile +6 -0
- data/Gemfile.lock +102 -0
- data/LICENSE.txt +21 -0
- data/README.md +230 -0
- data/Rakefile +8 -0
- data/bin/console +14 -0
- data/bin/setup +8 -0
- data/doc/Procreate/Swatches/ColorsHelper.html +693 -0
- data/doc/Procreate/Swatches/Errors/InvalidFormat.html +220 -0
- data/doc/Procreate/Swatches/Errors/InvalidPath.html +220 -0
- data/doc/Procreate/Swatches/Errors.html +128 -0
- data/doc/Procreate/Swatches/Exporter.html +754 -0
- data/doc/Procreate/Swatches/Parser.html +622 -0
- data/doc/Procreate/Swatches/Wrapper.html +1168 -0
- data/doc/Procreate/Swatches.html +497 -0
- data/doc/Procreate.html +128 -0
- data/doc/_index.html +209 -0
- data/doc/class_list.html +51 -0
- data/doc/css/common.css +1 -0
- data/doc/css/full_list.css +58 -0
- data/doc/css/style.css +496 -0
- data/doc/file.CODE_OF_CONDUCT.html +146 -0
- data/doc/file.LICENSE.html +70 -0
- data/doc/file.README.html +296 -0
- data/doc/file_list.html +66 -0
- data/doc/frames.html +17 -0
- data/doc/index.html +296 -0
- data/doc/js/app.js +292 -0
- data/doc/js/full_list.js +216 -0
- data/doc/js/jquery.js +4 -0
- data/doc/method_list.html +275 -0
- data/doc/top-level-namespace.html +110 -0
- data/lib/procreate/swatches/colors_helper.rb +83 -0
- data/lib/procreate/swatches/errors/invalid_format.rb +19 -0
- data/lib/procreate/swatches/errors/invalid_path.rb +16 -0
- data/lib/procreate/swatches/exporter.rb +131 -0
- data/lib/procreate/swatches/parser.rb +82 -0
- data/lib/procreate/swatches/version.rb +8 -0
- data/lib/procreate/swatches/wrapper.rb +155 -0
- data/lib/procreate/swatches.rb +60 -0
- data/procreate-swatches.gemspec +41 -0
- metadata +275 -0
@@ -0,0 +1,754 @@
|
|
1
|
+
<!DOCTYPE html>
|
2
|
+
<html>
|
3
|
+
<head>
|
4
|
+
<meta charset="utf-8">
|
5
|
+
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
6
|
+
<title>
|
7
|
+
Class: Procreate::Swatches::Exporter
|
8
|
+
|
9
|
+
— Documentation by YARD 0.9.16
|
10
|
+
|
11
|
+
</title>
|
12
|
+
|
13
|
+
<link rel="stylesheet" href="../../css/style.css" type="text/css" charset="utf-8" />
|
14
|
+
|
15
|
+
<link rel="stylesheet" href="../../css/common.css" type="text/css" charset="utf-8" />
|
16
|
+
|
17
|
+
<script type="text/javascript" charset="utf-8">
|
18
|
+
pathId = "Procreate::Swatches::Exporter";
|
19
|
+
relpath = '../../';
|
20
|
+
</script>
|
21
|
+
|
22
|
+
|
23
|
+
<script type="text/javascript" charset="utf-8" src="../../js/jquery.js"></script>
|
24
|
+
|
25
|
+
<script type="text/javascript" charset="utf-8" src="../../js/app.js"></script>
|
26
|
+
|
27
|
+
|
28
|
+
</head>
|
29
|
+
<body>
|
30
|
+
<div class="nav_wrap">
|
31
|
+
<iframe id="nav" src="../../class_list.html?1"></iframe>
|
32
|
+
<div id="resizer"></div>
|
33
|
+
</div>
|
34
|
+
|
35
|
+
<div id="main" tabindex="-1">
|
36
|
+
<div id="header">
|
37
|
+
<div id="menu">
|
38
|
+
|
39
|
+
<a href="../../_index.html">Index (E)</a> »
|
40
|
+
<span class='title'><span class='object_link'><a href="../../Procreate.html" title="Procreate (module)">Procreate</a></span></span> » <span class='title'><span class='object_link'><a href="../Swatches.html" title="Procreate::Swatches (module)">Swatches</a></span></span>
|
41
|
+
»
|
42
|
+
<span class="title">Exporter</span>
|
43
|
+
|
44
|
+
</div>
|
45
|
+
|
46
|
+
<div id="search">
|
47
|
+
|
48
|
+
<a class="full_list_link" id="class_list_link"
|
49
|
+
href="../../class_list.html">
|
50
|
+
|
51
|
+
<svg width="24" height="24">
|
52
|
+
<rect x="0" y="4" width="24" height="4" rx="1" ry="1"></rect>
|
53
|
+
<rect x="0" y="12" width="24" height="4" rx="1" ry="1"></rect>
|
54
|
+
<rect x="0" y="20" width="24" height="4" rx="1" ry="1"></rect>
|
55
|
+
</svg>
|
56
|
+
</a>
|
57
|
+
|
58
|
+
</div>
|
59
|
+
<div class="clear"></div>
|
60
|
+
</div>
|
61
|
+
|
62
|
+
<div id="content"><h1>Class: Procreate::Swatches::Exporter
|
63
|
+
|
64
|
+
|
65
|
+
|
66
|
+
</h1>
|
67
|
+
<div class="box_info">
|
68
|
+
|
69
|
+
<dl>
|
70
|
+
<dt>Inherits:</dt>
|
71
|
+
<dd>
|
72
|
+
<span class="inheritName">Object</span>
|
73
|
+
|
74
|
+
<ul class="fullTree">
|
75
|
+
<li>Object</li>
|
76
|
+
|
77
|
+
<li class="next">Procreate::Swatches::Exporter</li>
|
78
|
+
|
79
|
+
</ul>
|
80
|
+
<a href="#" class="inheritanceTree">show all</a>
|
81
|
+
|
82
|
+
</dd>
|
83
|
+
</dl>
|
84
|
+
|
85
|
+
|
86
|
+
|
87
|
+
|
88
|
+
|
89
|
+
|
90
|
+
<dl>
|
91
|
+
<dt>Includes:</dt>
|
92
|
+
<dd>CallableClass</dd>
|
93
|
+
</dl>
|
94
|
+
|
95
|
+
|
96
|
+
|
97
|
+
|
98
|
+
|
99
|
+
|
100
|
+
<dl>
|
101
|
+
<dt>Defined in:</dt>
|
102
|
+
<dd>lib/procreate/swatches/exporter.rb</dd>
|
103
|
+
</dl>
|
104
|
+
|
105
|
+
</div>
|
106
|
+
|
107
|
+
<h2>Overview</h2><div class="docstring">
|
108
|
+
<div class="discussion">
|
109
|
+
|
110
|
+
<p>The class that handles the export of a <span class='object_link'><a href="Wrapper.html" title="Procreate::Swatches::Wrapper (class)">Wrapper</a></span> to a
|
111
|
+
<code>.swatches</code> file.</p>
|
112
|
+
|
113
|
+
|
114
|
+
</div>
|
115
|
+
</div>
|
116
|
+
<div class="tags">
|
117
|
+
|
118
|
+
|
119
|
+
</div>
|
120
|
+
|
121
|
+
<h2>
|
122
|
+
Constant Summary
|
123
|
+
<small><a href="#" class="constants_summary_toggle">collapse</a></small>
|
124
|
+
</h2>
|
125
|
+
|
126
|
+
<dl class="constants">
|
127
|
+
|
128
|
+
<dt id="PERMITTED_OPTIONS-constant" class="">PERMITTED_OPTIONS =
|
129
|
+
<div class="docstring">
|
130
|
+
<div class="discussion">
|
131
|
+
|
132
|
+
<p>Permitted options. Any other key will be discarded.</p>
|
133
|
+
|
134
|
+
|
135
|
+
</div>
|
136
|
+
</div>
|
137
|
+
<div class="tags">
|
138
|
+
|
139
|
+
|
140
|
+
</div>
|
141
|
+
</dt>
|
142
|
+
<dd><pre class="code"><span class='qsymbols_beg'>%i[</span><span class='tstring_content'>export_directory</span><span class='words_sep'> </span><span class='tstring_content'>file_name</span><span class='words_sep'>]</span><span class='period'>.</span><span class='id identifier rubyid_freeze'>freeze</span></pre></dd>
|
143
|
+
|
144
|
+
</dl>
|
145
|
+
|
146
|
+
|
147
|
+
|
148
|
+
|
149
|
+
|
150
|
+
<h2>Instance Attribute Summary <small><a href="#" class="summary_toggle">collapse</a></small></h2>
|
151
|
+
<ul class="summary">
|
152
|
+
|
153
|
+
<li class="public ">
|
154
|
+
<span class="summary_signature">
|
155
|
+
|
156
|
+
<a href="#options-instance_method" title="#options (instance method)">#<strong>options</strong> ⇒ Hash </a>
|
157
|
+
|
158
|
+
|
159
|
+
|
160
|
+
</span>
|
161
|
+
|
162
|
+
|
163
|
+
|
164
|
+
|
165
|
+
|
166
|
+
|
167
|
+
|
168
|
+
|
169
|
+
|
170
|
+
|
171
|
+
|
172
|
+
|
173
|
+
<span class="summary_desc"><div class='inline'>
|
174
|
+
<p>Export options.</p>
|
175
|
+
</div></span>
|
176
|
+
|
177
|
+
</li>
|
178
|
+
|
179
|
+
|
180
|
+
<li class="public ">
|
181
|
+
<span class="summary_signature">
|
182
|
+
|
183
|
+
<a href="#swatches_path-instance_method" title="#swatches_path (instance method)">#<strong>swatches_path</strong> ⇒ Object </a>
|
184
|
+
|
185
|
+
|
186
|
+
|
187
|
+
</span>
|
188
|
+
|
189
|
+
|
190
|
+
|
191
|
+
|
192
|
+
<span class="note title readonly">readonly</span>
|
193
|
+
|
194
|
+
|
195
|
+
|
196
|
+
|
197
|
+
|
198
|
+
|
199
|
+
|
200
|
+
|
201
|
+
|
202
|
+
<span class="summary_desc"><div class='inline'>
|
203
|
+
<p>The computed path of the <code>.swatches</code> file, after the file was
|
204
|
+
exported.</p>
|
205
|
+
</div></span>
|
206
|
+
|
207
|
+
</li>
|
208
|
+
|
209
|
+
|
210
|
+
<li class="public ">
|
211
|
+
<span class="summary_signature">
|
212
|
+
|
213
|
+
<a href="#wrapper-instance_method" title="#wrapper (instance method)">#<strong>wrapper</strong> ⇒ Object </a>
|
214
|
+
|
215
|
+
|
216
|
+
|
217
|
+
</span>
|
218
|
+
|
219
|
+
|
220
|
+
|
221
|
+
|
222
|
+
|
223
|
+
|
224
|
+
|
225
|
+
|
226
|
+
|
227
|
+
|
228
|
+
|
229
|
+
|
230
|
+
<span class="summary_desc"><div class='inline'>
|
231
|
+
<p>An instance of <span class='object_link'><a href="Wrapper.html" title="Procreate::Swatches::Wrapper (class)">Wrapper</a></span>.</p>
|
232
|
+
</div></span>
|
233
|
+
|
234
|
+
</li>
|
235
|
+
|
236
|
+
|
237
|
+
</ul>
|
238
|
+
|
239
|
+
|
240
|
+
|
241
|
+
|
242
|
+
|
243
|
+
<h2>
|
244
|
+
Class Method Summary
|
245
|
+
<small><a href="#" class="summary_toggle">collapse</a></small>
|
246
|
+
</h2>
|
247
|
+
|
248
|
+
<ul class="summary">
|
249
|
+
|
250
|
+
<li class="public ">
|
251
|
+
<span class="summary_signature">
|
252
|
+
|
253
|
+
<a href="#call-class_method" title="call (class method)">.<strong>call</strong> ⇒ Object </a>
|
254
|
+
|
255
|
+
|
256
|
+
|
257
|
+
</span>
|
258
|
+
|
259
|
+
|
260
|
+
|
261
|
+
|
262
|
+
|
263
|
+
|
264
|
+
|
265
|
+
|
266
|
+
|
267
|
+
<span class="summary_desc"><div class='inline'>
|
268
|
+
<p>Creates a new instance of <span class='object_link'><a href="" title="Procreate::Swatches::Exporter (class)">Exporter</a></span> and calls <span class='object_link'><a href="#call-instance_method" title="Procreate::Swatches::Exporter#call (method)">#call</a></span>
|
269
|
+
Dynamically included by using
|
270
|
+
<a href="https://github.com/laurentzziu/callable_class" target="_parent" title="CallableClass">CallableClass</a> gem.</p>
|
271
|
+
</div></span>
|
272
|
+
|
273
|
+
</li>
|
274
|
+
|
275
|
+
|
276
|
+
</ul>
|
277
|
+
|
278
|
+
<h2>
|
279
|
+
Instance Method Summary
|
280
|
+
<small><a href="#" class="summary_toggle">collapse</a></small>
|
281
|
+
</h2>
|
282
|
+
|
283
|
+
<ul class="summary">
|
284
|
+
|
285
|
+
<li class="public ">
|
286
|
+
<span class="summary_signature">
|
287
|
+
|
288
|
+
<a href="#call-instance_method" title="#call (instance method)">#<strong>call</strong> ⇒ String </a>
|
289
|
+
|
290
|
+
|
291
|
+
|
292
|
+
(also: #export)
|
293
|
+
|
294
|
+
</span>
|
295
|
+
|
296
|
+
|
297
|
+
|
298
|
+
|
299
|
+
|
300
|
+
|
301
|
+
|
302
|
+
|
303
|
+
|
304
|
+
<span class="summary_desc"><div class='inline'>
|
305
|
+
<p>Exports the <code>.swatches</code> file.</p>
|
306
|
+
</div></span>
|
307
|
+
|
308
|
+
</li>
|
309
|
+
|
310
|
+
|
311
|
+
<li class="public ">
|
312
|
+
<span class="summary_signature">
|
313
|
+
|
314
|
+
<a href="#initialize-instance_method" title="#initialize (instance method)">#<strong>initialize</strong>(wrapper, options = {}) ⇒ Exporter </a>
|
315
|
+
|
316
|
+
|
317
|
+
|
318
|
+
</span>
|
319
|
+
|
320
|
+
|
321
|
+
<span class="note title constructor">constructor</span>
|
322
|
+
|
323
|
+
|
324
|
+
|
325
|
+
|
326
|
+
|
327
|
+
|
328
|
+
|
329
|
+
|
330
|
+
<span class="summary_desc"><div class='inline'>
|
331
|
+
<p>Initialize a new <span class='object_link'><a href="" title="Procreate::Swatches::Exporter (class)">Exporter</a></span>.</p>
|
332
|
+
</div></span>
|
333
|
+
|
334
|
+
</li>
|
335
|
+
|
336
|
+
|
337
|
+
</ul>
|
338
|
+
|
339
|
+
|
340
|
+
|
341
|
+
<div id="constructor_details" class="method_details_list">
|
342
|
+
<h2>Constructor Details</h2>
|
343
|
+
|
344
|
+
<div class="method_details first">
|
345
|
+
<h3 class="signature first" id="initialize-instance_method">
|
346
|
+
|
347
|
+
#<strong>initialize</strong>(wrapper, options = {}) ⇒ <tt><span class='object_link'><a href="" title="Procreate::Swatches::Exporter (class)">Exporter</a></span></tt>
|
348
|
+
|
349
|
+
|
350
|
+
|
351
|
+
|
352
|
+
|
353
|
+
</h3><div class="docstring">
|
354
|
+
<div class="discussion">
|
355
|
+
|
356
|
+
<p>Initialize a new <span class='object_link'><a href="" title="Procreate::Swatches::Exporter (class)">Procreate::Swatches::Exporter</a></span></p>
|
357
|
+
|
358
|
+
|
359
|
+
</div>
|
360
|
+
</div>
|
361
|
+
<div class="tags">
|
362
|
+
<p class="tag_title">Parameters:</p>
|
363
|
+
<ul class="param">
|
364
|
+
|
365
|
+
<li>
|
366
|
+
|
367
|
+
<span class='name'>wrapper</span>
|
368
|
+
|
369
|
+
|
370
|
+
<span class='type'>(<tt><span class='object_link'><a href="Wrapper.html" title="Procreate::Swatches::Wrapper (class)">Procreate::Swatches::Wrapper</a></span></tt>)</span>
|
371
|
+
|
372
|
+
|
373
|
+
|
374
|
+
—
|
375
|
+
<div class='inline'>
|
376
|
+
<p>Wrapper instance</p>
|
377
|
+
</div>
|
378
|
+
|
379
|
+
</li>
|
380
|
+
|
381
|
+
<li>
|
382
|
+
|
383
|
+
<span class='name'>options</span>
|
384
|
+
|
385
|
+
|
386
|
+
<span class='type'>(<tt>Hash</tt>)</span>
|
387
|
+
|
388
|
+
|
389
|
+
<em class="default">(defaults to: <tt>{}</tt>)</em>
|
390
|
+
|
391
|
+
|
392
|
+
—
|
393
|
+
<div class='inline'>
|
394
|
+
<p>Options for exporting the wrapper</p>
|
395
|
+
</div>
|
396
|
+
|
397
|
+
</li>
|
398
|
+
|
399
|
+
</ul>
|
400
|
+
|
401
|
+
|
402
|
+
|
403
|
+
|
404
|
+
|
405
|
+
|
406
|
+
<p class="tag_title">Options Hash (<tt>options</tt>):</p>
|
407
|
+
<ul class="option">
|
408
|
+
|
409
|
+
<li>
|
410
|
+
<span class="name">:export_directory</span>
|
411
|
+
<span class="type">(<tt>String</tt>)</span>
|
412
|
+
<span class="default">
|
413
|
+
|
414
|
+
— default:
|
415
|
+
<tt>'Dir.pwd'</tt>
|
416
|
+
|
417
|
+
</span>
|
418
|
+
|
419
|
+
— <div class='inline'>
|
420
|
+
<p>The export directory for the <code>.swatches</code> file</p>
|
421
|
+
</div>
|
422
|
+
|
423
|
+
</li>
|
424
|
+
|
425
|
+
<li>
|
426
|
+
<span class="name">:file_name</span>
|
427
|
+
<span class="type">(<tt>String</tt>)</span>
|
428
|
+
<span class="default">
|
429
|
+
|
430
|
+
— default:
|
431
|
+
<tt>'Wrapper#name'</tt>
|
432
|
+
|
433
|
+
</span>
|
434
|
+
|
435
|
+
— <div class='inline'>
|
436
|
+
<p>Custom file name for the exported <code>.swatches</code> file. If none is
|
437
|
+
provided, the <code>name</code> of the <code>wrapper</code> instance is
|
438
|
+
used</p>
|
439
|
+
</div>
|
440
|
+
|
441
|
+
</li>
|
442
|
+
|
443
|
+
</ul>
|
444
|
+
|
445
|
+
|
446
|
+
|
447
|
+
</div><table class="source_code">
|
448
|
+
<tr>
|
449
|
+
<td>
|
450
|
+
<pre class="lines">
|
451
|
+
|
452
|
+
|
453
|
+
32
|
454
|
+
33
|
455
|
+
34
|
456
|
+
35</pre>
|
457
|
+
</td>
|
458
|
+
<td>
|
459
|
+
<pre class="code"><span class="info file"># File 'lib/procreate/swatches/exporter.rb', line 32</span>
|
460
|
+
|
461
|
+
<span class='kw'>def</span> <span class='id identifier rubyid_initialize'>initialize</span><span class='lparen'>(</span><span class='id identifier rubyid_wrapper'>wrapper</span><span class='comma'>,</span> <span class='id identifier rubyid_options'>options</span> <span class='op'>=</span> <span class='lbrace'>{</span><span class='rbrace'>}</span><span class='rparen'>)</span>
|
462
|
+
<span class='ivar'>@wrapper</span> <span class='op'>=</span> <span class='id identifier rubyid_wrapper'>wrapper</span>
|
463
|
+
<span class='id identifier rubyid_parse_options'>parse_options</span><span class='lparen'>(</span><span class='id identifier rubyid_options'>options</span><span class='rparen'>)</span>
|
464
|
+
<span class='kw'>end</span></pre>
|
465
|
+
</td>
|
466
|
+
</tr>
|
467
|
+
</table>
|
468
|
+
</div>
|
469
|
+
|
470
|
+
</div>
|
471
|
+
|
472
|
+
<div id="instance_attr_details" class="attr_details">
|
473
|
+
<h2>Instance Attribute Details</h2>
|
474
|
+
|
475
|
+
|
476
|
+
<span id="options=-instance_method"></span>
|
477
|
+
<div class="method_details first">
|
478
|
+
<h3 class="signature first" id="options-instance_method">
|
479
|
+
|
480
|
+
#<strong>options</strong> ⇒ <tt>Hash</tt>
|
481
|
+
|
482
|
+
|
483
|
+
|
484
|
+
|
485
|
+
|
486
|
+
</h3><div class="docstring">
|
487
|
+
<div class="discussion">
|
488
|
+
|
489
|
+
<p>Export options</p>
|
490
|
+
|
491
|
+
|
492
|
+
</div>
|
493
|
+
</div>
|
494
|
+
<div class="tags">
|
495
|
+
|
496
|
+
<p class="tag_title">Returns:</p>
|
497
|
+
<ul class="return">
|
498
|
+
|
499
|
+
<li>
|
500
|
+
|
501
|
+
|
502
|
+
<span class='type'>(<tt>Hash</tt>)</span>
|
503
|
+
|
504
|
+
|
505
|
+
|
506
|
+
—
|
507
|
+
<div class='inline'>
|
508
|
+
<p>Export options</p>
|
509
|
+
</div>
|
510
|
+
|
511
|
+
</li>
|
512
|
+
|
513
|
+
</ul>
|
514
|
+
|
515
|
+
</div><table class="source_code">
|
516
|
+
<tr>
|
517
|
+
<td>
|
518
|
+
<pre class="lines">
|
519
|
+
|
520
|
+
|
521
|
+
51
|
522
|
+
52
|
523
|
+
53</pre>
|
524
|
+
</td>
|
525
|
+
<td>
|
526
|
+
<pre class="code"><span class="info file"># File 'lib/procreate/swatches/exporter.rb', line 51</span>
|
527
|
+
|
528
|
+
<span class='kw'>def</span> <span class='id identifier rubyid_options'>options</span>
|
529
|
+
<span class='id identifier rubyid_parse_options'>parse_options</span><span class='lparen'>(</span><span class='ivar'>@options</span><span class='rparen'>)</span>
|
530
|
+
<span class='kw'>end</span></pre>
|
531
|
+
</td>
|
532
|
+
</tr>
|
533
|
+
</table>
|
534
|
+
</div>
|
535
|
+
|
536
|
+
|
537
|
+
<span id=""></span>
|
538
|
+
<div class="method_details ">
|
539
|
+
<h3 class="signature " id="swatches_path-instance_method">
|
540
|
+
|
541
|
+
#<strong>swatches_path</strong> ⇒ <tt>Object</tt> <span class="extras">(readonly)</span>
|
542
|
+
|
543
|
+
|
544
|
+
|
545
|
+
|
546
|
+
|
547
|
+
</h3><div class="docstring">
|
548
|
+
<div class="discussion">
|
549
|
+
|
550
|
+
<p>The computed path of the <code>.swatches</code> file, after the file was
|
551
|
+
exported.</p>
|
552
|
+
|
553
|
+
|
554
|
+
</div>
|
555
|
+
</div>
|
556
|
+
<div class="tags">
|
557
|
+
|
558
|
+
|
559
|
+
</div><table class="source_code">
|
560
|
+
<tr>
|
561
|
+
<td>
|
562
|
+
<pre class="lines">
|
563
|
+
|
564
|
+
|
565
|
+
22
|
566
|
+
23
|
567
|
+
24</pre>
|
568
|
+
</td>
|
569
|
+
<td>
|
570
|
+
<pre class="code"><span class="info file"># File 'lib/procreate/swatches/exporter.rb', line 22</span>
|
571
|
+
|
572
|
+
<span class='kw'>def</span> <span class='id identifier rubyid_swatches_path'>swatches_path</span>
|
573
|
+
<span class='ivar'>@swatches_path</span>
|
574
|
+
<span class='kw'>end</span></pre>
|
575
|
+
</td>
|
576
|
+
</tr>
|
577
|
+
</table>
|
578
|
+
</div>
|
579
|
+
|
580
|
+
|
581
|
+
<span id="wrapper=-instance_method"></span>
|
582
|
+
<div class="method_details ">
|
583
|
+
<h3 class="signature " id="wrapper-instance_method">
|
584
|
+
|
585
|
+
#<strong>wrapper</strong> ⇒ <tt>Object</tt>
|
586
|
+
|
587
|
+
|
588
|
+
|
589
|
+
|
590
|
+
|
591
|
+
</h3><div class="docstring">
|
592
|
+
<div class="discussion">
|
593
|
+
|
594
|
+
<p>An instance of <span class='object_link'><a href="Wrapper.html" title="Procreate::Swatches::Wrapper (class)">Wrapper</a></span></p>
|
595
|
+
|
596
|
+
|
597
|
+
</div>
|
598
|
+
</div>
|
599
|
+
<div class="tags">
|
600
|
+
|
601
|
+
|
602
|
+
</div><table class="source_code">
|
603
|
+
<tr>
|
604
|
+
<td>
|
605
|
+
<pre class="lines">
|
606
|
+
|
607
|
+
|
608
|
+
20
|
609
|
+
21
|
610
|
+
22</pre>
|
611
|
+
</td>
|
612
|
+
<td>
|
613
|
+
<pre class="code"><span class="info file"># File 'lib/procreate/swatches/exporter.rb', line 20</span>
|
614
|
+
|
615
|
+
<span class='kw'>def</span> <span class='id identifier rubyid_wrapper'>wrapper</span>
|
616
|
+
<span class='ivar'>@wrapper</span>
|
617
|
+
<span class='kw'>end</span></pre>
|
618
|
+
</td>
|
619
|
+
</tr>
|
620
|
+
</table>
|
621
|
+
</div>
|
622
|
+
|
623
|
+
</div>
|
624
|
+
|
625
|
+
|
626
|
+
<div id="class_method_details" class="method_details_list">
|
627
|
+
<h2>Class Method Details</h2>
|
628
|
+
|
629
|
+
|
630
|
+
<div class="method_details first">
|
631
|
+
<h3 class="signature first" id="call-class_method">
|
632
|
+
|
633
|
+
.<strong>call</strong> ⇒ <tt>Object</tt>
|
634
|
+
|
635
|
+
|
636
|
+
|
637
|
+
|
638
|
+
|
639
|
+
</h3><div class="docstring">
|
640
|
+
<div class="discussion">
|
641
|
+
|
642
|
+
<p>Creates a new instance of <span class='object_link'><a href="" title="Procreate::Swatches::Exporter (class)">Procreate::Swatches::Exporter</a></span> and calls <span class='object_link'><a href="#call-instance_method" title="Procreate::Swatches::Exporter#call (method)">#call</a></span>
|
643
|
+
Dynamically included by using
|
644
|
+
<a href="https://github.com/laurentzziu/callable_class" target="_parent" title="CallableClass">CallableClass</a> gem.</p>
|
645
|
+
|
646
|
+
|
647
|
+
</div>
|
648
|
+
</div>
|
649
|
+
<div class="tags">
|
650
|
+
|
651
|
+
|
652
|
+
</div><table class="source_code">
|
653
|
+
<tr>
|
654
|
+
<td>
|
655
|
+
<pre class="lines">
|
656
|
+
|
657
|
+
|
658
|
+
</pre>
|
659
|
+
</td>
|
660
|
+
<td>
|
661
|
+
<pre class="code"><span class="info file"># File 'lib/procreate/swatches/exporter.rb', line 15</span>
|
662
|
+
|
663
|
+
</pre>
|
664
|
+
</td>
|
665
|
+
</tr>
|
666
|
+
</table>
|
667
|
+
</div>
|
668
|
+
|
669
|
+
</div>
|
670
|
+
|
671
|
+
<div id="instance_method_details" class="method_details_list">
|
672
|
+
<h2>Instance Method Details</h2>
|
673
|
+
|
674
|
+
|
675
|
+
<div class="method_details first">
|
676
|
+
<h3 class="signature first" id="call-instance_method">
|
677
|
+
|
678
|
+
#<strong>call</strong> ⇒ <tt>String</tt>
|
679
|
+
|
680
|
+
|
681
|
+
|
682
|
+
<span class="aliases">Also known as:
|
683
|
+
<span class="names"><span id='export-instance_method'>export</span></span>
|
684
|
+
</span>
|
685
|
+
|
686
|
+
|
687
|
+
|
688
|
+
</h3><div class="docstring">
|
689
|
+
<div class="discussion">
|
690
|
+
|
691
|
+
<p>Exports the <code>.swatches</code> file.</p>
|
692
|
+
|
693
|
+
|
694
|
+
</div>
|
695
|
+
</div>
|
696
|
+
<div class="tags">
|
697
|
+
|
698
|
+
<p class="tag_title">Returns:</p>
|
699
|
+
<ul class="return">
|
700
|
+
|
701
|
+
<li>
|
702
|
+
|
703
|
+
|
704
|
+
<span class='type'>(<tt>String</tt>)</span>
|
705
|
+
|
706
|
+
|
707
|
+
|
708
|
+
—
|
709
|
+
<div class='inline'>
|
710
|
+
<p>swatches_path Path of the exported <code>.swatches</code> file</p>
|
711
|
+
</div>
|
712
|
+
|
713
|
+
</li>
|
714
|
+
|
715
|
+
</ul>
|
716
|
+
|
717
|
+
</div><table class="source_code">
|
718
|
+
<tr>
|
719
|
+
<td>
|
720
|
+
<pre class="lines">
|
721
|
+
|
722
|
+
|
723
|
+
40
|
724
|
+
41
|
725
|
+
42
|
726
|
+
43
|
727
|
+
44</pre>
|
728
|
+
</td>
|
729
|
+
<td>
|
730
|
+
<pre class="code"><span class="info file"># File 'lib/procreate/swatches/exporter.rb', line 40</span>
|
731
|
+
|
732
|
+
<span class='kw'>def</span> <span class='id identifier rubyid_call'>call</span>
|
733
|
+
<span class='id identifier rubyid_zip_content!'>zip_content!</span>
|
734
|
+
|
735
|
+
<span class='id identifier rubyid_swatches_path'>swatches_path</span>
|
736
|
+
<span class='kw'>end</span></pre>
|
737
|
+
</td>
|
738
|
+
</tr>
|
739
|
+
</table>
|
740
|
+
</div>
|
741
|
+
|
742
|
+
</div>
|
743
|
+
|
744
|
+
</div>
|
745
|
+
|
746
|
+
<div id="footer">
|
747
|
+
Generated on Sat Apr 27 09:32:32 2019 by
|
748
|
+
<a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
|
749
|
+
0.9.16 (ruby-2.4.3).
|
750
|
+
</div>
|
751
|
+
|
752
|
+
</div>
|
753
|
+
</body>
|
754
|
+
</html>
|