Class: FilterRename::Filters::AppendToWord
- Inherits:
-
FilterRename::FilterWord
- Object
- SimpleDelegator
- FilterRename::FilterBase
- FilterRename::FilterWord
- FilterRename::Filters::AppendToWord
- 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, #self_targeted?, #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
121 |
# File 'lib/filter_rename/filters.rb', line 121 def self.hint; 'Append the TEXT to the NTH word'; end |
.params ⇒ Object
122 |
# File 'lib/filter_rename/filters.rb', line 122 def self.params; 'NTH,TEXT'; end |
Instance Method Details
#filtered_word(word, param_num) ⇒ Object
124 125 126 |
# File 'lib/filter_rename/filters.rb', line 124 def filtered_word(word, param_num) word + params[1] end |