class FilterRename::Filters::RightJustify
Public Class Methods
hint()
click to toggle source
# File lib/filter_rename/filters.rb, line 472 def self.hint; 'Apply enough CHAR(s) to the left side to have a N-length string'; end
params()
click to toggle source
# File lib/filter_rename/filters.rb, line 473 def self.params; 'N,CHAR'; end
Public Instance Methods
filter(params)
click to toggle source
Calls superclass method
FilterRename::FilterBase#filter
# File lib/filter_rename/filters.rb, line 475 def filter(params) super get_string.rjust(params[0].to_i, params[1]) end