kirigami 0.4.3 → 0.4.5

Sign up to get free protection for your applications and to get access to all the features.
@@ -0,0 +1,447 @@
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
+ Module: Kirigami::Configuration
8
+
9
+ &mdash; Kirigami
10
+
11
+ </title>
12
+
13
+ <link rel="stylesheet" href="../css/style.css" type="text/css" />
14
+
15
+ <link rel="stylesheet" href="../css/common.css" type="text/css" />
16
+
17
+ <script type="text/javascript">
18
+ pathId = "Kirigami::Configuration";
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 (C)</a> &raquo;
40
+ <span class='title'><span class='object_link'><a href="../Kirigami.html" title="Kirigami (module)">Kirigami</a></span></span>
41
+ &raquo;
42
+ <span class="title">Configuration</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>Module: Kirigami::Configuration
63
+
64
+
65
+
66
+ </h1>
67
+ <div class="box_info">
68
+
69
+
70
+
71
+
72
+
73
+
74
+
75
+
76
+
77
+ <dl>
78
+ <dt>Included in:</dt>
79
+ <dd><span class='object_link'><a href="../Kirigami.html" title="Kirigami (module)">Kirigami</a></span></dd>
80
+ </dl>
81
+
82
+
83
+
84
+ <dl>
85
+ <dt>Defined in:</dt>
86
+ <dd>lib/kirigami/configuration.rb</dd>
87
+ </dl>
88
+
89
+ </div>
90
+
91
+
92
+
93
+ <h2>
94
+ Constant Summary
95
+ <small><a href="#" class="constants_summary_toggle">collapse</a></small>
96
+ </h2>
97
+
98
+ <dl class="constants">
99
+
100
+ <dt id="IMAGE_EXTENSIONS-constant" class="">IMAGE_EXTENSIONS =
101
+
102
+ </dt>
103
+ <dd><pre class="code"><span class='qwords_beg'>%w[</span><span class='words_sep'> </span><span class='tstring_content'>png</span><span class='words_sep'> </span><span class='tstring_content'>jpg</span><span class='words_sep'> </span><span class='tstring_content'>jpeg</span><span class='words_sep'> </span><span class='tstring_content'>gif</span><span class='words_sep'> </span><span class='tstring_end'>]</span></span></pre></dd>
104
+
105
+ <dt id="EXCLUDE_PATHS-constant" class="">EXCLUDE_PATHS =
106
+
107
+ </dt>
108
+ <dd><pre class="code"><span class='lbracket'>[</span><span class='rbracket'>]</span></pre></dd>
109
+
110
+ <dt id="SAFE_MODE-constant" class="">SAFE_MODE =
111
+
112
+ </dt>
113
+ <dd><pre class="code"><span class='kw'>true</span></pre></dd>
114
+
115
+ <dt id="JPEG_COMPRESSION_QUALITY-constant" class="">JPEG_COMPRESSION_QUALITY =
116
+
117
+ </dt>
118
+ <dd><pre class="code"><span class='tstring'><span class='tstring_beg'>&#39;</span><span class='tstring_content'>85%</span><span class='tstring_end'>&#39;</span></span><span class='period'>.</span><span class='id identifier rubyid_freeze'>freeze</span></pre></dd>
119
+
120
+ <dt id="JPEG_COLORSPACE-constant" class="">JPEG_COLORSPACE =
121
+
122
+ </dt>
123
+ <dd><pre class="code"><span class='tstring'><span class='tstring_beg'>&#39;</span><span class='tstring_content'>RGB</span><span class='tstring_end'>&#39;</span></span><span class='period'>.</span><span class='id identifier rubyid_freeze'>freeze</span></pre></dd>
124
+
125
+ <dt id="JPEG_SAMPLING_FACTOR-constant" class="">JPEG_SAMPLING_FACTOR =
126
+
127
+ </dt>
128
+ <dd><pre class="code"><span class='tstring'><span class='tstring_beg'>&quot;</span><span class='tstring_content'>4:2:0</span><span class='tstring_end'>&quot;</span></span><span class='period'>.</span><span class='id identifier rubyid_freeze'>freeze</span></pre></dd>
129
+
130
+ <dt id="JPEG_INTERLACING-constant" class="">JPEG_INTERLACING =
131
+
132
+ </dt>
133
+ <dd><pre class="code"><span class='tstring'><span class='tstring_beg'>&quot;</span><span class='tstring_content'>Plane</span><span class='tstring_end'>&quot;</span></span><span class='period'>.</span><span class='id identifier rubyid_freeze'>freeze</span></pre></dd>
134
+
135
+ <dt id="DEBUG-constant" class="">DEBUG =
136
+
137
+ </dt>
138
+ <dd><pre class="code"><span class='kw'>false</span></pre></dd>
139
+
140
+ </dl>
141
+
142
+
143
+
144
+
145
+
146
+
147
+
148
+
149
+
150
+ <h2>
151
+ Class Method Summary
152
+ <small><a href="#" class="summary_toggle">collapse</a></small>
153
+ </h2>
154
+
155
+ <ul class="summary">
156
+
157
+ <li class="public ">
158
+ <span class="summary_signature">
159
+
160
+ <a href="#extended-class_method" title="extended (class method)">.<strong>extended</strong>(klass) &#x21d2; Object </a>
161
+
162
+
163
+
164
+ </span>
165
+
166
+
167
+
168
+
169
+
170
+
171
+
172
+
173
+
174
+ <span class="summary_desc"><div class='inline'></div></span>
175
+
176
+ </li>
177
+
178
+
179
+ </ul>
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="#logger-instance_method" title="#logger (instance method)">#<strong>logger</strong> &#x21d2; Object </a>
192
+
193
+
194
+
195
+ </span>
196
+
197
+
198
+
199
+
200
+
201
+
202
+
203
+
204
+
205
+ <span class="summary_desc"><div class='inline'></div></span>
206
+
207
+ </li>
208
+
209
+
210
+ <li class="private ">
211
+ <span class="summary_signature">
212
+
213
+ <a href="#rails_assets_path-instance_method" title="#rails_assets_path (instance method)">#<strong>rails_assets_path</strong> &#x21d2; Object </a>
214
+
215
+
216
+
217
+ </span>
218
+
219
+
220
+
221
+ <span class="note title private">private</span>
222
+
223
+
224
+
225
+
226
+
227
+ <span class="summary_desc"><div class='inline'></div></span>
228
+
229
+ </li>
230
+
231
+
232
+ <li class="private ">
233
+ <span class="summary_signature">
234
+
235
+ <a href="#rails_image_paths-instance_method" title="#rails_image_paths (instance method)">#<strong>rails_image_paths</strong> &#x21d2; Object </a>
236
+
237
+
238
+
239
+ </span>
240
+
241
+
242
+
243
+ <span class="note title private">private</span>
244
+
245
+
246
+
247
+
248
+
249
+ <span class="summary_desc"><div class='inline'></div></span>
250
+
251
+ </li>
252
+
253
+
254
+ </ul>
255
+
256
+
257
+
258
+
259
+ <div id="class_method_details" class="method_details_list">
260
+ <h2>Class Method Details</h2>
261
+
262
+
263
+ <div class="method_details first">
264
+ <h3 class="signature first" id="extended-class_method">
265
+
266
+ .<strong>extended</strong>(klass) &#x21d2; <tt>Object</tt>
267
+
268
+
269
+
270
+
271
+
272
+ </h3><table class="source_code">
273
+ <tr>
274
+ <td>
275
+ <pre class="lines">
276
+
277
+
278
+ 38
279
+ 39
280
+ 40
281
+ 41
282
+ 42
283
+ 43
284
+ 44
285
+ 45
286
+ 46
287
+ 47
288
+ 48
289
+ 49
290
+ 50
291
+ 51
292
+ 52
293
+ 53
294
+ 54
295
+ 55
296
+ 56
297
+ 57
298
+ 58
299
+ 59
300
+ 60
301
+ 61
302
+ 62
303
+ 63</pre>
304
+ </td>
305
+ <td>
306
+ <pre class="code"><span class="info file"># File 'lib/kirigami/configuration.rb', line 38</span>
307
+
308
+ <span class='kw'>def</span> <span class='kw'>self</span><span class='period'>.</span><span class='id identifier rubyid_extended'>extended</span><span class='lparen'>(</span><span class='id identifier rubyid_klass'>klass</span><span class='rparen'>)</span>
309
+ <span class='id identifier rubyid_klass'>klass</span><span class='period'>.</span><span class='id identifier rubyid_class_eval'>class_eval</span> <span class='kw'>do</span>
310
+ <span class='id identifier rubyid_include'>include</span> <span class='const'>ActiveSupport</span><span class='op'>::</span><span class='const'>Configurable</span>
311
+
312
+ <span class='id identifier rubyid_config'>config</span><span class='period'>.</span><span class='id identifier rubyid_image_extensions'>image_extensions</span> <span class='op'>||=</span> <span class='const'><span class='object_link'><a href="#IMAGE_EXTENSIONS-constant" title="Kirigami::Configuration::IMAGE_EXTENSIONS (constant)">IMAGE_EXTENSIONS</a></span></span>
313
+
314
+ <span class='id identifier rubyid_config'>config</span><span class='period'>.</span><span class='id identifier rubyid_image_paths'>image_paths</span> <span class='op'>||=</span> <span class='const'>Array</span><span class='lparen'>(</span><span class='id identifier rubyid_rails_image_paths'>rails_image_paths</span><span class='rparen'>)</span>
315
+
316
+ <span class='id identifier rubyid_config'>config</span><span class='period'>.</span><span class='id identifier rubyid_exclude_paths'>exclude_paths</span> <span class='op'>||=</span> <span class='const'><span class='object_link'><a href="#EXCLUDE_PATHS-constant" title="Kirigami::Configuration::EXCLUDE_PATHS (constant)">EXCLUDE_PATHS</a></span></span>
317
+
318
+ <span class='id identifier rubyid_config'>config</span><span class='period'>.</span><span class='id identifier rubyid_safe_mode'>safe_mode</span> <span class='op'>||=</span> <span class='const'><span class='object_link'><a href="#SAFE_MODE-constant" title="Kirigami::Configuration::SAFE_MODE (constant)">SAFE_MODE</a></span></span>
319
+
320
+ <span class='id identifier rubyid_config'>config</span><span class='period'>.</span><span class='id identifier rubyid_jpeg_compression_quality'>jpeg_compression_quality</span> <span class='op'>||=</span> <span class='const'><span class='object_link'><a href="#JPEG_COMPRESSION_QUALITY-constant" title="Kirigami::Configuration::JPEG_COMPRESSION_QUALITY (constant)">JPEG_COMPRESSION_QUALITY</a></span></span>
321
+
322
+ <span class='id identifier rubyid_config'>config</span><span class='period'>.</span><span class='id identifier rubyid_jpeg_colorspace'>jpeg_colorspace</span> <span class='op'>||=</span> <span class='const'><span class='object_link'><a href="#JPEG_COLORSPACE-constant" title="Kirigami::Configuration::JPEG_COLORSPACE (constant)">JPEG_COLORSPACE</a></span></span>
323
+
324
+ <span class='id identifier rubyid_config'>config</span><span class='period'>.</span><span class='id identifier rubyid_jpeg_sampling_factor'>jpeg_sampling_factor</span> <span class='op'>||=</span> <span class='const'><span class='object_link'><a href="#JPEG_SAMPLING_FACTOR-constant" title="Kirigami::Configuration::JPEG_SAMPLING_FACTOR (constant)">JPEG_SAMPLING_FACTOR</a></span></span>
325
+
326
+ <span class='id identifier rubyid_config'>config</span><span class='period'>.</span><span class='id identifier rubyid_jpeg_interlacing'>jpeg_interlacing</span> <span class='op'>||=</span> <span class='const'><span class='object_link'><a href="#JPEG_INTERLACING-constant" title="Kirigami::Configuration::JPEG_INTERLACING (constant)">JPEG_INTERLACING</a></span></span>
327
+
328
+ <span class='const'>MiniMagick</span><span class='period'>.</span><span class='id identifier rubyid_configure'>configure</span> <span class='kw'>do</span> <span class='op'>|</span><span class='id identifier rubyid_magick'>magick</span><span class='op'>|</span>
329
+ <span class='id identifier rubyid_magick'>magick</span><span class='period'>.</span><span class='id identifier rubyid_debug'>debug</span> <span class='op'>=</span> <span class='const'>Logger</span><span class='op'>::</span><span class='const'>DEBUG</span> <span class='kw'>if</span> <span class='id identifier rubyid_config'>config</span><span class='period'>.</span><span class='id identifier rubyid_debug'>debug</span>
330
+ <span class='kw'>end</span>
331
+
332
+ <span class='kw'>end</span>
333
+ <span class='kw'>end</span></pre>
334
+ </td>
335
+ </tr>
336
+ </table>
337
+ </div>
338
+
339
+ </div>
340
+
341
+ <div id="instance_method_details" class="method_details_list">
342
+ <h2>Instance Method Details</h2>
343
+
344
+
345
+ <div class="method_details first">
346
+ <h3 class="signature first" id="logger-instance_method">
347
+
348
+ #<strong>logger</strong> &#x21d2; <tt>Object</tt>
349
+
350
+
351
+
352
+
353
+
354
+ </h3><table class="source_code">
355
+ <tr>
356
+ <td>
357
+ <pre class="lines">
358
+
359
+
360
+ 65
361
+ 66
362
+ 67</pre>
363
+ </td>
364
+ <td>
365
+ <pre class="code"><span class="info file"># File 'lib/kirigami/configuration.rb', line 65</span>
366
+
367
+ <span class='kw'>def</span> <span class='id identifier rubyid_logger'>logger</span>
368
+ <span class='ivar'>@logger</span> <span class='op'>||=</span> <span class='const'>Logger</span><span class='period'>.</span><span class='id identifier rubyid_new'>new</span><span class='lparen'>(</span><span class='gvar'>$stdout</span><span class='comma'>,</span> <span class='label'>level:</span> <span class='id identifier rubyid_config'>config</span><span class='period'>.</span><span class='id identifier rubyid_debug'>debug</span> <span class='op'>?</span> <span class='const'>Logger</span><span class='op'>::</span><span class='const'>DEBUG</span> <span class='op'>:</span> <span class='const'>Logger</span><span class='op'>::</span><span class='const'>INFO</span><span class='rparen'>)</span>
369
+ <span class='kw'>end</span></pre>
370
+ </td>
371
+ </tr>
372
+ </table>
373
+ </div>
374
+
375
+ <div class="method_details ">
376
+ <h3 class="signature " id="rails_assets_path-instance_method">
377
+
378
+ #<strong>rails_assets_path</strong> &#x21d2; <tt>Object</tt> <span class="extras">(private)</span>
379
+
380
+
381
+
382
+
383
+
384
+ </h3><table class="source_code">
385
+ <tr>
386
+ <td>
387
+ <pre class="lines">
388
+
389
+
390
+ 73
391
+ 74
392
+ 75</pre>
393
+ </td>
394
+ <td>
395
+ <pre class="code"><span class="info file"># File 'lib/kirigami/configuration.rb', line 73</span>
396
+
397
+ <span class='kw'>def</span> <span class='id identifier rubyid_rails_assets_path'>rails_assets_path</span>
398
+ <span class='const'>File</span><span class='period'>.</span><span class='id identifier rubyid_join'>join</span><span class='lparen'>(</span><span class='tstring'><span class='tstring_beg'>&quot;</span><span class='tstring_content'>app/assets/images/**/*\.{%{formats}}</span><span class='tstring_end'>&quot;</span></span><span class='rparen'>)</span>
399
+ <span class='kw'>end</span></pre>
400
+ </td>
401
+ </tr>
402
+ </table>
403
+ </div>
404
+
405
+ <div class="method_details ">
406
+ <h3 class="signature " id="rails_image_paths-instance_method">
407
+
408
+ #<strong>rails_image_paths</strong> &#x21d2; <tt>Object</tt> <span class="extras">(private)</span>
409
+
410
+
411
+
412
+
413
+
414
+ </h3><table class="source_code">
415
+ <tr>
416
+ <td>
417
+ <pre class="lines">
418
+
419
+
420
+ 77
421
+ 78
422
+ 79</pre>
423
+ </td>
424
+ <td>
425
+ <pre class="code"><span class="info file"># File 'lib/kirigami/configuration.rb', line 77</span>
426
+
427
+ <span class='kw'>def</span> <span class='id identifier rubyid_rails_image_paths'>rails_image_paths</span>
428
+ <span class='id identifier rubyid_rails_assets_path'>rails_assets_path</span> <span class='op'>%</span> <span class='lbrace'>{</span> <span class='label'>formats:</span> <span class='id identifier rubyid_config'>config</span><span class='period'>.</span><span class='id identifier rubyid_image_extensions'>image_extensions</span><span class='period'>.</span><span class='id identifier rubyid_join'>join</span><span class='lparen'>(</span><span class='tstring'><span class='tstring_beg'>&quot;</span><span class='tstring_content'>,</span><span class='tstring_end'>&quot;</span></span><span class='rparen'>)</span> <span class='rbrace'>}</span>
429
+ <span class='kw'>end</span></pre>
430
+ </td>
431
+ </tr>
432
+ </table>
433
+ </div>
434
+
435
+ </div>
436
+
437
+ </div>
438
+
439
+ <div id="footer">
440
+ Generated on Thu Aug 13 16:39:31 2020 by
441
+ <a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
442
+ 0.9.24 (ruby-2.6.6).
443
+ </div>
444
+
445
+ </div>
446
+ </body>
447
+ </html>