class FilterRename::Filters::Select
Public Class Methods
hint()
click to toggle source
# File lib/filter_rename/filters.rb, line 8 def self.hint; 'Select the target where apply further transformations'; end
params()
click to toggle source
# File lib/filter_rename/filters.rb, line 9 def self.params; 'name|ext|folder|...'; end
Public Instance Methods
filter(params)
click to toggle source
# File lib/filter_rename/filters.rb, line 11 def filter(params) raise InvalidTarget, params[0] unless has_target? params[0].to_sym set_config :target, params[0].to_sym end