netlinx-workspace 0.2.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +7 -0
- data/README.html +0 -0
- data/doc/NetLinx/Compile/Extension/APW.html +136 -0
- data/doc/NetLinx/Compile/Extension.html +127 -0
- data/doc/NetLinx/Compile.html +127 -0
- data/doc/NetLinx/Project.html +464 -0
- data/doc/NetLinx/System.html +588 -0
- data/doc/NetLinx/SystemFile.html +302 -0
- data/doc/NetLinx/Workspace.html +445 -0
- data/doc/NetLinx.html +131 -0
- data/doc/created.rid +7 -0
- data/doc/images/add.png +0 -0
- data/doc/images/arrow_up.png +0 -0
- data/doc/images/brick.png +0 -0
- data/doc/images/brick_link.png +0 -0
- data/doc/images/bug.png +0 -0
- data/doc/images/bullet_black.png +0 -0
- data/doc/images/bullet_toggle_minus.png +0 -0
- data/doc/images/bullet_toggle_plus.png +0 -0
- data/doc/images/date.png +0 -0
- data/doc/images/delete.png +0 -0
- data/doc/images/find.png +0 -0
- data/doc/images/loadingAnimation.gif +0 -0
- data/doc/images/macFFBgHack.png +0 -0
- data/doc/images/package.png +0 -0
- data/doc/images/page_green.png +0 -0
- data/doc/images/page_white_text.png +0 -0
- data/doc/images/page_white_width.png +0 -0
- data/doc/images/plugin.png +0 -0
- data/doc/images/ruby.png +0 -0
- data/doc/images/tag_blue.png +0 -0
- data/doc/images/tag_green.png +0 -0
- data/doc/images/transparent.png +0 -0
- data/doc/images/wrench.png +0 -0
- data/doc/images/wrench_orange.png +0 -0
- data/doc/images/zoom.png +0 -0
- data/doc/index.html +85 -0
- data/doc/js/darkfish.js +155 -0
- data/doc/js/jquery.js +18 -0
- data/doc/js/navigation.js +142 -0
- data/doc/js/search.js +94 -0
- data/doc/js/search_index.js +1 -0
- data/doc/js/searcher.js +228 -0
- data/doc/rdoc.css +595 -0
- data/doc/table_of_contents.html +111 -0
- data/lib/netlinx/compile/extension/apw.rb +19 -0
- data/lib/netlinx/project.rb +83 -0
- data/lib/netlinx/system.rb +122 -0
- data/lib/netlinx/system_file.rb +36 -0
- data/lib/netlinx/workspace.rb +89 -0
- data/lib/netlinx-workspace.rb +1 -0
- data/license.txt +13 -0
- metadata +152 -0
@@ -0,0 +1,588 @@
|
|
1
|
+
<!DOCTYPE html>
|
2
|
+
|
3
|
+
<html>
|
4
|
+
<head>
|
5
|
+
<meta content="text/html; charset=UTF-8" http-equiv="Content-Type">
|
6
|
+
|
7
|
+
<title>class NetLinx::System - RDoc Documentation</title>
|
8
|
+
|
9
|
+
<link type="text/css" media="screen" href="../rdoc.css" rel="stylesheet">
|
10
|
+
|
11
|
+
<script type="text/javascript">
|
12
|
+
var rdoc_rel_prefix = "../";
|
13
|
+
</script>
|
14
|
+
|
15
|
+
<script type="text/javascript" charset="utf-8" src="../js/jquery.js"></script>
|
16
|
+
<script type="text/javascript" charset="utf-8" src="../js/navigation.js"></script>
|
17
|
+
<script type="text/javascript" charset="utf-8" src="../js/search_index.js"></script>
|
18
|
+
<script type="text/javascript" charset="utf-8" src="../js/search.js"></script>
|
19
|
+
<script type="text/javascript" charset="utf-8" src="../js/searcher.js"></script>
|
20
|
+
<script type="text/javascript" charset="utf-8" src="../js/darkfish.js"></script>
|
21
|
+
|
22
|
+
|
23
|
+
<body id="top" class="class">
|
24
|
+
<nav id="metadata">
|
25
|
+
<nav id="home-section" class="section">
|
26
|
+
<h3 class="section-header">
|
27
|
+
<a href="../index.html">Home</a>
|
28
|
+
<a href="../table_of_contents.html#classes">Classes</a>
|
29
|
+
<a href="../table_of_contents.html#methods">Methods</a>
|
30
|
+
</h3>
|
31
|
+
</nav>
|
32
|
+
|
33
|
+
|
34
|
+
<nav id="search-section" class="section project-section" class="initially-hidden">
|
35
|
+
<form action="#" method="get" accept-charset="utf-8">
|
36
|
+
<h3 class="section-header">
|
37
|
+
<input type="text" name="search" placeholder="Search" id="search-field"
|
38
|
+
title="Type to search, Up and Down to navigate, Enter to load">
|
39
|
+
</h3>
|
40
|
+
</form>
|
41
|
+
|
42
|
+
<ul id="search-results" class="initially-hidden"></ul>
|
43
|
+
</nav>
|
44
|
+
|
45
|
+
|
46
|
+
|
47
|
+
|
48
|
+
<div id="file-metadata">
|
49
|
+
<nav id="file-list-section" class="section">
|
50
|
+
<h3 class="section-header">Defined In</h3>
|
51
|
+
<ul>
|
52
|
+
<li>lib/netlinx/system.rb
|
53
|
+
</ul>
|
54
|
+
</nav>
|
55
|
+
|
56
|
+
|
57
|
+
</div>
|
58
|
+
|
59
|
+
<div id="class-metadata">
|
60
|
+
|
61
|
+
<nav id="parent-class-section" class="section">
|
62
|
+
<h3 class="section-header">Parent</h3>
|
63
|
+
|
64
|
+
<p class="link">Object
|
65
|
+
|
66
|
+
</nav>
|
67
|
+
|
68
|
+
|
69
|
+
|
70
|
+
<!-- Method Quickref -->
|
71
|
+
<nav id="method-list-section" class="section">
|
72
|
+
<h3 class="section-header">Methods</h3>
|
73
|
+
|
74
|
+
<ul class="link-list">
|
75
|
+
|
76
|
+
<li ><a href="#method-c-new">::new</a>
|
77
|
+
|
78
|
+
<li ><a href="#method-i-3C-3C">#<<</a>
|
79
|
+
|
80
|
+
<li ><a href="#method-i-compile">#compile</a>
|
81
|
+
|
82
|
+
<li ><a href="#method-i-compiler_include_paths">#compiler_include_paths</a>
|
83
|
+
|
84
|
+
<li ><a href="#method-i-compiler_library_paths">#compiler_library_paths</a>
|
85
|
+
|
86
|
+
<li ><a href="#method-i-compiler_module_paths">#compiler_module_paths</a>
|
87
|
+
|
88
|
+
<li ><a href="#method-i-compiler_target_files">#compiler_target_files</a>
|
89
|
+
|
90
|
+
<li ><a href="#method-i-include-3F">#include?</a>
|
91
|
+
|
92
|
+
<li ><a href="#method-i-to_s">#to_s</a>
|
93
|
+
|
94
|
+
</ul>
|
95
|
+
</nav>
|
96
|
+
|
97
|
+
</div>
|
98
|
+
|
99
|
+
<div id="project-metadata">
|
100
|
+
|
101
|
+
<nav id="classindex-section" class="section project-section">
|
102
|
+
<h3 class="section-header">Class and Module Index</h3>
|
103
|
+
|
104
|
+
<ul class="link-list">
|
105
|
+
|
106
|
+
<li><a href="../NetLinx.html">NetLinx</a>
|
107
|
+
|
108
|
+
<li><a href="../NetLinx/Compile.html">NetLinx::Compile</a>
|
109
|
+
|
110
|
+
<li><a href="../NetLinx/Compile/Extension.html">NetLinx::Compile::Extension</a>
|
111
|
+
|
112
|
+
<li><a href="../NetLinx/Compile/Extension/APW.html">NetLinx::Compile::Extension::APW</a>
|
113
|
+
|
114
|
+
<li><a href="../NetLinx/Project.html">NetLinx::Project</a>
|
115
|
+
|
116
|
+
<li><a href="../NetLinx/System.html">NetLinx::System</a>
|
117
|
+
|
118
|
+
<li><a href="../NetLinx/SystemFile.html">NetLinx::SystemFile</a>
|
119
|
+
|
120
|
+
<li><a href="../NetLinx/Workspace.html">NetLinx::Workspace</a>
|
121
|
+
|
122
|
+
</ul>
|
123
|
+
</nav>
|
124
|
+
|
125
|
+
</div>
|
126
|
+
</nav>
|
127
|
+
|
128
|
+
<div id="documentation">
|
129
|
+
<h1 class="class">class NetLinx::System</h1>
|
130
|
+
|
131
|
+
<div id="description" class="description">
|
132
|
+
|
133
|
+
<p>A collection of resources loaded onto a <a
|
134
|
+
href="../NetLinx.html">NetLinx</a> master. <a
|
135
|
+
href="Workspace.html">Workspace</a> -> <a
|
136
|
+
href="Project.html">Project</a> -> <a href="System.html">System</a></p>
|
137
|
+
|
138
|
+
</div><!-- description -->
|
139
|
+
|
140
|
+
|
141
|
+
|
142
|
+
|
143
|
+
<section id="5Buntitled-5D" class="documentation-section">
|
144
|
+
|
145
|
+
|
146
|
+
|
147
|
+
|
148
|
+
|
149
|
+
|
150
|
+
|
151
|
+
<!-- Attributes -->
|
152
|
+
<section id="attribute-method-details" class="method-section section">
|
153
|
+
<h3 class="section-header">Attributes</h3>
|
154
|
+
|
155
|
+
|
156
|
+
<div id="attribute-i-description" class="method-detail">
|
157
|
+
<div class="method-heading attribute-method-heading">
|
158
|
+
<span class="method-name">description</span><span
|
159
|
+
class="attribute-access-type">[RW]</span>
|
160
|
+
</div>
|
161
|
+
|
162
|
+
<div class="method-description">
|
163
|
+
|
164
|
+
|
165
|
+
|
166
|
+
</div>
|
167
|
+
</div>
|
168
|
+
|
169
|
+
<div id="attribute-i-files" class="method-detail">
|
170
|
+
<div class="method-heading attribute-method-heading">
|
171
|
+
<span class="method-name">files</span><span
|
172
|
+
class="attribute-access-type">[RW]</span>
|
173
|
+
</div>
|
174
|
+
|
175
|
+
<div class="method-description">
|
176
|
+
|
177
|
+
|
178
|
+
|
179
|
+
</div>
|
180
|
+
</div>
|
181
|
+
|
182
|
+
<div id="attribute-i-id" class="method-detail">
|
183
|
+
<div class="method-heading attribute-method-heading">
|
184
|
+
<span class="method-name">id</span><span
|
185
|
+
class="attribute-access-type">[RW]</span>
|
186
|
+
</div>
|
187
|
+
|
188
|
+
<div class="method-description">
|
189
|
+
|
190
|
+
|
191
|
+
|
192
|
+
</div>
|
193
|
+
</div>
|
194
|
+
|
195
|
+
<div id="attribute-i-name" class="method-detail">
|
196
|
+
<div class="method-heading attribute-method-heading">
|
197
|
+
<span class="method-name">name</span><span
|
198
|
+
class="attribute-access-type">[RW]</span>
|
199
|
+
</div>
|
200
|
+
|
201
|
+
<div class="method-description">
|
202
|
+
|
203
|
+
|
204
|
+
|
205
|
+
</div>
|
206
|
+
</div>
|
207
|
+
|
208
|
+
<div id="attribute-i-project" class="method-detail">
|
209
|
+
<div class="method-heading attribute-method-heading">
|
210
|
+
<span class="method-name">project</span><span
|
211
|
+
class="attribute-access-type">[RW]</span>
|
212
|
+
</div>
|
213
|
+
|
214
|
+
<div class="method-description">
|
215
|
+
|
216
|
+
|
217
|
+
|
218
|
+
</div>
|
219
|
+
</div>
|
220
|
+
|
221
|
+
</section><!-- attribute-method-details -->
|
222
|
+
|
223
|
+
|
224
|
+
<!-- Methods -->
|
225
|
+
|
226
|
+
<section id="public-class-5Buntitled-5D-method-details" class="method-section section">
|
227
|
+
<h3 class="section-header">Public Class Methods</h3>
|
228
|
+
|
229
|
+
|
230
|
+
<div id="method-c-new" class="method-detail ">
|
231
|
+
|
232
|
+
<div class="method-heading">
|
233
|
+
<span class="method-name">new</span><span
|
234
|
+
class="method-args">(**kvargs)</span>
|
235
|
+
|
236
|
+
<span class="method-click-advice">click to toggle source</span>
|
237
|
+
|
238
|
+
</div>
|
239
|
+
|
240
|
+
|
241
|
+
<div class="method-description">
|
242
|
+
|
243
|
+
|
244
|
+
|
245
|
+
|
246
|
+
|
247
|
+
|
248
|
+
<div class="method-source-code" id="new-source">
|
249
|
+
<pre><span class="ruby-comment"># File lib/netlinx/system.rb, line 13</span>
|
250
|
+
<span class="ruby-keyword">def</span> <span class="ruby-identifier">initialize</span>(<span class="ruby-operator">**</span><span class="ruby-identifier">kvargs</span>)
|
251
|
+
<span class="ruby-ivar">@name</span> = <span class="ruby-identifier">kvargs</span>.<span class="ruby-identifier">fetch</span> <span class="ruby-value">:name</span>, <span class="ruby-string">''</span>
|
252
|
+
<span class="ruby-ivar">@id</span> = <span class="ruby-identifier">kvargs</span>.<span class="ruby-identifier">fetch</span> <span class="ruby-value">:id</span>, <span class="ruby-string">''</span>
|
253
|
+
<span class="ruby-ivar">@description</span> = <span class="ruby-identifier">kvargs</span>.<span class="ruby-identifier">fetch</span> <span class="ruby-value">:description</span>, <span class="ruby-string">''</span>
|
254
|
+
<span class="ruby-ivar">@project</span> = <span class="ruby-identifier">kvargs</span>.<span class="ruby-identifier">fetch</span> <span class="ruby-value">:project</span>, <span class="ruby-keyword">nil</span>
|
255
|
+
|
256
|
+
<span class="ruby-ivar">@files</span> = []
|
257
|
+
|
258
|
+
<span class="ruby-ivar">@compiler_target_files</span> = []
|
259
|
+
<span class="ruby-ivar">@compiler_include_paths</span> = []
|
260
|
+
<span class="ruby-ivar">@compiler_module_paths</span> = []
|
261
|
+
<span class="ruby-ivar">@compiler_library_paths</span> = []
|
262
|
+
|
263
|
+
<span class="ruby-identifier">system_element</span> = <span class="ruby-identifier">kvargs</span>.<span class="ruby-identifier">fetch</span> <span class="ruby-value">:element</span>, <span class="ruby-keyword">nil</span>
|
264
|
+
<span class="ruby-identifier">parse_xml_element</span> <span class="ruby-identifier">system_element</span> <span class="ruby-keyword">if</span> <span class="ruby-identifier">system_element</span>
|
265
|
+
<span class="ruby-keyword">end</span></pre>
|
266
|
+
</div><!-- new-source -->
|
267
|
+
|
268
|
+
</div>
|
269
|
+
|
270
|
+
|
271
|
+
|
272
|
+
|
273
|
+
</div><!-- new-method -->
|
274
|
+
|
275
|
+
|
276
|
+
</section><!-- public-class-method-details -->
|
277
|
+
|
278
|
+
<section id="public-instance-5Buntitled-5D-method-details" class="method-section section">
|
279
|
+
<h3 class="section-header">Public Instance Methods</h3>
|
280
|
+
|
281
|
+
|
282
|
+
<div id="method-i-3C-3C" class="method-detail ">
|
283
|
+
|
284
|
+
<div class="method-heading">
|
285
|
+
<span class="method-name"><<</span><span
|
286
|
+
class="method-args">(file)</span>
|
287
|
+
|
288
|
+
<span class="method-click-advice">click to toggle source</span>
|
289
|
+
|
290
|
+
</div>
|
291
|
+
|
292
|
+
|
293
|
+
<div class="method-description">
|
294
|
+
|
295
|
+
<p>Alias to add a file.</p>
|
296
|
+
|
297
|
+
|
298
|
+
|
299
|
+
|
300
|
+
<div class="method-source-code" id="3C-3C-source">
|
301
|
+
<pre><span class="ruby-comment"># File lib/netlinx/system.rb, line 31</span>
|
302
|
+
<span class="ruby-keyword">def</span> <span class="ruby-operator"><<</span>(<span class="ruby-identifier">file</span>)
|
303
|
+
<span class="ruby-ivar">@files</span> <span class="ruby-operator"><<</span> <span class="ruby-identifier">file</span>
|
304
|
+
<span class="ruby-identifier">file</span>.<span class="ruby-identifier">system</span> = <span class="ruby-keyword">self</span>
|
305
|
+
<span class="ruby-keyword">end</span></pre>
|
306
|
+
</div><!-- 3C-3C-source -->
|
307
|
+
|
308
|
+
</div>
|
309
|
+
|
310
|
+
|
311
|
+
|
312
|
+
|
313
|
+
</div><!-- 3C-3C-method -->
|
314
|
+
|
315
|
+
|
316
|
+
<div id="method-i-compile" class="method-detail ">
|
317
|
+
|
318
|
+
<div class="method-heading">
|
319
|
+
<span class="method-name">compile</span><span
|
320
|
+
class="method-args">()</span>
|
321
|
+
|
322
|
+
<span class="method-click-advice">click to toggle source</span>
|
323
|
+
|
324
|
+
</div>
|
325
|
+
|
326
|
+
|
327
|
+
<div class="method-description">
|
328
|
+
|
329
|
+
<p><a href="Compile.html">Compile</a> this system.</p>
|
330
|
+
|
331
|
+
|
332
|
+
|
333
|
+
|
334
|
+
<div class="method-source-code" id="compile-source">
|
335
|
+
<pre><span class="ruby-comment"># File lib/netlinx/system.rb, line 95</span>
|
336
|
+
<span class="ruby-keyword">def</span> <span class="ruby-identifier">compile</span>
|
337
|
+
<span class="ruby-comment"># The compiler dependency is only needed if this method is called.</span>
|
338
|
+
<span class="ruby-identifier">require</span> <span class="ruby-string">'netlinx/compiler'</span>
|
339
|
+
|
340
|
+
<span class="ruby-identifier">compiler</span> = <span class="ruby-constant">NetLinx</span><span class="ruby-operator">::</span><span class="ruby-constant">Compiler</span>.<span class="ruby-identifier">new</span>
|
341
|
+
<span class="ruby-identifier">compiler</span>.<span class="ruby-identifier">compile</span> <span class="ruby-keyword">self</span>
|
342
|
+
<span class="ruby-keyword">end</span></pre>
|
343
|
+
</div><!-- compile-source -->
|
344
|
+
|
345
|
+
</div>
|
346
|
+
|
347
|
+
|
348
|
+
|
349
|
+
|
350
|
+
</div><!-- compile-method -->
|
351
|
+
|
352
|
+
|
353
|
+
<div id="method-i-compiler_include_paths" class="method-detail ">
|
354
|
+
|
355
|
+
<div class="method-heading">
|
356
|
+
<span class="method-name">compiler_include_paths</span><span
|
357
|
+
class="method-args">()</span>
|
358
|
+
|
359
|
+
<span class="method-click-advice">click to toggle source</span>
|
360
|
+
|
361
|
+
</div>
|
362
|
+
|
363
|
+
|
364
|
+
<div class="method-description">
|
365
|
+
|
366
|
+
<p>See Test::NetLinx::Compilable.</p>
|
367
|
+
|
368
|
+
|
369
|
+
|
370
|
+
|
371
|
+
<div class="method-source-code" id="compiler_include_paths-source">
|
372
|
+
<pre><span class="ruby-comment"># File lib/netlinx/system.rb, line 52</span>
|
373
|
+
<span class="ruby-keyword">def</span> <span class="ruby-identifier">compiler_include_paths</span>
|
374
|
+
<span class="ruby-ivar">@files</span>
|
375
|
+
.<span class="ruby-identifier">select</span> {<span class="ruby-operator">|</span><span class="ruby-identifier">f</span><span class="ruby-operator">|</span> <span class="ruby-identifier">f</span>.<span class="ruby-identifier">type</span> <span class="ruby-operator">==</span> <span class="ruby-string">'Include'</span>}
|
376
|
+
.<span class="ruby-identifier">map</span> {<span class="ruby-operator">|</span><span class="ruby-identifier">f</span><span class="ruby-operator">|</span> <span class="ruby-constant">File</span>.<span class="ruby-identifier">expand_path</span> <span class="ruby-constant">File</span>.<span class="ruby-identifier">dirname</span>(<span class="ruby-identifier">f</span>.<span class="ruby-identifier">path</span>),
|
377
|
+
<span class="ruby-identifier">f</span>.<span class="ruby-identifier">system</span>.<span class="ruby-identifier">project</span>.<span class="ruby-identifier">workspace</span>.<span class="ruby-identifier">path</span>
|
378
|
+
}
|
379
|
+
<span class="ruby-keyword">end</span></pre>
|
380
|
+
</div><!-- compiler_include_paths-source -->
|
381
|
+
|
382
|
+
</div>
|
383
|
+
|
384
|
+
|
385
|
+
|
386
|
+
|
387
|
+
</div><!-- compiler_include_paths-method -->
|
388
|
+
|
389
|
+
|
390
|
+
<div id="method-i-compiler_library_paths" class="method-detail ">
|
391
|
+
|
392
|
+
<div class="method-heading">
|
393
|
+
<span class="method-name">compiler_library_paths</span><span
|
394
|
+
class="method-args">()</span>
|
395
|
+
|
396
|
+
<span class="method-click-advice">click to toggle source</span>
|
397
|
+
|
398
|
+
</div>
|
399
|
+
|
400
|
+
|
401
|
+
<div class="method-description">
|
402
|
+
|
403
|
+
<p>See Test::NetLinx::Compilable.</p>
|
404
|
+
|
405
|
+
|
406
|
+
|
407
|
+
|
408
|
+
<div class="method-source-code" id="compiler_library_paths-source">
|
409
|
+
<pre><span class="ruby-comment"># File lib/netlinx/system.rb, line 72</span>
|
410
|
+
<span class="ruby-keyword">def</span> <span class="ruby-identifier">compiler_library_paths</span>
|
411
|
+
[]
|
412
|
+
<span class="ruby-keyword">end</span></pre>
|
413
|
+
</div><!-- compiler_library_paths-source -->
|
414
|
+
|
415
|
+
</div>
|
416
|
+
|
417
|
+
|
418
|
+
|
419
|
+
|
420
|
+
</div><!-- compiler_library_paths-method -->
|
421
|
+
|
422
|
+
|
423
|
+
<div id="method-i-compiler_module_paths" class="method-detail ">
|
424
|
+
|
425
|
+
<div class="method-heading">
|
426
|
+
<span class="method-name">compiler_module_paths</span><span
|
427
|
+
class="method-args">()</span>
|
428
|
+
|
429
|
+
<span class="method-click-advice">click to toggle source</span>
|
430
|
+
|
431
|
+
</div>
|
432
|
+
|
433
|
+
|
434
|
+
<div class="method-description">
|
435
|
+
|
436
|
+
<p>See Test::NetLinx::Compilable.</p>
|
437
|
+
|
438
|
+
|
439
|
+
|
440
|
+
|
441
|
+
<div class="method-source-code" id="compiler_module_paths-source">
|
442
|
+
<pre><span class="ruby-comment"># File lib/netlinx/system.rb, line 62</span>
|
443
|
+
<span class="ruby-keyword">def</span> <span class="ruby-identifier">compiler_module_paths</span>
|
444
|
+
<span class="ruby-ivar">@files</span>
|
445
|
+
.<span class="ruby-identifier">select</span> {<span class="ruby-operator">|</span><span class="ruby-identifier">f</span><span class="ruby-operator">|</span> <span class="ruby-identifier">f</span>.<span class="ruby-identifier">type</span> <span class="ruby-operator">==</span> <span class="ruby-string">'Module'</span> <span class="ruby-operator">||</span> <span class="ruby-identifier">f</span>.<span class="ruby-identifier">type</span> <span class="ruby-operator">==</span> <span class="ruby-string">'TKO'</span> <span class="ruby-operator">||</span> <span class="ruby-identifier">f</span>.<span class="ruby-identifier">type</span> <span class="ruby-operator">==</span> <span class="ruby-string">'DUET'</span>}
|
446
|
+
.<span class="ruby-identifier">map</span> {<span class="ruby-operator">|</span><span class="ruby-identifier">f</span><span class="ruby-operator">|</span> <span class="ruby-constant">File</span>.<span class="ruby-identifier">expand_path</span> <span class="ruby-constant">File</span>.<span class="ruby-identifier">dirname</span>(<span class="ruby-identifier">f</span>.<span class="ruby-identifier">path</span>),
|
447
|
+
<span class="ruby-identifier">f</span>.<span class="ruby-identifier">system</span>.<span class="ruby-identifier">project</span>.<span class="ruby-identifier">workspace</span>.<span class="ruby-identifier">path</span>
|
448
|
+
}
|
449
|
+
<span class="ruby-keyword">end</span></pre>
|
450
|
+
</div><!-- compiler_module_paths-source -->
|
451
|
+
|
452
|
+
</div>
|
453
|
+
|
454
|
+
|
455
|
+
|
456
|
+
|
457
|
+
</div><!-- compiler_module_paths-method -->
|
458
|
+
|
459
|
+
|
460
|
+
<div id="method-i-compiler_target_files" class="method-detail ">
|
461
|
+
|
462
|
+
<div class="method-heading">
|
463
|
+
<span class="method-name">compiler_target_files</span><span
|
464
|
+
class="method-args">()</span>
|
465
|
+
|
466
|
+
<span class="method-click-advice">click to toggle source</span>
|
467
|
+
|
468
|
+
</div>
|
469
|
+
|
470
|
+
|
471
|
+
<div class="method-description">
|
472
|
+
|
473
|
+
<p>See Test::NetLinx::Compilable.</p>
|
474
|
+
|
475
|
+
|
476
|
+
|
477
|
+
|
478
|
+
<div class="method-source-code" id="compiler_target_files-source">
|
479
|
+
<pre><span class="ruby-comment"># File lib/netlinx/system.rb, line 42</span>
|
480
|
+
<span class="ruby-keyword">def</span> <span class="ruby-identifier">compiler_target_files</span>
|
481
|
+
<span class="ruby-ivar">@files</span>
|
482
|
+
.<span class="ruby-identifier">select</span> {<span class="ruby-operator">|</span><span class="ruby-identifier">f</span><span class="ruby-operator">|</span> <span class="ruby-identifier">f</span>.<span class="ruby-identifier">type</span> <span class="ruby-operator">==</span> <span class="ruby-string">'MasterSrc'</span>}
|
483
|
+
.<span class="ruby-identifier">map</span> {<span class="ruby-operator">|</span><span class="ruby-identifier">f</span><span class="ruby-operator">|</span> <span class="ruby-constant">File</span>.<span class="ruby-identifier">expand_path</span> <span class="ruby-identifier">f</span>.<span class="ruby-identifier">path</span>,
|
484
|
+
<span class="ruby-identifier">f</span>.<span class="ruby-identifier">system</span>.<span class="ruby-identifier">project</span>.<span class="ruby-identifier">workspace</span>.<span class="ruby-identifier">path</span>
|
485
|
+
}
|
486
|
+
<span class="ruby-keyword">end</span></pre>
|
487
|
+
</div><!-- compiler_target_files-source -->
|
488
|
+
|
489
|
+
</div>
|
490
|
+
|
491
|
+
|
492
|
+
|
493
|
+
|
494
|
+
</div><!-- compiler_target_files-method -->
|
495
|
+
|
496
|
+
|
497
|
+
<div id="method-i-include-3F" class="method-detail ">
|
498
|
+
|
499
|
+
<div class="method-heading">
|
500
|
+
<span class="method-name">include?</span><span
|
501
|
+
class="method-args">(file)</span>
|
502
|
+
|
503
|
+
<span class="method-click-advice">click to toggle source</span>
|
504
|
+
|
505
|
+
</div>
|
506
|
+
|
507
|
+
|
508
|
+
<div class="method-description">
|
509
|
+
|
510
|
+
<p>Returns true if the project contains the specified file.</p>
|
511
|
+
|
512
|
+
|
513
|
+
|
514
|
+
|
515
|
+
<div class="method-source-code" id="include-3F-source">
|
516
|
+
<pre><span class="ruby-comment"># File lib/netlinx/system.rb, line 77</span>
|
517
|
+
<span class="ruby-keyword">def</span> <span class="ruby-identifier">include?</span>(<span class="ruby-identifier">file</span>)
|
518
|
+
<span class="ruby-identifier">included</span> = <span class="ruby-keyword">false</span>
|
519
|
+
|
520
|
+
<span class="ruby-ivar">@files</span>.<span class="ruby-identifier">each</span> <span class="ruby-keyword">do</span> <span class="ruby-operator">|</span><span class="ruby-identifier">f</span><span class="ruby-operator">|</span>
|
521
|
+
<span class="ruby-identifier">name_included</span> = <span class="ruby-identifier">f</span>.<span class="ruby-identifier">name</span>.<span class="ruby-identifier">downcase</span>.<span class="ruby-identifier">eql?</span> <span class="ruby-identifier">file</span>.<span class="ruby-identifier">downcase</span>
|
522
|
+
|
523
|
+
<span class="ruby-comment"># TODO: This should probably be relative to the workspace path,</span>
|
524
|
+
<span class="ruby-comment"># which can be found by traversing @project, @workspace.</span>
|
525
|
+
<span class="ruby-identifier">path_included</span> = <span class="ruby-identifier">file</span>.<span class="ruby-identifier">gsub</span>(<span class="ruby-regexp">/\/</span>, <span class="ruby-string">'/'</span>).<span class="ruby-identifier">include?</span> <span class="ruby-identifier">f</span>.<span class="ruby-identifier">path</span>.<span class="ruby-identifier">gsub</span>(<span class="ruby-regexp">/\/</span>, <span class="ruby-string">'/'</span>)
|
526
|
+
|
527
|
+
<span class="ruby-identifier">included</span> = <span class="ruby-identifier">name_included</span> <span class="ruby-operator">||</span> <span class="ruby-identifier">path_included</span>
|
528
|
+
<span class="ruby-keyword">break</span> <span class="ruby-keyword">if</span> <span class="ruby-identifier">included</span>
|
529
|
+
<span class="ruby-keyword">end</span>
|
530
|
+
|
531
|
+
<span class="ruby-identifier">included</span>
|
532
|
+
<span class="ruby-keyword">end</span></pre>
|
533
|
+
</div><!-- include-3F-source -->
|
534
|
+
|
535
|
+
</div>
|
536
|
+
|
537
|
+
|
538
|
+
|
539
|
+
|
540
|
+
</div><!-- include-3F-method -->
|
541
|
+
|
542
|
+
|
543
|
+
<div id="method-i-to_s" class="method-detail ">
|
544
|
+
|
545
|
+
<div class="method-heading">
|
546
|
+
<span class="method-name">to_s</span><span
|
547
|
+
class="method-args">()</span>
|
548
|
+
|
549
|
+
<span class="method-click-advice">click to toggle source</span>
|
550
|
+
|
551
|
+
</div>
|
552
|
+
|
553
|
+
|
554
|
+
<div class="method-description">
|
555
|
+
|
556
|
+
<p>Returns the system name.</p>
|
557
|
+
|
558
|
+
|
559
|
+
|
560
|
+
|
561
|
+
<div class="method-source-code" id="to_s-source">
|
562
|
+
<pre><span class="ruby-comment"># File lib/netlinx/system.rb, line 37</span>
|
563
|
+
<span class="ruby-keyword">def</span> <span class="ruby-identifier">to_s</span>
|
564
|
+
<span class="ruby-ivar">@name</span>
|
565
|
+
<span class="ruby-keyword">end</span></pre>
|
566
|
+
</div><!-- to_s-source -->
|
567
|
+
|
568
|
+
</div>
|
569
|
+
|
570
|
+
|
571
|
+
|
572
|
+
|
573
|
+
</div><!-- to_s-method -->
|
574
|
+
|
575
|
+
|
576
|
+
</section><!-- public-instance-method-details -->
|
577
|
+
|
578
|
+
</section><!-- 5Buntitled-5D -->
|
579
|
+
|
580
|
+
</div><!-- documentation -->
|
581
|
+
|
582
|
+
|
583
|
+
<footer id="validator-badges">
|
584
|
+
<p><a href="http://validator.w3.org/check/referer">[Validate]</a>
|
585
|
+
<p>Generated by <a href="https://github.com/rdoc/rdoc">RDoc</a> 4.0.1.
|
586
|
+
<p>Generated with the <a href="http://deveiate.org/projects/Darkfish-Rdoc/">Darkfish Rdoc Generator</a> 3.
|
587
|
+
</footer>
|
588
|
+
|