netlinx-compile 1.0.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (68) hide show
  1. checksums.yaml +7 -0
  2. data/README.txt +2 -0
  3. data/bin/netlinx-compile +4 -0
  4. data/doc/NetLinx.html +151 -0
  5. data/doc/NetLinx/Compile.html +148 -0
  6. data/doc/NetLinx/Compile/Extension.html +145 -0
  7. data/doc/NetLinx/Compile/Extension/AXS.html +154 -0
  8. data/doc/NetLinx/Compile/ExtensionDiscovery.html +324 -0
  9. data/doc/NetLinx/Compile/ExtensionHandler.html +396 -0
  10. data/doc/NetLinx/Compile/Script.html +293 -0
  11. data/doc/NetLinx/Compiler.html +295 -0
  12. data/doc/NetLinx/CompilerResult.html +501 -0
  13. data/doc/NetLinx/NoCompilerError.html +155 -0
  14. data/doc/NetLinx/SourceFile.html +430 -0
  15. data/doc/Test.html +147 -0
  16. data/doc/Test/NetLinx.html +147 -0
  17. data/doc/Test/NetLinx/Compilable.html +148 -0
  18. data/doc/Test/NetLinx/Compile.html +146 -0
  19. data/doc/Test/NetLinx/Compile/Discoverable.html +148 -0
  20. data/doc/Test/NetLinx/Compile/Invokable.html +149 -0
  21. data/doc/created.rid +12 -0
  22. data/doc/images/add.png +0 -0
  23. data/doc/images/arrow_up.png +0 -0
  24. data/doc/images/brick.png +0 -0
  25. data/doc/images/brick_link.png +0 -0
  26. data/doc/images/bug.png +0 -0
  27. data/doc/images/bullet_black.png +0 -0
  28. data/doc/images/bullet_toggle_minus.png +0 -0
  29. data/doc/images/bullet_toggle_plus.png +0 -0
  30. data/doc/images/date.png +0 -0
  31. data/doc/images/delete.png +0 -0
  32. data/doc/images/find.png +0 -0
  33. data/doc/images/loadingAnimation.gif +0 -0
  34. data/doc/images/macFFBgHack.png +0 -0
  35. data/doc/images/package.png +0 -0
  36. data/doc/images/page_green.png +0 -0
  37. data/doc/images/page_white_text.png +0 -0
  38. data/doc/images/page_white_width.png +0 -0
  39. data/doc/images/plugin.png +0 -0
  40. data/doc/images/ruby.png +0 -0
  41. data/doc/images/tag_blue.png +0 -0
  42. data/doc/images/tag_green.png +0 -0
  43. data/doc/images/transparent.png +0 -0
  44. data/doc/images/wrench.png +0 -0
  45. data/doc/images/wrench_orange.png +0 -0
  46. data/doc/images/zoom.png +0 -0
  47. data/doc/index.html +103 -0
  48. data/doc/js/darkfish.js +155 -0
  49. data/doc/js/jquery.js +18 -0
  50. data/doc/js/navigation.js +142 -0
  51. data/doc/js/search.js +94 -0
  52. data/doc/js/search_index.js +1 -0
  53. data/doc/js/searcher.js +228 -0
  54. data/doc/rdoc.css +595 -0
  55. data/doc/table_of_contents.html +138 -0
  56. data/lib/netlinx-compile.rb +1 -0
  57. data/lib/netlinx/compile/extension/axs.rb +18 -0
  58. data/lib/netlinx/compile/extension_discovery.rb +62 -0
  59. data/lib/netlinx/compile/extension_handler.rb +86 -0
  60. data/lib/netlinx/compile/script.rb +115 -0
  61. data/lib/netlinx/compiler.rb +71 -0
  62. data/lib/netlinx/compiler_result.rb +72 -0
  63. data/lib/netlinx/source_file.rb +78 -0
  64. data/lib/test/netlinx/compilable.rb +48 -0
  65. data/lib/test/netlinx/compile/discoverable.rb +14 -0
  66. data/lib/test/netlinx/compile/invokable.rb +15 -0
  67. data/license.txt +13 -0
  68. metadata +156 -0
