Lines Matching refs:padstr
7567 $def(self, '$center', function $$center(width, padstr) { argument
7571 if (padstr == null) padstr = " ";
7573 padstr = ($coerce_to(padstr, $$$('String'), 'to_str')).$to_s();
7574 if ($truthy(padstr['$empty?']())) {
7581 var ljustified = self.$ljust($rb_divide($rb_plus(width, self.length), 2).$ceil(), padstr),
7582 rjustified = self.$rjust($rb_divide($rb_plus(width, self.length), 2).$floor(), padstr);
8056 $def(self, '$ljust', function $$ljust(width, padstr) { argument
8060 if (padstr == null) padstr = " ";
8062 padstr = ($coerce_to(padstr, $$$('String'), 'to_str')).$to_s();
8063 if ($truthy(padstr['$empty?']())) {
8076 result += padstr;
8343 $def(self, '$rjust', function $$rjust(width, padstr) { argument
8347 if (padstr == null) padstr = " ";
8349 padstr = ($coerce_to(padstr, $$$('String'), 'to_str')).$to_s();
8350 if ($truthy(padstr['$empty?']())) {
8358 patterns = Math.floor(chars / padstr.length),
8359 result = Array(patterns + 1).join(padstr),
8362 return result + padstr.slice(0, remaining) + self;