class FilterRename::Filters::Template
Public Class Methods
hint()
click to toggle source
# File lib/filter_rename/filters.rb, line 582 def self.hint; 'Replace the <placeholders> in TEMPLATE with the relative targets'; end
params()
click to toggle source
# File lib/filter_rename/filters.rb, line 583 def self.params; 'TEMPLATE'; end
Public Instance Methods
filter(params)
click to toggle source
Calls superclass method
FilterRename::FilterBase#filter
# File lib/filter_rename/filters.rb, line 585 def filter(params) super params[0].gsub(/<([a-z0-9\_]+)>/) { get_string(Regexp.last_match[1]) } end