Method: String#b

Defined in:
string.c

#bString

Returns a copied string whose encoding is ASCII-8BIT.

Returns:


10400
10401
10402
10403
10404
10405
10406
10407
# File 'string.c', line 10400

static VALUE
rb_str_b(VALUE str)
{
    VALUE str2 = str_alloc(rb_cString);
    str_replace_shared_without_enc(str2, str);
    ENC_CODERANGE_CLEAR(str2);
    return str2;
}