class FilterRename::Filters::AppendAsWordTo
Public Class Methods
hint()
click to toggle source
# File lib/filter_rename/filters.rb, line 62 def self.hint; 'Append the TEXT to TARGET as a word'; end
params()
click to toggle source
# File lib/filter_rename/filters.rb, line 63 def self.params; 'TEXT,TARGET'; end
Public Instance Methods
filter(params)
click to toggle source
Calls superclass method
FilterRename::FilterBase#filter
# File lib/filter_rename/filters.rb, line 65 def filter(params) ws = get_config(:word_separator) set_string(get_string(params[1]).to_s.split(ws).push(params[0]).join(ws), params[1]) super get_string end