Class: FilterRename::Filters::AppendWordFrom
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
131
|
# File 'lib/filter_rename/filters.rb', line 131
def self.hint; 'Append the NTH word from TARGET'; end
|
.params ⇒ Object
132
|
# File 'lib/filter_rename/filters.rb', line 132
def self.params; 'NTH,TARGET'; end
|
Instance Method Details
#filtered_word(word, param_num) ⇒ Object
142
143
144
145
|
# File 'lib/filter_rename/filters.rb', line 142
def filtered_word(word, param_num)
set_string([get_string, word].join(ws))
word
end
|
#self_targeted? ⇒ Boolean
138
139
140
|
# File 'lib/filter_rename/filters.rb', line 138
def self_targeted?
true
end
|
#string_to_loop ⇒ Object
134
135
136
|
# File 'lib/filter_rename/filters.rb', line 134
def string_to_loop
get_string(params[1])
end
|