Class: FilterRename::Filters::LeftJustify
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
378
|
# File 'lib/filter_rename/filters.rb', line 378
def self.hint; 'Add enough CHAR(s) to the right side to have a N-length string'; end
|
.params ⇒ Object
379
|
# File 'lib/filter_rename/filters.rb', line 379
def self.params; 'N,CHAR'; end
|
Instance Method Details
#filter(params) ⇒ Object
381
382
383
|
# File 'lib/filter_rename/filters.rb', line 381
def filter(params)
super get_string.ljust(params[0].to_i, params[1])
end
|