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
500
501
502
|
# File 'lib/filter_rename/filters.rb', line 500
def self.hint
"Add enough CHAR(s) to the right side to have a N-length string"
end
|
.params ⇒ Object
504
505
506
|
# File 'lib/filter_rename/filters.rb', line 504
def self.params
"N,CHAR"
end
|
Instance Method Details
#filter(params) ⇒ Object
508
509
510
|
# File 'lib/filter_rename/filters.rb', line 508
def filter(params)
super(get_string.ljust(params[0].to_i, params[1]))
end
|