class FilterRename::Filters::WrapWords
Public Class Methods
hint()
click to toggle source
# File lib/filter_rename/filters.rb, line 643 def self.hint; 'Wrap the words between the NTH1 and the NTH2 with SEPARATOR1 and SEPARATOR2'; end
params()
click to toggle source
# File lib/filter_rename/filters.rb, line 644 def self.params; 'NTH1,NTH2,SEPARATOR1,SEPARATOR2'; end
Public Instance Methods
filtered_word(word, params, param_num)
click to toggle source
# File lib/filter_rename/filters.rb, line 648 def filtered_word(word, params, param_num) case param_num when 1 word = "#{params[2]}#{word}" when 2 word = "#{word}#{params[3]}" end word end
indexed_words()
click to toggle source
# File lib/filter_rename/filters.rb, line 646 def indexed_words; 2; end