Lines Matching refs:padstr
7300 $def(self, '$center', function $$center(width, padstr) {
7304 if (padstr == null) padstr = " ";
7306 padstr = ($coerce_to(padstr, $$$('String'), 'to_str')).$to_s();
7307 if ($truthy(padstr['$empty?']())) {
7312 var ljustified = self.$ljust($rb_divide($rb_plus(width, self.length), 2).$ceil(), padstr),
7313 rjustified = self.$rjust($rb_divide($rb_plus(width, self.length), 2).$floor(), padstr);
7764 $def(self, '$ljust', function $$ljust(width, padstr) {
7768 if (padstr == null) padstr = " ";
7770 padstr = ($coerce_to(padstr, $$$('String'), 'to_str')).$to_s();
7771 if ($truthy(padstr['$empty?']())) {
7782 result += padstr;
8034 $def(self, '$rjust', function $$rjust(width, padstr) {
8038 if (padstr == null) padstr = " ";
8040 padstr = ($coerce_to(padstr, $$$('String'), 'to_str')).$to_s();
8041 if ($truthy(padstr['$empty?']())) {
8047 patterns = Math.floor(chars / padstr.length),
8048 result = Array(patterns + 1).join(padstr),
8051 return result + padstr.slice(0, remaining) + self;