Class: FilterRename::Filters::Delete
Class Method Summary
collapse
Instance Method Summary
collapse
#get_config, #get_string, #get_words, #initialize, #match?, #set_config, #set_string, #wrap_regex
Class Method Details
.hint ⇒ Object
202
|
# File 'lib/filter_rename/filters.rb', line 202
def self.hint; 'Remove the text matching REGEX'; end
|
.params ⇒ Object
203
|
# File 'lib/filter_rename/filters.rb', line 203
def self.params; 'REGEX1[,REGEX2,...]'; end
|
Instance Method Details
#filter(params) ⇒ Object
205
206
207
208
209
|
# File 'lib/filter_rename/filters.rb', line 205
def filter(params)
params.each do |par|
super get_string.gsub(Regexp.new(par, get_config(:ignore_case).to_boolean), '')
end
end
|