diff options
| author | matz <matz@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2007-10-15 16:28:18 +0000 |
|---|---|---|
| committer | matz <matz@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2007-10-15 16:28:18 +0000 |
| commit | 196573bd57683edcee5835e3f06003634165be17 (patch) | |
| tree | 8cc7ffd03261d373dfec41f4b07cb79916b380de | |
| parent | 35ba9441c3d72db6b56ebfbd3f2de048309c2b9a (diff) | |
| download | ruby-196573bd57683edcee5835e3f06003634165be17.tar.gz ruby-196573bd57683edcee5835e3f06003634165be17.tar.xz ruby-196573bd57683edcee5835e3f06003634165be17.zip | |
* encoding.c (Init_Encoding): define #to_s to show encoding name
in to_s representation as well as #inspect.
git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@13712 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
| -rw-r--r-- | ChangeLog | 5 | ||||
| -rw-r--r-- | encoding.c | 1 | ||||
| -rw-r--r-- | version.h | 6 |
3 files changed, 9 insertions, 3 deletions
@@ -1,3 +1,8 @@ +Tue Oct 16 01:25:40 2007 Yukihiro Matsumoto <matz@ruby-lang.org> + + * encoding.c (Init_Encoding): define #to_s to show encoding name + in to_s representation as well as #inspect. + Mon Oct 15 13:24:08 2007 Nobuyoshi Nakada <nobu@ruby-lang.org> * numeric.c (flo_round): should be number but not rounding factor. diff --git a/encoding.c b/encoding.c index ab8a020a0..dd01fba94 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); @@ -1,7 +1,7 @@ #define RUBY_VERSION "1.9.0" -#define RUBY_RELEASE_DATE "2007-10-15" +#define RUBY_RELEASE_DATE "2007-10-16" #define RUBY_VERSION_CODE 190 -#define RUBY_RELEASE_CODE 20071015 +#define RUBY_RELEASE_CODE 20071016 #define RUBY_PATCHLEVEL 0 #define RUBY_VERSION_MAJOR 1 @@ -9,7 +9,7 @@ #define RUBY_VERSION_TEENY 0 #define RUBY_RELEASE_YEAR 2007 #define RUBY_RELEASE_MONTH 10 -#define RUBY_RELEASE_DAY 15 +#define RUBY_RELEASE_DAY 16 #ifdef RUBY_EXTERN RUBY_EXTERN const char ruby_version[]; |
