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, #get_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
355 |
# File 'lib/filter_rename/filters.rb', line 355 def self.hint; 'Join the words NTH1 and NTH2 and replace the NTH3 word with it'; end |
.params ⇒ Object
356 |
# File 'lib/filter_rename/filters.rb', line 356 def self.params; 'NTH1,NTH2,NTH3'; end |
Instance Method Details
#filtered_word(word, param_num) ⇒ Object
360 361 362 363 364 365 366 367 368 369 370 371 372 373 |
# File 'lib/filter_rename/filters.rb', line 360 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
358 |
# File 'lib/filter_rename/filters.rb', line 358 def indexed_params; 3; end |