Class: Sprout::Executable::Files
- Inherits:
-
Param
- Object
- Param
- Sprout::Executable::Files
- Includes:
- CollectionParam
- Defined in:
- sprout/lib/sprout/executable/files.rb
Overview
Concrete param object for collections of files
Direct Known Subclasses
Constant Summary
Constants inherited from Param
DEFAULT_DELIMITER, DEFAULT_OPTION_PARSER_TYPE_NAME, DEFAULT_PREFIX, DEFAULT_SHORT_PREFIX
Instance Method Summary (collapse)
Methods included from CollectionParam
#initialize, #to_shell, #value=, #visible?
Methods inherited from Param
#clean_path, #default, #default=, #default_option_parser_declaration, #file_is_output?, #hidden_name?, #hidden_value?, #initialize, #option_parser_declaration, #option_parser_name, #option_parser_short_name, #option_parser_type_name, #option_parser_type_output, #prepare, #prepared?, #required?, #shell_value, #short_prefix, #to_rdoc, #to_shell, #validate, #visible?
Constructor Details
This class inherits a constructor from Sprout::Executable::CollectionParam
Instance Method Details
- (Object) prepare_prerequisites
21 22 23 24 25 26 |
# File 'sprout/lib/sprout/executable/files.rb', line 21 def prepare_prerequisites value.each do |f| file f belongs_to.prerequisites << f end end |
- (Object) to_shell_value
15 16 17 18 19 |
# File 'sprout/lib/sprout/executable/files.rb', line 15 def to_shell_value value.collect do |path| clean_path path end end |