/* * call-seq: * enc.name => string * * Returns the name of the encoding. * * Encoding::UTF_8.name => "UTF-8" */ static VALUE enc_name(VALUE self) { return rb_usascii_str_new2(rb_enc_name((rb_encoding*)DATA_PTR(self))); }