Class: FilterRename::Filters::Config
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
18
|
# File 'lib/filter_rename/filters.rb', line 18
def self.hint; 'Set config PARAM to VALUE'; end
|
.params ⇒ Object
19
|
# File 'lib/filter_rename/filters.rb', line 19
def self.params; 'PARAM:VALUE[,PARAMS2:VALUE2,...]'; end
|
Instance Method Details
#filter(params) ⇒ Object
21
22
23
24
25
|
# File 'lib/filter_rename/filters.rb', line 21
def filter(params)
params.each do |par|
set_config(par.split(':')[0], par.split(':')[1])
end
end
|