class FilterRename::Filters::CopyTo
Public Class Methods
hint()
click to toggle source
# File lib/filter_rename/filters.rb, line 172 def self.hint; 'Copy the text selected by REGEX to TARGET'; end
params()
click to toggle source
# File lib/filter_rename/filters.rb, line 173 def self.params; 'REGEX,TARGET'; end
Public Instance Methods
filter(params)
click to toggle source
Calls superclass method
FilterRename::FilterBase#filter
# File lib/filter_rename/filters.rb, line 175 def filter(params) set_string(get_string.scan(Regexp.new(wrap_regex(params[0]), get_config(:ignore_case).to_boolean)).pop.to_a.pop, params[1]) super get_string end