netlinx-erb 2.0.0 → 2.0.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/doc/Array.html +48 -47
- data/doc/Hash.html +47 -46
- data/doc/NetLinx.html +39 -39
- data/doc/NetLinx/ERB.html +63 -63
- data/doc/NetLinx/ERB/HashHelpers.html +50 -50
- data/doc/NetLinx/ERB/Helpers.html +68 -68
- data/doc/NetLinx/Rake.html +39 -39
- data/doc/NetLinx/Rake/ERB.html +39 -39
- data/doc/NetLinx/Rake/ERB/GenerateERB.html +51 -50
- data/doc/NetLinx/Rake/ERB/GenerateRPC.html +51 -50
- data/doc/NetLinx/Rake/ERB/Lines.html +51 -50
- data/doc/NetLinx/Rake/ERB/Push.html +50 -49
- data/doc/RPC.html +48 -47
- data/doc/String.html +49 -48
- data/doc/_index.html +28 -31
- data/doc/class_list.html +24 -31
- data/doc/css/full_list.css +32 -31
- data/doc/css/style.css +251 -91
- data/doc/file.README.html +28 -31
- data/doc/file.license.html +28 -31
- data/doc/file_list.html +29 -31
- data/doc/frames.html +7 -16
- data/doc/index.html +28 -31
- data/doc/js/app.js +106 -77
- data/doc/js/full_list.js +170 -135
- data/doc/method_list.html +188 -128
- data/doc/top-level-namespace.html +34 -36
- data/lib/netlinx/erb/erb.rb +0 -2
- data/template.zip +0 -0
- metadata +19 -18
- data/doc/HashHelpers.html +0 -413
- data/doc/Helpers.html +0 -2154
- data/doc/NetLinx/Rake/ERB/Compile.html +0 -354
- data/doc/NetLinx/Rake/Lines.html +0 -381
@@ -1,354 +0,0 @@
|
|
1
|
-
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
|
2
|
-
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
|
3
|
-
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
|
4
|
-
<head>
|
5
|
-
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
|
6
|
-
<title>
|
7
|
-
Class: NetLinx::Rake::ERB::Compile
|
8
|
-
|
9
|
-
— Documentation by YARD 0.8.7.6
|
10
|
-
|
11
|
-
</title>
|
12
|
-
|
13
|
-
<link rel="stylesheet" href="../../../css/style.css" type="text/css" charset="utf-8" />
|
14
|
-
|
15
|
-
<link rel="stylesheet" href="../../../css/common.css" type="text/css" charset="utf-8" />
|
16
|
-
|
17
|
-
<script type="text/javascript" charset="utf-8">
|
18
|
-
hasFrames = window.top.frames.main ? true : false;
|
19
|
-
relpath = '../../../';
|
20
|
-
framesUrl = "../../../frames.html#!NetLinx/Rake/ERB/Compile.html";
|
21
|
-
</script>
|
22
|
-
|
23
|
-
|
24
|
-
<script type="text/javascript" charset="utf-8" src="../../../js/jquery.js"></script>
|
25
|
-
|
26
|
-
<script type="text/javascript" charset="utf-8" src="../../../js/app.js"></script>
|
27
|
-
|
28
|
-
|
29
|
-
</head>
|
30
|
-
<body>
|
31
|
-
<div id="header">
|
32
|
-
<div id="menu">
|
33
|
-
|
34
|
-
<a href="../../../_index.html">Index (C)</a> »
|
35
|
-
<span class='title'><span class='object_link'><a href="../../../NetLinx.html" title="NetLinx (module)">NetLinx</a></span></span> » <span class='title'><span class='object_link'><a href="../../Rake.html" title="NetLinx::Rake (module)">Rake</a></span></span> » <span class='title'><span class='object_link'><a href="../ERB.html" title="NetLinx::Rake::ERB (module)">ERB</a></span></span>
|
36
|
-
»
|
37
|
-
<span class="title">Compile</span>
|
38
|
-
|
39
|
-
|
40
|
-
<div class="noframes"><span class="title">(</span><a href="." target="_top">no frames</a><span class="title">)</span></div>
|
41
|
-
</div>
|
42
|
-
|
43
|
-
<div id="search">
|
44
|
-
|
45
|
-
<a class="full_list_link" id="class_list_link"
|
46
|
-
href="../../../class_list.html">
|
47
|
-
Class List
|
48
|
-
</a>
|
49
|
-
|
50
|
-
<a class="full_list_link" id="method_list_link"
|
51
|
-
href="../../../method_list.html">
|
52
|
-
Method List
|
53
|
-
</a>
|
54
|
-
|
55
|
-
<a class="full_list_link" id="file_list_link"
|
56
|
-
href="../../../file_list.html">
|
57
|
-
File List
|
58
|
-
</a>
|
59
|
-
|
60
|
-
</div>
|
61
|
-
<div class="clear"></div>
|
62
|
-
</div>
|
63
|
-
|
64
|
-
<iframe id="search_frame"></iframe>
|
65
|
-
|
66
|
-
<div id="content"><h1>Class: NetLinx::Rake::ERB::Compile
|
67
|
-
|
68
|
-
|
69
|
-
|
70
|
-
</h1>
|
71
|
-
|
72
|
-
<dl class="box">
|
73
|
-
|
74
|
-
<dt class="r1">Inherits:</dt>
|
75
|
-
<dd class="r1">
|
76
|
-
<span class="inheritName">Rake::TaskLib</span>
|
77
|
-
|
78
|
-
<ul class="fullTree">
|
79
|
-
<li>Object</li>
|
80
|
-
|
81
|
-
<li class="next">Rake::TaskLib</li>
|
82
|
-
|
83
|
-
<li class="next">NetLinx::Rake::ERB::Compile</li>
|
84
|
-
|
85
|
-
</ul>
|
86
|
-
<a href="#" class="inheritanceTree">show all</a>
|
87
|
-
|
88
|
-
</dd>
|
89
|
-
|
90
|
-
|
91
|
-
|
92
|
-
|
93
|
-
|
94
|
-
|
95
|
-
|
96
|
-
|
97
|
-
|
98
|
-
<dt class="r2 last">Defined in:</dt>
|
99
|
-
<dd class="r2 last">lib/netlinx/rake/erb/compile.rb</dd>
|
100
|
-
|
101
|
-
</dl>
|
102
|
-
<div class="clear"></div>
|
103
|
-
|
104
|
-
<h2>Overview</h2><div class="docstring">
|
105
|
-
<div class="discussion">
|
106
|
-
|
107
|
-
<p>Compile to deployable code from the source code files in the given
|
108
|
-
workspace.</p>
|
109
|
-
|
110
|
-
|
111
|
-
</div>
|
112
|
-
</div>
|
113
|
-
<div class="tags">
|
114
|
-
|
115
|
-
|
116
|
-
</div>
|
117
|
-
|
118
|
-
|
119
|
-
|
120
|
-
<h2>Instance Attribute Summary <small>(<a href="#" class="summary_toggle">collapse</a>)</small></h2>
|
121
|
-
<ul class="summary">
|
122
|
-
|
123
|
-
<li class="public ">
|
124
|
-
<span class="summary_signature">
|
125
|
-
|
126
|
-
<a href="#name-instance_method" title="#name (instance method)">- (Object) <strong>name</strong> </a>
|
127
|
-
|
128
|
-
|
129
|
-
|
130
|
-
</span>
|
131
|
-
|
132
|
-
|
133
|
-
|
134
|
-
|
135
|
-
|
136
|
-
|
137
|
-
|
138
|
-
|
139
|
-
|
140
|
-
|
141
|
-
|
142
|
-
|
143
|
-
<span class="summary_desc"><div class='inline'>
|
144
|
-
<p>Returns the value of attribute name.</p>
|
145
|
-
</div></span>
|
146
|
-
|
147
|
-
</li>
|
148
|
-
|
149
|
-
|
150
|
-
</ul>
|
151
|
-
|
152
|
-
|
153
|
-
|
154
|
-
|
155
|
-
|
156
|
-
<h2>
|
157
|
-
Instance Method Summary
|
158
|
-
<small>(<a href="#" class="summary_toggle">collapse</a>)</small>
|
159
|
-
</h2>
|
160
|
-
|
161
|
-
<ul class="summary">
|
162
|
-
|
163
|
-
<li class="public ">
|
164
|
-
<span class="summary_signature">
|
165
|
-
|
166
|
-
<a href="#initialize-instance_method" title="#initialize (instance method)">- (Compile) <strong>initialize</strong>(name = :compile) {|_self| ... }</a>
|
167
|
-
|
168
|
-
|
169
|
-
|
170
|
-
</span>
|
171
|
-
|
172
|
-
|
173
|
-
<span class="note title constructor">constructor</span>
|
174
|
-
|
175
|
-
|
176
|
-
|
177
|
-
|
178
|
-
|
179
|
-
|
180
|
-
|
181
|
-
|
182
|
-
<span class="summary_desc"><div class='inline'>
|
183
|
-
<p>A new instance of Compile.</p>
|
184
|
-
</div></span>
|
185
|
-
|
186
|
-
</li>
|
187
|
-
|
188
|
-
|
189
|
-
</ul>
|
190
|
-
|
191
|
-
|
192
|
-
|
193
|
-
<div id="constructor_details" class="method_details_list">
|
194
|
-
<h2>Constructor Details</h2>
|
195
|
-
|
196
|
-
<div class="method_details first">
|
197
|
-
<h3 class="signature first" id="initialize-instance_method">
|
198
|
-
|
199
|
-
- (<tt><span class='object_link'><a href="" title="NetLinx::Rake::ERB::Compile (class)">Compile</a></span></tt>) <strong>initialize</strong>(name = :compile) {|_self| ... }
|
200
|
-
|
201
|
-
|
202
|
-
|
203
|
-
|
204
|
-
|
205
|
-
</h3><div class="docstring">
|
206
|
-
<div class="discussion">
|
207
|
-
|
208
|
-
<p>Returns a new instance of Compile</p>
|
209
|
-
|
210
|
-
|
211
|
-
</div>
|
212
|
-
</div>
|
213
|
-
<div class="tags">
|
214
|
-
|
215
|
-
<p class="tag_title">Yields:</p>
|
216
|
-
<ul class="yield">
|
217
|
-
|
218
|
-
<li>
|
219
|
-
|
220
|
-
|
221
|
-
<span class='type'>(<tt>_self</tt>)</span>
|
222
|
-
|
223
|
-
|
224
|
-
|
225
|
-
</li>
|
226
|
-
|
227
|
-
</ul>
|
228
|
-
<p class="tag_title">Yield Parameters:</p>
|
229
|
-
<ul class="yieldparam">
|
230
|
-
|
231
|
-
<li>
|
232
|
-
|
233
|
-
<span class='name'>_self</span>
|
234
|
-
|
235
|
-
|
236
|
-
<span class='type'>(<tt><span class='object_link'><a href="" title="NetLinx::Rake::ERB::Compile (class)">NetLinx::Rake::ERB::Compile</a></span></tt>)</span>
|
237
|
-
|
238
|
-
|
239
|
-
|
240
|
-
—
|
241
|
-
<div class='inline'>
|
242
|
-
<p>the object that the method was called on</p>
|
243
|
-
</div>
|
244
|
-
|
245
|
-
</li>
|
246
|
-
|
247
|
-
</ul>
|
248
|
-
|
249
|
-
</div><table class="source_code">
|
250
|
-
<tr>
|
251
|
-
<td>
|
252
|
-
<pre class="lines">
|
253
|
-
|
254
|
-
|
255
|
-
14
|
256
|
-
15
|
257
|
-
16
|
258
|
-
17
|
259
|
-
18
|
260
|
-
19
|
261
|
-
20
|
262
|
-
21
|
263
|
-
22
|
264
|
-
23
|
265
|
-
24
|
266
|
-
25
|
267
|
-
26
|
268
|
-
27
|
269
|
-
28</pre>
|
270
|
-
</td>
|
271
|
-
<td>
|
272
|
-
<pre class="code"><span class="info file"># File 'lib/netlinx/rake/erb/compile.rb', line 14</span>
|
273
|
-
|
274
|
-
<span class='kw'>def</span> <span class='id identifier rubyid_initialize'>initialize</span> <span class='id identifier rubyid_name'>name</span> <span class='op'>=</span> <span class='symbol'>:compile</span>
|
275
|
-
<span class='ivar'>@name</span> <span class='op'>=</span> <span class='id identifier rubyid_name'>name</span>
|
276
|
-
<span class='kw'>yield</span> <span class='kw'>self</span> <span class='kw'>if</span> <span class='id identifier rubyid_block_given?'>block_given?</span>
|
277
|
-
|
278
|
-
<span class='id identifier rubyid_desc'>desc</span> <span class='tstring'><span class='tstring_beg'>"</span><span class='tstring_content'>Compile to deployable code from the source code files in the given workspace.</span><span class='tstring_end'>"</span></span>
|
279
|
-
|
280
|
-
<span class='id identifier rubyid_task'>task</span><span class='lparen'>(</span><span class='id identifier rubyid_name'>name</span><span class='rparen'>)</span> <span class='kw'>do</span>
|
281
|
-
<span class='id identifier rubyid_workspace'>workspace</span> <span class='op'>=</span> <span class='const'>Dir</span><span class='period'>.</span><span class='id identifier rubyid_glob'>glob</span><span class='lparen'>(</span><span class='tstring'><span class='tstring_beg'>"</span><span class='tstring_content'>*.apw</span><span class='tstring_end'>"</span></span><span class='rparen'>)</span><span class='period'>.</span><span class='id identifier rubyid_first'>first</span>
|
282
|
-
|
283
|
-
<span class='id identifier rubyid_puts'>puts</span> <span class='tstring'><span class='tstring_beg'>"</span><span class='tstring_content'>\n\nLaunching NetLinx compiler...\n\n</span><span class='tstring_end'>"</span></span>
|
284
|
-
<span class='comment'># TODO: Invoke compiler through API.
|
285
|
-
</span> <span class='comment'># Just call the netlinx-compile rake task in rake/erb.
|
286
|
-
</span> <span class='id identifier rubyid_system'>system</span> <span class='tstring'><span class='tstring_beg'>"</span><span class='tstring_content'>netlinx-compile --smart -s \"</span><span class='embexpr_beg'>#{</span><span class='id identifier rubyid_workspace'>workspace</span><span class='embexpr_end'>}</span><span class='tstring_content'>\"</span><span class='tstring_end'>"</span></span>
|
287
|
-
<span class='kw'>end</span>
|
288
|
-
<span class='kw'>end</span></pre>
|
289
|
-
</td>
|
290
|
-
</tr>
|
291
|
-
</table>
|
292
|
-
</div>
|
293
|
-
|
294
|
-
</div>
|
295
|
-
|
296
|
-
<div id="instance_attr_details" class="attr_details">
|
297
|
-
<h2>Instance Attribute Details</h2>
|
298
|
-
|
299
|
-
|
300
|
-
<span id="name=-instance_method"></span>
|
301
|
-
<div class="method_details first">
|
302
|
-
<h3 class="signature first" id="name-instance_method">
|
303
|
-
|
304
|
-
- (<tt>Object</tt>) <strong>name</strong>
|
305
|
-
|
306
|
-
|
307
|
-
|
308
|
-
|
309
|
-
|
310
|
-
</h3><div class="docstring">
|
311
|
-
<div class="discussion">
|
312
|
-
|
313
|
-
<p>Returns the value of attribute name</p>
|
314
|
-
|
315
|
-
|
316
|
-
</div>
|
317
|
-
</div>
|
318
|
-
<div class="tags">
|
319
|
-
|
320
|
-
|
321
|
-
</div><table class="source_code">
|
322
|
-
<tr>
|
323
|
-
<td>
|
324
|
-
<pre class="lines">
|
325
|
-
|
326
|
-
|
327
|
-
12
|
328
|
-
13
|
329
|
-
14</pre>
|
330
|
-
</td>
|
331
|
-
<td>
|
332
|
-
<pre class="code"><span class="info file"># File 'lib/netlinx/rake/erb/compile.rb', line 12</span>
|
333
|
-
|
334
|
-
<span class='kw'>def</span> <span class='id identifier rubyid_name'>name</span>
|
335
|
-
<span class='ivar'>@name</span>
|
336
|
-
<span class='kw'>end</span></pre>
|
337
|
-
</td>
|
338
|
-
</tr>
|
339
|
-
</table>
|
340
|
-
</div>
|
341
|
-
|
342
|
-
</div>
|
343
|
-
|
344
|
-
|
345
|
-
</div>
|
346
|
-
|
347
|
-
<div id="footer">
|
348
|
-
Generated on Fri Jan 30 12:56:20 2015 by
|
349
|
-
<a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
|
350
|
-
0.8.7.6 (ruby-2.1.3).
|
351
|
-
</div>
|
352
|
-
|
353
|
-
</body>
|
354
|
-
</html>
|
data/doc/NetLinx/Rake/Lines.html
DELETED
@@ -1,381 +0,0 @@
|
|
1
|
-
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
|
2
|
-
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
|
3
|
-
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
|
4
|
-
<head>
|
5
|
-
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
|
6
|
-
<title>
|
7
|
-
Class: NetLinx::Rake::Lines
|
8
|
-
|
9
|
-
— Documentation by YARD 0.8.7.6
|
10
|
-
|
11
|
-
</title>
|
12
|
-
|
13
|
-
<link rel="stylesheet" href="../../css/style.css" type="text/css" charset="utf-8" />
|
14
|
-
|
15
|
-
<link rel="stylesheet" href="../../css/common.css" type="text/css" charset="utf-8" />
|
16
|
-
|
17
|
-
<script type="text/javascript" charset="utf-8">
|
18
|
-
hasFrames = window.top.frames.main ? true : false;
|
19
|
-
relpath = '../../';
|
20
|
-
framesUrl = "../../frames.html#!NetLinx/Rake/Lines.html";
|
21
|
-
</script>
|
22
|
-
|
23
|
-
|
24
|
-
<script type="text/javascript" charset="utf-8" src="../../js/jquery.js"></script>
|
25
|
-
|
26
|
-
<script type="text/javascript" charset="utf-8" src="../../js/app.js"></script>
|
27
|
-
|
28
|
-
|
29
|
-
</head>
|
30
|
-
<body>
|
31
|
-
<div id="header">
|
32
|
-
<div id="menu">
|
33
|
-
|
34
|
-
<a href="../../_index.html">Index (L)</a> »
|
35
|
-
<span class='title'><span class='object_link'><a href="../../NetLinx.html" title="NetLinx (module)">NetLinx</a></span></span> » <span class='title'><span class='object_link'><a href="../Rake.html" title="NetLinx::Rake (module)">Rake</a></span></span>
|
36
|
-
»
|
37
|
-
<span class="title">Lines</span>
|
38
|
-
|
39
|
-
|
40
|
-
<div class="noframes"><span class="title">(</span><a href="." target="_top">no frames</a><span class="title">)</span></div>
|
41
|
-
</div>
|
42
|
-
|
43
|
-
<div id="search">
|
44
|
-
|
45
|
-
<a class="full_list_link" id="class_list_link"
|
46
|
-
href="../../class_list.html">
|
47
|
-
Class List
|
48
|
-
</a>
|
49
|
-
|
50
|
-
<a class="full_list_link" id="method_list_link"
|
51
|
-
href="../../method_list.html">
|
52
|
-
Method List
|
53
|
-
</a>
|
54
|
-
|
55
|
-
<a class="full_list_link" id="file_list_link"
|
56
|
-
href="../../file_list.html">
|
57
|
-
File List
|
58
|
-
</a>
|
59
|
-
|
60
|
-
</div>
|
61
|
-
<div class="clear"></div>
|
62
|
-
</div>
|
63
|
-
|
64
|
-
<iframe id="search_frame"></iframe>
|
65
|
-
|
66
|
-
<div id="content"><h1>Class: NetLinx::Rake::Lines
|
67
|
-
|
68
|
-
|
69
|
-
|
70
|
-
</h1>
|
71
|
-
|
72
|
-
<dl class="box">
|
73
|
-
|
74
|
-
<dt class="r1">Inherits:</dt>
|
75
|
-
<dd class="r1">
|
76
|
-
<span class="inheritName">Rake::TaskLib</span>
|
77
|
-
|
78
|
-
<ul class="fullTree">
|
79
|
-
<li>Object</li>
|
80
|
-
|
81
|
-
<li class="next">Rake::TaskLib</li>
|
82
|
-
|
83
|
-
<li class="next">NetLinx::Rake::Lines</li>
|
84
|
-
|
85
|
-
</ul>
|
86
|
-
<a href="#" class="inheritanceTree">show all</a>
|
87
|
-
|
88
|
-
</dd>
|
89
|
-
|
90
|
-
|
91
|
-
|
92
|
-
|
93
|
-
|
94
|
-
|
95
|
-
|
96
|
-
|
97
|
-
|
98
|
-
<dt class="r2 last">Defined in:</dt>
|
99
|
-
<dd class="r2 last">lib/netlinx/rake/erb/lines.rb</dd>
|
100
|
-
|
101
|
-
</dl>
|
102
|
-
<div class="clear"></div>
|
103
|
-
|
104
|
-
<h2>Overview</h2><div class="docstring">
|
105
|
-
<div class="discussion">
|
106
|
-
|
107
|
-
<p>Show lines of code for .axi files.</p>
|
108
|
-
|
109
|
-
|
110
|
-
</div>
|
111
|
-
</div>
|
112
|
-
<div class="tags">
|
113
|
-
|
114
|
-
|
115
|
-
</div>
|
116
|
-
|
117
|
-
|
118
|
-
|
119
|
-
<h2>Instance Attribute Summary <small>(<a href="#" class="summary_toggle">collapse</a>)</small></h2>
|
120
|
-
<ul class="summary">
|
121
|
-
|
122
|
-
<li class="public ">
|
123
|
-
<span class="summary_signature">
|
124
|
-
|
125
|
-
<a href="#name-instance_method" title="#name (instance method)">- (Object) <strong>name</strong> </a>
|
126
|
-
|
127
|
-
|
128
|
-
|
129
|
-
</span>
|
130
|
-
|
131
|
-
|
132
|
-
|
133
|
-
|
134
|
-
|
135
|
-
|
136
|
-
|
137
|
-
|
138
|
-
|
139
|
-
|
140
|
-
|
141
|
-
|
142
|
-
<span class="summary_desc"><div class='inline'>
|
143
|
-
<p>Returns the value of attribute name.</p>
|
144
|
-
</div></span>
|
145
|
-
|
146
|
-
</li>
|
147
|
-
|
148
|
-
|
149
|
-
</ul>
|
150
|
-
|
151
|
-
|
152
|
-
|
153
|
-
|
154
|
-
|
155
|
-
<h2>
|
156
|
-
Instance Method Summary
|
157
|
-
<small>(<a href="#" class="summary_toggle">collapse</a>)</small>
|
158
|
-
</h2>
|
159
|
-
|
160
|
-
<ul class="summary">
|
161
|
-
|
162
|
-
<li class="public ">
|
163
|
-
<span class="summary_signature">
|
164
|
-
|
165
|
-
<a href="#initialize-instance_method" title="#initialize (instance method)">- (Lines) <strong>initialize</strong>(name = :pack) {|_self| ... }</a>
|
166
|
-
|
167
|
-
|
168
|
-
|
169
|
-
</span>
|
170
|
-
|
171
|
-
|
172
|
-
<span class="note title constructor">constructor</span>
|
173
|
-
|
174
|
-
|
175
|
-
|
176
|
-
|
177
|
-
|
178
|
-
|
179
|
-
|
180
|
-
|
181
|
-
<span class="summary_desc"><div class='inline'>
|
182
|
-
<p>A new instance of Lines.</p>
|
183
|
-
</div></span>
|
184
|
-
|
185
|
-
</li>
|
186
|
-
|
187
|
-
|
188
|
-
</ul>
|
189
|
-
|
190
|
-
|
191
|
-
|
192
|
-
<div id="constructor_details" class="method_details_list">
|
193
|
-
<h2>Constructor Details</h2>
|
194
|
-
|
195
|
-
<div class="method_details first">
|
196
|
-
<h3 class="signature first" id="initialize-instance_method">
|
197
|
-
|
198
|
-
- (<tt><span class='object_link'><a href="" title="NetLinx::Rake::Lines (class)">Lines</a></span></tt>) <strong>initialize</strong>(name = :pack) {|_self| ... }
|
199
|
-
|
200
|
-
|
201
|
-
|
202
|
-
|
203
|
-
|
204
|
-
</h3><div class="docstring">
|
205
|
-
<div class="discussion">
|
206
|
-
|
207
|
-
<p>Returns a new instance of Lines</p>
|
208
|
-
|
209
|
-
|
210
|
-
</div>
|
211
|
-
</div>
|
212
|
-
<div class="tags">
|
213
|
-
|
214
|
-
<p class="tag_title">Yields:</p>
|
215
|
-
<ul class="yield">
|
216
|
-
|
217
|
-
<li>
|
218
|
-
|
219
|
-
|
220
|
-
<span class='type'>(<tt>_self</tt>)</span>
|
221
|
-
|
222
|
-
|
223
|
-
|
224
|
-
</li>
|
225
|
-
|
226
|
-
</ul>
|
227
|
-
<p class="tag_title">Yield Parameters:</p>
|
228
|
-
<ul class="yieldparam">
|
229
|
-
|
230
|
-
<li>
|
231
|
-
|
232
|
-
<span class='name'>_self</span>
|
233
|
-
|
234
|
-
|
235
|
-
<span class='type'>(<tt><span class='object_link'><a href="" title="NetLinx::Rake::Lines (class)">NetLinx::Rake::Lines</a></span></tt>)</span>
|
236
|
-
|
237
|
-
|
238
|
-
|
239
|
-
—
|
240
|
-
<div class='inline'>
|
241
|
-
<p>the object that the method was called on</p>
|
242
|
-
</div>
|
243
|
-
|
244
|
-
</li>
|
245
|
-
|
246
|
-
</ul>
|
247
|
-
|
248
|
-
</div><table class="source_code">
|
249
|
-
<tr>
|
250
|
-
<td>
|
251
|
-
<pre class="lines">
|
252
|
-
|
253
|
-
|
254
|
-
13
|
255
|
-
14
|
256
|
-
15
|
257
|
-
16
|
258
|
-
17
|
259
|
-
18
|
260
|
-
19
|
261
|
-
20
|
262
|
-
21
|
263
|
-
22
|
264
|
-
23
|
265
|
-
24
|
266
|
-
25
|
267
|
-
26
|
268
|
-
27
|
269
|
-
28
|
270
|
-
29
|
271
|
-
30
|
272
|
-
31
|
273
|
-
32
|
274
|
-
33
|
275
|
-
34
|
276
|
-
35
|
277
|
-
36
|
278
|
-
37
|
279
|
-
38
|
280
|
-
39
|
281
|
-
40
|
282
|
-
41</pre>
|
283
|
-
</td>
|
284
|
-
<td>
|
285
|
-
<pre class="code"><span class="info file"># File 'lib/netlinx/rake/erb/lines.rb', line 13</span>
|
286
|
-
|
287
|
-
<span class='kw'>def</span> <span class='id identifier rubyid_initialize'>initialize</span> <span class='id identifier rubyid_name'>name</span> <span class='op'>=</span> <span class='symbol'>:pack</span>
|
288
|
-
<span class='ivar'>@name</span> <span class='op'>=</span> <span class='id identifier rubyid_name'>name</span>
|
289
|
-
<span class='kw'>yield</span> <span class='kw'>self</span> <span class='kw'>if</span> <span class='id identifier rubyid_block_given?'>block_given?</span>
|
290
|
-
|
291
|
-
<span class='id identifier rubyid_desc'>desc</span> <span class='tstring'><span class='tstring_beg'>"</span><span class='tstring_content'>Show lines of code for .axi files.</span><span class='tstring_end'>"</span></span>
|
292
|
-
|
293
|
-
<span class='id identifier rubyid_task'>task</span><span class='lparen'>(</span><span class='id identifier rubyid_name'>name</span><span class='rparen'>)</span> <span class='kw'>do</span>
|
294
|
-
<span class='id identifier rubyid_require'>require</span> <span class='tstring'><span class='tstring_beg'>'</span><span class='tstring_content'>netlinx/workspace</span><span class='tstring_end'>'</span></span>
|
295
|
-
|
296
|
-
<span class='id identifier rubyid_workspace_path'>workspace_path</span> <span class='op'>=</span> <span class='const'>Dir</span><span class='lbracket'>[</span><span class='tstring'><span class='tstring_beg'>'</span><span class='tstring_content'>*.apw</span><span class='tstring_end'>'</span></span><span class='rbracket'>]</span><span class='period'>.</span><span class='id identifier rubyid_first'>first</span>
|
297
|
-
<span class='id identifier rubyid_workspace'>workspace</span> <span class='op'>=</span> <span class='const'>NetLinx</span><span class='op'>::</span><span class='const'>Workspace</span><span class='period'>.</span><span class='id identifier rubyid_new'>new</span> <span class='label'>file:</span> <span class='id identifier rubyid_workspace_path'>workspace_path</span>
|
298
|
-
<span class='id identifier rubyid_file_paths'>file_paths</span> <span class='op'>=</span> <span class='id identifier rubyid_workspace'>workspace</span><span class='period'>.</span><span class='id identifier rubyid_projects'>projects</span><span class='period'>.</span><span class='id identifier rubyid_first'>first</span><span class='period'>.</span><span class='id identifier rubyid_systems'>systems</span><span class='period'>.</span><span class='id identifier rubyid_first'>first</span><span class='period'>.</span><span class='id identifier rubyid_files'>files</span><span class='period'>
|
299
|
-
</span><span class='id identifier rubyid_ .map'> .map</span><span class='lparen'>(</span><span class='op'>&</span><span class='symbol'>:path</span><span class='rparen'>)</span><span class='period'>
|
300
|
-
</span><span class='id identifier rubyid_ .select'> .select</span> <span class='lbrace'>{</span> <span class='op'>|</span><span class='id identifier rubyid_path'>path</span><span class='op'>|</span> <span class='const'>File</span><span class='period'>.</span><span class='id identifier rubyid_extname'>extname</span><span class='lparen'>(</span><span class='id identifier rubyid_path'>path</span><span class='rparen'>)</span> <span class='op'>==</span> <span class='tstring'><span class='tstring_beg'>'</span><span class='tstring_content'>.axs</span><span class='tstring_end'>'</span></span> <span class='kw'>or</span> <span class='const'>File</span><span class='period'>.</span><span class='id identifier rubyid_extname'>extname</span><span class='lparen'>(</span><span class='id identifier rubyid_path'>path</span><span class='rparen'>)</span> <span class='op'>==</span> <span class='tstring'><span class='tstring_beg'>'</span><span class='tstring_content'>.axi</span><span class='tstring_end'>'</span></span> <span class='rbrace'>}</span>
|
301
|
-
|
302
|
-
<span class='id identifier rubyid_puts'>puts</span> <span class='tstring'><span class='tstring_beg'>"</span><span class='tstring_content'>\n\nLines of code...</span><span class='tstring_end'>"</span></span>
|
303
|
-
<span class='id identifier rubyid_puts'>puts</span> <span class='tstring'><span class='tstring_beg'>"</span><span class='tstring_content'>----------------</span><span class='tstring_end'>"</span></span>
|
304
|
-
|
305
|
-
<span class='id identifier rubyid_lines_by_path'>lines_by_path</span> <span class='op'>=</span> <span class='id identifier rubyid_file_paths'>file_paths</span><span class='period'>.</span><span class='id identifier rubyid_map'>map</span> <span class='lbrace'>{</span> <span class='op'>|</span><span class='id identifier rubyid_path'>path</span><span class='op'>|</span> <span class='lbrace'>{</span><span class='label'>path:</span> <span class='id identifier rubyid_path'>path</span><span class='comma'>,</span> <span class='label'>lines:</span> <span class='const'>File</span><span class='period'>.</span><span class='id identifier rubyid_read'>read</span><span class='lparen'>(</span><span class='id identifier rubyid_path'>path</span><span class='rparen'>)</span><span class='period'>.</span><span class='id identifier rubyid_lines'>lines</span><span class='period'>.</span><span class='id identifier rubyid_count'>count</span><span class='rbrace'>}</span> <span class='rbrace'>}</span>
|
306
|
-
<span class='id identifier rubyid_lines_by_path'>lines_by_path</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_line_by_path'>line_by_path</span><span class='op'>|</span>
|
307
|
-
<span class='id identifier rubyid_puts'>puts</span> <span class='tstring'><span class='tstring_beg'>"</span><span class='embexpr_beg'>#{</span><span class='id identifier rubyid_line_by_path'>line_by_path</span><span class='lbracket'>[</span><span class='symbol'>:lines</span><span class='rbracket'>]</span><span class='embexpr_end'>}</span><span class='tstring_content'>\t</span><span class='embexpr_beg'>#{</span><span class='id identifier rubyid_line_by_path'>line_by_path</span><span class='lbracket'>[</span><span class='symbol'>:path</span><span class='rbracket'>]</span><span class='embexpr_end'>}</span><span class='tstring_end'>"</span></span>
|
308
|
-
<span class='kw'>end</span>
|
309
|
-
|
310
|
-
<span class='id identifier rubyid_puts'>puts</span> <span class='tstring'><span class='tstring_beg'>"</span><span class='tstring_content'>-----\t--------------------</span><span class='tstring_end'>"</span></span>
|
311
|
-
<span class='id identifier rubyid_total'>total</span> <span class='op'>=</span> <span class='int'>0</span>
|
312
|
-
<span class='id identifier rubyid_lines_by_path'>lines_by_path</span><span class='period'>.</span><span class='id identifier rubyid_map'>map</span> <span class='lbrace'>{</span> <span class='op'>|</span><span class='id identifier rubyid_l'>l</span><span class='op'>|</span> <span class='id identifier rubyid_l'>l</span><span class='lbracket'>[</span><span class='symbol'>:lines</span><span class='rbracket'>]</span> <span class='rbrace'>}</span><span class='period'>.</span><span class='id identifier rubyid_each'>each</span> <span class='lbrace'>{</span> <span class='op'>|</span><span class='id identifier rubyid_lines'>lines</span><span class='op'>|</span> <span class='id identifier rubyid_total'>total</span> <span class='op'>+=</span> <span class='id identifier rubyid_lines'>lines</span> <span class='rbrace'>}</span>
|
313
|
-
<span class='id identifier rubyid_puts'>puts</span> <span class='tstring'><span class='tstring_beg'>"</span><span class='embexpr_beg'>#{</span><span class='id identifier rubyid_total'>total</span><span class='embexpr_end'>}</span><span class='tstring_content'>\tTotal</span><span class='tstring_end'>"</span></span>
|
314
|
-
<span class='kw'>end</span>
|
315
|
-
<span class='kw'>end</span></pre>
|
316
|
-
</td>
|
317
|
-
</tr>
|
318
|
-
</table>
|
319
|
-
</div>
|
320
|
-
|
321
|
-
</div>
|
322
|
-
|
323
|
-
<div id="instance_attr_details" class="attr_details">
|
324
|
-
<h2>Instance Attribute Details</h2>
|
325
|
-
|
326
|
-
|
327
|
-
<span id="name=-instance_method"></span>
|
328
|
-
<div class="method_details first">
|
329
|
-
<h3 class="signature first" id="name-instance_method">
|
330
|
-
|
331
|
-
- (<tt>Object</tt>) <strong>name</strong>
|
332
|
-
|
333
|
-
|
334
|
-
|
335
|
-
|
336
|
-
|
337
|
-
</h3><div class="docstring">
|
338
|
-
<div class="discussion">
|
339
|
-
|
340
|
-
<p>Returns the value of attribute name</p>
|
341
|
-
|
342
|
-
|
343
|
-
</div>
|
344
|
-
</div>
|
345
|
-
<div class="tags">
|
346
|
-
|
347
|
-
|
348
|
-
</div><table class="source_code">
|
349
|
-
<tr>
|
350
|
-
<td>
|
351
|
-
<pre class="lines">
|
352
|
-
|
353
|
-
|
354
|
-
11
|
355
|
-
12
|
356
|
-
13</pre>
|
357
|
-
</td>
|
358
|
-
<td>
|
359
|
-
<pre class="code"><span class="info file"># File 'lib/netlinx/rake/erb/lines.rb', line 11</span>
|
360
|
-
|
361
|
-
<span class='kw'>def</span> <span class='id identifier rubyid_name'>name</span>
|
362
|
-
<span class='ivar'>@name</span>
|
363
|
-
<span class='kw'>end</span></pre>
|
364
|
-
</td>
|
365
|
-
</tr>
|
366
|
-
</table>
|
367
|
-
</div>
|
368
|
-
|
369
|
-
</div>
|
370
|
-
|
371
|
-
|
372
|
-
</div>
|
373
|
-
|
374
|
-
<div id="footer">
|
375
|
-
Generated on Fri Jan 30 12:16:09 2015 by
|
376
|
-
<a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
|
377
|
-
0.8.7.6 (ruby-2.1.3).
|
378
|
-
</div>
|
379
|
-
|
380
|
-
</body>
|
381
|
-
</html>
|