Class: FilterRename::Filters::AppendTo

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

.hint ⇒ Object



112
113
114
# File 'lib/filter_rename/filters.rb', line 112

def self.hint
  "Append the TEXT to TARGET"
end

.params ⇒ Object



116
117
118
# File 'lib/filter_rename/filters.rb', line 116

def self.params
  "TEXT,TARGET"
end

Instance Method Details

#filter(params) ⇒ Object



120
121
122
123
# File 'lib/filter_rename/filters.rb', line 120

def filter(params)
  set_string(get_string(params[1]).to_s + params[0], params[1])
  super(get_string)
end