class FilterRename::Filters::CopyWord

Public Class Methods

hint() click to toggle source
# File lib/filter_rename/filters.rb, line 183
def self.hint; 'Copy the NTH1 word to the NTH2 place'; end
params() click to toggle source
# File lib/filter_rename/filters.rb, line 184
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 188
def filtered_word(word, params, param_num)
  case param_num
  when 1
    @word = word
  when 2
    word = @word + ws + word
  end

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