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
6
7
8
|
# File 'lib/filter_rename/filters.rb', line 6
def self.hint
"Select the target where apply further transformations"
end
|
.params ⇒ Object
10
11
12
|
# File 'lib/filter_rename/filters.rb', line 10
def self.params
"name|ext|folder|..."
end
|
Instance Method Details
#filter(params) ⇒ Object
14
15
16
17
18
|
# File 'lib/filter_rename/filters.rb', line 14
def filter(params)
raise InvalidTarget, params[0] unless target? params[0].to_sym
set_config :target, params[0].to_sym
end
|