@@ -0,0 +1,154 @@
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::Compile::Extension::AXS - 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/compile/extension/axs.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
+
71
+ </div>
72
+
73
+ <div id="project-metadata">
74
+
75
+ <nav id="classindex-section" class="section project-section">
76
+ <h3 class="section-header">Class and Module Index</h3>
77
+
78
+ <ul class="link-list">
79
+
80
+ <li><a href="../../../NetLinx.html">NetLinx</a>
81
+
82
+ <li><a href="../../../NetLinx/Compile.html">NetLinx::Compile</a>
83
+
84
+ <li><a href="../../../NetLinx/Compile/Extension.html">NetLinx::Compile::Extension</a>
85
+
86
+ <li><a href="../../../NetLinx/Compile/Extension/AXS.html">NetLinx::Compile::Extension::AXS</a>
87
+
88
+ <li><a href="../../../NetLinx/Compile/ExtensionDiscovery.html">NetLinx::Compile::ExtensionDiscovery</a>
89
+
90
+ <li><a href="../../../NetLinx/Compile/ExtensionHandler.html">NetLinx::Compile::ExtensionHandler</a>
91
+
92
+ <li><a href="../../../NetLinx/Compile/Script.html">NetLinx::Compile::Script</a>
93
+
94
+ <li><a href="../../../NetLinx/Compiler.html">NetLinx::Compiler</a>
95
+
96
+ <li><a href="../../../NetLinx/CompilerResult.html">NetLinx::CompilerResult</a>
97
+
98
+ <li><a href="../../../NetLinx/NoCompilerError.html">NetLinx::NoCompilerError</a>
99
+
100
+ <li><a href="../../../NetLinx/SourceFile.html">NetLinx::SourceFile</a>
101
+
102
+ <li><a href="../../../Test.html">Test</a>
103
+
104
+ <li><a href="../../../Test/NetLinx.html">Test::NetLinx</a>
105
+
106
+ <li><a href="../../../Test/NetLinx/Compilable.html">Test::NetLinx::Compilable</a>
107
+
108
+ <li><a href="../../../Test/NetLinx/Compile.html">Test::NetLinx::Compile</a>
109
+
110
+ <li><a href="../../../Test/NetLinx/Compile/Discoverable.html">Test::NetLinx::Compile::Discoverable</a>
111
+
112
+ <li><a href="../../../Test/NetLinx/Compile/Invokable.html">Test::NetLinx::Compile::Invokable</a>
113
+
114
+ </ul>
115
+ </nav>
116
+
117
+ </div>
118
+ </nav>
119
+
120
+ <div id="documentation">
121
+ <h1 class="class">class NetLinx::Compile::Extension::AXS</h1>
122
+
123
+ <div id="description" class="description">
124
+
125
+ <p>Instructs netlinx-compile on how to process .axs <a
126
+ href="../../../NetLinx.html">NetLinx</a> source code files.</p>
127
+
128
+ </div><!-- description -->
129
+
130
+
131
+
132
+
133
+ <section id="5Buntitled-5D" class="documentation-section">
134
+
135
+
136
+
137
+
138
+
139
+
140
+
141
+
142
+ <!-- Methods -->
143
+
144
+ </section><!-- 5Buntitled-5D -->
145
+
146
+ </div><!-- documentation -->
147
+
148
+
149
+ <footer id="validator-badges">
150
+ <p><a href="http://validator.w3.org/check/referer">[Validate]</a>
151
+ <p>Generated by <a href="https://github.com/rdoc/rdoc">RDoc</a> 4.0.1.
152
+ <p>Generated with the <a href="http://deveiate.org/projects/Darkfish-Rdoc/">Darkfish Rdoc Generator</a> 3.
153
+ </footer>
154
+
@@ -0,0 +1,324 @@
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::Compile::ExtensionDiscovery - 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/compile/extension_discovery.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-discover">::discover</a>
77
+
78
+ <li ><a href="#method-c-get_handler">::get_handler</a>
79
+
80
+ <li ><a href="#method-c-workspace_extensions">::workspace_extensions</a>
81
+
82
+ </ul>
83
+ </nav>
84
+
85
+ </div>
86
+
87
+ <div id="project-metadata">
88
+
89
+ <nav id="classindex-section" class="section project-section">
90
+ <h3 class="section-header">Class and Module Index</h3>
91
+
92
+ <ul class="link-list">
93
+
94
+ <li><a href="../../NetLinx.html">NetLinx</a>
95
+
96
+ <li><a href="../../NetLinx/Compile.html">NetLinx::Compile</a>
97
+
98
+ <li><a href="../../NetLinx/Compile/Extension.html">NetLinx::Compile::Extension</a>
99
+
100
+ <li><a href="../../NetLinx/Compile/Extension/AXS.html">NetLinx::Compile::Extension::AXS</a>
101
+
102
+ <li><a href="../../NetLinx/Compile/ExtensionDiscovery.html">NetLinx::Compile::ExtensionDiscovery</a>
103
+
104
+ <li><a href="../../NetLinx/Compile/ExtensionHandler.html">NetLinx::Compile::ExtensionHandler</a>
105
+
106
+ <li><a href="../../NetLinx/Compile/Script.html">NetLinx::Compile::Script</a>
107
+
108
+ <li><a href="../../NetLinx/Compiler.html">NetLinx::Compiler</a>
109
+
110
+ <li><a href="../../NetLinx/CompilerResult.html">NetLinx::CompilerResult</a>
111
+
112
+ <li><a href="../../NetLinx/NoCompilerError.html">NetLinx::NoCompilerError</a>
113
+
114
+ <li><a href="../../NetLinx/SourceFile.html">NetLinx::SourceFile</a>
115
+
116
+ <li><a href="../../Test.html">Test</a>
117
+
118
+ <li><a href="../../Test/NetLinx.html">Test::NetLinx</a>
119
+
120
+ <li><a href="../../Test/NetLinx/Compilable.html">Test::NetLinx::Compilable</a>
121
+
122
+ <li><a href="../../Test/NetLinx/Compile.html">Test::NetLinx::Compile</a>
123
+
124
+ <li><a href="../../Test/NetLinx/Compile/Discoverable.html">Test::NetLinx::Compile::Discoverable</a>
125
+
126
+ <li><a href="../../Test/NetLinx/Compile/Invokable.html">Test::NetLinx::Compile::Invokable</a>
127
+
128
+ </ul>
129
+ </nav>
130
+
131
+ </div>
132
+ </nav>
133
+
134
+ <div id="documentation">
135
+ <h1 class="class">class NetLinx::Compile::ExtensionDiscovery</h1>
136
+
137
+ <div id="description" class="description">
138
+
139
+ <p>Discovers and auto-requires add-on Ruby libraries for netlinx-compile.</p>
140
+
141
+ </div><!-- description -->
142
+
143
+
144
+
145
+
146
+ <section id="5Buntitled-5D" class="documentation-section">
147
+
148
+
149
+
150
+
151
+
152
+
153
+
154
+ <!-- Attributes -->
155
+ <section id="attribute-method-details" class="method-section section">
156
+ <h3 class="section-header">Attributes</h3>
157
+
158
+
159
+ <div id="attribute-c-handlers" class="method-detail">
160
+ <div class="method-heading attribute-method-heading">
161
+ <span class="method-name">handlers</span><span
162
+ class="attribute-access-type">[RW]</span>
163
+ </div>
164
+
165
+ <div class="method-description">
166
+
167
+ <p>An array of ExtensionHandlers installed on the system. discover must be run
168
+ before this array is populated.</p>
169
+
170
+ </div>
171
+ </div>
172
+
173
+ </section><!-- attribute-method-details -->
174
+
175
+
176
+ <!-- Methods -->
177
+
178
+ <section id="public-class-5Buntitled-5D-method-details" class="method-section section">
179
+ <h3 class="section-header">Public Class Methods</h3>
180
+
181
+
182
+ <div id="method-c-discover" class="method-detail ">
183
+
184
+ <div class="method-heading">
185
+ <span class="method-name">discover</span><span
186
+ class="method-args">()</span>
187
+
188
+ <span class="method-click-advice">click to toggle source</span>
189
+
190
+ </div>
191
+
192
+
193
+ <div class="method-description">
194
+
195
+ <p>Searches for gems with &#39;netlinx-compile&#39; as a dependency. The
196
+ &#39;lib/netlinx/compile/extension/*&#39; path is checked for compiler
197
+ extensions.</p>
198
+
199
+
200
+
201
+
202
+ <div class="method-source-code" id="discover-source">
203
+ <pre><span class="ruby-comment"># File lib/netlinx/compile/extension_discovery.rb, line 17</span>
204
+ <span class="ruby-keyword">def</span> <span class="ruby-identifier">discover</span>
205
+ <span class="ruby-comment"># Require extensions built into netlinx-compile.</span>
206
+ <span class="ruby-identifier">nc_gem</span> = <span class="ruby-constant">Gem</span><span class="ruby-operator">::</span><span class="ruby-constant">Specification</span>.<span class="ruby-identifier">find_by_name</span> <span class="ruby-string">&#39;netlinx-compile&#39;</span>
207
+ <span class="ruby-identifier">nc_gem_path</span> = <span class="ruby-constant">File</span>.<span class="ruby-identifier">expand_path</span> <span class="ruby-string">&#39;lib/netlinx/compile/extension&#39;</span>, <span class="ruby-identifier">nc_gem</span>.<span class="ruby-identifier">gem_dir</span>
208
+ <span class="ruby-identifier">nc_gem_files</span> = <span class="ruby-constant">Dir</span>[<span class="ruby-node">&quot;#{nc_gem_path}/*.rb&quot;</span>]
209
+ <span class="ruby-identifier">nc_gem_files</span>.<span class="ruby-identifier">each</span> {<span class="ruby-operator">|</span><span class="ruby-identifier">file</span><span class="ruby-operator">|</span> <span class="ruby-identifier">require</span> <span class="ruby-identifier">file</span>}
210
+
211
+ <span class="ruby-comment"># Find gems with a dependency on &#39;netlinx-compile&#39;.</span>
212
+ <span class="ruby-identifier">gems</span> = <span class="ruby-constant">Gem</span><span class="ruby-operator">::</span><span class="ruby-constant">Specification</span>.<span class="ruby-identifier">each</span>
213
+ .<span class="ruby-identifier">select</span>{<span class="ruby-operator">|</span><span class="ruby-identifier">gem</span><span class="ruby-operator">|</span> <span class="ruby-identifier">gem</span>.<span class="ruby-identifier">dependencies</span>
214
+ .<span class="ruby-identifier">select</span>{<span class="ruby-operator">|</span><span class="ruby-identifier">dependency</span><span class="ruby-operator">|</span> <span class="ruby-identifier">dependency</span>.<span class="ruby-identifier">name</span> <span class="ruby-operator">==</span> <span class="ruby-string">&#39;netlinx-compile&#39;</span>}
215
+ .<span class="ruby-identifier">empty?</span> <span class="ruby-operator">==</span> <span class="ruby-keyword">false</span>
216
+ }
217
+
218
+ <span class="ruby-comment"># Load any Ruby files in their lib/netlinx/compile/extension paths.</span>
219
+ <span class="ruby-identifier">gems</span>.<span class="ruby-identifier">each</span> <span class="ruby-keyword">do</span> <span class="ruby-operator">|</span><span class="ruby-identifier">gem</span><span class="ruby-operator">|</span>
220
+ <span class="ruby-identifier">extension_path</span> = <span class="ruby-constant">File</span>.<span class="ruby-identifier">expand_path</span> <span class="ruby-string">&#39;lib/netlinx/compile/extension&#39;</span>, <span class="ruby-identifier">gem</span>.<span class="ruby-identifier">gem_dir</span>
221
+ <span class="ruby-identifier">files</span> = <span class="ruby-constant">Dir</span>[<span class="ruby-node">&quot;#{extension_path}/*.rb&quot;</span>]
222
+ <span class="ruby-identifier">files</span>.<span class="ruby-identifier">each</span> {<span class="ruby-operator">|</span><span class="ruby-identifier">file</span><span class="ruby-operator">|</span> <span class="ruby-identifier">require</span> <span class="ruby-identifier">file</span>}
223
+ <span class="ruby-keyword">end</span>
224
+
225
+ <span class="ruby-comment"># Register ExtensionHandler objects.</span>
226
+ <span class="ruby-ivar">@handlers</span> = <span class="ruby-constant">NetLinx</span><span class="ruby-operator">::</span><span class="ruby-constant">Compile</span><span class="ruby-operator">::</span><span class="ruby-constant">Extension</span>.<span class="ruby-identifier">constants</span>
227
+ .<span class="ruby-identifier">map</span>{<span class="ruby-operator">|</span><span class="ruby-identifier">c</span><span class="ruby-operator">|</span> <span class="ruby-constant">NetLinx</span><span class="ruby-operator">::</span><span class="ruby-constant">Compile</span><span class="ruby-operator">::</span><span class="ruby-constant">Extension</span>.<span class="ruby-identifier">const_get</span> <span class="ruby-identifier">c</span>}
228
+ .<span class="ruby-identifier">select</span>{<span class="ruby-operator">|</span><span class="ruby-identifier">c</span><span class="ruby-operator">|</span> <span class="ruby-identifier">c</span>.<span class="ruby-identifier">is_a?</span> <span class="ruby-constant">Class</span>}
229
+ .<span class="ruby-identifier">map</span>{<span class="ruby-operator">|</span><span class="ruby-identifier">c</span><span class="ruby-operator">|</span> <span class="ruby-identifier">c</span>.<span class="ruby-identifier">get_handler</span> <span class="ruby-keyword">if</span> <span class="ruby-identifier">c</span>.<span class="ruby-identifier">respond_to?</span> <span class="ruby-value">:get_handler</span>}
230
+ .<span class="ruby-identifier">select</span>{<span class="ruby-operator">|</span><span class="ruby-identifier">c</span><span class="ruby-operator">|</span> <span class="ruby-keyword">not</span> <span class="ruby-identifier">c</span>.<span class="ruby-identifier">nil?</span>}
231
+ <span class="ruby-keyword">end</span></pre>
232
+ </div><!-- discover-source -->
233
+
234
+ </div>
235
+
236
+
237
+
238
+
239
+ </div><!-- discover-method -->
240
+
241
+
242
+ <div id="method-c-get_handler" class="method-detail ">
243
+
244
+ <div class="method-heading">
245
+ <span class="method-name">get_handler</span><span
246
+ class="method-args">(filename)</span>
247
+
248
+ <span class="method-click-advice">click to toggle source</span>
249
+
250
+ </div>
251
+
252
+
253
+ <div class="method-description">
254
+
255
+ <p>Get an <a href="ExtensionHandler.html">ExtensionHandler</a> for a given
256
+ file or extension.</p>
257
+
258
+
259
+
260
+
261
+ <div class="method-source-code" id="get_handler-source">
262
+ <pre><span class="ruby-comment"># File lib/netlinx/compile/extension_discovery.rb, line 55</span>
263
+ <span class="ruby-keyword">def</span> <span class="ruby-identifier">get_handler</span>(<span class="ruby-identifier">filename</span>)
264
+ <span class="ruby-ivar">@handlers</span>.<span class="ruby-identifier">select</span>{<span class="ruby-operator">|</span><span class="ruby-identifier">h</span><span class="ruby-operator">|</span> <span class="ruby-identifier">h</span>.<span class="ruby-identifier">include?</span> <span class="ruby-identifier">filename</span>}.<span class="ruby-identifier">first</span>
265
+ <span class="ruby-keyword">end</span></pre>
266
+ </div><!-- get_handler-source -->
267
+
268
+ </div>
269
+
270
+
271
+
272
+
273
+ </div><!-- get_handler-method -->
274
+
275
+
276
+ <div id="method-c-workspace_extensions" class="method-detail ">
277
+
278
+ <div class="method-heading">
279
+ <span class="method-name">workspace_extensions</span><span
280
+ class="method-args">()</span>
281
+
282
+ <span class="method-click-advice">click to toggle source</span>
283
+
284
+ </div>
285
+
286
+
287
+ <div class="method-description">
288
+
289
+ <p>Returns an array of workspace file extensions.</p>
290
+
291
+
292
+
293
+
294
+ <div class="method-source-code" id="workspace_extensions-source">
295
+ <pre><span class="ruby-comment"># File lib/netlinx/compile/extension_discovery.rb, line 47</span>
296
+ <span class="ruby-keyword">def</span> <span class="ruby-identifier">workspace_extensions</span>
297
+ <span class="ruby-ivar">@handlers</span>
298
+ .<span class="ruby-identifier">select</span>{<span class="ruby-operator">|</span><span class="ruby-identifier">h</span><span class="ruby-operator">|</span> <span class="ruby-identifier">h</span>.<span class="ruby-identifier">is_a_workspace?</span>}
299
+ .<span class="ruby-identifier">map</span>{<span class="ruby-operator">|</span><span class="ruby-identifier">h</span><span class="ruby-operator">|</span> <span class="ruby-identifier">h</span>.<span class="ruby-identifier">extensions</span>}
300
+ .<span class="ruby-identifier">flatten</span>
301
+ <span class="ruby-keyword">end</span></pre>
302
+ </div><!-- workspace_extensions-source -->
303
+
304
+ </div>
305
+
306
+
307
+
308
+
309
+ </div><!-- workspace_extensions-method -->
310
+
311
+
312
+ </section><!-- public-class-method-details -->
313
+
314
+ </section><!-- 5Buntitled-5D -->
315
+
316
+ </div><!-- documentation -->
317
+
318
+
319
+ <footer id="validator-badges">
320
+ <p><a href="http://validator.w3.org/check/referer">[Validate]</a>
321
+ <p>Generated by <a href="https://github.com/rdoc/rdoc">RDoc</a> 4.0.1.
322
+ <p>Generated with the <a href="http://deveiate.org/projects/Darkfish-Rdoc/">Darkfish Rdoc Generator</a> 3.
323
+ </footer>
324
+