netlinx-workspace 0.3.0 → 1.0.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +206 -6
- data/bin/netlinx-workspace +27 -0
- data/doc/NetLinx.html +18 -7
- data/doc/NetLinx/Compile.html +15 -4
- data/doc/NetLinx/Compile/Extension.html +15 -4
- data/doc/NetLinx/Compile/Extension/APW.html +8 -8
- data/doc/NetLinx/Project.html +334 -90
- data/doc/NetLinx/Rake.html +128 -0
- data/doc/NetLinx/Rake/Workspace.html +128 -0
- data/doc/NetLinx/Rake/Workspace/CreateWorkspaceConfig.html +387 -0
- data/doc/NetLinx/Rake/Workspace/GenerateAPW.html +371 -0
- data/doc/NetLinx/System.html +1341 -217
- data/doc/NetLinx/SystemFile.html +454 -51
- data/doc/NetLinx/Workspace.html +434 -69
- data/doc/NetLinx/Workspace/YAML.html +398 -0
- data/doc/_index.html +66 -4
- data/doc/class_list.html +6 -2
- data/doc/file.README.html +218 -10
- data/doc/file.license.html +4 -4
- data/doc/file_list.html +5 -1
- data/doc/frames.html +1 -1
- data/doc/index.html +218 -10
- data/doc/js/full_list.js +4 -1
- data/doc/method_list.html +171 -23
- data/doc/top-level-namespace.html +3 -3
- data/lib/netlinx/compile/extension/apw.rb +3 -0
- data/lib/netlinx/rake/workspace.rb +14 -0
- data/lib/netlinx/rake/workspace/create_workspace_config.rb +49 -0
- data/lib/netlinx/rake/workspace/generate_apw.rb +41 -0
- data/lib/netlinx/workspace.rb +58 -14
- data/lib/netlinx/workspace/project.rb +107 -0
- data/lib/netlinx/workspace/system.rb +226 -0
- data/lib/netlinx/workspace/system_file.rb +98 -0
- data/lib/netlinx/workspace/yaml.rb +217 -0
- data/license.txt +1 -1
- metadata +53 -28
- data/lib/netlinx-workspace.rb +0 -1
- data/lib/netlinx/project.rb +0 -83
- data/lib/netlinx/system.rb +0 -122
- data/lib/netlinx/system_file.rb +0 -36
data/doc/NetLinx/SystemFile.html
CHANGED
@@ -6,7 +6,7 @@
|
|
6
6
|
<title>
|
7
7
|
Class: NetLinx::SystemFile
|
8
8
|
|
9
|
-
— Documentation by YARD 0.8.7.
|
9
|
+
— Documentation by YARD 0.8.7.6
|
10
10
|
|
11
11
|
</title>
|
12
12
|
|
@@ -94,12 +94,23 @@
|
|
94
94
|
|
95
95
|
|
96
96
|
<dt class="r2 last">Defined in:</dt>
|
97
|
-
<dd class="r2 last">lib/netlinx/system_file.rb</dd>
|
97
|
+
<dd class="r2 last">lib/netlinx/workspace/system_file.rb</dd>
|
98
98
|
|
99
99
|
</dl>
|
100
100
|
<div class="clear"></div>
|
101
101
|
|
102
|
+
<h2>Overview</h2><div class="docstring">
|
103
|
+
<div class="discussion">
|
104
|
+
|
105
|
+
<p>A file node in a NetLinx::System.</p>
|
106
|
+
|
102
107
|
|
108
|
+
</div>
|
109
|
+
</div>
|
110
|
+
<div class="tags">
|
111
|
+
|
112
|
+
|
113
|
+
</div>
|
103
114
|
|
104
115
|
|
105
116
|
|
@@ -130,6 +141,33 @@
|
|
130
141
|
<p>Returns the value of attribute description.</p>
|
131
142
|
</div></span>
|
132
143
|
|
144
|
+
</li>
|
145
|
+
|
146
|
+
|
147
|
+
<li class="public ">
|
148
|
+
<span class="summary_signature">
|
149
|
+
|
150
|
+
<a href="#devices-instance_method" title="#devices (instance method)">- (Object) <strong>devices</strong> </a>
|
151
|
+
|
152
|
+
|
153
|
+
|
154
|
+
</span>
|
155
|
+
|
156
|
+
|
157
|
+
|
158
|
+
|
159
|
+
|
160
|
+
|
161
|
+
|
162
|
+
|
163
|
+
|
164
|
+
|
165
|
+
|
166
|
+
|
167
|
+
<span class="summary_desc"><div class='inline'>
|
168
|
+
<p>Array of D:P:S strings that this file maps to.</p>
|
169
|
+
</div></span>
|
170
|
+
|
133
171
|
</li>
|
134
172
|
|
135
173
|
|
@@ -257,7 +295,31 @@
|
|
257
295
|
<li class="public ">
|
258
296
|
<span class="summary_signature">
|
259
297
|
|
260
|
-
<a href="
|
298
|
+
<a href="#%3C%3C-instance_method" title="#<< (instance method)">- (Object) <strong><<</strong>(device) </a>
|
299
|
+
|
300
|
+
|
301
|
+
|
302
|
+
</span>
|
303
|
+
|
304
|
+
|
305
|
+
|
306
|
+
|
307
|
+
|
308
|
+
|
309
|
+
|
310
|
+
|
311
|
+
|
312
|
+
<span class="summary_desc"><div class='inline'>
|
313
|
+
<p>Add a device that uses this file.</p>
|
314
|
+
</div></span>
|
315
|
+
|
316
|
+
</li>
|
317
|
+
|
318
|
+
|
319
|
+
<li class="public ">
|
320
|
+
<span class="summary_signature">
|
321
|
+
|
322
|
+
<a href="#initialize-instance_method" title="#initialize (instance method)">- (SystemFile) <strong>initialize</strong>(**kwargs) </a>
|
261
323
|
|
262
324
|
|
263
325
|
|
@@ -298,7 +360,31 @@
|
|
298
360
|
|
299
361
|
|
300
362
|
<span class="summary_desc"><div class='inline'>
|
301
|
-
<p>
|
363
|
+
<p>The SystemFile's name.</p>
|
364
|
+
</div></span>
|
365
|
+
|
366
|
+
</li>
|
367
|
+
|
368
|
+
|
369
|
+
<li class="public ">
|
370
|
+
<span class="summary_signature">
|
371
|
+
|
372
|
+
<a href="#to_xml_element-instance_method" title="#to_xml_element (instance method)">- (REXML::Element) <strong>to_xml_element</strong> </a>
|
373
|
+
|
374
|
+
|
375
|
+
|
376
|
+
</span>
|
377
|
+
|
378
|
+
|
379
|
+
|
380
|
+
|
381
|
+
|
382
|
+
|
383
|
+
|
384
|
+
|
385
|
+
|
386
|
+
<span class="summary_desc"><div class='inline'>
|
387
|
+
<p>An XML element representing this file.</p>
|
302
388
|
</div></span>
|
303
389
|
|
304
390
|
</li>
|
@@ -313,7 +399,7 @@
|
|
313
399
|
<div class="method_details first">
|
314
400
|
<h3 class="signature first" id="initialize-instance_method">
|
315
401
|
|
316
|
-
- (<tt><span class='object_link'><a href="" title="NetLinx::SystemFile (class)">SystemFile</a></span></tt>) <strong>initialize</strong>(**
|
402
|
+
- (<tt><span class='object_link'><a href="" title="NetLinx::SystemFile (class)">SystemFile</a></span></tt>) <strong>initialize</strong>(**kwargs)
|
317
403
|
|
318
404
|
|
319
405
|
|
@@ -328,36 +414,140 @@
|
|
328
414
|
</div>
|
329
415
|
</div>
|
330
416
|
<div class="tags">
|
417
|
+
<p class="tag_title">Parameters:</p>
|
418
|
+
<ul class="param">
|
419
|
+
|
420
|
+
<li>
|
421
|
+
|
422
|
+
<span class='name'>kwargs</span>
|
423
|
+
|
424
|
+
|
425
|
+
<span class='type'>(<tt>Hash</tt>)</span>
|
426
|
+
|
427
|
+
|
428
|
+
|
429
|
+
—
|
430
|
+
<div class='inline'>
|
431
|
+
<p>a customizable set of options</p>
|
432
|
+
</div>
|
433
|
+
|
434
|
+
</li>
|
435
|
+
|
436
|
+
</ul>
|
437
|
+
|
438
|
+
|
439
|
+
|
440
|
+
|
441
|
+
<p class="tag_title">Options Hash (<tt>**kwargs</tt>):</p>
|
442
|
+
<ul class="option">
|
443
|
+
|
444
|
+
<li>
|
445
|
+
<span class="name">:system</span>
|
446
|
+
<span class="type">(<tt><span class='object_link'><a href="System.html" title="NetLinx::System (class)">NetLinx::System</a></span></tt>)</span>
|
447
|
+
<span class="default">
|
448
|
+
|
449
|
+
</span>
|
450
|
+
|
451
|
+
— <div class='inline'>
|
452
|
+
<p>This file's parent system node.</p>
|
453
|
+
</div>
|
454
|
+
|
455
|
+
</li>
|
456
|
+
|
457
|
+
<li>
|
458
|
+
<span class="name">:name</span>
|
459
|
+
<span class="type">(<tt>String</tt>)</span>
|
460
|
+
<span class="default">
|
461
|
+
|
462
|
+
— default:
|
463
|
+
<tt>''</tt>
|
464
|
+
|
465
|
+
</span>
|
466
|
+
|
467
|
+
— <div class='inline'>
|
468
|
+
<p>Identifiable name.</p>
|
469
|
+
</div>
|
470
|
+
|
471
|
+
</li>
|
472
|
+
|
473
|
+
<li>
|
474
|
+
<span class="name">:path</span>
|
475
|
+
<span class="type">(<tt>String</tt>)</span>
|
476
|
+
<span class="default">
|
477
|
+
|
478
|
+
— default:
|
479
|
+
<tt>''</tt>
|
480
|
+
|
481
|
+
</span>
|
482
|
+
|
483
|
+
— <div class='inline'>
|
484
|
+
<p>Relative file path.</p>
|
485
|
+
</div>
|
486
|
+
|
487
|
+
</li>
|
488
|
+
|
489
|
+
<li>
|
490
|
+
<span class="name">:description</span>
|
491
|
+
<span class="type">(<tt>String</tt>)</span>
|
492
|
+
<span class="default">
|
493
|
+
|
494
|
+
— default:
|
495
|
+
<tt>''</tt>
|
496
|
+
|
497
|
+
</span>
|
498
|
+
|
499
|
+
</li>
|
500
|
+
|
501
|
+
<li>
|
502
|
+
<span class="name">:type</span>
|
503
|
+
<span class="type">(<tt>:master</tt>, <tt>:source</tt>, <tt>:include</tt>, <tt>:duet</tt>, <tt>:tko</tt>, <tt>:module</tt>, <tt>:ir</tt>, <tt>:tp4</tt>, <tt>:tp5</tt>)</span>
|
504
|
+
<span class="default">
|
505
|
+
|
506
|
+
— default:
|
507
|
+
<tt>:master</tt>
|
508
|
+
|
509
|
+
</span>
|
510
|
+
|
511
|
+
</li>
|
512
|
+
|
513
|
+
</ul>
|
331
514
|
|
332
515
|
|
516
|
+
|
333
517
|
</div><table class="source_code">
|
334
518
|
<tr>
|
335
519
|
<td>
|
336
520
|
<pre class="lines">
|
337
521
|
|
338
522
|
|
339
|
-
|
340
|
-
|
341
|
-
|
342
|
-
|
343
|
-
|
344
|
-
|
345
|
-
|
346
|
-
|
347
|
-
|
348
|
-
|
523
|
+
19
|
524
|
+
20
|
525
|
+
21
|
526
|
+
22
|
527
|
+
23
|
528
|
+
24
|
529
|
+
25
|
530
|
+
26
|
531
|
+
27
|
532
|
+
28
|
533
|
+
29
|
534
|
+
30
|
535
|
+
31</pre>
|
349
536
|
</td>
|
350
537
|
<td>
|
351
|
-
<pre class="code"><span class="info file"># File 'lib/netlinx/system_file.rb', line
|
352
|
-
|
353
|
-
<span class='kw'>def</span> <span class='id identifier rubyid_initialize'>initialize</span
|
354
|
-
<span class='ivar'>@
|
355
|
-
|
356
|
-
<span class='ivar'>@
|
357
|
-
<span class='ivar'>@
|
358
|
-
<span class='ivar'>@
|
538
|
+
<pre class="code"><span class="info file"># File 'lib/netlinx/workspace/system_file.rb', line 19</span>
|
539
|
+
|
540
|
+
<span class='kw'>def</span> <span class='id identifier rubyid_initialize'>initialize</span> <span class='op'>**</span><span class='id identifier rubyid_kwargs'>kwargs</span>
|
541
|
+
<span class='ivar'>@system</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'>:system</span><span class='comma'>,</span> <span class='kw'>nil</span>
|
542
|
+
|
543
|
+
<span class='ivar'>@name</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'>:name</span><span class='comma'>,</span> <span class='tstring'><span class='tstring_beg'>'</span><span class='tstring_end'>'</span></span>
|
544
|
+
<span class='ivar'>@path</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'>:path</span><span class='comma'>,</span> <span class='tstring'><span class='tstring_beg'>'</span><span class='tstring_end'>'</span></span>
|
545
|
+
<span class='ivar'>@description</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'>:description</span><span class='comma'>,</span> <span class='tstring'><span class='tstring_beg'>'</span><span class='tstring_end'>'</span></span>
|
546
|
+
<span class='ivar'>@type</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'>:type</span><span class='comma'>,</span> <span class='symbol'>:master</span>
|
547
|
+
|
548
|
+
<span class='ivar'>@devices</span> <span class='op'>=</span> <span class='lbracket'>[</span><span class='rbracket'>]</span>
|
359
549
|
|
360
|
-
<span class='id identifier rubyid_system_file_element'>system_file_element</span> <span class='op'>=</span> <span class='id identifier
|
550
|
+
<span class='id identifier rubyid_system_file_element'>system_file_element</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'>:element</span><span class='comma'>,</span> <span class='kw'>nil</span>
|
361
551
|
<span class='id identifier rubyid_parse_xml_element'>parse_xml_element</span> <span class='id identifier rubyid_system_file_element'>system_file_element</span> <span class='kw'>if</span> <span class='id identifier rubyid_system_file_element'>system_file_element</span>
|
362
552
|
<span class='kw'>end</span></pre>
|
363
553
|
</td>
|
@@ -398,12 +588,12 @@
|
|
398
588
|
<pre class="lines">
|
399
589
|
|
400
590
|
|
401
|
-
|
402
|
-
|
403
|
-
|
591
|
+
9
|
592
|
+
10
|
593
|
+
11</pre>
|
404
594
|
</td>
|
405
595
|
<td>
|
406
|
-
<pre class="code"><span class="info file"># File 'lib/netlinx/system_file.rb', line
|
596
|
+
<pre class="code"><span class="info file"># File 'lib/netlinx/workspace/system_file.rb', line 9</span>
|
407
597
|
|
408
598
|
<span class='kw'>def</span> <span class='id identifier rubyid_description'>description</span>
|
409
599
|
<span class='ivar'>@description</span>
|
@@ -414,6 +604,49 @@
|
|
414
604
|
</div>
|
415
605
|
|
416
606
|
|
607
|
+
<span id="devices=-instance_method"></span>
|
608
|
+
<div class="method_details ">
|
609
|
+
<h3 class="signature " id="devices-instance_method">
|
610
|
+
|
611
|
+
- (<tt>Object</tt>) <strong>devices</strong>
|
612
|
+
|
613
|
+
|
614
|
+
|
615
|
+
|
616
|
+
|
617
|
+
</h3><div class="docstring">
|
618
|
+
<div class="discussion">
|
619
|
+
|
620
|
+
<p>Array of D:P:S strings that this file maps to.</p>
|
621
|
+
|
622
|
+
|
623
|
+
</div>
|
624
|
+
</div>
|
625
|
+
<div class="tags">
|
626
|
+
|
627
|
+
|
628
|
+
</div><table class="source_code">
|
629
|
+
<tr>
|
630
|
+
<td>
|
631
|
+
<pre class="lines">
|
632
|
+
|
633
|
+
|
634
|
+
12
|
635
|
+
13
|
636
|
+
14</pre>
|
637
|
+
</td>
|
638
|
+
<td>
|
639
|
+
<pre class="code"><span class="info file"># File 'lib/netlinx/workspace/system_file.rb', line 12</span>
|
640
|
+
|
641
|
+
<span class='kw'>def</span> <span class='id identifier rubyid_devices'>devices</span>
|
642
|
+
<span class='ivar'>@devices</span>
|
643
|
+
<span class='kw'>end</span></pre>
|
644
|
+
</td>
|
645
|
+
</tr>
|
646
|
+
</table>
|
647
|
+
</div>
|
648
|
+
|
649
|
+
|
417
650
|
<span id="name=-instance_method"></span>
|
418
651
|
<div class="method_details ">
|
419
652
|
<h3 class="signature " id="name-instance_method">
|
@@ -441,12 +674,12 @@
|
|
441
674
|
<pre class="lines">
|
442
675
|
|
443
676
|
|
444
|
-
|
445
|
-
|
446
|
-
|
677
|
+
7
|
678
|
+
8
|
679
|
+
9</pre>
|
447
680
|
</td>
|
448
681
|
<td>
|
449
|
-
<pre class="code"><span class="info file"># File 'lib/netlinx/system_file.rb', line
|
682
|
+
<pre class="code"><span class="info file"># File 'lib/netlinx/workspace/system_file.rb', line 7</span>
|
450
683
|
|
451
684
|
<span class='kw'>def</span> <span class='id identifier rubyid_name'>name</span>
|
452
685
|
<span class='ivar'>@name</span>
|
@@ -484,12 +717,12 @@
|
|
484
717
|
<pre class="lines">
|
485
718
|
|
486
719
|
|
487
|
-
|
488
|
-
|
489
|
-
|
720
|
+
8
|
721
|
+
9
|
722
|
+
10</pre>
|
490
723
|
</td>
|
491
724
|
<td>
|
492
|
-
<pre class="code"><span class="info file"># File 'lib/netlinx/system_file.rb', line
|
725
|
+
<pre class="code"><span class="info file"># File 'lib/netlinx/workspace/system_file.rb', line 8</span>
|
493
726
|
|
494
727
|
<span class='kw'>def</span> <span class='id identifier rubyid_path'>path</span>
|
495
728
|
<span class='ivar'>@path</span>
|
@@ -527,12 +760,12 @@
|
|
527
760
|
<pre class="lines">
|
528
761
|
|
529
762
|
|
763
|
+
6
|
530
764
|
7
|
531
|
-
8
|
532
|
-
9</pre>
|
765
|
+
8</pre>
|
533
766
|
</td>
|
534
767
|
<td>
|
535
|
-
<pre class="code"><span class="info file"># File 'lib/netlinx/system_file.rb', line
|
768
|
+
<pre class="code"><span class="info file"># File 'lib/netlinx/workspace/system_file.rb', line 6</span>
|
536
769
|
|
537
770
|
<span class='kw'>def</span> <span class='id identifier rubyid_system'>system</span>
|
538
771
|
<span class='ivar'>@system</span>
|
@@ -570,12 +803,12 @@
|
|
570
803
|
<pre class="lines">
|
571
804
|
|
572
805
|
|
573
|
-
|
574
|
-
|
575
|
-
|
806
|
+
10
|
807
|
+
11
|
808
|
+
12</pre>
|
576
809
|
</td>
|
577
810
|
<td>
|
578
|
-
<pre class="code"><span class="info file"># File 'lib/netlinx/system_file.rb', line
|
811
|
+
<pre class="code"><span class="info file"># File 'lib/netlinx/workspace/system_file.rb', line 10</span>
|
579
812
|
|
580
813
|
<span class='kw'>def</span> <span class='id identifier rubyid_type'>type</span>
|
581
814
|
<span class='ivar'>@type</span>
|
@@ -593,7 +826,68 @@
|
|
593
826
|
|
594
827
|
|
595
828
|
<div class="method_details first">
|
596
|
-
<h3 class="signature first" id="
|
829
|
+
<h3 class="signature first" id="<<-instance_method">
|
830
|
+
|
831
|
+
- (<tt>Object</tt>) <strong><<</strong>(device)
|
832
|
+
|
833
|
+
|
834
|
+
|
835
|
+
|
836
|
+
|
837
|
+
</h3><div class="docstring">
|
838
|
+
<div class="discussion">
|
839
|
+
|
840
|
+
<p>Add a device that uses this file.</p>
|
841
|
+
|
842
|
+
|
843
|
+
</div>
|
844
|
+
</div>
|
845
|
+
<div class="tags">
|
846
|
+
<p class="tag_title">Parameters:</p>
|
847
|
+
<ul class="param">
|
848
|
+
|
849
|
+
<li>
|
850
|
+
|
851
|
+
<span class='name'>device</span>
|
852
|
+
|
853
|
+
|
854
|
+
<span class='type'>(<tt>String</tt>)</span>
|
855
|
+
|
856
|
+
|
857
|
+
|
858
|
+
—
|
859
|
+
<div class='inline'>
|
860
|
+
<p>D:P:S string.</p>
|
861
|
+
</div>
|
862
|
+
|
863
|
+
</li>
|
864
|
+
|
865
|
+
</ul>
|
866
|
+
|
867
|
+
|
868
|
+
</div><table class="source_code">
|
869
|
+
<tr>
|
870
|
+
<td>
|
871
|
+
<pre class="lines">
|
872
|
+
|
873
|
+
|
874
|
+
35
|
875
|
+
36
|
876
|
+
37</pre>
|
877
|
+
</td>
|
878
|
+
<td>
|
879
|
+
<pre class="code"><span class="info file"># File 'lib/netlinx/workspace/system_file.rb', line 35</span>
|
880
|
+
|
881
|
+
<span class='kw'>def</span> <span class='op'><<</span> <span class='id identifier rubyid_device'>device</span>
|
882
|
+
<span class='id identifier rubyid_devices'>devices</span> <span class='op'><<</span> <span class='id identifier rubyid_device'>device</span>
|
883
|
+
<span class='kw'>end</span></pre>
|
884
|
+
</td>
|
885
|
+
</tr>
|
886
|
+
</table>
|
887
|
+
</div>
|
888
|
+
|
889
|
+
<div class="method_details ">
|
890
|
+
<h3 class="signature " id="to_s-instance_method">
|
597
891
|
|
598
892
|
- (<tt>Object</tt>) <strong>to_s</strong>
|
599
893
|
|
@@ -604,13 +898,31 @@
|
|
604
898
|
</h3><div class="docstring">
|
605
899
|
<div class="discussion">
|
606
900
|
|
607
|
-
<p>
|
901
|
+
<p>Returns the SystemFile's name.</p>
|
608
902
|
|
609
903
|
|
610
904
|
</div>
|
611
905
|
</div>
|
612
906
|
<div class="tags">
|
613
907
|
|
908
|
+
<p class="tag_title">Returns:</p>
|
909
|
+
<ul class="return">
|
910
|
+
|
911
|
+
<li>
|
912
|
+
|
913
|
+
|
914
|
+
<span class='type'></span>
|
915
|
+
|
916
|
+
|
917
|
+
|
918
|
+
|
919
|
+
<div class='inline'>
|
920
|
+
<p>the SystemFile's name.</p>
|
921
|
+
</div>
|
922
|
+
|
923
|
+
</li>
|
924
|
+
|
925
|
+
</ul>
|
614
926
|
|
615
927
|
</div><table class="source_code">
|
616
928
|
<tr>
|
@@ -618,12 +930,12 @@
|
|
618
930
|
<pre class="lines">
|
619
931
|
|
620
932
|
|
621
|
-
|
622
|
-
|
623
|
-
|
933
|
+
40
|
934
|
+
41
|
935
|
+
42</pre>
|
624
936
|
</td>
|
625
937
|
<td>
|
626
|
-
<pre class="code"><span class="info file"># File 'lib/netlinx/system_file.rb', line
|
938
|
+
<pre class="code"><span class="info file"># File 'lib/netlinx/workspace/system_file.rb', line 40</span>
|
627
939
|
|
628
940
|
<span class='kw'>def</span> <span class='id identifier rubyid_to_s'>to_s</span>
|
629
941
|
<span class='ivar'>@name</span>
|
@@ -631,6 +943,97 @@
|
|
631
943
|
</td>
|
632
944
|
</tr>
|
633
945
|
</table>
|
946
|
+
</div>
|
947
|
+
|
948
|
+
<div class="method_details ">
|
949
|
+
<h3 class="signature " id="to_xml_element-instance_method">
|
950
|
+
|
951
|
+
- (<tt>REXML::Element</tt>) <strong>to_xml_element</strong>
|
952
|
+
|
953
|
+
|
954
|
+
|
955
|
+
|
956
|
+
|
957
|
+
</h3><div class="docstring">
|
958
|
+
<div class="discussion">
|
959
|
+
|
960
|
+
<p>Returns an XML element representing this file.</p>
|
961
|
+
|
962
|
+
|
963
|
+
</div>
|
964
|
+
</div>
|
965
|
+
<div class="tags">
|
966
|
+
|
967
|
+
<p class="tag_title">Returns:</p>
|
968
|
+
<ul class="return">
|
969
|
+
|
970
|
+
<li>
|
971
|
+
|
972
|
+
|
973
|
+
<span class='type'>(<tt>REXML::Element</tt>)</span>
|
974
|
+
|
975
|
+
|
976
|
+
|
977
|
+
—
|
978
|
+
<div class='inline'>
|
979
|
+
<p>an XML element representing this file.</p>
|
980
|
+
</div>
|
981
|
+
|
982
|
+
</li>
|
983
|
+
|
984
|
+
</ul>
|
985
|
+
|
986
|
+
</div><table class="source_code">
|
987
|
+
<tr>
|
988
|
+
<td>
|
989
|
+
<pre class="lines">
|
990
|
+
|
991
|
+
|
992
|
+
45
|
993
|
+
46
|
994
|
+
47
|
995
|
+
48
|
996
|
+
49
|
997
|
+
50
|
998
|
+
51
|
999
|
+
52
|
1000
|
+
53
|
1001
|
+
54
|
1002
|
+
55
|
1003
|
+
56
|
1004
|
+
57
|
1005
|
+
58
|
1006
|
+
59
|
1007
|
+
60
|
1008
|
+
61
|
1009
|
+
62
|
1010
|
+
63</pre>
|
1011
|
+
</td>
|
1012
|
+
<td>
|
1013
|
+
<pre class="code"><span class="info file"># File 'lib/netlinx/workspace/system_file.rb', line 45</span>
|
1014
|
+
|
1015
|
+
<span class='kw'>def</span> <span class='id identifier rubyid_to_xml_element'>to_xml_element</span>
|
1016
|
+
<span class='const'>REXML</span><span class='op'>::</span><span class='const'>Element</span><span class='period'>.</span><span class='id identifier rubyid_new'>new</span><span class='lparen'>(</span><span class='tstring'><span class='tstring_beg'>'</span><span class='tstring_content'>File</span><span class='tstring_end'>'</span></span><span class='rparen'>)</span><span class='period'>.</span><span class='id identifier rubyid_tap'>tap</span> <span class='kw'>do</span> <span class='op'>|</span><span class='id identifier rubyid_file'>file</span><span class='op'>|</span>
|
1017
|
+
<span class='id identifier rubyid_file'>file</span><span class='period'>.</span><span class='id identifier rubyid_attributes'>attributes</span><span class='lbracket'>[</span><span class='tstring'><span class='tstring_beg'>'</span><span class='tstring_content'>CompileType</span><span class='tstring_end'>'</span></span><span class='rbracket'>]</span> <span class='op'>=</span> <span class='tstring'><span class='tstring_beg'>'</span><span class='tstring_content'>Netlinx</span><span class='tstring_end'>'</span></span>
|
1018
|
+
|
1019
|
+
<span class='id identifier rubyid_file'>file</span><span class='period'>.</span><span class='id identifier rubyid_attributes'>attributes</span><span class='lbracket'>[</span><span class='tstring'><span class='tstring_beg'>'</span><span class='tstring_content'>Type</span><span class='tstring_end'>'</span></span><span class='rbracket'>]</span> <span class='op'>=</span> <span class='id identifier rubyid_type_lookup'>type_lookup</span><span class='lbracket'>[</span><span class='id identifier rubyid_type'>type</span><span class='rbracket'>]</span>
|
1020
|
+
|
1021
|
+
<span class='id identifier rubyid_file'>file</span><span class='period'>.</span><span class='id identifier rubyid_add_element'>add_element</span><span class='lparen'>(</span><span class='tstring'><span class='tstring_beg'>'</span><span class='tstring_content'>Identifier</span><span class='tstring_end'>'</span></span><span class='rparen'>)</span><span class='period'>.</span><span class='id identifier rubyid_tap'>tap</span> <span class='lbrace'>{</span> <span class='op'>|</span><span class='id identifier rubyid_e'>e</span><span class='op'>|</span> <span class='id identifier rubyid_e'>e</span><span class='period'>.</span><span class='id identifier rubyid_text'>text</span> <span class='op'>=</span> <span class='id identifier rubyid_name'>name</span> <span class='rbrace'>}</span>
|
1022
|
+
<span class='id identifier rubyid_file'>file</span><span class='period'>.</span><span class='id identifier rubyid_add_element'>add_element</span><span class='lparen'>(</span><span class='tstring'><span class='tstring_beg'>'</span><span class='tstring_content'>FilePathName</span><span class='tstring_end'>'</span></span><span class='rparen'>)</span><span class='period'>.</span><span class='id identifier rubyid_tap'>tap</span> <span class='lbrace'>{</span> <span class='op'>|</span><span class='id identifier rubyid_e'>e</span><span class='op'>|</span> <span class='id identifier rubyid_e'>e</span><span class='period'>.</span><span class='id identifier rubyid_text'>text</span> <span class='op'>=</span> <span class='id identifier rubyid_path'>path</span> <span class='rbrace'>}</span>
|
1023
|
+
<span class='id identifier rubyid_file'>file</span><span class='period'>.</span><span class='id identifier rubyid_add_element'>add_element</span><span class='lparen'>(</span><span class='tstring'><span class='tstring_beg'>'</span><span class='tstring_content'>Comments</span><span class='tstring_end'>'</span></span><span class='rparen'>)</span><span class='period'>.</span><span class='id identifier rubyid_tap'>tap</span> <span class='lbrace'>{</span> <span class='op'>|</span><span class='id identifier rubyid_e'>e</span><span class='op'>|</span> <span class='id identifier rubyid_e'>e</span><span class='period'>.</span><span class='id identifier rubyid_text'>text</span> <span class='op'>=</span> <span class='id identifier rubyid_description'>description</span> <span class='rbrace'>}</span>
|
1024
|
+
|
1025
|
+
<span class='ivar'>@devices</span><span class='period'>.</span><span class='id identifier rubyid_each'>each</span> <span class='kw'>do</span> <span class='op'>|</span><span class='id identifier rubyid_dps'>dps</span><span class='op'>|</span>
|
1026
|
+
<span class='id identifier rubyid_file'>file</span><span class='period'>.</span><span class='id identifier rubyid_add_element'>add_element</span><span class='lparen'>(</span><span class='tstring'><span class='tstring_beg'>'</span><span class='tstring_content'>DeviceMap</span><span class='tstring_end'>'</span></span><span class='rparen'>)</span><span class='period'>.</span><span class='id identifier rubyid_tap'>tap</span> <span class='kw'>do</span> <span class='op'>|</span><span class='id identifier rubyid_e'>e</span><span class='op'>|</span>
|
1027
|
+
<span class='id identifier rubyid_text'>text</span> <span class='op'>=</span> <span class='id identifier rubyid_dps'>dps</span><span class='period'>.</span><span class='id identifier rubyid_include?'>include?</span><span class='lparen'>(</span><span class='tstring'><span class='tstring_beg'>'</span><span class='tstring_content'>:</span><span class='tstring_end'>'</span></span><span class='rparen'>)</span> <span class='op'>?</span> <span class='tstring'><span class='tstring_beg'>"</span><span class='tstring_content'>Custom [</span><span class='embexpr_beg'>#{</span><span class='id identifier rubyid_dps'>dps</span><span class='embexpr_end'>}</span><span class='tstring_content'>]</span><span class='tstring_end'>"</span></span> <span class='op'>:</span> <span class='id identifier rubyid_dps'>dps</span>
|
1028
|
+
<span class='id identifier rubyid_e'>e</span><span class='period'>.</span><span class='id identifier rubyid_attributes'>attributes</span><span class='lbracket'>[</span><span class='tstring'><span class='tstring_beg'>'</span><span class='tstring_content'>DevAddr</span><span class='tstring_end'>'</span></span><span class='rbracket'>]</span> <span class='op'>=</span> <span class='id identifier rubyid_text'>text</span>
|
1029
|
+
<span class='id identifier rubyid_e'>e</span><span class='period'>.</span><span class='id identifier rubyid_add_element'>add_element</span><span class='lparen'>(</span><span class='tstring'><span class='tstring_beg'>'</span><span class='tstring_content'>DevName</span><span class='tstring_end'>'</span></span><span class='rparen'>)</span><span class='period'>.</span><span class='id identifier rubyid_text'>text</span> <span class='op'>=</span> <span class='id identifier rubyid_text'>text</span>
|
1030
|
+
<span class='kw'>end</span>
|
1031
|
+
<span class='kw'>end</span>
|
1032
|
+
<span class='kw'>end</span>
|
1033
|
+
<span class='kw'>end</span></pre>
|
1034
|
+
</td>
|
1035
|
+
</tr>
|
1036
|
+
</table>
|
634
1037
|
</div>
|
635
1038
|
|
636
1039
|
</div>
|
@@ -638,9 +1041,9 @@
|
|
638
1041
|
</div>
|
639
1042
|
|
640
1043
|
<div id="footer">
|
641
|
-
Generated on
|
1044
|
+
Generated on Tue Feb 24 17:43:03 2015 by
|
642
1045
|
<a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
|
643
|
-
0.8.7.
|
1046
|
+
0.8.7.6 (ruby-2.1.3).
|
644
1047
|
</div>
|
645
1048
|
|
646
1049
|
</body>
|