class FilterRename::Filters::SplitWord

Public Class Methods

hint() click to toggle source
# File lib/filter_rename/filters.rb, line 522
def self.hint; 'Split the NTH word using a REGEX with capturing groups'; end
params() click to toggle source
# File lib/filter_rename/filters.rb, line 523
def self.params; 'NTH,REGEX'; end

Public Instance Methods

filtered_word(word, params, param_num) click to toggle source
# File lib/filter_rename/filters.rb, line 525
def filtered_word(word, params, param_num)
  word.scan(Regexp.new(wrap_regex(params[1]), get_config(:ignore_case))).pop.to_a.join(ws)
end