Class: FilterRename::Filters::Select
Class Method Summary
collapse
Instance Method Summary
collapse
#current_target, #get_config, #get_string, #get_words, #initialize, #match?, #set_config, #set_string, #wrap_regex
Class Method Details
.hint ⇒ Object
8
|
# File 'lib/filter_rename/filters.rb', line 8
def self.hint; 'Select the target where apply further transformations'; end
|
.params ⇒ Object
9
|
# File 'lib/filter_rename/filters.rb', line 9
def self.params; 'name|ext|folder|...'; end
|
Instance Method Details
#filter(params) ⇒ Object
11
12
13
14
|
# File 'lib/filter_rename/filters.rb', line 11
def filter(params)
raise InvalidTarget, params[0] unless has_target? params[0].to_sym
set_config :target, params[0].to_sym
end
|