sprout 1.0.11.pre → 1.0.13.pre

Sign up to get free protection for your applications and to get access to all the features.

Potentially problematic release.


This version of sprout might be problematic. Click here for more details.

Files changed (149) hide show
  1. data/lib/sprout/executable.rb +37 -10
  2. data/lib/sprout/generator/base.rb +17 -0
  3. data/lib/sprout/ruby_feature.rb +1 -1
  4. data/lib/sprout/version.rb +1 -1
  5. data/rdoc/<.html +274 -0
  6. data/rdoc/Dir.html +387 -0
  7. data/rdoc/Object.html +344 -0
  8. data/rdoc/Sprout.html +440 -0
  9. data/rdoc/Sprout/ArchiveUnpacker.html +1045 -0
  10. data/rdoc/Sprout/Base.html +283 -0
  11. data/rdoc/Sprout/Base/ClassMethods.html +474 -0
  12. data/rdoc/Sprout/Concern.html +415 -0
  13. data/rdoc/Sprout/Errors.html +324 -0
  14. data/rdoc/Sprout/Errors/ArchiveUnpackerError.html +284 -0
  15. data/rdoc/Sprout/Errors/DestinationExistsError.html +286 -0
  16. data/rdoc/Sprout/Errors/DuplicateMemberError.html +284 -0
  17. data/rdoc/Sprout/Errors/ExecutableError.html +285 -0
  18. data/rdoc/Sprout/Errors/ExecutableRegistrationError.html +284 -0
  19. data/rdoc/Sprout/Errors/ExecutionError.html +284 -0
  20. data/rdoc/Sprout/Errors/GeneratorError.html +284 -0
  21. data/rdoc/Sprout/Errors/InvalidArgumentError.html +284 -0
  22. data/rdoc/Sprout/Errors/LoadError.html +284 -0
  23. data/rdoc/Sprout/Errors/MissingArgumentError.html +284 -0
  24. data/rdoc/Sprout/Errors/MissingExecutableError.html +284 -0
  25. data/rdoc/Sprout/Errors/MissingGeneratorError.html +285 -0
  26. data/rdoc/Sprout/Errors/MissingTemplateError.html +285 -0
  27. data/rdoc/Sprout/Errors/ProcessRunnerError.html +284 -0
  28. data/rdoc/Sprout/Errors/RemoteFileLoaderError.html +284 -0
  29. data/rdoc/Sprout/Errors/SproutError.html +284 -0
  30. data/rdoc/Sprout/Errors/UnknownArchiveType.html +285 -0
  31. data/rdoc/Sprout/Errors/UsageError.html +284 -0
  32. data/rdoc/Sprout/Errors/ValidationError.html +284 -0
  33. data/rdoc/Sprout/Errors/VersionRequirementNotMetError.html +284 -0
  34. data/rdoc/Sprout/Executable.html +549 -0
  35. data/rdoc/Sprout/Executable/Boolean.html +445 -0
  36. data/rdoc/Sprout/Executable/ClassMethods.html +713 -0
  37. data/rdoc/Sprout/Executable/CollectionParam.html +501 -0
  38. data/rdoc/Sprout/Executable/FileParam.html +512 -0
  39. data/rdoc/Sprout/Executable/Files.html +385 -0
  40. data/rdoc/Sprout/Executable/InstanceMethods.html +1597 -0
  41. data/rdoc/Sprout/Executable/Number.html +284 -0
  42. data/rdoc/Sprout/Executable/Param.html +1660 -0
  43. data/rdoc/Sprout/Executable/ParameterFactory.html +345 -0
  44. data/rdoc/Sprout/Executable/Path.html +339 -0
  45. data/rdoc/Sprout/Executable/Paths.html +339 -0
  46. data/rdoc/Sprout/Executable/StringParam.html +333 -0
  47. data/rdoc/Sprout/Executable/Strings.html +295 -0
  48. data/rdoc/Sprout/Executable/Url.html +284 -0
  49. data/rdoc/Sprout/Executable/Urls.html +284 -0
  50. data/rdoc/Sprout/FileTarget.html +660 -0
  51. data/rdoc/Sprout/Generator.html +643 -0
  52. data/rdoc/Sprout/Generator/Base.html +1143 -0
  53. data/rdoc/Sprout/Generator/Command.html +604 -0
  54. data/rdoc/Sprout/Generator/DirectoryManifest.html +561 -0
  55. data/rdoc/Sprout/Generator/FileManifest.html +545 -0
  56. data/rdoc/Sprout/Generator/Manifest.html +387 -0
  57. data/rdoc/Sprout/Generator/TemplateManifest.html +331 -0
  58. data/rdoc/Sprout/GeneratorGenerator.html +358 -0
  59. data/rdoc/Sprout/Library.html +646 -0
  60. data/rdoc/Sprout/LibraryGenerator.html +368 -0
  61. data/rdoc/Sprout/Log.html +281 -0
  62. data/rdoc/Sprout/Platform.html +610 -0
  63. data/rdoc/Sprout/ProcessRunner.html +1145 -0
  64. data/rdoc/Sprout/ProgressBar.html +281 -0
  65. data/rdoc/Sprout/ProgressBarImpl.html +281 -0
  66. data/rdoc/Sprout/ProgressBarManager.html +281 -0
  67. data/rdoc/Sprout/ProgressBarOutputStream.html +281 -0
  68. data/rdoc/Sprout/RDocParser.html +702 -0
  69. data/rdoc/Sprout/RemoteFileLoader.html +537 -0
  70. data/rdoc/Sprout/RemoteFileTarget.html +741 -0
  71. data/rdoc/Sprout/ReversedProgressBar.html +281 -0
  72. data/rdoc/Sprout/RubyFeature.html +324 -0
  73. data/rdoc/Sprout/RubyFeature/ClassMethods.html +821 -0
  74. data/rdoc/Sprout/RubyGenerator.html +576 -0
  75. data/rdoc/Sprout/Specification.html +915 -0
  76. data/rdoc/Sprout/System.html +383 -0
  77. data/rdoc/Sprout/System/BaseSystem.html +1173 -0
  78. data/rdoc/Sprout/System/JavaSystem.html +284 -0
  79. data/rdoc/Sprout/System/OSXSystem.html +419 -0
  80. data/rdoc/Sprout/System/ThreadMock.html +281 -0
  81. data/rdoc/Sprout/System/UnixSystem.html +583 -0
  82. data/rdoc/Sprout/System/VistaSystem.html +367 -0
  83. data/rdoc/Sprout/System/WinNixSystem.html +417 -0
  84. data/rdoc/Sprout/System/WinSystem.html +672 -0
  85. data/rdoc/Sprout/ToolGenerator.html +376 -0
  86. data/rdoc/Sprout/VERSION.html +274 -0
  87. data/rdoc/SproutTestCase.html +279 -0
  88. data/rdoc/String.html +411 -0
  89. data/rdoc/created.rid +61 -0
  90. data/rdoc/index.html +795 -0
  91. data/rdoc/lib/sprout/archive_unpacker_rb.html +56 -0
  92. data/rdoc/lib/sprout/base_rb.html +111 -0
  93. data/rdoc/lib/sprout/concern_rb.html +52 -0
  94. data/rdoc/lib/sprout/dir_rb.html +52 -0
  95. data/rdoc/lib/sprout/errors_rb.html +52 -0
  96. data/rdoc/lib/sprout/executable/boolean_rb.html +52 -0
  97. data/rdoc/lib/sprout/executable/collection_param_rb.html +52 -0
  98. data/rdoc/lib/sprout/executable/file_param_rb.html +52 -0
  99. data/rdoc/lib/sprout/executable/files_rb.html +52 -0
  100. data/rdoc/lib/sprout/executable/number_rb.html +52 -0
  101. data/rdoc/lib/sprout/executable/param_rb.html +52 -0
  102. data/rdoc/lib/sprout/executable/parameter_factory_rb.html +52 -0
  103. data/rdoc/lib/sprout/executable/path_rb.html +52 -0
  104. data/rdoc/lib/sprout/executable/paths_rb.html +52 -0
  105. data/rdoc/lib/sprout/executable/string_param_rb.html +52 -0
  106. data/rdoc/lib/sprout/executable/strings_rb.html +52 -0
  107. data/rdoc/lib/sprout/executable/url_rb.html +52 -0
  108. data/rdoc/lib/sprout/executable/urls_rb.html +52 -0
  109. data/rdoc/lib/sprout/executable_rb.html +78 -0
  110. data/rdoc/lib/sprout/file_target_rb.html +52 -0
  111. data/rdoc/lib/sprout/generator/base_rb.html +54 -0
  112. data/rdoc/lib/sprout/generator/command_rb.html +52 -0
  113. data/rdoc/lib/sprout/generator/directory_manifest_rb.html +52 -0
  114. data/rdoc/lib/sprout/generator/file_manifest_rb.html +52 -0
  115. data/rdoc/lib/sprout/generator/manifest_rb.html +52 -0
  116. data/rdoc/lib/sprout/generator/template_manifest_rb.html +52 -0
  117. data/rdoc/lib/sprout/generators/generator/generator_generator_rb.html +52 -0
  118. data/rdoc/lib/sprout/generators/generator/templates/generator_test_helper_rb.html +64 -0
  119. data/rdoc/lib/sprout/generators/library/library_generator_rb.html +52 -0
  120. data/rdoc/lib/sprout/generators/ruby/ruby_generator_rb.html +52 -0
  121. data/rdoc/lib/sprout/generators/ruby/templates/ruby_base_rb.html +54 -0
  122. data/rdoc/lib/sprout/generators/tool/tool_generator_rb.html +52 -0
  123. data/rdoc/lib/sprout/library_rb.html +52 -0
  124. data/rdoc/lib/sprout/log_rb.html +52 -0
  125. data/rdoc/lib/sprout/platform_rb.html +52 -0
  126. data/rdoc/lib/sprout/process_runner_rb.html +58 -0
  127. data/rdoc/lib/sprout/progress_bar_rb.html +72 -0
  128. data/rdoc/lib/sprout/rdoc_parser_rb.html +54 -0
  129. data/rdoc/lib/sprout/remote_file_loader_rb.html +54 -0
  130. data/rdoc/lib/sprout/remote_file_target_rb.html +52 -0
  131. data/rdoc/lib/sprout/ruby_feature_rb.html +52 -0
  132. data/rdoc/lib/sprout/specification_rb.html +52 -0
  133. data/rdoc/lib/sprout/string_rb.html +52 -0
  134. data/rdoc/lib/sprout/system/base_system_rb.html +52 -0
  135. data/rdoc/lib/sprout/system/java_system_rb.html +52 -0
  136. data/rdoc/lib/sprout/system/osx_system_rb.html +52 -0
  137. data/rdoc/lib/sprout/system/unix_system_rb.html +52 -0
  138. data/rdoc/lib/sprout/system/vista_system_rb.html +52 -0
  139. data/rdoc/lib/sprout/system/win_nix_system_rb.html +52 -0
  140. data/rdoc/lib/sprout/system/win_system_rb.html +52 -0
  141. data/rdoc/lib/sprout/system_rb.html +66 -0
  142. data/rdoc/lib/sprout/test/sprout_test_case_rb.html +57 -0
  143. data/rdoc/lib/sprout/version_rb.html +52 -0
  144. data/rdoc/lib/sprout_rb.html +54 -0
  145. data/rdoc/rdoc.css +706 -0
  146. data/test/fixtures/executable/mxmlc.rb +2 -2
  147. data/test/unit/executable_test.rb +13 -0
  148. data/test/unit/generator_test.rb +25 -2
  149. metadata +144 -3
