class FilterRename::Filters::MoveWord

Public Class Methods

hint() click to toggle source
# File lib/filter_rename/filters.rb, line 323
def self.hint; 'Move the NTH1 word to the NTH2 place'; end
params() click to toggle source
# File lib/filter_rename/filters.rb, line 324
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 328
def filtered_word(word, params, param_num)
  case param_num
  when 1
    @word = word
    res = nil
  when 2
    res = [word, @word].join(ws)
  end

  res
end
indexed_params() click to toggle source
# File lib/filter_rename/filters.rb, line 326
def indexed_params; 2; end