Lines Matching refs:padstr
7291 $def(self, '$center', function $$center(width, padstr) { argument
7295 if (padstr == null) padstr = " ";
7297 padstr = ($coerce_to(padstr, $$$('String'), 'to_str')).$to_s();
7298 if ($truthy(padstr['$empty?']())) {
7303 var ljustified = self.$ljust($rb_divide($rb_plus(width, self.length), 2).$ceil(), padstr),
7304 rjustified = self.$rjust($rb_divide($rb_plus(width, self.length), 2).$floor(), padstr);
7755 $def(self, '$ljust', function $$ljust(width, padstr) { argument
7759 if (padstr == null) padstr = " ";
7761 padstr = ($coerce_to(padstr, $$$('String'), 'to_str')).$to_s();
7762 if ($truthy(padstr['$empty?']())) {
7773 result += padstr;
8025 $def(self, '$rjust', function $$rjust(width, padstr) { argument
8029 if (padstr == null) padstr = " ";
8031 padstr = ($coerce_to(padstr, $$$('String'), 'to_str')).$to_s();
8032 if ($truthy(padstr['$empty?']())) {
8038 patterns = Math.floor(chars / padstr.length),
8039 result = Array(patterns + 1).join(padstr),
8042 return result + padstr.slice(0, remaining) + self;