Class: FilterRename::Filters::AppendWordTo
- Inherits:
-
FilterRename::FilterWord
- Object
- SimpleDelegator
- FilterRename::FilterBase
- FilterRename::FilterWord
- FilterRename::Filters::AppendWordTo
- Defined in:
- lib/filter_rename/filters.rb
Instance Attribute Summary
Attributes included from IndexedParams
#items, #params, #params_expanded
Class Method Summary collapse
Instance Method Summary collapse
Methods included from IndexedParams
#filter, #get_indexes, #indexed_params, #normalize_index, #string_to_loop
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
.hint ⇒ Object
150 |
# File 'lib/filter_rename/filters.rb', line 150 def self.hint; 'Append the NTH word to TARGET'; end |
.params ⇒ Object
151 |
# File 'lib/filter_rename/filters.rb', line 151 def self.params; 'NTH,TARGET'; end |
Instance Method Details
#filtered_word(word, param_num) ⇒ Object
157 158 159 160 |
# File 'lib/filter_rename/filters.rb', line 157 def filtered_word(word, param_num) set_string([get_string(params[1]), word].join(ws), params[1]) word end |
#self_targeted? ⇒ Boolean
153 154 155 |
# File 'lib/filter_rename/filters.rb', line 153 def self_targeted? params[-1] == current_target end |