netlinx-compile 3.0.0 → 3.1.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/doc/NetLinx.html +15 -4
- data/doc/NetLinx/Compile.html +15 -4
- data/doc/NetLinx/Compile/Extension.html +16 -3
- data/doc/NetLinx/Compile/Extension/AXS.html +1 -1
- data/doc/NetLinx/Compile/ExtensionDiscovery.html +63 -16
- data/doc/NetLinx/Compile/ExtensionHandler.html +125 -53
- data/doc/NetLinx/Compile/Script.html +50 -10
- data/doc/NetLinx/Compiler.html +168 -53
- data/doc/NetLinx/CompilerResult.html +197 -50
- data/doc/NetLinx/NoCompilerError.html +9 -3
- data/doc/NetLinx/SourceFile.html +146 -59
- data/doc/_index.html +1 -1
- data/doc/file.README.html +1 -1
- data/doc/file.license.html +2 -2
- data/doc/index.html +1 -1
- data/doc/top-level-namespace.html +1 -1
- data/lib/netlinx-compile.rb +11 -1
- data/lib/netlinx/compile/extension_discovery.rb +4 -2
- data/lib/netlinx/compile/extension_handler.rb +23 -25
- data/lib/netlinx/compile/script.rb +4 -3
- data/lib/netlinx/compiler.rb +39 -21
- data/lib/netlinx/compiler_result.rb +16 -17
- data/lib/netlinx/source_file.rb +16 -14
- data/license.txt +1 -1
- metadata +17 -17
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 0d2ab9568875e186e37ebf9905560bcc9fdb88f7
|
4
|
+
data.tar.gz: 7f88b9200909c528df3bb820ca6d5091efa375c1
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: f548173c19f4e3b5c0ff2110237bfc6febc751670435d3ccc8d4d9f92b3ac61b7d88424b60834809494cda71f5d86630a66749077a55fa9e353337024c249fce
|
7
|
+
data.tar.gz: e582b434fbee38f67202d6443bcb5cd8c6230ce002c37269ffcbe858d83f9d5228fb2fa554187326232168f260db7d3b71805b43e1dc64853890559c26e4062b
|
data/doc/NetLinx.html
CHANGED
@@ -79,14 +79,25 @@
|
|
79
79
|
|
80
80
|
|
81
81
|
<dt class="r1 last">Defined in:</dt>
|
82
|
-
<dd class="r1 last">lib/netlinx
|
83
|
-
lib/netlinx/source_file.rb,<br /> lib/netlinx/compile/script.rb,<br /> lib/netlinx/compiler_result.rb,<br /> lib/netlinx/compile/extension/axs.rb,<br /> lib/netlinx/compile/extension_handler.rb,<br /> lib/netlinx/compile/extension_discovery.rb</span>
|
82
|
+
<dd class="r1 last">lib/netlinx-compile.rb<span class="defines">,<br />
|
83
|
+
lib/netlinx/compiler.rb,<br /> lib/netlinx/source_file.rb,<br /> lib/netlinx/compile/script.rb,<br /> lib/netlinx/compiler_result.rb,<br /> lib/netlinx/compile/extension/axs.rb,<br /> lib/netlinx/compile/extension_handler.rb,<br /> lib/netlinx/compile/extension_discovery.rb</span>
|
84
84
|
</dd>
|
85
85
|
|
86
86
|
</dl>
|
87
87
|
<div class="clear"></div>
|
88
88
|
|
89
|
-
<h2>
|
89
|
+
<h2>Overview</h2><div class="docstring">
|
90
|
+
<div class="discussion">
|
91
|
+
|
92
|
+
<p>:nodoc:</p>
|
93
|
+
|
94
|
+
|
95
|
+
</div>
|
96
|
+
</div>
|
97
|
+
<div class="tags">
|
98
|
+
|
99
|
+
|
100
|
+
</div><h2>Defined Under Namespace</h2>
|
90
101
|
<p class="children">
|
91
102
|
|
92
103
|
|
@@ -110,7 +121,7 @@
|
|
110
121
|
</div>
|
111
122
|
|
112
123
|
<div id="footer">
|
113
|
-
Generated on Mon Jan 26 15:
|
124
|
+
Generated on Mon Jan 26 15:36:24 2015 by
|
114
125
|
<a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
|
115
126
|
0.8.7.6 (ruby-2.1.5).
|
116
127
|
</div>
|
data/doc/NetLinx/Compile.html
CHANGED
@@ -79,14 +79,25 @@
|
|
79
79
|
|
80
80
|
|
81
81
|
<dt class="r1 last">Defined in:</dt>
|
82
|
-
<dd class="r1 last">lib/netlinx
|
83
|
-
lib/netlinx/compile/extension/axs.rb,<br /> lib/netlinx/compile/extension_handler.rb,<br /> lib/netlinx/compile/extension_discovery.rb</span>
|
82
|
+
<dd class="r1 last">lib/netlinx-compile.rb<span class="defines">,<br />
|
83
|
+
lib/netlinx/compile/script.rb,<br /> lib/netlinx/compile/extension/axs.rb,<br /> lib/netlinx/compile/extension_handler.rb,<br /> lib/netlinx/compile/extension_discovery.rb</span>
|
84
84
|
</dd>
|
85
85
|
|
86
86
|
</dl>
|
87
87
|
<div class="clear"></div>
|
88
88
|
|
89
|
-
<h2>
|
89
|
+
<h2>Overview</h2><div class="docstring">
|
90
|
+
<div class="discussion">
|
91
|
+
|
92
|
+
<p>:nodoc:</p>
|
93
|
+
|
94
|
+
|
95
|
+
</div>
|
96
|
+
</div>
|
97
|
+
<div class="tags">
|
98
|
+
|
99
|
+
|
100
|
+
</div><h2>Defined Under Namespace</h2>
|
90
101
|
<p class="children">
|
91
102
|
|
92
103
|
|
@@ -110,7 +121,7 @@
|
|
110
121
|
</div>
|
111
122
|
|
112
123
|
<div id="footer">
|
113
|
-
Generated on Mon Jan 26 15:
|
124
|
+
Generated on Mon Jan 26 15:36:24 2015 by
|
114
125
|
<a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
|
115
126
|
0.8.7.6 (ruby-2.1.5).
|
116
127
|
</div>
|
@@ -79,12 +79,25 @@
|
|
79
79
|
|
80
80
|
|
81
81
|
<dt class="r1 last">Defined in:</dt>
|
82
|
-
<dd class="r1 last">lib/netlinx
|
82
|
+
<dd class="r1 last">lib/netlinx-compile.rb<span class="defines">,<br />
|
83
|
+
lib/netlinx/compile/extension/axs.rb</span>
|
84
|
+
</dd>
|
83
85
|
|
84
86
|
</dl>
|
85
87
|
<div class="clear"></div>
|
86
88
|
|
87
|
-
<h2>
|
89
|
+
<h2>Overview</h2><div class="docstring">
|
90
|
+
<div class="discussion">
|
91
|
+
|
92
|
+
<p>:nodoc:</p>
|
93
|
+
|
94
|
+
|
95
|
+
</div>
|
96
|
+
</div>
|
97
|
+
<div class="tags">
|
98
|
+
|
99
|
+
|
100
|
+
</div><h2>Defined Under Namespace</h2>
|
88
101
|
<p class="children">
|
89
102
|
|
90
103
|
|
@@ -106,7 +119,7 @@
|
|
106
119
|
</div>
|
107
120
|
|
108
121
|
<div id="footer">
|
109
|
-
Generated on Mon Jan 26 15:
|
122
|
+
Generated on Mon Jan 26 15:36:24 2015 by
|
110
123
|
<a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
|
111
124
|
0.8.7.6 (ruby-2.1.5).
|
112
125
|
</div>
|
@@ -208,7 +208,7 @@
|
|
208
208
|
</div>
|
209
209
|
|
210
210
|
<div id="footer">
|
211
|
-
Generated on Mon Jan 26 15:
|
211
|
+
Generated on Mon Jan 26 15:36:25 2015 by
|
212
212
|
<a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
|
213
213
|
0.8.7.6 (ruby-2.1.5).
|
214
214
|
</div>
|
@@ -184,7 +184,7 @@
|
|
184
184
|
<li class="public ">
|
185
185
|
<span class="summary_signature">
|
186
186
|
|
187
|
-
<a href="#get_handler-class_method" title="get_handler (class method)">+ (
|
187
|
+
<a href="#get_handler-class_method" title="get_handler (class method)">+ (ExtensionHandler) <strong>get_handler</strong>(filename) </a>
|
188
188
|
|
189
189
|
|
190
190
|
|
@@ -198,9 +198,7 @@
|
|
198
198
|
|
199
199
|
|
200
200
|
|
201
|
-
<span class="summary_desc"><div class='inline'>
|
202
|
-
<p>Get an ExtensionHandler for a given file or extension.</p>
|
203
|
-
</div></span>
|
201
|
+
<span class="summary_desc"><div class='inline'></div></span>
|
204
202
|
|
205
203
|
</li>
|
206
204
|
|
@@ -208,7 +206,7 @@
|
|
208
206
|
<li class="public ">
|
209
207
|
<span class="summary_signature">
|
210
208
|
|
211
|
-
<a href="#workspace_extensions-class_method" title="workspace_extensions (class method)">+ (
|
209
|
+
<a href="#workspace_extensions-class_method" title="workspace_extensions (class method)">+ (Array<String>) <strong>workspace_extensions</strong> </a>
|
212
210
|
|
213
211
|
|
214
212
|
|
@@ -223,7 +221,7 @@
|
|
223
221
|
|
224
222
|
|
225
223
|
<span class="summary_desc"><div class='inline'>
|
226
|
-
<p>
|
224
|
+
<p>Workspace file extensions.</p>
|
227
225
|
</div></span>
|
228
226
|
|
229
227
|
</li>
|
@@ -383,7 +381,7 @@ extensions.</p>
|
|
383
381
|
<div class="method_details ">
|
384
382
|
<h3 class="signature " id="get_handler-class_method">
|
385
383
|
|
386
|
-
+ (<tt>
|
384
|
+
+ (<tt><span class='object_link'><a href="ExtensionHandler.html" title="NetLinx::Compile::ExtensionHandler (class)">ExtensionHandler</a></span></tt>) <strong>get_handler</strong>(filename)
|
387
385
|
|
388
386
|
|
389
387
|
|
@@ -392,13 +390,44 @@ extensions.</p>
|
|
392
390
|
</h3><div class="docstring">
|
393
391
|
<div class="discussion">
|
394
392
|
|
395
|
-
<p>Get an ExtensionHandler for a given file or extension.</p>
|
396
|
-
|
397
393
|
|
398
394
|
</div>
|
399
395
|
</div>
|
400
396
|
<div class="tags">
|
397
|
+
<p class="tag_title">Parameters:</p>
|
398
|
+
<ul class="param">
|
401
399
|
|
400
|
+
<li>
|
401
|
+
|
402
|
+
<span class='name'>filename</span>
|
403
|
+
|
404
|
+
|
405
|
+
<span class='type'>(<tt>String</tt>)</span>
|
406
|
+
|
407
|
+
|
408
|
+
|
409
|
+
—
|
410
|
+
<div class='inline'>
|
411
|
+
<p>File or extension to find a <span class='object_link'><a href="ExtensionHandler.html" title="NetLinx::Compile::ExtensionHandler (class)">NetLinx::Compile::ExtensionHandler</a></span> for.</p>
|
412
|
+
</div>
|
413
|
+
|
414
|
+
</li>
|
415
|
+
|
416
|
+
</ul>
|
417
|
+
|
418
|
+
<p class="tag_title">Returns:</p>
|
419
|
+
<ul class="return">
|
420
|
+
|
421
|
+
<li>
|
422
|
+
|
423
|
+
|
424
|
+
<span class='type'>(<tt><span class='object_link'><a href="ExtensionHandler.html" title="NetLinx::Compile::ExtensionHandler (class)">ExtensionHandler</a></span></tt>)</span>
|
425
|
+
|
426
|
+
|
427
|
+
|
428
|
+
</li>
|
429
|
+
|
430
|
+
</ul>
|
402
431
|
|
403
432
|
</div><table class="source_code">
|
404
433
|
<tr>
|
@@ -406,12 +435,12 @@ extensions.</p>
|
|
406
435
|
<pre class="lines">
|
407
436
|
|
408
437
|
|
409
|
-
|
410
|
-
|
411
|
-
|
438
|
+
57
|
439
|
+
58
|
440
|
+
59</pre>
|
412
441
|
</td>
|
413
442
|
<td>
|
414
|
-
<pre class="code"><span class="info file"># File 'lib/netlinx/compile/extension_discovery.rb', line
|
443
|
+
<pre class="code"><span class="info file"># File 'lib/netlinx/compile/extension_discovery.rb', line 57</span>
|
415
444
|
|
416
445
|
<span class='kw'>def</span> <span class='id identifier rubyid_get_handler'>get_handler</span><span class='lparen'>(</span><span class='id identifier rubyid_filename'>filename</span><span class='rparen'>)</span>
|
417
446
|
<span class='ivar'>@handlers</span><span class='period'>.</span><span class='id identifier rubyid_select'>select</span><span class='lbrace'>{</span><span class='op'>|</span><span class='id identifier rubyid_h'>h</span><span class='op'>|</span> <span class='id identifier rubyid_h'>h</span><span class='period'>.</span><span class='id identifier rubyid_include?'>include?</span> <span class='id identifier rubyid_filename'>filename</span><span class='rbrace'>}</span><span class='period'>.</span><span class='id identifier rubyid_first'>first</span>
|
@@ -424,7 +453,7 @@ extensions.</p>
|
|
424
453
|
<div class="method_details ">
|
425
454
|
<h3 class="signature " id="workspace_extensions-class_method">
|
426
455
|
|
427
|
-
+ (<tt>
|
456
|
+
+ (<tt>Array<String></tt>) <strong>workspace_extensions</strong>
|
428
457
|
|
429
458
|
|
430
459
|
|
@@ -433,13 +462,31 @@ extensions.</p>
|
|
433
462
|
</h3><div class="docstring">
|
434
463
|
<div class="discussion">
|
435
464
|
|
436
|
-
<p>Returns
|
465
|
+
<p>Returns workspace file extensions.</p>
|
437
466
|
|
438
467
|
|
439
468
|
</div>
|
440
469
|
</div>
|
441
470
|
<div class="tags">
|
442
471
|
|
472
|
+
<p class="tag_title">Returns:</p>
|
473
|
+
<ul class="return">
|
474
|
+
|
475
|
+
<li>
|
476
|
+
|
477
|
+
|
478
|
+
<span class='type'>(<tt>Array<String></tt>)</span>
|
479
|
+
|
480
|
+
|
481
|
+
|
482
|
+
—
|
483
|
+
<div class='inline'>
|
484
|
+
<p>workspace file extensions.</p>
|
485
|
+
</div>
|
486
|
+
|
487
|
+
</li>
|
488
|
+
|
489
|
+
</ul>
|
443
490
|
|
444
491
|
</div><table class="source_code">
|
445
492
|
<tr>
|
@@ -473,7 +520,7 @@ extensions.</p>
|
|
473
520
|
</div>
|
474
521
|
|
475
522
|
<div id="footer">
|
476
|
-
Generated on Mon Jan 26 15:
|
523
|
+
Generated on Mon Jan 26 15:36:25 2015 by
|
477
524
|
<a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
|
478
525
|
0.8.7.6 (ruby-2.1.5).
|
479
526
|
</div>
|
@@ -257,7 +257,7 @@ ExtensionHandler.</p>
|
|
257
257
|
|
258
258
|
|
259
259
|
<span class="summary_desc"><div class='inline'>
|
260
|
-
<p>Returns true if this ExtensionHandler can handle the specified file
|
260
|
+
<p>Returns true if this <span class='object_link'><a href="" title="NetLinx::Compile::ExtensionHandler (class)">ExtensionHandler</a></span> can handle the specified file
|
261
261
|
extension.</p>
|
262
262
|
</div></span>
|
263
263
|
|
@@ -267,7 +267,7 @@ extension.</p>
|
|
267
267
|
<li class="public ">
|
268
268
|
<span class="summary_signature">
|
269
269
|
|
270
|
-
<a href="#initialize-instance_method" title="#initialize (instance method)">- (ExtensionHandler) <strong>initialize</strong>(**
|
270
|
+
<a href="#initialize-instance_method" title="#initialize (instance method)">- (ExtensionHandler) <strong>initialize</strong>(**kwargs) </a>
|
271
271
|
|
272
272
|
|
273
273
|
|
@@ -284,8 +284,7 @@ extension.</p>
|
|
284
284
|
|
285
285
|
|
286
286
|
<span class="summary_desc"><div class='inline'>
|
287
|
-
<p>
|
288
|
-
dot) that this ExtensionHandler supports.</p>
|
287
|
+
<p>A new instance of ExtensionHandler.</p>
|
289
288
|
</div></span>
|
290
289
|
|
291
290
|
</li>
|
@@ -309,8 +308,9 @@ dot) that this ExtensionHandler supports.</p>
|
|
309
308
|
|
310
309
|
|
311
310
|
<span class="summary_desc"><div class='inline'>
|
312
|
-
<p>
|
313
|
-
|
311
|
+
<p>Workspace files are significant because they contain information about a
|
312
|
+
project, connection settings for a master, and possibly multiple systems
|
313
|
+
that need to be compiled.</p>
|
314
314
|
</div></span>
|
315
315
|
|
316
316
|
</li>
|
@@ -325,7 +325,7 @@ to a source code file).</p>
|
|
325
325
|
<div class="method_details first">
|
326
326
|
<h3 class="signature first" id="initialize-instance_method">
|
327
327
|
|
328
|
-
- (<tt><span class='object_link'><a href="" title="NetLinx::Compile::ExtensionHandler (class)">ExtensionHandler</a></span></tt>) <strong>initialize</strong>(**
|
328
|
+
- (<tt><span class='object_link'><a href="" title="NetLinx::Compile::ExtensionHandler (class)">ExtensionHandler</a></span></tt>) <strong>initialize</strong>(**kwargs)
|
329
329
|
|
330
330
|
|
331
331
|
|
@@ -334,32 +334,101 @@ to a source code file).</p>
|
|
334
334
|
</h3><div class="docstring">
|
335
335
|
<div class="discussion">
|
336
336
|
|
337
|
-
<p>
|
338
|
-
|
339
|
-
<pre class="code ruby"><code class="ruby">extensions: An array of file extensions (without the leading dot)
|
340
|
-
that this ExtensionHandler supports.
|
341
|
-
|
342
|
-
usurps: Future.
|
343
|
-
Lets this ExtensionHandler take priority over other
|
344
|
-
ones. For example, most third-party handlers would
|
345
|
-
probably usurp the .apw NetLinx Studio workspace
|
346
|
-
extension.
|
347
|
-
|
348
|
-
is_a_workspace: Set to true if this ExtensionHandler is for
|
349
|
-
compiling a workspace. False by default. This
|
350
|
-
parameter assists with smart compiling, as
|
351
|
-
ExtensionDiscovery can return all workspace_handlers.
|
352
|
-
|
353
|
-
handler_class: A reference to the class that should be instantiated
|
354
|
-
if this handler is selected. For example,
|
355
|
-
NetLinx::SourceFile is the class that handles files
|
356
|
-
with the .axs extension.</code></pre>
|
337
|
+
<p>Returns a new instance of ExtensionHandler</p>
|
357
338
|
|
358
339
|
|
359
340
|
</div>
|
360
341
|
</div>
|
361
342
|
<div class="tags">
|
343
|
+
<p class="tag_title">Parameters:</p>
|
344
|
+
<ul class="param">
|
362
345
|
|
346
|
+
<li>
|
347
|
+
|
348
|
+
<span class='name'>kwargs</span>
|
349
|
+
|
350
|
+
|
351
|
+
<span class='type'>(<tt>Hash</tt>)</span>
|
352
|
+
|
353
|
+
|
354
|
+
|
355
|
+
—
|
356
|
+
<div class='inline'>
|
357
|
+
<p>a customizable set of options</p>
|
358
|
+
</div>
|
359
|
+
|
360
|
+
</li>
|
361
|
+
|
362
|
+
</ul>
|
363
|
+
|
364
|
+
|
365
|
+
|
366
|
+
|
367
|
+
<p class="tag_title">Options Hash (<tt>**kwargs</tt>):</p>
|
368
|
+
<ul class="option">
|
369
|
+
|
370
|
+
<li>
|
371
|
+
<span class="name">:extensions</span>
|
372
|
+
<span class="type">(<tt>Array<String></tt>)</span>
|
373
|
+
<span class="default">
|
374
|
+
|
375
|
+
</span>
|
376
|
+
|
377
|
+
— <div class='inline'>
|
378
|
+
<p>File extensions (without the leading dot) that this ExtensionHandler
|
379
|
+
supports.</p>
|
380
|
+
</div>
|
381
|
+
|
382
|
+
</li>
|
383
|
+
|
384
|
+
<li>
|
385
|
+
<span class="name">:usurps</span>
|
386
|
+
<span class="type">(<tt>Array<String></tt>)</span>
|
387
|
+
<span class="default">
|
388
|
+
|
389
|
+
</span>
|
390
|
+
|
391
|
+
— <div class='inline'>
|
392
|
+
<p>Future. Lets this ExtensionHandler take priority over other ones. For
|
393
|
+
example, most third-party handlers would probably usurp the .apw NetLinx
|
394
|
+
Studio workspace extension.</p>
|
395
|
+
</div>
|
396
|
+
|
397
|
+
</li>
|
398
|
+
|
399
|
+
<li>
|
400
|
+
<span class="name">:is_a_workspace</span>
|
401
|
+
<span class="type">(<tt>Boolean</tt>)</span>
|
402
|
+
<span class="default">
|
403
|
+
|
404
|
+
</span>
|
405
|
+
|
406
|
+
— <div class='inline'>
|
407
|
+
<p>Set to true if this ExtensionHandler is for compiling a workspace. False by
|
408
|
+
default. This parameter assists with smart compiling, as
|
409
|
+
<span class='object_link'><a href="ExtensionDiscovery.html" title="NetLinx::Compile::ExtensionDiscovery (class)">NetLinx::Compile::ExtensionDiscovery</a></span> can return all workspace_handlers.</p>
|
410
|
+
</div>
|
411
|
+
|
412
|
+
</li>
|
413
|
+
|
414
|
+
<li>
|
415
|
+
<span class="name">:handler_class</span>
|
416
|
+
<span class="type">(<tt><span class='object_link'><a href="Extension.html" title="NetLinx::Compile::Extension (module)">Extension</a></span></tt>)</span>
|
417
|
+
<span class="default">
|
418
|
+
|
419
|
+
</span>
|
420
|
+
|
421
|
+
— <div class='inline'>
|
422
|
+
<p>A reference to the class that should be instantiated if this handler is
|
423
|
+
selected. For example, <span class='object_link'><a href="../SourceFile.html" title="NetLinx::SourceFile (class)">SourceFile</a></span> is the class that handles
|
424
|
+
files with the .axs extension.</p>
|
425
|
+
</div>
|
426
|
+
|
427
|
+
</li>
|
428
|
+
|
429
|
+
</ul>
|
430
|
+
|
431
|
+
|
363
432
|
|
364
433
|
</div><table class="source_code">
|
365
434
|
<tr>
|
@@ -367,21 +436,21 @@ handler_class: A reference to the class that should be instantiated
|
|
367
436
|
<pre class="lines">
|
368
437
|
|
369
438
|
|
439
|
+
35
|
440
|
+
36
|
370
441
|
37
|
371
442
|
38
|
372
443
|
39
|
373
|
-
40
|
374
|
-
41
|
375
|
-
42</pre>
|
444
|
+
40</pre>
|
376
445
|
</td>
|
377
446
|
<td>
|
378
|
-
<pre class="code"><span class="info file"># File 'lib/netlinx/compile/extension_handler.rb', line
|
447
|
+
<pre class="code"><span class="info file"># File 'lib/netlinx/compile/extension_handler.rb', line 35</span>
|
379
448
|
|
380
|
-
<span class='kw'>def</span> <span class='id identifier rubyid_initialize'>initialize</span><span class='lparen'>(</span><span class='op'>**</span><span class='id identifier
|
381
|
-
<span class='ivar'>@extensions</span> <span class='op'>=</span> <span class='id identifier
|
382
|
-
<span class='ivar'>@usurps</span> <span class='op'>=</span> <span class='id identifier
|
383
|
-
<span class='ivar'>@is_a_workspace</span> <span class='op'>=</span> <span class='id identifier
|
384
|
-
<span class='ivar'>@handler_class</span> <span class='op'>=</span> <span class='id identifier
|
449
|
+
<span class='kw'>def</span> <span class='id identifier rubyid_initialize'>initialize</span><span class='lparen'>(</span><span class='op'>**</span><span class='id identifier rubyid_kwargs'>kwargs</span><span class='rparen'>)</span>
|
450
|
+
<span class='ivar'>@extensions</span> <span class='op'>=</span> <span class='id identifier rubyid_kwargs'>kwargs</span><span class='period'>.</span><span class='id identifier rubyid_fetch'>fetch</span> <span class='symbol'>:extensions</span><span class='comma'>,</span> <span class='lbracket'>[</span><span class='rbracket'>]</span>
|
451
|
+
<span class='ivar'>@usurps</span> <span class='op'>=</span> <span class='id identifier rubyid_kwargs'>kwargs</span><span class='period'>.</span><span class='id identifier rubyid_fetch'>fetch</span> <span class='symbol'>:usurps</span><span class='comma'>,</span> <span class='lbracket'>[</span><span class='rbracket'>]</span>
|
452
|
+
<span class='ivar'>@is_a_workspace</span> <span class='op'>=</span> <span class='id identifier rubyid_kwargs'>kwargs</span><span class='period'>.</span><span class='id identifier rubyid_fetch'>fetch</span> <span class='symbol'>:is_a_workspace</span><span class='comma'>,</span> <span class='kw'>false</span>
|
453
|
+
<span class='ivar'>@handler_class</span> <span class='op'>=</span> <span class='id identifier rubyid_kwargs'>kwargs</span><span class='period'>.</span><span class='id identifier rubyid_fetch'>fetch</span> <span class='symbol'>:handler_class</span><span class='comma'>,</span> <span class='kw'>nil</span>
|
385
454
|
<span class='kw'>end</span></pre>
|
386
455
|
</td>
|
387
456
|
</tr>
|
@@ -558,12 +627,12 @@ extension.</p>
|
|
558
627
|
<pre class="lines">
|
559
628
|
|
560
629
|
|
561
|
-
|
562
|
-
|
563
|
-
|
630
|
+
43
|
631
|
+
44
|
632
|
+
45</pre>
|
564
633
|
</td>
|
565
634
|
<td>
|
566
|
-
<pre class="code"><span class="info file"># File 'lib/netlinx/compile/extension_handler.rb', line
|
635
|
+
<pre class="code"><span class="info file"># File 'lib/netlinx/compile/extension_handler.rb', line 43</span>
|
567
636
|
|
568
637
|
<span class='kw'>def</span> <span class='op'><<</span><span class='lparen'>(</span><span class='id identifier rubyid_file_extension'>file_extension</span><span class='rparen'>)</span>
|
569
638
|
<span class='ivar'>@extensions</span> <span class='op'><<</span> <span class='id identifier rubyid_parse_extension'>parse_extension</span><span class='lparen'>(</span><span class='id identifier rubyid_file_extension'>file_extension</span><span class='rparen'>)</span>
|
@@ -585,7 +654,7 @@ extension.</p>
|
|
585
654
|
</h3><div class="docstring">
|
586
655
|
<div class="discussion">
|
587
656
|
|
588
|
-
<p>Returns true if this ExtensionHandler can handle the specified file
|
657
|
+
<p>Returns true if this <span class='object_link'><a href="" title="NetLinx::Compile::ExtensionHandler (class)">NetLinx::Compile::ExtensionHandler</a></span> can handle the specified file
|
589
658
|
extension.</p>
|
590
659
|
|
591
660
|
|
@@ -613,12 +682,12 @@ extension.</p>
|
|
613
682
|
<pre class="lines">
|
614
683
|
|
615
684
|
|
616
|
-
|
617
|
-
|
618
|
-
|
685
|
+
62
|
686
|
+
63
|
687
|
+
64</pre>
|
619
688
|
</td>
|
620
689
|
<td>
|
621
|
-
<pre class="code"><span class="info file"># File 'lib/netlinx/compile/extension_handler.rb', line
|
690
|
+
<pre class="code"><span class="info file"># File 'lib/netlinx/compile/extension_handler.rb', line 62</span>
|
622
691
|
|
623
692
|
<span class='kw'>def</span> <span class='id identifier rubyid_include?'>include?</span><span class='lparen'>(</span><span class='id identifier rubyid_file_extension'>file_extension</span><span class='rparen'>)</span>
|
624
693
|
<span class='ivar'>@extensions</span><span class='period'>.</span><span class='id identifier rubyid_include?'>include?</span> <span class='id identifier rubyid_parse_extension'>parse_extension</span><span class='lparen'>(</span><span class='id identifier rubyid_file_extension'>file_extension</span><span class='rparen'>)</span>
|
@@ -640,9 +709,6 @@ extension.</p>
|
|
640
709
|
</h3><div class="docstring">
|
641
710
|
<div class="discussion">
|
642
711
|
|
643
|
-
<p>Returns true if the ExtensionHandler handles a workspace file (as opposed
|
644
|
-
to a source code file).</p>
|
645
|
-
|
646
712
|
<p>Workspace files are significant because they contain information about a
|
647
713
|
project, connection settings for a master, and possibly multiple systems
|
648
714
|
that need to be compiled. Therefore, when smart-compiling, workspaces need
|
@@ -664,6 +730,12 @@ should be considered a better match than discovering a source code file.</p>
|
|
664
730
|
|
665
731
|
|
666
732
|
|
733
|
+
—
|
734
|
+
<div class='inline'>
|
735
|
+
<p>true if the <span class='object_link'><a href="" title="NetLinx::Compile::ExtensionHandler (class)">NetLinx::Compile::ExtensionHandler</a></span> handles a workspace file (as opposed to a
|
736
|
+
source code file).</p>
|
737
|
+
</div>
|
738
|
+
|
667
739
|
</li>
|
668
740
|
|
669
741
|
</ul>
|
@@ -674,12 +746,12 @@ should be considered a better match than discovering a source code file.</p>
|
|
674
746
|
<pre class="lines">
|
675
747
|
|
676
748
|
|
677
|
-
|
678
|
-
|
679
|
-
|
749
|
+
56
|
750
|
+
57
|
751
|
+
58</pre>
|
680
752
|
</td>
|
681
753
|
<td>
|
682
|
-
<pre class="code"><span class="info file"># File 'lib/netlinx/compile/extension_handler.rb', line
|
754
|
+
<pre class="code"><span class="info file"># File 'lib/netlinx/compile/extension_handler.rb', line 56</span>
|
683
755
|
|
684
756
|
<span class='kw'>def</span> <span class='id identifier rubyid_is_a_workspace?'>is_a_workspace?</span>
|
685
757
|
<span class='ivar'>@is_a_workspace</span>
|
@@ -694,7 +766,7 @@ should be considered a better match than discovering a source code file.</p>
|
|
694
766
|
</div>
|
695
767
|
|
696
768
|
<div id="footer">
|
697
|
-
Generated on Mon Jan 26 15:
|
769
|
+
Generated on Mon Jan 26 15:36:25 2015 by
|
698
770
|
<a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
|
699
771
|
0.8.7.6 (ruby-2.1.5).
|
700
772
|
</div>
|