Method: String#center

Defined in:
string.c

#center(size, pad_string = ' ') ⇒ Object

:include: doc/string/center.rdoc

Related: String#ljust, String#rjust.



10985
10986
10987
10988
10989
# File 'string.c', line 10985

static VALUE
rb_str_center(int argc, VALUE *argv, VALUE str)
{
    return rb_str_justify(argc, argv, str, 'c');
}