Class: FilterRename::Filters::PrependFrom

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

Class Method Summary collapse

Instance Method Summary collapse

Methods inherited from FilterRename::FilterBase

#current_target, #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



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

def self.hint; 'Prepend the current target with the text from TARGET'; end

.paramsObject



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

def self.params; 'TARGET'; end

Instance Method Details

#filter(params) ⇒ Object



514
515
516
# File 'lib/filter_rename/filters.rb', line 514

def filter(params)
  super "#{get_string(params[0])}#{get_string}"
end