@@ -0,0 +1,821 @@
1
+ <?xml version="1.0" encoding="utf-8"?>
2
+ <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
3
+ "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
4
+ <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
5
+ <head>
6
+ <meta content="text/html; charset=utf-8" http-equiv="Content-Type" />
7
+
8
+ <title>Module: Sprout::RubyFeature::ClassMethods</title>
9
+
10
+ <link rel="stylesheet" href="../../rdoc.css" type="text/css" media="screen" />
11
+
12
+ <script src="../../js/jquery.js" type="text/javascript"
13
+ charset="utf-8"></script>
14
+ <script src="../../js/thickbox-compressed.js" type="text/javascript"
15
+ charset="utf-8"></script>
16
+ <script src="../../js/quicksearch.js" type="text/javascript"
17
+ charset="utf-8"></script>
18
+ <script src="../../js/darkfish.js" type="text/javascript"
19
+ charset="utf-8"></script>
20
+
21
+ </head>
22
+ <body class="module">
23
+
24
+ <div id="metadata">
25
+ <div id="home-metadata">
26
+ <div id="home-section" class="section">
27
+ <h3 class="section-header">
28
+ <a href="../../index.html">Home</a>
29
+ <a href="../../index.html#classes">Classes</a>
30
+ <a href="../../index.html#methods">Methods</a>
31
+ </h3>
32
+ </div>
33
+ </div>
34
+
35
+ <div id="file-metadata">
36
+ <div id="file-list-section" class="section">
37
+ <h3 class="section-header">In Files</h3>
38
+ <div class="section-body">
39
+ <ul>
40
+
41
+ <li><a href="../../lib/sprout/ruby_feature_rb.html?TB_iframe=true&amp;height=550&amp;width=785"
42
+ class="thickbox" title="lib/sprout/ruby_feature.rb">lib/sprout/ruby_feature.rb</a></li>
43
+
44
+ </ul>
45
+ </div>
46
+ </div>
47
+
48
+
49
+ </div>
50
+
51
+ <div id="class-metadata">
52
+
53
+ <!-- Parent Class -->
54
+
55
+
56
+ <!-- Namespace Contents -->
57
+
58
+
59
+ <!-- Method Quickref -->
60
+
61
+ <div id="method-list-section" class="section">
62
+ <h3 class="section-header">Methods</h3>
63
+ <ul class="link-list">
64
+
65
+ <li><a href="#method-i-clear_entities%21">#clear_entities!</a></li>
66
+
67
+ <li><a href="#method-i-entity_for">#entity_for</a></li>
68
+
69
+ <li><a href="#method-i-load">#load</a></li>
70
+
71
+ <li><a href="#method-i-register">#register</a></li>
72
+
73
+ <li><a href="#method-i-registered_entities">#registered_entities</a></li>
74
+
75
+ <li><a href="#method-i-require_ruby_package">#require_ruby_package</a></li>
76
+
77
+ <li><a href="#method-i-satisfies_environment%3F">#satisfies_environment?</a></li>
78
+
79
+ <li><a href="#method-i-satisfies_name%3F">#satisfies_name?</a></li>
80
+
81
+ <li><a href="#method-i-satisfies_pkg_name%3F">#satisfies_pkg_name?</a></li>
82
+
83
+ <li><a href="#method-i-satisfies_platform%3F">#satisfies_platform?</a></li>
84
+
85
+ <li><a href="#method-i-satisfies_version%3F">#satisfies_version?</a></li>
86
+
87
+ <li><a href="#method-i-update_registered_entities">#update_registered_entities</a></li>
88
+
89
+ <li><a href="#method-i-validate_registration">#validate_registration</a></li>
90
+
91
+ </ul>
92
+ </div>
93
+
94
+
95
+ <!-- Included Modules -->
96
+
97
+ </div>
98
+
99
+ <div id="project-metadata">
100
+
101
+
102
+
103
+ <div id="classindex-section" class="section project-section">
104
+ <h3 class="section-header">Class Index
105
+ <span class="search-toggle"><img src="../../images/find.png"
106
+ height="16" width="16" alt="[+]"
107
+ title="show/hide quicksearch" /></span></h3>
108
+ <form action="#" method="get" accept-charset="utf-8" class="initially-hidden">
109
+ <fieldset>
110
+ <legend>Quicksearch</legend>
111
+ <input type="text" name="quicksearch" value=""
112
+ class="quicksearch-field" />
113
+ </fieldset>
114
+ </form>
115
+
116
+ <ul class="link-list">
117
+
118
+ <li><a href="../../Sprout/ArchiveUnpacker.html">Sprout::ArchiveUnpacker</a></li>
119
+
120
+ <li><a href="../../Sprout/Base.html">Sprout::Base</a></li>
121
+
122
+ <li><a href="../../Sprout/Base/ClassMethods.html">Sprout::Base::ClassMethods</a></li>
123
+
124
+ <li><a href="../../Sprout/Concern.html">Sprout::Concern</a></li>
125
+
126
+ <li><a href="../../Sprout/Errors.html">Sprout::Errors</a></li>
127
+
128
+ <li><a href="../../Sprout/Errors/ArchiveUnpackerError.html">Sprout::Errors::ArchiveUnpackerError</a></li>
129
+
130
+ <li><a href="../../Sprout/Errors/DestinationExistsError.html">Sprout::Errors::DestinationExistsError</a></li>
131
+
132
+ <li><a href="../../Sprout/Errors/DuplicateMemberError.html">Sprout::Errors::DuplicateMemberError</a></li>
133
+
134
+ <li><a href="../../Sprout/Errors/ExecutableError.html">Sprout::Errors::ExecutableError</a></li>
135
+
136
+ <li><a href="../../Sprout/Errors/ExecutableRegistrationError.html">Sprout::Errors::ExecutableRegistrationError</a></li>
137
+
138
+ <li><a href="../../Sprout/Errors/ExecutionError.html">Sprout::Errors::ExecutionError</a></li>
139
+
140
+ <li><a href="../../Sprout/Errors/GeneratorError.html">Sprout::Errors::GeneratorError</a></li>
141
+
142
+ <li><a href="../../Sprout/Errors/InvalidArgumentError.html">Sprout::Errors::InvalidArgumentError</a></li>
143
+
144
+ <li><a href="../../Sprout/Errors/LoadError.html">Sprout::Errors::LoadError</a></li>
145
+
146
+ <li><a href="../../Sprout/Errors/MissingArgumentError.html">Sprout::Errors::MissingArgumentError</a></li>
147
+
148
+ <li><a href="../../Sprout/Errors/MissingExecutableError.html">Sprout::Errors::MissingExecutableError</a></li>
149
+
150
+ <li><a href="../../Sprout/Errors/MissingGeneratorError.html">Sprout::Errors::MissingGeneratorError</a></li>
151
+
152
+ <li><a href="../../Sprout/Errors/MissingTemplateError.html">Sprout::Errors::MissingTemplateError</a></li>
153
+
154
+ <li><a href="../../Sprout/Errors/ProcessRunnerError.html">Sprout::Errors::ProcessRunnerError</a></li>
155
+
156
+ <li><a href="../../Sprout/Errors/RemoteFileLoaderError.html">Sprout::Errors::RemoteFileLoaderError</a></li>
157
+
158
+ <li><a href="../../Sprout/Errors/SproutError.html">Sprout::Errors::SproutError</a></li>
159
+
160
+ <li><a href="../../Sprout/Errors/UnknownArchiveType.html">Sprout::Errors::UnknownArchiveType</a></li>
161
+
162
+ <li><a href="../../Sprout/Errors/UsageError.html">Sprout::Errors::UsageError</a></li>
163
+
164
+ <li><a href="../../Sprout/Errors/ValidationError.html">Sprout::Errors::ValidationError</a></li>
165
+
166
+ <li><a href="../../Sprout/Errors/VersionRequirementNotMetError.html">Sprout::Errors::VersionRequirementNotMetError</a></li>
167
+
168
+ <li><a href="../../Sprout/Executable.html">Sprout::Executable</a></li>
169
+
170
+ <li><a href="../../Sprout/Executable/Boolean.html">Sprout::Executable::Boolean</a></li>
171
+
172
+ <li><a href="../../Sprout/Executable/ClassMethods.html">Sprout::Executable::ClassMethods</a></li>
173
+
174
+ <li><a href="../../Sprout/Executable/CollectionParam.html">Sprout::Executable::CollectionParam</a></li>
175
+
176
+ <li><a href="../../Sprout/Executable/FileParam.html">Sprout::Executable::FileParam</a></li>
177
+
178
+ <li><a href="../../Sprout/Executable/Files.html">Sprout::Executable::Files</a></li>
179
+
180
+ <li><a href="../../Sprout/Executable/InstanceMethods.html">Sprout::Executable::InstanceMethods</a></li>
181
+
182
+ <li><a href="../../Sprout/Executable/Number.html">Sprout::Executable::Number</a></li>
183
+
184
+ <li><a href="../../Sprout/Executable/Param.html">Sprout::Executable::Param</a></li>
185
+
186
+ <li><a href="../../Sprout/Executable/ParameterFactory.html">Sprout::Executable::ParameterFactory</a></li>
187
+
188
+ <li><a href="../../Sprout/Executable/Path.html">Sprout::Executable::Path</a></li>
189
+
190
+ <li><a href="../../Sprout/Executable/Paths.html">Sprout::Executable::Paths</a></li>
191
+
192
+ <li><a href="../../Sprout/Executable/StringParam.html">Sprout::Executable::StringParam</a></li>
193
+
194
+ <li><a href="../../Sprout/Executable/Strings.html">Sprout::Executable::Strings</a></li>
195
+
196
+ <li><a href="../../Sprout/Executable/Url.html">Sprout::Executable::Url</a></li>
197
+
198
+ <li><a href="../../Sprout/Executable/Urls.html">Sprout::Executable::Urls</a></li>
199
+
200
+ <li><a href="../../Sprout/FileTarget.html">Sprout::FileTarget</a></li>
201
+
202
+ <li><a href="../../Sprout/Generator.html">Sprout::Generator</a></li>
203
+
204
+ <li><a href="../../Sprout/Generator/Base.html">Sprout::Generator::Base</a></li>
205
+
206
+ <li><a href="../../Sprout/Generator/Command.html">Sprout::Generator::Command</a></li>
207
+
208
+ <li><a href="../../Sprout/Generator/DirectoryManifest.html">Sprout::Generator::DirectoryManifest</a></li>
209
+
210
+ <li><a href="../../Sprout/Generator/FileManifest.html">Sprout::Generator::FileManifest</a></li>
211
+
212
+ <li><a href="../../Sprout/Generator/Manifest.html">Sprout::Generator::Manifest</a></li>
213
+
214
+ <li><a href="../../Sprout/Generator/TemplateManifest.html">Sprout::Generator::TemplateManifest</a></li>
215
+
216
+ <li><a href="../../Sprout/GeneratorGenerator.html">Sprout::GeneratorGenerator</a></li>
217
+
218
+ <li><a href="../../Sprout/Library.html">Sprout::Library</a></li>
219
+
220
+ <li><a href="../../Sprout/LibraryGenerator.html">Sprout::LibraryGenerator</a></li>
221
+
222
+ <li><a href="../../Sprout/Platform.html">Sprout::Platform</a></li>
223
+
224
+ <li><a href="../../Sprout/ProcessRunner.html">Sprout::ProcessRunner</a></li>
225
+
226
+ <li><a href="../../Sprout/RDocParser.html">Sprout::RDocParser</a></li>
227
+
228
+ <li><a href="../../Sprout/RemoteFileLoader.html">Sprout::RemoteFileLoader</a></li>
229
+
230
+ <li><a href="../../Sprout/RemoteFileTarget.html">Sprout::RemoteFileTarget</a></li>
231
+
232
+ <li><a href="../../Sprout/RubyFeature.html">Sprout::RubyFeature</a></li>
233
+
234
+ <li><a href="../../Sprout/RubyFeature/ClassMethods.html">Sprout::RubyFeature::ClassMethods</a></li>
235
+
236
+ <li><a href="../../Sprout/RubyGenerator.html">Sprout::RubyGenerator</a></li>
237
+
238
+ <li><a href="../../Sprout/Specification.html">Sprout::Specification</a></li>
239
+
240
+ <li><a href="../../Sprout/System.html">Sprout::System</a></li>
241
+
242
+ <li><a href="../../Sprout/System/BaseSystem.html">Sprout::System::BaseSystem</a></li>
243
+
244
+ <li><a href="../../Sprout/System/JavaSystem.html">Sprout::System::JavaSystem</a></li>
245
+
246
+ <li><a href="../../Sprout/System/OSXSystem.html">Sprout::System::OSXSystem</a></li>
247
+
248
+ <li><a href="../../Sprout/System/UnixSystem.html">Sprout::System::UnixSystem</a></li>
249
+
250
+ <li><a href="../../Sprout/System/VistaSystem.html">Sprout::System::VistaSystem</a></li>
251
+
252
+ <li><a href="../../Sprout/System/WinNixSystem.html">Sprout::System::WinNixSystem</a></li>
253
+
254
+ <li><a href="../../Sprout/System/WinSystem.html">Sprout::System::WinSystem</a></li>
255
+
256
+ <li><a href="../../Sprout/ToolGenerator.html">Sprout::ToolGenerator</a></li>
257
+
258
+ <li><a href="../../<.html"><</a></li>
259
+
260
+ <li><a href="../../Dir.html">Dir</a></li>
261
+
262
+ <li><a href="../../Object.html">Object</a></li>
263
+
264
+ <li><a href="../../String.html">String</a></li>
265
+
266
+ </ul>
267
+ <div id="no-class-search-results" style="display: none;">No matching classes.</div>
268
+ </div>
269
+
270
+
271
+ </div>
272
+ </div>
273
+
274
+ <div id="documentation">
275
+ <h1 class="module">Sprout::RubyFeature::ClassMethods</h1>
276
+
277
+ <div id="description">
278
+
279
+ </div>
280
+
281
+ <!-- Constants -->
282
+
283
+
284
+ <!-- Attributes -->
285
+
286
+
287
+ <!-- Methods -->
288
+
289
+ <div id="public-instance-method-details" class="method-section section">
290
+ <h3 class="section-header">Public Instance Methods</h3>
291
+
292
+
293
+ <div id="clear-entities--method" class="method-detail ">
294
+ <a name="method-i-clear_entities%21"></a>
295
+
296
+ <div class="method-heading">
297
+
298
+ <span class="method-name">clear_entities!</span><span
299
+ class="method-args">()</span>
300
+ <span class="method-click-advice">click to toggle source</span>
301
+
302
+ </div>
303
+
304
+ <div class="method-description">
305
+
306
+
307
+
308
+
309
+
310
+ <div class="method-source-code"
311
+ id="clear-entities--source">
312
+ <pre>
313
+ <span class="ruby-comment cmt"># File lib/sprout/ruby_feature.rb, line 82</span>
314
+ 82: <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">clear_entities!</span>
315
+ 83: <span class="ruby-ivar">@registered_entities</span> = []
316
+ 84: <span class="ruby-keyword kw">end</span></pre>
317
+ </div>
318
+
319
+ </div>
320
+
321
+
322
+
323
+
324
+ </div>
325
+
326
+
327
+ <div id="load-method" class="method-detail ">
328
+ <a name="method-i-load"></a>
329
+
330
+ <div class="method-heading">
331
+
332
+ <span class="method-name">load</span><span
333
+ class="method-args">(name_or_names, pkg_name=nil, version_requirement=nil)</span>
334
+ <span class="method-click-advice">click to toggle source</span>
335
+
336
+ </div>
337
+
338
+ <div class="method-description">
339
+
340
+ <p>
341
+ Load a feature by name.
342
+ </p>
343
+
344
+
345
+
346
+ <div class="method-source-code"
347
+ id="load-source">
348
+ <pre>
349
+ <span class="ruby-comment cmt"># File lib/sprout/ruby_feature.rb, line 56</span>
350
+ 56: <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">load</span> <span class="ruby-identifier">name_or_names</span>, <span class="ruby-identifier">pkg_name</span>=<span class="ruby-keyword kw">nil</span>, <span class="ruby-identifier">version_requirement</span>=<span class="ruby-keyword kw">nil</span>
351
+ 57: <span class="ruby-identifier">entity</span> = <span class="ruby-identifier">entity_for</span> <span class="ruby-identifier">name_or_names</span>, <span class="ruby-identifier">pkg_name</span>, <span class="ruby-identifier">version_requirement</span>
352
+ 58: <span class="ruby-keyword kw">if</span>(<span class="ruby-identifier">entity</span>.<span class="ruby-identifier">nil?</span>)
353
+ 59: <span class="ruby-comment cmt"># Try to require the pkg_name:</span>
354
+ 60: <span class="ruby-identifier">require_ruby_package</span> <span class="ruby-identifier">pkg_name</span> <span class="ruby-keyword kw">unless</span> <span class="ruby-identifier">pkg_name</span>.<span class="ruby-identifier">nil?</span>
355
+ 61: <span class="ruby-comment cmt"># Update any entities that registered from our require:</span>
356
+ 62: <span class="ruby-identifier">update_registered_entities</span>
357
+ 63: <span class="ruby-comment cmt"># search for the requested entity:</span>
358
+ 64: <span class="ruby-identifier">entity</span> = <span class="ruby-identifier">entity_for</span> <span class="ruby-identifier">name_or_names</span>, <span class="ruby-identifier">pkg_name</span>, <span class="ruby-identifier">version_requirement</span>
359
+ 65: <span class="ruby-keyword kw">end</span>
360
+ 66:
361
+ 67: <span class="ruby-keyword kw">if</span>(<span class="ruby-identifier">entity</span>.<span class="ruby-identifier">nil?</span>)
362
+ 68: <span class="ruby-identifier">message</span> = <span class="ruby-node">&quot;The requested entity: (#{name_or_names}) with pkg_name: (#{pkg_name}) and version: &quot;</span>
363
+ 69: <span class="ruby-identifier">message</span> <span class="ruby-operator">&lt;&lt;</span> <span class="ruby-node">&quot;(#{version_requirement}) does not appear to be loaded.&quot;</span>
364
+ 70: <span class="ruby-identifier">message</span> <span class="ruby-operator">&lt;&lt;</span> <span class="ruby-value str">&quot;\n&quot;</span>
365
+ 71: <span class="ruby-identifier">message</span> <span class="ruby-operator">&lt;&lt;</span> <span class="ruby-node">&quot;We did find (#{registered_entities.size}) registered entities in that package:\n\n&quot;</span>
366
+ 72: <span class="ruby-identifier">registered_entities</span>.<span class="ruby-identifier">each</span> <span class="ruby-keyword kw">do</span> <span class="ruby-operator">|</span><span class="ruby-identifier">other</span><span class="ruby-operator">|</span>
367
+ 73: <span class="ruby-identifier">message</span> <span class="ruby-operator">&lt;&lt;</span> <span class="ruby-node">&quot;&gt;&gt; name: (#{other.name}) pkg_name: (#{other.pkg_name}) pkg_version: (#{other.pkg_version})\n&quot;</span>
368
+ 74: <span class="ruby-keyword kw">end</span>
369
+ 75: <span class="ruby-identifier">message</span> <span class="ruby-operator">&lt;&lt;</span> <span class="ruby-value str">&quot;\n\nYou may need to update your Gemfile and run 'bundle install' &quot;</span>
370
+ 76: <span class="ruby-identifier">message</span> <span class="ruby-operator">&lt;&lt;</span> <span class="ruby-value str">&quot;to update your local gems.\n\n&quot;</span>
371
+ 77: <span class="ruby-identifier">raise</span> <span class="ruby-constant">Sprout</span><span class="ruby-operator">::</span><span class="ruby-constant">Errors</span><span class="ruby-operator">::</span><span class="ruby-constant">LoadError</span>.<span class="ruby-identifier">new</span> <span class="ruby-identifier">message</span>
372
+ 78: <span class="ruby-keyword kw">end</span>
373
+ 79: <span class="ruby-identifier">entity</span>
374
+ 80: <span class="ruby-keyword kw">end</span></pre>
375
+ </div>
376
+
377
+ </div>
378
+
379
+
380
+
381
+
382
+ </div>
383
+
384
+
385
+ <div id="register-method" class="method-detail ">
386
+ <a name="method-i-register"></a>
387
+
388
+ <div class="method-heading">
389
+
390
+ <span class="method-name">register</span><span
391
+ class="method-args">(entity)</span>
392
+ <span class="method-click-advice">click to toggle source</span>
393
+
394
+ </div>
395
+
396
+ <div class="method-description">
397
+
398
+ <p>
399
+ Register a new feature for future lookups
400
+ </p>
401
+
402
+
403
+
404
+ <div class="method-source-code"
405
+ id="register-source">
406
+ <pre>
407
+ <span class="ruby-comment cmt"># File lib/sprout/ruby_feature.rb, line 48</span>
408
+ 48: <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">register</span> <span class="ruby-identifier">entity</span>
409
+ 49: <span class="ruby-identifier">validate_registration</span> <span class="ruby-identifier">entity</span>
410
+ 50: <span class="ruby-identifier">registered_entities</span>.<span class="ruby-identifier">unshift</span> <span class="ruby-identifier">entity</span>
411
+ 51: <span class="ruby-identifier">entity</span>
412
+ 52: <span class="ruby-keyword kw">end</span></pre>
413
+ </div>
414
+
415
+ </div>
416
+
417
+
418
+
419
+
420
+ </div>
421
+
422
+
423
+ </div>
424
+
425
+ <div id="protected-instance-method-details" class="method-section section">
426
+ <h3 class="section-header">Protected Instance Methods</h3>
427
+
428
+
429
+ <div id="entity-for-method" class="method-detail ">
430
+ <a name="method-i-entity_for"></a>
431
+
432
+ <div class="method-heading">
433
+
434
+ <span class="method-name">entity_for</span><span
435
+ class="method-args">(name_or_names, pkg_name, version_requirement)</span>
436
+ <span class="method-click-advice">click to toggle source</span>
437
+
438
+ </div>
439
+
440
+ <div class="method-description">
441
+
442
+
443
+
444
+
445
+
446
+ <div class="method-source-code"
447
+ id="entity-for-source">
448
+ <pre>
449
+ <span class="ruby-comment cmt"># File lib/sprout/ruby_feature.rb, line 100</span>
450
+ 100: <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">entity_for</span> <span class="ruby-identifier">name_or_names</span>, <span class="ruby-identifier">pkg_name</span>, <span class="ruby-identifier">version_requirement</span>
451
+ 101: <span class="ruby-comment cmt">#puts &quot;+++++++++++++++++++++++++++&quot;</span>
452
+ 102: <span class="ruby-comment cmt">#puts &quot;&gt;&gt; entity_for #{name} pkg_name: #{pkg_name} version: #{version_requirement}&quot;</span>
453
+ 103: <span class="ruby-comment cmt">#registered_entities.each do |entity|</span>
454
+ 104: <span class="ruby-comment cmt">#puts &quot;&gt;&gt; entity: #{entity.name} pkg_name: #{entity.pkg_name} version: #{entity.pkg_version}&quot;</span>
455
+ 105: <span class="ruby-comment cmt">#end</span>
456
+ 106: <span class="ruby-identifier">registered_entities</span>.<span class="ruby-identifier">reverse</span>.<span class="ruby-identifier">select</span> <span class="ruby-keyword kw">do</span> <span class="ruby-operator">|</span><span class="ruby-identifier">entity</span><span class="ruby-operator">|</span>
457
+ 107: <span class="ruby-identifier">satisfies_name?</span>(<span class="ruby-identifier">entity</span>, <span class="ruby-identifier">name_or_names</span>) <span class="ruby-operator">&amp;&amp;</span>
458
+ 108: <span class="ruby-identifier">satisfies_platform?</span>(<span class="ruby-identifier">entity</span>) <span class="ruby-operator">&amp;&amp;</span>
459
+ 109: <span class="ruby-identifier">satisfies_pkg_name?</span>(<span class="ruby-identifier">entity</span>, <span class="ruby-identifier">pkg_name</span>) <span class="ruby-operator">&amp;&amp;</span>
460
+ 110: <span class="ruby-identifier">satisfies_version?</span>(<span class="ruby-identifier">entity</span>, <span class="ruby-identifier">version_requirement</span>)
461
+ 111: <span class="ruby-keyword kw">end</span>.<span class="ruby-identifier">first</span>
462
+ 112: <span class="ruby-keyword kw">end</span></pre>
463
+ </div>
464
+
465
+ </div>
466
+
467
+
468
+
469
+
470
+ </div>
471
+
472
+
473
+ <div id="registered-entities-method" class="method-detail ">
474
+ <a name="method-i-registered_entities"></a>
475
+
476
+ <div class="method-heading">
477
+
478
+ <span class="method-name">registered_entities</span><span
479
+ class="method-args">()</span>
480
+ <span class="method-click-advice">click to toggle source</span>
481
+
482
+ </div>
483
+
484
+ <div class="method-description">
485
+
486
+ <p>
487
+ An entity has the following parameters: name pkg_name pkg_version platform
488
+ </p>
489
+
490
+
491
+
492
+ <div class="method-source-code"
493
+ id="registered-entities-source">
494
+ <pre>
495
+ <span class="ruby-comment cmt"># File lib/sprout/ruby_feature.rb, line 161</span>
496
+ 161: <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">registered_entities</span>
497
+ 162: <span class="ruby-ivar">@registered_entities</span> <span class="ruby-operator">||=</span> []
498
+ 163: <span class="ruby-keyword kw">end</span></pre>
499
+ </div>
500
+
501
+ </div>
502
+
503
+
504
+
505
+
506
+ </div>
507
+
508
+
509
+ <div id="require-ruby-package-method" class="method-detail ">
510
+ <a name="method-i-require_ruby_package"></a>
511
+
512
+ <div class="method-heading">
513
+
514
+ <span class="method-name">require_ruby_package</span><span
515
+ class="method-args">(name)</span>
516
+ <span class="method-click-advice">click to toggle source</span>
517
+
518
+ </div>
519
+
520
+ <div class="method-description">
521
+
522
+
523
+
524
+
525
+
526
+ <div class="method-source-code"
527
+ id="require-ruby-package-source">
528
+ <pre>
529
+ <span class="ruby-comment cmt"># File lib/sprout/ruby_feature.rb, line 146</span>
530
+ 146: <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">require_ruby_package</span> <span class="ruby-identifier">name</span>
531
+ 147: <span class="ruby-keyword kw">begin</span>
532
+ 148: <span class="ruby-identifier">require</span> <span class="ruby-identifier">name</span>
533
+ 149: <span class="ruby-keyword kw">rescue</span> <span class="ruby-constant">LoadError</span> =<span class="ruby-operator">&gt;</span> <span class="ruby-identifier">e</span>
534
+ 150: <span class="ruby-identifier">raise</span> <span class="ruby-constant">Sprout</span><span class="ruby-operator">::</span><span class="ruby-constant">Errors</span><span class="ruby-operator">::</span><span class="ruby-constant">LoadError</span>.<span class="ruby-identifier">new</span> <span class="ruby-node">&quot;Could not load the required file (#{name}) - Maybe you need to run 'gem install #{name}' or maybe 'bundle install'?&quot;</span>
535
+ 151: <span class="ruby-keyword kw">end</span>
536
+ 152: <span class="ruby-keyword kw">end</span></pre>
537
+ </div>
538
+
539
+ </div>
540
+
541
+
542
+
543
+
544
+ </div>
545
+
546
+
547
+ <div id="satisfies-environment--method" class="method-detail ">
548
+ <a name="method-i-satisfies_environment%3F"></a>
549
+
550
+ <div class="method-heading">
551
+
552
+ <span class="method-name">satisfies_environment?</span><span
553
+ class="method-args">(entity, environment)</span>
554
+ <span class="method-click-advice">click to toggle source</span>
555
+
556
+ </div>
557
+
558
+ <div class="method-description">
559
+
560
+
561
+
562
+
563
+
564
+ <div class="method-source-code"
565
+ id="satisfies-environment--source">
566
+ <pre>
567
+ <span class="ruby-comment cmt"># File lib/sprout/ruby_feature.rb, line 114</span>
568
+ 114: <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">satisfies_environment?</span> <span class="ruby-identifier">entity</span>, <span class="ruby-identifier">environment</span>
569
+ 115: <span class="ruby-comment cmt">#puts &quot;&gt;&gt; env: #{entity.environment} vs. #{environment}&quot;</span>
570
+ 116: <span class="ruby-identifier">environment</span>.<span class="ruby-identifier">nil?</span> <span class="ruby-operator">||</span> <span class="ruby-operator">!</span><span class="ruby-identifier">entity</span>.<span class="ruby-identifier">respond_to?</span>(<span class="ruby-value">:environment</span>) <span class="ruby-operator">||</span> <span class="ruby-identifier">entity</span>.<span class="ruby-identifier">environment</span>.<span class="ruby-identifier">to_s</span> <span class="ruby-operator">==</span> <span class="ruby-identifier">environment</span>.<span class="ruby-identifier">to_s</span>
571
+ 117: <span class="ruby-keyword kw">end</span></pre>
572
+ </div>
573
+
574
+ </div>
575
+
576
+
577
+
578
+
579
+ </div>
580
+
581
+
582
+ <div id="satisfies-name--method" class="method-detail ">
583
+ <a name="method-i-satisfies_name%3F"></a>
584
+
585
+ <div class="method-heading">
586
+
587
+ <span class="method-name">satisfies_name?</span><span
588
+ class="method-args">(entity, expected)</span>
589
+ <span class="method-click-advice">click to toggle source</span>
590
+
591
+ </div>
592
+
593
+ <div class="method-description">
594
+
595
+
596
+
597
+
598
+
599
+ <div class="method-source-code"
600
+ id="satisfies-name--source">
601
+ <pre>
602
+ <span class="ruby-comment cmt"># File lib/sprout/ruby_feature.rb, line 124</span>
603
+ 124: <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">satisfies_name?</span> <span class="ruby-identifier">entity</span>, <span class="ruby-identifier">expected</span>
604
+ 125: <span class="ruby-comment cmt">#puts &quot;&gt;&gt; name: #{entity.name} vs. #{expected}&quot;</span>
605
+ 126: <span class="ruby-keyword kw">return</span> <span class="ruby-keyword kw">true</span> <span class="ruby-keyword kw">if</span> <span class="ruby-identifier">expected</span>.<span class="ruby-identifier">nil?</span> <span class="ruby-operator">||</span> <span class="ruby-operator">!</span><span class="ruby-identifier">entity</span>.<span class="ruby-identifier">respond_to?</span>(<span class="ruby-value">:name</span>)
606
+ 127: <span class="ruby-keyword kw">if</span> <span class="ruby-identifier">expected</span>.<span class="ruby-identifier">is_a?</span>(<span class="ruby-constant">Array</span>)
607
+ 128: <span class="ruby-keyword kw">return</span> <span class="ruby-identifier">expected</span>.<span class="ruby-identifier">include?</span> <span class="ruby-identifier">entity</span>.<span class="ruby-identifier">name</span>
608
+ 129: <span class="ruby-keyword kw">end</span>
609
+ 130: <span class="ruby-keyword kw">return</span> <span class="ruby-identifier">expected</span>.<span class="ruby-identifier">to_s</span> <span class="ruby-operator">==</span> <span class="ruby-identifier">entity</span>.<span class="ruby-identifier">name</span>.<span class="ruby-identifier">to_s</span>
610
+ 131: <span class="ruby-keyword kw">end</span></pre>
611
+ </div>
612
+
613
+ </div>
614
+
615
+
616
+
617
+
618
+ </div>
619
+
620
+
621
+ <div id="satisfies-pkg-name--method" class="method-detail ">
622
+ <a name="method-i-satisfies_pkg_name%3F"></a>
623
+
624
+ <div class="method-heading">
625
+
626
+ <span class="method-name">satisfies_pkg_name?</span><span
627
+ class="method-args">(entity, expected)</span>
628
+ <span class="method-click-advice">click to toggle source</span>
629
+
630
+ </div>
631
+
632
+ <div class="method-description">
633
+
634
+
635
+
636
+
637
+
638
+ <div class="method-source-code"
639
+ id="satisfies-pkg-name--source">
640
+ <pre>
641
+ <span class="ruby-comment cmt"># File lib/sprout/ruby_feature.rb, line 119</span>
642
+ 119: <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">satisfies_pkg_name?</span> <span class="ruby-identifier">entity</span>, <span class="ruby-identifier">expected</span>
643
+ 120: <span class="ruby-comment cmt">#puts &quot;&gt;&gt; pkg_name: #{entity.pkg_name} vs. #{expected}&quot;</span>
644
+ 121: <span class="ruby-identifier">expected</span>.<span class="ruby-identifier">nil?</span> <span class="ruby-operator">||</span> <span class="ruby-operator">!</span><span class="ruby-identifier">entity</span>.<span class="ruby-identifier">respond_to?</span>(<span class="ruby-value">:pkg_name</span>) <span class="ruby-operator">||</span> <span class="ruby-identifier">entity</span>.<span class="ruby-identifier">pkg_name</span>.<span class="ruby-identifier">to_s</span> <span class="ruby-operator">==</span> <span class="ruby-identifier">expected</span>.<span class="ruby-identifier">to_s</span>
645
+ 122: <span class="ruby-keyword kw">end</span></pre>
646
+ </div>
647
+
648
+ </div>
649
+
650
+
651
+
652
+
653
+ </div>
654
+
655
+
656
+ <div id="satisfies-platform--method" class="method-detail ">
657
+ <a name="method-i-satisfies_platform%3F"></a>
658
+
659
+ <div class="method-heading">
660
+
661
+ <span class="method-name">satisfies_platform?</span><span
662
+ class="method-args">(entity)</span>
663
+ <span class="method-click-advice">click to toggle source</span>
664
+
665
+ </div>
666
+
667
+ <div class="method-description">
668
+
669
+
670
+
671
+
672
+
673
+ <div class="method-source-code"
674
+ id="satisfies-platform--source">
675
+ <pre>
676
+ <span class="ruby-comment cmt"># File lib/sprout/ruby_feature.rb, line 133</span>
677
+ 133: <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">satisfies_platform?</span> <span class="ruby-identifier">entity</span>
678
+ 134: <span class="ruby-comment cmt">#puts&quot;&gt;&gt; satisfies platform?&quot;</span>
679
+ 135: <span class="ruby-keyword kw">return</span> <span class="ruby-keyword kw">true</span> <span class="ruby-keyword kw">if</span> <span class="ruby-operator">!</span><span class="ruby-identifier">entity</span>.<span class="ruby-identifier">respond_to?</span>(<span class="ruby-value">:platform</span>) <span class="ruby-operator">||</span> <span class="ruby-identifier">entity</span>.<span class="ruby-identifier">platform</span>.<span class="ruby-identifier">nil?</span>
680
+ 136: <span class="ruby-comment cmt">#puts &quot;&gt;&gt; platform: #{entity.platform}&quot;</span>
681
+ 137: <span class="ruby-constant">Sprout</span>.<span class="ruby-identifier">current_system</span>.<span class="ruby-identifier">can_execute?</span>(<span class="ruby-identifier">entity</span>.<span class="ruby-identifier">platform</span>)
682
+ 138: <span class="ruby-keyword kw">end</span></pre>
683
+ </div>
684
+
685
+ </div>
686
+
687
+
688
+
689
+
690
+ </div>
691
+
692
+
693
+ <div id="satisfies-version--method" class="method-detail ">
694
+ <a name="method-i-satisfies_version%3F"></a>
695
+
696
+ <div class="method-heading">
697
+
698
+ <span class="method-name">satisfies_version?</span><span
699
+ class="method-args">(entity, version_requirement=nil)</span>
700
+ <span class="method-click-advice">click to toggle source</span>
701
+
702
+ </div>
703
+
704
+ <div class="method-description">
705
+
706
+
707
+
708
+
709
+
710
+ <div class="method-source-code"
711
+ id="satisfies-version--source">
712
+ <pre>
713
+ <span class="ruby-comment cmt"># File lib/sprout/ruby_feature.rb, line 140</span>
714
+ 140: <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">satisfies_version?</span> <span class="ruby-identifier">entity</span>, <span class="ruby-identifier">version_requirement</span>=<span class="ruby-keyword kw">nil</span>
715
+ 141: <span class="ruby-keyword kw">return</span> <span class="ruby-keyword kw">true</span> <span class="ruby-keyword kw">if</span> <span class="ruby-identifier">version_requirement</span>.<span class="ruby-identifier">nil?</span>
716
+ 142: <span class="ruby-identifier">req_version</span> = <span class="ruby-constant">Gem</span><span class="ruby-operator">::</span><span class="ruby-constant">Requirement</span>.<span class="ruby-identifier">create</span> <span class="ruby-identifier">version_requirement</span>
717
+ 143: <span class="ruby-identifier">req_version</span>.<span class="ruby-identifier">satisfied_by?</span>(<span class="ruby-constant">Gem</span><span class="ruby-operator">::</span><span class="ruby-constant">Version</span>.<span class="ruby-identifier">create</span>(<span class="ruby-identifier">entity</span>.<span class="ruby-identifier">pkg_version</span>))
718
+ 144: <span class="ruby-keyword kw">end</span></pre>
719
+ </div>
720
+
721
+ </div>
722
+
723
+
724
+
725
+
726
+ </div>
727
+
728
+
729
+ <div id="update-registered-entities-method" class="method-detail ">
730
+ <a name="method-i-update_registered_entities"></a>
731
+
732
+ <div class="method-heading">
733
+
734
+ <span class="method-name">update_registered_entities</span><span
735
+ class="method-args">()</span>
736
+ <span class="method-click-advice">click to toggle source</span>
737
+
738
+ </div>
739
+
740
+ <div class="method-description">
741
+
742
+ <p>
743
+ Used by the <a href="../Generator/Base.html">Generator::Base</a> to update
744
+ inputs from empty class definitions to instances..
745
+ </p>
746
+
747
+
748
+
749
+ <div class="method-source-code"
750
+ id="update-registered-entities-source">
751
+ <pre>
752
+ <span class="ruby-comment cmt"># File lib/sprout/ruby_feature.rb, line 97</span>
753
+ 97: <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">update_registered_entities</span>
754
+ 98: <span class="ruby-keyword kw">end</span></pre>
755
+ </div>
756
+
757
+ </div>
758
+
759
+
760
+
761
+
762
+ </div>
763
+
764
+
765
+ <div id="validate-registration-method" class="method-detail ">
766
+ <a name="method-i-validate_registration"></a>
767
+
768
+ <div class="method-heading">
769
+
770
+ <span class="method-name">validate_registration</span><span
771
+ class="method-args">(entity)</span>
772
+ <span class="method-click-advice">click to toggle source</span>
773
+
774
+ </div>
775
+
776
+ <div class="method-description">
777
+
778
+
779
+
780
+
781
+
782
+ <div class="method-source-code"
783
+ id="validate-registration-source">
784
+ <pre>
785
+ <span class="ruby-comment cmt"># File lib/sprout/ruby_feature.rb, line 88</span>
786
+ 88: <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">validate_registration</span> <span class="ruby-identifier">entity</span>
787
+ 89: <span class="ruby-keyword kw">if</span>(<span class="ruby-operator">!</span><span class="ruby-identifier">entity</span>.<span class="ruby-identifier">respond_to?</span>(<span class="ruby-value">:name</span>) <span class="ruby-operator">||</span> <span class="ruby-identifier">entity</span>.<span class="ruby-identifier">name</span>.<span class="ruby-identifier">nil?</span>)
788
+ 90: <span class="ruby-identifier">raise</span> <span class="ruby-constant">Sprout</span><span class="ruby-operator">::</span><span class="ruby-constant">Errors</span><span class="ruby-operator">::</span><span class="ruby-constant">UsageError</span>.<span class="ruby-identifier">new</span> <span class="ruby-value str">&quot;Cannot register a RubyFeature without a 'name' getter&quot;</span>
789
+ 91: <span class="ruby-keyword kw">end</span>
790
+ 92: <span class="ruby-keyword kw">end</span></pre>
791
+ </div>
792
+
793
+ </div>
794
+
795
+
796
+
797
+
798
+ </div>
799
+
800
+
801
+ </div>
802
+
803
+
804
+ </div>
805
+
806
+
807
+ <div id="rdoc-debugging-section-dump" class="debugging-section">
808
+
809
+ <p>Disabled; run with --debug to generate this.</p>
810
+
811
+ </div>
812
+
813
+ <div id="validator-badges">
814
+ <p><small><a href="http://validator.w3.org/check/referer">[Validate]</a></small></p>
815
+ <p><small>Generated with the <a href="http://deveiate.org/projects/Darkfish-Rdoc/">Darkfish
816
+ Rdoc Generator</a> 1.1.6</small>.</p>
817
+ </div>
818
+
819
+ </body>
820
+ </html>
821
+