Method: Encoding::Converter#destination_encoding

Defined in:
transcode.c

#destination_encodingEncoding

Returns the destination encoding as an Encoding object.

Returns:



3506
3507
3508
3509
3510
3511
3512
3513
# File 'transcode.c', line 3506

static VALUE
econv_destination_encoding(VALUE self)
{
    rb_econv_t *ec = check_econv(self);
    if (!ec->destination_encoding)
        return Qnil;
    return rb_enc_from_encoding(ec->destination_encoding);
}