Class: FilterRename::Filters::Spacify
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
674
|
# File 'lib/filter_rename/filters.rb', line 674
def self.hint; 'Replace CHAR with a space'; end
|
.params ⇒ Object
675
|
# File 'lib/filter_rename/filters.rb', line 675
def self.params; 'CHAR1,CHAR2,...'; end
|
Instance Method Details
#filter(params) ⇒ Object
677
678
679
680
|
# File 'lib/filter_rename/filters.rb', line 677
def filter(params)
regexp = Regexp.new(params.join('|'), get_config(:ignore_case).to_boolean)
super get_string.gsub(regexp, ' ')
end
|