From 58eb1e5cfc5be49eda6a12829b2ae42405cd2e3e Mon Sep 17 00:00:00 2001 From: matz Date: Mon, 3 Feb 2003 08:48:32 +0000 Subject: * re.c (rb_reg_initialize_m): unfotunate serious typo. git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@3436 b2dd03c8-39d4-4d8f-98ff-823fe69b080e --- error.c | 1 + 1 file changed, 1 insertion(+) (limited to 'error.c') diff --git a/error.c b/error.c index 8b6b32495..7befc7b8e 100644 --- a/error.c +++ b/error.c @@ -544,6 +544,7 @@ Init_Exception() rb_define_method(rb_eException, "exception", exc_exception, -1); rb_define_method(rb_eException, "initialize", exc_initialize, -1); rb_define_method(rb_eException, "to_s", exc_to_s, 0); + rb_define_method(rb_eException, "to_str", exc_to_s, 0); rb_define_method(rb_eException, "message", exc_to_s, 0); rb_define_method(rb_eException, "inspect", exc_inspect, 0); rb_define_method(rb_eException, "backtrace", exc_backtrace, 0); -- cgit