sprout 1.0.13.pre → 1.0.14.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.
- data/lib/sprout/version.rb +1 -1
- data/sprout-1.0.13.pre.gem +0 -0
- data/sprout.gemspec +1 -1
- metadata +3 -146
- data/POSTINSTALL.rdoc +0 -28
- data/lib/sprout/rdoc_parser.rb +0 -91
- data/rdoc/<.html +0 -274
- data/rdoc/Dir.html +0 -387
- data/rdoc/Object.html +0 -344
- data/rdoc/Sprout.html +0 -440
- data/rdoc/Sprout/ArchiveUnpacker.html +0 -1045
- data/rdoc/Sprout/Base.html +0 -283
- data/rdoc/Sprout/Base/ClassMethods.html +0 -474
- data/rdoc/Sprout/Concern.html +0 -415
- data/rdoc/Sprout/Errors.html +0 -324
- data/rdoc/Sprout/Errors/ArchiveUnpackerError.html +0 -284
- data/rdoc/Sprout/Errors/DestinationExistsError.html +0 -286
- data/rdoc/Sprout/Errors/DuplicateMemberError.html +0 -284
- data/rdoc/Sprout/Errors/ExecutableError.html +0 -285
- data/rdoc/Sprout/Errors/ExecutableRegistrationError.html +0 -284
- data/rdoc/Sprout/Errors/ExecutionError.html +0 -284
- data/rdoc/Sprout/Errors/GeneratorError.html +0 -284
- data/rdoc/Sprout/Errors/InvalidArgumentError.html +0 -284
- data/rdoc/Sprout/Errors/LoadError.html +0 -284
- data/rdoc/Sprout/Errors/MissingArgumentError.html +0 -284
- data/rdoc/Sprout/Errors/MissingExecutableError.html +0 -284
- data/rdoc/Sprout/Errors/MissingGeneratorError.html +0 -285
- data/rdoc/Sprout/Errors/MissingTemplateError.html +0 -285
- data/rdoc/Sprout/Errors/ProcessRunnerError.html +0 -284
- data/rdoc/Sprout/Errors/RemoteFileLoaderError.html +0 -284
- data/rdoc/Sprout/Errors/SproutError.html +0 -284
- data/rdoc/Sprout/Errors/UnknownArchiveType.html +0 -285
- data/rdoc/Sprout/Errors/UsageError.html +0 -284
- data/rdoc/Sprout/Errors/ValidationError.html +0 -284
- data/rdoc/Sprout/Errors/VersionRequirementNotMetError.html +0 -284
- data/rdoc/Sprout/Executable.html +0 -549
- data/rdoc/Sprout/Executable/Boolean.html +0 -445
- data/rdoc/Sprout/Executable/ClassMethods.html +0 -713
- data/rdoc/Sprout/Executable/CollectionParam.html +0 -501
- data/rdoc/Sprout/Executable/FileParam.html +0 -512
- data/rdoc/Sprout/Executable/Files.html +0 -385
- data/rdoc/Sprout/Executable/InstanceMethods.html +0 -1597
- data/rdoc/Sprout/Executable/Number.html +0 -284
- data/rdoc/Sprout/Executable/Param.html +0 -1660
- data/rdoc/Sprout/Executable/ParameterFactory.html +0 -345
- data/rdoc/Sprout/Executable/Path.html +0 -339
- data/rdoc/Sprout/Executable/Paths.html +0 -339
- data/rdoc/Sprout/Executable/StringParam.html +0 -333
- data/rdoc/Sprout/Executable/Strings.html +0 -295
- data/rdoc/Sprout/Executable/Url.html +0 -284
- data/rdoc/Sprout/Executable/Urls.html +0 -284
- data/rdoc/Sprout/FileTarget.html +0 -660
- data/rdoc/Sprout/Generator.html +0 -643
- data/rdoc/Sprout/Generator/Base.html +0 -1143
- data/rdoc/Sprout/Generator/Command.html +0 -604
- data/rdoc/Sprout/Generator/DirectoryManifest.html +0 -561
- data/rdoc/Sprout/Generator/FileManifest.html +0 -545
- data/rdoc/Sprout/Generator/Manifest.html +0 -387
- data/rdoc/Sprout/Generator/TemplateManifest.html +0 -331
- data/rdoc/Sprout/GeneratorGenerator.html +0 -358
- data/rdoc/Sprout/Library.html +0 -646
- data/rdoc/Sprout/LibraryGenerator.html +0 -368
- data/rdoc/Sprout/Log.html +0 -281
- data/rdoc/Sprout/Platform.html +0 -610
- data/rdoc/Sprout/ProcessRunner.html +0 -1145
- data/rdoc/Sprout/ProgressBar.html +0 -281
- data/rdoc/Sprout/ProgressBarImpl.html +0 -281
- data/rdoc/Sprout/ProgressBarManager.html +0 -281
- data/rdoc/Sprout/ProgressBarOutputStream.html +0 -281
- data/rdoc/Sprout/RDocParser.html +0 -702
- data/rdoc/Sprout/RemoteFileLoader.html +0 -537
- data/rdoc/Sprout/RemoteFileTarget.html +0 -741
- data/rdoc/Sprout/ReversedProgressBar.html +0 -281
- data/rdoc/Sprout/RubyFeature.html +0 -324
- data/rdoc/Sprout/RubyFeature/ClassMethods.html +0 -821
- data/rdoc/Sprout/RubyGenerator.html +0 -576
- data/rdoc/Sprout/Specification.html +0 -915
- data/rdoc/Sprout/System.html +0 -383
- data/rdoc/Sprout/System/BaseSystem.html +0 -1173
- data/rdoc/Sprout/System/JavaSystem.html +0 -284
- data/rdoc/Sprout/System/OSXSystem.html +0 -419
- data/rdoc/Sprout/System/ThreadMock.html +0 -281
- data/rdoc/Sprout/System/UnixSystem.html +0 -583
- data/rdoc/Sprout/System/VistaSystem.html +0 -367
- data/rdoc/Sprout/System/WinNixSystem.html +0 -417
- data/rdoc/Sprout/System/WinSystem.html +0 -672
- data/rdoc/Sprout/ToolGenerator.html +0 -376
- data/rdoc/Sprout/VERSION.html +0 -274
- data/rdoc/SproutTestCase.html +0 -279
- data/rdoc/String.html +0 -411
- data/rdoc/created.rid +0 -61
- data/rdoc/index.html +0 -795
- data/rdoc/lib/sprout/archive_unpacker_rb.html +0 -56
- data/rdoc/lib/sprout/base_rb.html +0 -111
- data/rdoc/lib/sprout/concern_rb.html +0 -52
- data/rdoc/lib/sprout/dir_rb.html +0 -52
- data/rdoc/lib/sprout/errors_rb.html +0 -52
- data/rdoc/lib/sprout/executable/boolean_rb.html +0 -52
- data/rdoc/lib/sprout/executable/collection_param_rb.html +0 -52
- data/rdoc/lib/sprout/executable/file_param_rb.html +0 -52
- data/rdoc/lib/sprout/executable/files_rb.html +0 -52
- data/rdoc/lib/sprout/executable/number_rb.html +0 -52
- data/rdoc/lib/sprout/executable/param_rb.html +0 -52
- data/rdoc/lib/sprout/executable/parameter_factory_rb.html +0 -52
- data/rdoc/lib/sprout/executable/path_rb.html +0 -52
- data/rdoc/lib/sprout/executable/paths_rb.html +0 -52
- data/rdoc/lib/sprout/executable/string_param_rb.html +0 -52
- data/rdoc/lib/sprout/executable/strings_rb.html +0 -52
- data/rdoc/lib/sprout/executable/url_rb.html +0 -52
- data/rdoc/lib/sprout/executable/urls_rb.html +0 -52
- data/rdoc/lib/sprout/executable_rb.html +0 -78
- data/rdoc/lib/sprout/file_target_rb.html +0 -52
- data/rdoc/lib/sprout/generator/base_rb.html +0 -54
- data/rdoc/lib/sprout/generator/command_rb.html +0 -52
- data/rdoc/lib/sprout/generator/directory_manifest_rb.html +0 -52
- data/rdoc/lib/sprout/generator/file_manifest_rb.html +0 -52
- data/rdoc/lib/sprout/generator/manifest_rb.html +0 -52
- data/rdoc/lib/sprout/generator/template_manifest_rb.html +0 -52
- data/rdoc/lib/sprout/generators/generator/generator_generator_rb.html +0 -52
- data/rdoc/lib/sprout/generators/generator/templates/generator_test_helper_rb.html +0 -64
- data/rdoc/lib/sprout/generators/library/library_generator_rb.html +0 -52
- data/rdoc/lib/sprout/generators/ruby/ruby_generator_rb.html +0 -52
- data/rdoc/lib/sprout/generators/ruby/templates/ruby_base_rb.html +0 -54
- data/rdoc/lib/sprout/generators/tool/tool_generator_rb.html +0 -52
- data/rdoc/lib/sprout/library_rb.html +0 -52
- data/rdoc/lib/sprout/log_rb.html +0 -52
- data/rdoc/lib/sprout/platform_rb.html +0 -52
- data/rdoc/lib/sprout/process_runner_rb.html +0 -58
- data/rdoc/lib/sprout/progress_bar_rb.html +0 -72
- data/rdoc/lib/sprout/rdoc_parser_rb.html +0 -54
- data/rdoc/lib/sprout/remote_file_loader_rb.html +0 -54
- data/rdoc/lib/sprout/remote_file_target_rb.html +0 -52
- data/rdoc/lib/sprout/ruby_feature_rb.html +0 -52
- data/rdoc/lib/sprout/specification_rb.html +0 -52
- data/rdoc/lib/sprout/string_rb.html +0 -52
- data/rdoc/lib/sprout/system/base_system_rb.html +0 -52
- data/rdoc/lib/sprout/system/java_system_rb.html +0 -52
- data/rdoc/lib/sprout/system/osx_system_rb.html +0 -52
- data/rdoc/lib/sprout/system/unix_system_rb.html +0 -52
- data/rdoc/lib/sprout/system/vista_system_rb.html +0 -52
- data/rdoc/lib/sprout/system/win_nix_system_rb.html +0 -52
- data/rdoc/lib/sprout/system/win_system_rb.html +0 -52
- data/rdoc/lib/sprout/system_rb.html +0 -66
- data/rdoc/lib/sprout/test/sprout_test_case_rb.html +0 -57
- data/rdoc/lib/sprout/version_rb.html +0 -52
- data/rdoc/lib/sprout_rb.html +0 -54
- data/rdoc/rdoc.css +0 -706
- data/test/unit/rdoc_parser_test.rb +0 -15
@@ -1,501 +0,0 @@
|
|
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::Executable::CollectionParam</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/executable/collection_param_rb.html?TB_iframe=true&height=550&width=785"
|
42
|
-
class="thickbox" title="lib/sprout/executable/collection_param.rb">lib/sprout/executable/collection_param.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-c-new">::new</a></li>
|
66
|
-
|
67
|
-
<li><a href="#method-i-to_shell">#to_shell</a></li>
|
68
|
-
|
69
|
-
<li><a href="#method-i-to_shell_value">#to_shell_value</a></li>
|
70
|
-
|
71
|
-
<li><a href="#method-i-value%3D">#value=</a></li>
|
72
|
-
|
73
|
-
<li><a href="#method-i-visible%3F">#visible?</a></li>
|
74
|
-
|
75
|
-
</ul>
|
76
|
-
</div>
|
77
|
-
|
78
|
-
|
79
|
-
<!-- Included Modules -->
|
80
|
-
|
81
|
-
</div>
|
82
|
-
|
83
|
-
<div id="project-metadata">
|
84
|
-
|
85
|
-
|
86
|
-
|
87
|
-
<div id="classindex-section" class="section project-section">
|
88
|
-
<h3 class="section-header">Class Index
|
89
|
-
<span class="search-toggle"><img src="../../images/find.png"
|
90
|
-
height="16" width="16" alt="[+]"
|
91
|
-
title="show/hide quicksearch" /></span></h3>
|
92
|
-
<form action="#" method="get" accept-charset="utf-8" class="initially-hidden">
|
93
|
-
<fieldset>
|
94
|
-
<legend>Quicksearch</legend>
|
95
|
-
<input type="text" name="quicksearch" value=""
|
96
|
-
class="quicksearch-field" />
|
97
|
-
</fieldset>
|
98
|
-
</form>
|
99
|
-
|
100
|
-
<ul class="link-list">
|
101
|
-
|
102
|
-
<li><a href="../../Sprout/ArchiveUnpacker.html">Sprout::ArchiveUnpacker</a></li>
|
103
|
-
|
104
|
-
<li><a href="../../Sprout/Base.html">Sprout::Base</a></li>
|
105
|
-
|
106
|
-
<li><a href="../../Sprout/Base/ClassMethods.html">Sprout::Base::ClassMethods</a></li>
|
107
|
-
|
108
|
-
<li><a href="../../Sprout/Concern.html">Sprout::Concern</a></li>
|
109
|
-
|
110
|
-
<li><a href="../../Sprout/Errors.html">Sprout::Errors</a></li>
|
111
|
-
|
112
|
-
<li><a href="../../Sprout/Errors/ArchiveUnpackerError.html">Sprout::Errors::ArchiveUnpackerError</a></li>
|
113
|
-
|
114
|
-
<li><a href="../../Sprout/Errors/DestinationExistsError.html">Sprout::Errors::DestinationExistsError</a></li>
|
115
|
-
|
116
|
-
<li><a href="../../Sprout/Errors/DuplicateMemberError.html">Sprout::Errors::DuplicateMemberError</a></li>
|
117
|
-
|
118
|
-
<li><a href="../../Sprout/Errors/ExecutableError.html">Sprout::Errors::ExecutableError</a></li>
|
119
|
-
|
120
|
-
<li><a href="../../Sprout/Errors/ExecutableRegistrationError.html">Sprout::Errors::ExecutableRegistrationError</a></li>
|
121
|
-
|
122
|
-
<li><a href="../../Sprout/Errors/ExecutionError.html">Sprout::Errors::ExecutionError</a></li>
|
123
|
-
|
124
|
-
<li><a href="../../Sprout/Errors/GeneratorError.html">Sprout::Errors::GeneratorError</a></li>
|
125
|
-
|
126
|
-
<li><a href="../../Sprout/Errors/InvalidArgumentError.html">Sprout::Errors::InvalidArgumentError</a></li>
|
127
|
-
|
128
|
-
<li><a href="../../Sprout/Errors/LoadError.html">Sprout::Errors::LoadError</a></li>
|
129
|
-
|
130
|
-
<li><a href="../../Sprout/Errors/MissingArgumentError.html">Sprout::Errors::MissingArgumentError</a></li>
|
131
|
-
|
132
|
-
<li><a href="../../Sprout/Errors/MissingExecutableError.html">Sprout::Errors::MissingExecutableError</a></li>
|
133
|
-
|
134
|
-
<li><a href="../../Sprout/Errors/MissingGeneratorError.html">Sprout::Errors::MissingGeneratorError</a></li>
|
135
|
-
|
136
|
-
<li><a href="../../Sprout/Errors/MissingTemplateError.html">Sprout::Errors::MissingTemplateError</a></li>
|
137
|
-
|
138
|
-
<li><a href="../../Sprout/Errors/ProcessRunnerError.html">Sprout::Errors::ProcessRunnerError</a></li>
|
139
|
-
|
140
|
-
<li><a href="../../Sprout/Errors/RemoteFileLoaderError.html">Sprout::Errors::RemoteFileLoaderError</a></li>
|
141
|
-
|
142
|
-
<li><a href="../../Sprout/Errors/SproutError.html">Sprout::Errors::SproutError</a></li>
|
143
|
-
|
144
|
-
<li><a href="../../Sprout/Errors/UnknownArchiveType.html">Sprout::Errors::UnknownArchiveType</a></li>
|
145
|
-
|
146
|
-
<li><a href="../../Sprout/Errors/UsageError.html">Sprout::Errors::UsageError</a></li>
|
147
|
-
|
148
|
-
<li><a href="../../Sprout/Errors/ValidationError.html">Sprout::Errors::ValidationError</a></li>
|
149
|
-
|
150
|
-
<li><a href="../../Sprout/Errors/VersionRequirementNotMetError.html">Sprout::Errors::VersionRequirementNotMetError</a></li>
|
151
|
-
|
152
|
-
<li><a href="../../Sprout/Executable.html">Sprout::Executable</a></li>
|
153
|
-
|
154
|
-
<li><a href="../../Sprout/Executable/Boolean.html">Sprout::Executable::Boolean</a></li>
|
155
|
-
|
156
|
-
<li><a href="../../Sprout/Executable/ClassMethods.html">Sprout::Executable::ClassMethods</a></li>
|
157
|
-
|
158
|
-
<li><a href="../../Sprout/Executable/CollectionParam.html">Sprout::Executable::CollectionParam</a></li>
|
159
|
-
|
160
|
-
<li><a href="../../Sprout/Executable/FileParam.html">Sprout::Executable::FileParam</a></li>
|
161
|
-
|
162
|
-
<li><a href="../../Sprout/Executable/Files.html">Sprout::Executable::Files</a></li>
|
163
|
-
|
164
|
-
<li><a href="../../Sprout/Executable/InstanceMethods.html">Sprout::Executable::InstanceMethods</a></li>
|
165
|
-
|
166
|
-
<li><a href="../../Sprout/Executable/Number.html">Sprout::Executable::Number</a></li>
|
167
|
-
|
168
|
-
<li><a href="../../Sprout/Executable/Param.html">Sprout::Executable::Param</a></li>
|
169
|
-
|
170
|
-
<li><a href="../../Sprout/Executable/ParameterFactory.html">Sprout::Executable::ParameterFactory</a></li>
|
171
|
-
|
172
|
-
<li><a href="../../Sprout/Executable/Path.html">Sprout::Executable::Path</a></li>
|
173
|
-
|
174
|
-
<li><a href="../../Sprout/Executable/Paths.html">Sprout::Executable::Paths</a></li>
|
175
|
-
|
176
|
-
<li><a href="../../Sprout/Executable/StringParam.html">Sprout::Executable::StringParam</a></li>
|
177
|
-
|
178
|
-
<li><a href="../../Sprout/Executable/Strings.html">Sprout::Executable::Strings</a></li>
|
179
|
-
|
180
|
-
<li><a href="../../Sprout/Executable/Url.html">Sprout::Executable::Url</a></li>
|
181
|
-
|
182
|
-
<li><a href="../../Sprout/Executable/Urls.html">Sprout::Executable::Urls</a></li>
|
183
|
-
|
184
|
-
<li><a href="../../Sprout/FileTarget.html">Sprout::FileTarget</a></li>
|
185
|
-
|
186
|
-
<li><a href="../../Sprout/Generator.html">Sprout::Generator</a></li>
|
187
|
-
|
188
|
-
<li><a href="../../Sprout/Generator/Base.html">Sprout::Generator::Base</a></li>
|
189
|
-
|
190
|
-
<li><a href="../../Sprout/Generator/Command.html">Sprout::Generator::Command</a></li>
|
191
|
-
|
192
|
-
<li><a href="../../Sprout/Generator/DirectoryManifest.html">Sprout::Generator::DirectoryManifest</a></li>
|
193
|
-
|
194
|
-
<li><a href="../../Sprout/Generator/FileManifest.html">Sprout::Generator::FileManifest</a></li>
|
195
|
-
|
196
|
-
<li><a href="../../Sprout/Generator/Manifest.html">Sprout::Generator::Manifest</a></li>
|
197
|
-
|
198
|
-
<li><a href="../../Sprout/Generator/TemplateManifest.html">Sprout::Generator::TemplateManifest</a></li>
|
199
|
-
|
200
|
-
<li><a href="../../Sprout/GeneratorGenerator.html">Sprout::GeneratorGenerator</a></li>
|
201
|
-
|
202
|
-
<li><a href="../../Sprout/Library.html">Sprout::Library</a></li>
|
203
|
-
|
204
|
-
<li><a href="../../Sprout/LibraryGenerator.html">Sprout::LibraryGenerator</a></li>
|
205
|
-
|
206
|
-
<li><a href="../../Sprout/Platform.html">Sprout::Platform</a></li>
|
207
|
-
|
208
|
-
<li><a href="../../Sprout/ProcessRunner.html">Sprout::ProcessRunner</a></li>
|
209
|
-
|
210
|
-
<li><a href="../../Sprout/RDocParser.html">Sprout::RDocParser</a></li>
|
211
|
-
|
212
|
-
<li><a href="../../Sprout/RemoteFileLoader.html">Sprout::RemoteFileLoader</a></li>
|
213
|
-
|
214
|
-
<li><a href="../../Sprout/RemoteFileTarget.html">Sprout::RemoteFileTarget</a></li>
|
215
|
-
|
216
|
-
<li><a href="../../Sprout/RubyFeature.html">Sprout::RubyFeature</a></li>
|
217
|
-
|
218
|
-
<li><a href="../../Sprout/RubyFeature/ClassMethods.html">Sprout::RubyFeature::ClassMethods</a></li>
|
219
|
-
|
220
|
-
<li><a href="../../Sprout/RubyGenerator.html">Sprout::RubyGenerator</a></li>
|
221
|
-
|
222
|
-
<li><a href="../../Sprout/Specification.html">Sprout::Specification</a></li>
|
223
|
-
|
224
|
-
<li><a href="../../Sprout/System.html">Sprout::System</a></li>
|
225
|
-
|
226
|
-
<li><a href="../../Sprout/System/BaseSystem.html">Sprout::System::BaseSystem</a></li>
|
227
|
-
|
228
|
-
<li><a href="../../Sprout/System/JavaSystem.html">Sprout::System::JavaSystem</a></li>
|
229
|
-
|
230
|
-
<li><a href="../../Sprout/System/OSXSystem.html">Sprout::System::OSXSystem</a></li>
|
231
|
-
|
232
|
-
<li><a href="../../Sprout/System/UnixSystem.html">Sprout::System::UnixSystem</a></li>
|
233
|
-
|
234
|
-
<li><a href="../../Sprout/System/VistaSystem.html">Sprout::System::VistaSystem</a></li>
|
235
|
-
|
236
|
-
<li><a href="../../Sprout/System/WinNixSystem.html">Sprout::System::WinNixSystem</a></li>
|
237
|
-
|
238
|
-
<li><a href="../../Sprout/System/WinSystem.html">Sprout::System::WinSystem</a></li>
|
239
|
-
|
240
|
-
<li><a href="../../Sprout/ToolGenerator.html">Sprout::ToolGenerator</a></li>
|
241
|
-
|
242
|
-
<li><a href="../../<.html"><</a></li>
|
243
|
-
|
244
|
-
<li><a href="../../Dir.html">Dir</a></li>
|
245
|
-
|
246
|
-
<li><a href="../../Object.html">Object</a></li>
|
247
|
-
|
248
|
-
<li><a href="../../String.html">String</a></li>
|
249
|
-
|
250
|
-
</ul>
|
251
|
-
<div id="no-class-search-results" style="display: none;">No matching classes.</div>
|
252
|
-
</div>
|
253
|
-
|
254
|
-
|
255
|
-
</div>
|
256
|
-
</div>
|
257
|
-
|
258
|
-
<div id="documentation">
|
259
|
-
<h1 class="module">Sprout::Executable::CollectionParam</h1>
|
260
|
-
|
261
|
-
<div id="description">
|
262
|
-
<p>
|
263
|
-
Included by any parameters that represent a collection of values, rather
|
264
|
-
than a single value.
|
265
|
-
</p>
|
266
|
-
<p>
|
267
|
-
Should only be included by classes that extend <a
|
268
|
-
href="Param.html">Sprout::Executable::Param</a>.
|
269
|
-
</p>
|
270
|
-
|
271
|
-
</div>
|
272
|
-
|
273
|
-
<!-- Constants -->
|
274
|
-
|
275
|
-
|
276
|
-
<!-- Attributes -->
|
277
|
-
|
278
|
-
|
279
|
-
<!-- Methods -->
|
280
|
-
|
281
|
-
<div id="public-class-method-details" class="method-section section">
|
282
|
-
<h3 class="section-header">Public Class Methods</h3>
|
283
|
-
|
284
|
-
|
285
|
-
<div id="new-method" class="method-detail ">
|
286
|
-
<a name="method-c-new"></a>
|
287
|
-
|
288
|
-
<div class="method-heading">
|
289
|
-
|
290
|
-
<span class="method-name">new</span><span
|
291
|
-
class="method-args">()</span>
|
292
|
-
<span class="method-click-advice">click to toggle source</span>
|
293
|
-
|
294
|
-
</div>
|
295
|
-
|
296
|
-
<div class="method-description">
|
297
|
-
|
298
|
-
|
299
|
-
|
300
|
-
|
301
|
-
|
302
|
-
<div class="method-source-code"
|
303
|
-
id="new-source">
|
304
|
-
<pre>
|
305
|
-
<span class="ruby-comment cmt"># File lib/sprout/executable/collection_param.rb, line 13</span>
|
306
|
-
13: <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">initialize</span>
|
307
|
-
14: <span class="ruby-keyword kw">super</span>
|
308
|
-
15: <span class="ruby-ivar">@value</span> = []
|
309
|
-
16: <span class="ruby-ivar">@delimiter</span> = <span class="ruby-value str">"+="</span>
|
310
|
-
17: <span class="ruby-ivar">@option_parser_type_name</span> = <span class="ruby-value str">'a,b,c'</span>
|
311
|
-
18: <span class="ruby-keyword kw">end</span></pre>
|
312
|
-
</div>
|
313
|
-
|
314
|
-
</div>
|
315
|
-
|
316
|
-
|
317
|
-
|
318
|
-
|
319
|
-
</div>
|
320
|
-
|
321
|
-
|
322
|
-
</div>
|
323
|
-
|
324
|
-
<div id="public-instance-method-details" class="method-section section">
|
325
|
-
<h3 class="section-header">Public Instance Methods</h3>
|
326
|
-
|
327
|
-
|
328
|
-
<div id="to-shell-method" class="method-detail ">
|
329
|
-
<a name="method-i-to_shell"></a>
|
330
|
-
|
331
|
-
<div class="method-heading">
|
332
|
-
|
333
|
-
<span class="method-name">to_shell</span><span
|
334
|
-
class="method-args">()</span>
|
335
|
-
<span class="method-click-advice">click to toggle source</span>
|
336
|
-
|
337
|
-
</div>
|
338
|
-
|
339
|
-
<div class="method-description">
|
340
|
-
|
341
|
-
<p>
|
342
|
-
Returns a shell formatted string of the collection
|
343
|
-
</p>
|
344
|
-
|
345
|
-
|
346
|
-
|
347
|
-
<div class="method-source-code"
|
348
|
-
id="to-shell-source">
|
349
|
-
<pre>
|
350
|
-
<span class="ruby-comment cmt"># File lib/sprout/executable/collection_param.rb, line 36</span>
|
351
|
-
36: <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">to_shell</span>
|
352
|
-
37: <span class="ruby-identifier">prepare</span> <span class="ruby-keyword kw">if</span> <span class="ruby-operator">!</span><span class="ruby-identifier">prepared?</span>
|
353
|
-
38: <span class="ruby-identifier">validate</span>
|
354
|
-
39: <span class="ruby-keyword kw">return</span> <span class="ruby-value str">''</span> <span class="ruby-keyword kw">if</span> <span class="ruby-operator">!</span><span class="ruby-identifier">visible?</span>
|
355
|
-
40: <span class="ruby-keyword kw">return</span> <span class="ruby-ivar">@to_shell_proc</span>.<span class="ruby-identifier">call</span>(<span class="ruby-keyword kw">self</span>) <span class="ruby-keyword kw">unless</span> <span class="ruby-ivar">@to_shell_proc</span>.<span class="ruby-identifier">nil?</span>
|
356
|
-
41: <span class="ruby-keyword kw">return</span> <span class="ruby-identifier">value</span>.<span class="ruby-identifier">join</span>(<span class="ruby-value str">' '</span>) <span class="ruby-keyword kw">if</span> <span class="ruby-identifier">hidden_name?</span>
|
357
|
-
42: <span class="ruby-keyword kw">return</span> <span class="ruby-identifier">to_shell_value</span>.<span class="ruby-identifier">collect</span> { <span class="ruby-operator">|</span><span class="ruby-identifier">val</span><span class="ruby-operator">|</span>
|
358
|
-
43: <span class="ruby-node">"#{shell_name}#{delimiter}#{val}"</span>
|
359
|
-
44: }.<span class="ruby-identifier">join</span>(<span class="ruby-value str">' '</span>)
|
360
|
-
45: <span class="ruby-keyword kw">end</span></pre>
|
361
|
-
</div>
|
362
|
-
|
363
|
-
</div>
|
364
|
-
|
365
|
-
|
366
|
-
|
367
|
-
|
368
|
-
</div>
|
369
|
-
|
370
|
-
|
371
|
-
<div id="to-shell-value-method" class="method-detail ">
|
372
|
-
<a name="method-i-to_shell_value"></a>
|
373
|
-
|
374
|
-
<div class="method-heading">
|
375
|
-
|
376
|
-
<span class="method-name">to_shell_value</span><span
|
377
|
-
class="method-args">()</span>
|
378
|
-
<span class="method-click-advice">click to toggle source</span>
|
379
|
-
|
380
|
-
</div>
|
381
|
-
|
382
|
-
<div class="method-description">
|
383
|
-
|
384
|
-
|
385
|
-
|
386
|
-
|
387
|
-
|
388
|
-
<div class="method-source-code"
|
389
|
-
id="to-shell-value-source">
|
390
|
-
<pre>
|
391
|
-
<span class="ruby-comment cmt"># File lib/sprout/executable/collection_param.rb, line 47</span>
|
392
|
-
47: <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">to_shell_value</span>
|
393
|
-
48: <span class="ruby-identifier">value</span>
|
394
|
-
49: <span class="ruby-keyword kw">end</span></pre>
|
395
|
-
</div>
|
396
|
-
|
397
|
-
</div>
|
398
|
-
|
399
|
-
|
400
|
-
|
401
|
-
|
402
|
-
</div>
|
403
|
-
|
404
|
-
|
405
|
-
<div id="value--method" class="method-detail ">
|
406
|
-
<a name="method-i-value%3D"></a>
|
407
|
-
|
408
|
-
<div class="method-heading">
|
409
|
-
|
410
|
-
<span class="method-name">value=</span><span
|
411
|
-
class="method-args">(val)</span>
|
412
|
-
<span class="method-click-advice">click to toggle source</span>
|
413
|
-
|
414
|
-
</div>
|
415
|
-
|
416
|
-
<div class="method-description">
|
417
|
-
|
418
|
-
<p>
|
419
|
-
Assign the value and raise if
|
420
|
-
</p>
|
421
|
-
|
422
|
-
|
423
|
-
|
424
|
-
<div class="method-source-code"
|
425
|
-
id="value--source">
|
426
|
-
<pre>
|
427
|
-
<span class="ruby-comment cmt"># File lib/sprout/executable/collection_param.rb, line 21</span>
|
428
|
-
21: <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">value=</span>(<span class="ruby-identifier">val</span>)
|
429
|
-
22: <span class="ruby-keyword kw">if</span>(<span class="ruby-identifier">val</span>.<span class="ruby-identifier">is_a?</span>(<span class="ruby-constant">String</span>) <span class="ruby-operator">||</span> <span class="ruby-operator">!</span><span class="ruby-identifier">val</span>.<span class="ruby-identifier">is_a?</span>(<span class="ruby-constant">Enumerable</span>))
|
430
|
-
23: <span class="ruby-identifier">message</span> = <span class="ruby-node">"The #{name} property is an Enumerable. It looks like you may have used the assignment operator (=) with (#{value.inspect}) where the append operator (<<) was expected."</span>
|
431
|
-
24: <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">ExecutableError</span>.<span class="ruby-identifier">new</span>(<span class="ruby-identifier">message</span>)
|
432
|
-
25: <span class="ruby-keyword kw">end</span>
|
433
|
-
26: <span class="ruby-ivar">@value</span> = <span class="ruby-identifier">val</span>
|
434
|
-
27: <span class="ruby-keyword kw">end</span></pre>
|
435
|
-
</div>
|
436
|
-
|
437
|
-
</div>
|
438
|
-
|
439
|
-
|
440
|
-
|
441
|
-
|
442
|
-
</div>
|
443
|
-
|
444
|
-
|
445
|
-
<div id="visible--method" class="method-detail ">
|
446
|
-
<a name="method-i-visible%3F"></a>
|
447
|
-
|
448
|
-
<div class="method-heading">
|
449
|
-
|
450
|
-
<span class="method-name">visible?</span><span
|
451
|
-
class="method-args">()</span>
|
452
|
-
<span class="method-click-advice">click to toggle source</span>
|
453
|
-
|
454
|
-
</div>
|
455
|
-
|
456
|
-
<div class="method-description">
|
457
|
-
|
458
|
-
<p>
|
459
|
-
Hide the collection param if no items have been added to it.
|
460
|
-
</p>
|
461
|
-
|
462
|
-
|
463
|
-
|
464
|
-
<div class="method-source-code"
|
465
|
-
id="visible--source">
|
466
|
-
<pre>
|
467
|
-
<span class="ruby-comment cmt"># File lib/sprout/executable/collection_param.rb, line 31</span>
|
468
|
-
31: <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">visible?</span>
|
469
|
-
32: (<span class="ruby-operator">!</span><span class="ruby-identifier">value</span>.<span class="ruby-identifier">nil?</span> <span class="ruby-operator">&&</span> <span class="ruby-identifier">value</span>.<span class="ruby-identifier">size</span> <span class="ruby-operator">></span> <span class="ruby-value">0</span>)
|
470
|
-
33: <span class="ruby-keyword kw">end</span></pre>
|
471
|
-
</div>
|
472
|
-
|
473
|
-
</div>
|
474
|
-
|
475
|
-
|
476
|
-
|
477
|
-
|
478
|
-
</div>
|
479
|
-
|
480
|
-
|
481
|
-
</div>
|
482
|
-
|
483
|
-
|
484
|
-
</div>
|
485
|
-
|
486
|
-
|
487
|
-
<div id="rdoc-debugging-section-dump" class="debugging-section">
|
488
|
-
|
489
|
-
<p>Disabled; run with --debug to generate this.</p>
|
490
|
-
|
491
|
-
</div>
|
492
|
-
|
493
|
-
<div id="validator-badges">
|
494
|
-
<p><small><a href="http://validator.w3.org/check/referer">[Validate]</a></small></p>
|
495
|
-
<p><small>Generated with the <a href="http://deveiate.org/projects/Darkfish-Rdoc/">Darkfish
|
496
|
-
Rdoc Generator</a> 1.1.6</small>.</p>
|
497
|
-
</div>
|
498
|
-
|
499
|
-
</body>
|
500
|
-
</html>
|
501
|
-
|