Class: FilterRename::Filters::JoinWords
- Inherits:
-
FilterRename::FilterWord
- Object
- SimpleDelegator
- FilterRename::FilterBase
- FilterRename::FilterWord
- FilterRename::Filters::JoinWords
- 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, #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
471 472 473 |
# File 'lib/filter_rename/filters.rb', line 471 def self.hint "Join the words NTH1 and NTH2 and replace the NTH3 word with it" end |
.params ⇒ Object
475 476 477 |
# File 'lib/filter_rename/filters.rb', line 475 def self.params "NTH1,NTH2,NTH3" end |
Instance Method Details
#filtered_word(word, param_num) ⇒ Object
483 484 485 486 487 488 489 490 491 492 493 494 495 496 |
# File 'lib/filter_rename/filters.rb', line 483 def filtered_word(word, param_num) case param_num when 1 @word = word word = nil when .length word = @word else @word += word word = nil end word end |
#indexed_params ⇒ Object
479 480 481 |
# File 'lib/filter_rename/filters.rb', line 479 def indexed_params 3 end |