class FilterRename::Filters::Set
Public Class Methods
hint()
click to toggle source
# File lib/filter_rename/filters.rb, line 482 def self.hint; 'Set the current or an optional TARGET with TEXT'; end
params()
click to toggle source
# File lib/filter_rename/filters.rb, line 483 def self.params; 'TEXT[,TARGET]'; end
Public Instance Methods
filter(params)
click to toggle source
Calls superclass method
FilterRename::FilterBase#filter
# File lib/filter_rename/filters.rb, line 485 def filter(params) if params[1].nil? str = params[0] else set_string(params[0], params[1].delete(':<>')) str = get_string end super str end