Class: FilterRename::Filters::Template
Class Method Summary
collapse
Instance Method Summary
collapse
#current_target, #get_config, #get_string, #get_words, #initialize, #match?, #set_config, #set_string, #wrap_regex
Class Method Details
.hint ⇒ Object
753
|
# File 'lib/filter_rename/filters.rb', line 753
def self.hint; 'Replace the <placeholders> in TEMPLATE with the relative targets'; end
|
.params ⇒ Object
754
|
# File 'lib/filter_rename/filters.rb', line 754
def self.params; 'TEMPLATE'; end
|
Instance Method Details
#filter(params) ⇒ Object
756
757
758
|
# File 'lib/filter_rename/filters.rb', line 756
def filter(params)
super params[0].gsub(/<([a-z0-9\_]+)>/) { get_string(Regexp.last_match[1]) }
end
|