class FilterRename::Filters::SwapWord
Public Class Methods
hint()
click to toggle source
# File lib/filter_rename/filters.rb, line 562 def self.hint; 'Swap the NTH1 word with the NTH2'; end
params()
click to toggle source
# File lib/filter_rename/filters.rb, line 563 def self.params; 'NTH1,NTH2'; end
Public Instance Methods
filtered_word(word, params, param_num)
click to toggle source
# File lib/filter_rename/filters.rb, line 567 def filtered_word(word, params, param_num) case param_num when 1 @word = word.clone word = get_string.split(ws)[params[1].to_i.pred] when 2 word = @word end word end
indexed_words()
click to toggle source
# File lib/filter_rename/filters.rb, line 565 def indexed_words; 2; end