Class: FilterRename::Filters::InsertBeforeWord
- Inherits:
-
FilterRename::FilterWord
- Object
- SimpleDelegator
- FilterRename::FilterBase
- FilterRename::FilterWord
- FilterRename::Filters::InsertBeforeWord
- 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, #indexed_params, #indexes, #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
428 429 430 |
# File 'lib/filter_rename/filters.rb', line 428 def self.hint "Insert the WORD after the NTH word" end |
.params ⇒ Object
432 433 434 |
# File 'lib/filter_rename/filters.rb', line 432 def self.params "NTH,WORD" end |
Instance Method Details
#filtered_word(word, _param_num) ⇒ Object
436 437 438 |
# File 'lib/filter_rename/filters.rb', line 436 def filtered_word(word, _param_num) [params[1], word].join(ws) end |