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
919
920
921
|
# File 'lib/filter_rename/filters.rb', line 919
def self.hint
"Replace CHAR with a space"
end
|
.params ⇒ Object
923
924
925
|
# File 'lib/filter_rename/filters.rb', line 923
def self.params
"CHAR1,CHAR2,..."
end
|
Instance Method Details
#filter(params) ⇒ Object
927
928
929
930
|
# File 'lib/filter_rename/filters.rb', line 927
def filter(params)
regexp = Regexp.new(params.join("|"), get_config(:ignore_case).to_boolean)
super(get_string.gsub(regexp, " "))
end
|