Class: FilterRename::Filters::PrependWordFrom
Instance Attribute Summary
#items, #params, #params_expanded
Class Method Summary
collapse
Instance Method Summary
collapse
#filter, #get_indexes, #indexed_params, #normalize_index
#current_target, #filter, #get_config, #get_string, #get_words, #initialize, #match?, #set_config, #set_string, #wrap_regex
Class Method Details
.hint ⇒ Object
541
|
# File 'lib/filter_rename/filters.rb', line 541
def self.hint; 'Prepend with TARGET the NTH word'; end
|
.params ⇒ Object
542
|
# File 'lib/filter_rename/filters.rb', line 542
def self.params; 'NTH,TARGET'; end
|
Instance Method Details
#filtered_word(word, param_num) ⇒ Object
552
553
554
555
|
# File 'lib/filter_rename/filters.rb', line 552
def filtered_word(word, param_num)
set_string([word, get_string].join(ws))
word
end
|
#self_targeted? ⇒ Boolean
548
549
550
|
# File 'lib/filter_rename/filters.rb', line 548
def self_targeted?
true
end
|
#string_to_loop ⇒ Object
544
545
546
|
# File 'lib/filter_rename/filters.rb', line 544
def string_to_loop
get_string(params[1])
end
|