Class: FilterRename::Filters::Replace

Inherits:
FilterRename::FilterRegExp show all
Defined in:
lib/filter_rename/filters.rb

Class Method Summary collapse

Instance Method Summary collapse

Methods inherited from FilterRename::FilterRegExp

#filter

Methods inherited from FilterRename::FilterBase

#current_target, #filter, #get_config, #get_string, #get_words, #initialize, #match?, #set_config, #set_string, #wrap_regex

Constructor Details

This class inherits a constructor from FilterRename::FilterBase

Class Method Details

.hintObject



560
# File 'lib/filter_rename/filters.rb', line 560

def self.hint; 'Replace the text matching REGEX with REPLACE'; end

.paramsObject



561
# File 'lib/filter_rename/filters.rb', line 561

def self.params; 'REGEX,REPLACE'; end

Instance Method Details

#filtered_regexp(matches, params) ⇒ Object



563
564
565
# File 'lib/filter_rename/filters.rb', line 563

def filtered_regexp(matches, params)
  params[1]
end