Skip to content

Commit

Permalink
* eval.c (method_inspect): show proper class name.
Browse files Browse the repository at this point in the history
  [ruby-talk:248647], Thanks Calamitas.


git-svn-id: http://svn.ruby-lang.org/repos/ruby/branches/ruby_1_8_6@12459 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
  • Loading branch information
shyouhei committed Jun 7, 2007
1 parent 01a8933 commit b014aae
Show file tree
Hide file tree
Showing 3 changed files with 14 additions and 5 deletions.
5 changes: 5 additions & 0 deletions ChangeLog
@@ -1,3 +1,8 @@
Thu Jun 7 14:53:46 2007 URABE Shyouhei <shyouhei@ruby-lang.org>

* eval.c (method_inspect): show proper class name.
[ruby-talk:248647], Thanks Calamitas.

Sun May 27 05:24:56 2007 URABE Shyouhei <shyouhei@ruby-lang.org>

* runruby.rb: eliminate uninitialized variable.
Expand Down
6 changes: 5 additions & 1 deletion eval.c
Expand Up @@ -9451,8 +9451,12 @@ method_inspect(method)
else {
rb_str_buf_cat2(str, rb_class2name(data->rklass));
if (data->rklass != data->klass) {
VALUE klass = data -> klass;
if (TYPE(klass) == T_ICLASS) {
klass = RBASIC(klass)->klass;
}
rb_str_buf_cat2(str, "(");
rb_str_buf_cat2(str, rb_class2name(data->klass));
rb_str_buf_cat2(str, rb_class2name(klass));
rb_str_buf_cat2(str, ")");
}
}
Expand Down
8 changes: 4 additions & 4 deletions version.h
@@ -1,15 +1,15 @@
#define RUBY_VERSION "1.8.6"
#define RUBY_RELEASE_DATE "2007-05-23"
#define RUBY_VERSION_CODE 186
#define RUBY_RELEASE_CODE 20070527
#define RUBY_PATCHLEVEL 29
#define RUBY_RELEASE_CODE 20070607
#define RUBY_PATCHLEVEL 30

#define RUBY_VERSION_MAJOR 1
#define RUBY_VERSION_MINOR 8
#define RUBY_VERSION_TEENY 6
#define RUBY_RELEASE_YEAR 2007
#define RUBY_RELEASE_MONTH 5
#define RUBY_RELEASE_DAY 27
#define RUBY_RELEASE_MONTH 6
#define RUBY_RELEASE_DAY 07

#ifdef RUBY_EXTERN
RUBY_EXTERN const char ruby_version[];
Expand Down

0 comments on commit b014aae

Please sign in to comment.