class FilterRename::Filters::LeftJustify
Public Class Methods
hint()
click to toggle source
# File lib/filter_rename/filters.rb, line 279 def self.hint; 'Add enough CHAR(s) to the right side to have a N-length string'; end
params()
click to toggle source
# File lib/filter_rename/filters.rb, line 280 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 282 def filter(params) super get_string.ljust(params[0].to_i, params[1]) end