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
22
23
24
|
# File 'lib/filter_rename/filters.rb', line 22
def self.hint
"Set config PARAM to VALUE"
end
|
.params ⇒ Object
26
27
28
|
# File 'lib/filter_rename/filters.rb', line 26
def self.params
"PARAM:VALUE[,PARAMS2:VALUE2,...]"
end
|
Instance Method Details
#filter(params) ⇒ Object
30
31
32
33
34
|
# File 'lib/filter_rename/filters.rb', line 30
def filter(params)
params.each do |par|
set_config(par.split(":")[0], par.split(":")[1])
end
end
|