diff options
Diffstat (limited to 'encoding.c')
-rw-r--r-- | encoding.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/encoding.c b/encoding.c index ab8a020a01..dd01fba94a 100644 --- a/encoding.c +++ b/encoding.c @@ -518,6 +518,7 @@ Init_Encoding(void) { rb_cEncoding = rb_define_class("Encoding", rb_cObject); rb_undef_alloc_func(rb_cEncoding); + rb_define_method(rb_cEncoding, "to_s", enc_inspect, 0); rb_define_method(rb_cEncoding, "inspect", enc_inspect, 0); rb_define_method(rb_cEncoding, "name", enc_name, 0); rb_define_singleton_method(rb_cEncoding, "list", enc_list, 0); |